Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeClash-ai/CodeClash
/ functions
Functions
1,100 in github.com/CodeClash-ai/CodeClash
⨍
Functions
1,100
◇
Types & classes
168
↳
Endpoints
14
↓ 3 callers
Function
get_replayer
Return the renderer for an arena, or ``None`` if none exists yet. Imports are lazy so pulling in one arena's replay code never drags in the other
codeclash/replay/__init__.py:39
↓ 3 callers
Function
load_metadata
Load metadata.json from log directory and return Metadata object
codeclash/viewer/app.py:357
↓ 3 callers
Function
load_runtime_module
()
tests/arenas/test_bomberland.py:17
↓ 3 callers
Function
normalize_offer
(offer, nmi)
codeclash/arenas/scml/runtime/run_scml.py:141
↓ 3 callers
Function
openGame
(gameName)
codeclash/viewer/static/js/picker.js:3
↓ 3 callers
Method
parse_trajectory
Parse a specific trajectory file Args: player_name: Name of the player round_num: Round number load_diffs
codeclash/viewer/app.py:612
↓ 3 callers
Method
restart
(self)
codeclash/arenas/scml/runtime/run_scml.py:281
↓ 3 callers
Method
restart
(self)
codeclash/arenas/cyborg/runtime/run_cyborg.py:176
↓ 3 callers
Method
run
Calculate Elo for max rounds from 1 to max_rounds and plot the results.
codeclash/analysis/metrics/elo.py:1031
↓ 3 callers
Method
save
Save figure to PDF.
codeclash/analysis/llm_as_judge/grounding_validation_triple_plot.py:447
↓ 3 callers
Method
set
Set cache value
codeclash/viewer/app.py:132
↓ 3 callers
Function
setSelectedRow
(index)
codeclash/viewer/static/js/picker.js:656
↓ 3 callers
Function
showSuccessMessage
()
codeclash/viewer/static/js/clipboard.js:5
↓ 3 callers
Function
updateNavigableRows
()
codeclash/viewer/static/js/picker.js:649
↓ 2 callers
Method
__init__
(self)
tests/arenas/test_bomberland.py:129
↓ 2 callers
Method
_compress_round_folder
(self, round_num_zero_indexed: int)
codeclash/tournaments/pvp.py:188
↓ 2 callers
Method
_construct_game_script
( self, agents: list[Player], run_client: str, run_engine: str, verbos
codeclash/arenas/huskybench/huskybench.py:40
↓ 2 callers
Method
_create_engine_log
Create engine log file with final scores. Args: scores: List of (player_id, final_money) tuples
tests/arenas/test_huskybench.py:118
↓ 2 callers
Method
_elos_from_result
(result: dict)
codeclash/analysis/metrics/elo.py:746
↓ 2 callers
Method
_evaluate_matrix
Evaluate a matrix between two players using manual thread management.
codeclash/analysis/matrix.py:247
↓ 2 callers
Method
_get_round_diff
Get the diff between the round and initial version (round 0). If incremental is True, get the diff between the round and the previous round.
codeclash/agents/player.py:238
↓ 2 callers
Method
_positions
(ranking: list[str])
codeclash/analysis/metrics/elo.py:754
↓ 2 callers
Method
_ranking_from_elos
(elos: dict[str, float])
codeclash/analysis/metrics/elo.py:750
↓ 2 callers
Method
_save
Save metadata to matrix.json.
codeclash/analysis/matrix.py:91
↓ 2 callers
Method
_save
(self)
codeclash/tournaments/single_player.py:134
↓ 2 callers
Method
_save_plot
Save plot in both PDF and PNG formats.
codeclash/analysis/metrics/elo.py:494
↓ 2 callers
Method
_save_plot
Save plot in both PDF and PNG formats.
codeclash/analysis/metrics/elo.py:738
↓ 2 callers
Function
_scratch_dir
Local scratch dir for staging `docker cp` transfers. Defaults to the system temp dir. Override with CODECLASH_TMPDIR (e.g. on AWS Batch, where the
codeclash/utils/environment.py:14
↓ 2 callers
Function
_script_safe
JSON for inlining inside a <script> tag (guard against ``</script>``).
codeclash/replay/base.py:302
↓ 2 callers
Method
_sigmoid
(x: np.ndarray)
codeclash/analysis/metrics/elo.py:511
↓ 2 callers
Method
_start_worker
(self)
codeclash/arenas/scml/runtime/run_scml.py:238
↓ 2 callers
Method
_start_worker
(self)
codeclash/arenas/cyborg/runtime/run_cyborg.py:136
↓ 2 callers
Method
_tag_round
Git tag the codebase at the given round.
codeclash/agents/player.py:175
↓ 2 callers
Function
add_root_file_handler
Add a file handler to the root logger to capture all log messages. Returns: The FileHandler that was added (for later cleanup).
codeclash/utils/log.py:89
↓ 2 callers
Method
aggregate_results_to_dataframe
Aggregate all llm_as_judge.json results from the input directory into a DataFrame. Args: input_dir: Directory containing llm_as_j
codeclash/analysis/llm_as_judge/aggregate_results.py:39
↓ 2 callers
Function
analyze_filename_redundancy_over_rounds
Calculate filename redundancy over rounds for each player-tournament.
codeclash/analysis/viz/scatter_codebase_organization.py:608
↓ 2 callers
Function
analyze_per_player_arena
(data: list, N: int = 5)
codeclash/analysis/viz/scatter_codebase_organization.py:205
↓ 2 callers
Function
ar_residuals_logit
One-step-ahead residuals for AR(p) on logit(scores) with stationary means. scores: (T, R) in (0,1) gammas: (p,) mus: (T,) Return
codeclash/analysis/bootstrap/analyze_round_correlations.py:35
↓ 2 callers
Method
bt_to_elo
Convert Bradley-Terry strength to Elo rating. Formula: R_i = R_0 + (β/ln(10)) * s_i where β = 400 (ELO_SLOPE), R_0 = 1200 (ELO_BASE)
codeclash/analysis/metrics/elo.py:502
↓ 2 callers
Function
build_data
Walk logs and build model -> list[list[int]] for rounds 1..ROUNDS. Returns a dict where each model maps to a list of ROUNDS lists, where each
codeclash/analysis/viz/line_chart_per_round_specific.py:71
↓ 2 callers
Function
build_data
Walk logs and build model -> list[list[int]] for rounds 1..ROUNDS. Returns a dict where each model maps to a list of ROUNDS lists, where each
codeclash/analysis/viz/line_chart_per_round_changes.py:51
↓ 2 callers
Function
calculate_lead_changes
Calculate how often the winner changes between consecutive rounds.
codeclash/analysis/multiplayer/win_change_rate.py:19
↓ 2 callers
Function
calculate_p_value
Calculate the p-value for the statistical significance of the winner. Input: scores as a dictionary of player names and number of games won.
codeclash/analysis/significance.py:8
↓ 2 callers
Function
calculate_throwaway_files
Calculate the number of throwaway files at root and elsewhere. A throwaway file is one that is created in round i < threshold_round and never use
codeclash/analysis/viz/throwaway_files_bar_chart.py:33
↓ 2 callers
Function
calculate_winner_share
Calculate winner's share of total points for each round in a tournament.
codeclash/analysis/multiplayer/win_share.py:19
↓ 2 callers
Method
cleanup_handlers
Close and remove file handlers to prevent file descriptor leaks.
codeclash/tournaments/tournament.py:37
↓ 2 callers
Method
clear
Clear all cache entries
codeclash/viewer/app.py:143
↓ 2 callers
Function
closeBulkActionsModal
()
codeclash/viewer/static/js/picker.js:163
↓ 2 callers
Function
compute_win_rates
(folder_list)
codeclash/analysis/transparent/main.py:12
↓ 2 callers
Function
conservative_score
(r)
codeclash/analysis/metrics/tskill.py:67
↓ 2 callers
Function
copyToClipboard
(text, button)
codeclash/viewer/static/js/clipboard.js:4
↓ 2 callers
Function
copy_between_containers
Copy files from one Docker container to another via a temporary local directory. Be extremely careful with trailing slashes in src_path and
codeclash/utils/environment.py:45
↓ 2 callers
Function
createLineCountChart
* Create the line count chart for a specific file
codeclash/viewer/static/js/analysis.js:57
↓ 2 callers
Method
create_plot
Create all three plots.
codeclash/analysis/llm_as_judge/grounding_validation_triple_plot.py:434
↓ 2 callers
Method
decide
(self, observation, action_space)
codeclash/arenas/cyborg/runtime/run_cyborg.py:180
↓ 2 callers
Function
discover_games
Find every playable game under a tournament folder. Handles three layouts: ``rounds/round_<R>.tar.gz`` archives (the common case), uncompress
codeclash/replay/base.py:114
↓ 2 callers
Function
entities_for_state
(metal, wood, bombs, blasts)
codeclash/arenas/bomberland/runtime/run_bomberland.py:157
↓ 2 callers
Function
explode_bomb
(index, bombs, metal, wood, units, stats, blasts)
codeclash/arenas/bomberland/runtime/run_bomberland.py:237
↓ 2 callers
Function
extract_file_path_from_block
Extract file path from a git diff block.
codeclash/tournaments/utils/git_utils.py:24
↓ 2 callers
Function
fallbackCopy
()
codeclash/viewer/static/js/clipboard.js:36
↓ 2 callers
Function
get_agent
(config: dict, game_context: GameContext, environment: DockerEnvironment)
codeclash/agents/__init__.py:9
↓ 2 callers
Method
get_agent
Create an agent with environment and game context.
codeclash/tournaments/single_player.py:63
↓ 2 callers
Method
get_dummy_agent
Create a dummy agent that does nothing.
codeclash/tournaments/single_player.py:77
↓ 2 callers
Method
get_game_context
Create a game context for an agent.
codeclash/tournaments/single_player.py:49
↓ 2 callers
Function
get_lines
(patch)
codeclash/analysis/code_evolve/main.py:89
↓ 2 callers
Method
get_or_compute
Get cached value or compute it, preventing concurrent computation Args: key: Cache key compute_fn: Function to call i
codeclash/viewer/app.py:164
↓ 2 callers
Function
hasActiveFilters
()
codeclash/viewer/static/js/picker.js:1116
↓ 2 callers
Function
is_binary_block
(bl: list[str])
codeclash/tournaments/utils/git_utils.py:15
↓ 2 callers
Function
load_cached_results
Load all cached results from the data file.
codeclash/analysis/code_evolve/main.py:232
↓ 2 callers
Function
load_instances_from_path
(path: Path)
codeclash/analysis/llm_as_judge/big_questions.py:240
↓ 2 callers
Function
main_cli
(argv: list[str] | None = None)
scripts/main_single_player.py:40
↓ 2 callers
Function
mirror
(pos, width, height)
codeclash/arenas/bomberland/runtime/run_bomberland.py:79
↓ 2 callers
Function
normalize_response
(response)
codeclash/arenas/scml/runtime/run_scml.py:170
↓ 2 callers
Function
openGameInNewTab
(gameName)
codeclash/viewer/static/js/picker.js:21
↓ 2 callers
Function
openGamePicker
()
codeclash/viewer/static/js/app.js:4
↓ 2 callers
Function
openGamePickerInNewTab
()
codeclash/viewer/static/js/app.js:10
↓ 2 callers
Method
parse_game_metadata
Parse overall game metadata
codeclash/viewer/app.py:569
↓ 2 callers
Function
player_starts
(width, height, unit_count)
codeclash/arenas/bomberland/runtime/run_bomberland.py:84
↓ 2 callers
Function
plot_averages
Plot average lines changed per round for each model and save PNG. file_types: iterable of file-type keys to include (e.g. ["README_agent.md"] or
codeclash/analysis/viz/line_chart_per_round_specific.py:138
↓ 2 callers
Function
plot_opponent_effect_heatmap
Plot heatmap showing how model consistency varies by opponent. Answers questions 2a (round 1) and 2b (round 15).
codeclash/analysis/code_evolve/main.py:300
↓ 2 callers
Function
plot_stratified
Plot win counts stratified by category (game or model).
codeclash/analysis/viz/win_rate_distribution.py:82
↓ 2 callers
Function
plot_stratified
Plot normalized scores stratified by category (game or model).
codeclash/analysis/viz/round_score_distribution.py:88
↓ 2 callers
Function
policy_stats
(agent_class: type)
codeclash/arenas/scml/runtime/run_scml.py:431
↓ 2 callers
Method
post_run_hook
Should be called after we called the run method.
codeclash/agents/player.py:124
↓ 2 callers
Method
pre_run_hook
Should be called before we call the run method.
codeclash/agents/player.py:92
↓ 2 callers
Function
prepareChartData
* Prepare chart data for a specific file
codeclash/viewer/static/js/analysis.js:126
↓ 2 callers
Function
render_game_viewer
Common logic for rendering game viewer pages with timeout protection
codeclash/viewer/app.py:1070
↓ 2 callers
Function
response_to_name
(response)
codeclash/arenas/scml/runtime/run_scml.py:93
↓ 2 callers
Method
run
Main execution function that runs all rounds.
codeclash/tournaments/single_player.py:85
↓ 2 callers
Method
run_competition_phase
(self, round_num: int)
codeclash/tournaments/pvp.py:99
↓ 2 callers
Function
s3_log_sync
Sync local logs to S3 bucket. Args: local_output_dir: Local directory containing logs to sync logger: Logger instance for debug o
codeclash/utils/aws.py:65
↓ 2 callers
Function
set_log_base_directory
Set the logs directory directly
codeclash/viewer/app.py:334
↓ 2 callers
Function
setupFileDropdown
* Setup the file dropdown change handler
codeclash/viewer/static/js/analysis.js:42
↓ 2 callers
Function
showMatrix
(matrixName)
codeclash/viewer/static/js/matrix.js:59
↓ 2 callers
Function
split_git_diff_by_files
Split a git diff into separate diffs for each file. Args: diff: Git diff text containing potentially multiple files Returns:
codeclash/tournaments/utils/git_utils.py:110
↓ 2 callers
Function
tag_to_str
(tag: dict)
codeclash/analysis/code_evolve/main.py:154
↓ 2 callers
Function
toggleModelSelection
(event, modelName)
codeclash/viewer/static/js/picker.js:991
↓ 2 callers
Function
toggleTocMenu
()
codeclash/viewer/static/js/app.js:344
↓ 2 callers
Function
unpack
(theta: np.ndarray)
codeclash/analysis/bootstrap/analyze_round_correlations.py:80
↓ 2 callers
Function
updateSelectAllCheckbox
()
codeclash/viewer/static/js/picker.js:98
← previous
next →
101–200 of 1,100, ranked by callers