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
↓ 1 callers
Method
__init__
( self, model: Model, env: DockerEnvironment, *, logger: logging.Logge
codeclash/agents/minisweagent.py:25
↓ 1 callers
Method
_add_action_categories_results
Add action categories counts to the row.
codeclash/analysis/llm_as_judge/aggregate_results.py:176
↓ 1 callers
Method
_add_big_questions_results
Add big questions results to the row.
codeclash/analysis/llm_as_judge/aggregate_results.py:195
↓ 1 callers
Method
_add_data_id_results
Add results from a specific data_id to the row.
codeclash/analysis/llm_as_judge/aggregate_results.py:160
↓ 1 callers
Method
_add_hallucination_results
Add hallucination counts to the row.
codeclash/analysis/llm_as_judge/aggregate_results.py:206
↓ 1 callers
Function
_add_html_extensions
Add .html extensions to files that don't have .html extensions but contain HTML
scripts/freeze_viewer.py:227
↓ 1 callers
Method
_aggregate_match_result
Aggregate results from multiple games into a single match result. Args: game_results: List of (result, white_agent, blac
codeclash/arenas/chess/chess.py:309
↓ 1 callers
Function
_analyze_line_counts_impl
Internal implementation of line counts analysis with timeout
codeclash/viewer/app.py:1181
↓ 1 callers
Function
_apply
Apply one SAN move for the side to move. Returns (new_board, from, to, new_ep).
codeclash/arenas/chess/replay.py:125
↓ 1 callers
Function
_attacked
Is square (r, c) attacked by a piece of the given color?
codeclash/arenas/chess/replay.py:46
↓ 1 callers
Method
_build_combined_matrix
Build combined 'ALL' matrix with normalized scores from all games.
codeclash/analysis/metrics/elo.py:226
↓ 1 callers
Method
_build_match_pairings
Build match pairings for sims_per_round simulations. Strategy: Round-robin style - pair agents and repeat as needed. For eac
codeclash/arenas/chess/chess.py:120
↓ 1 callers
Method
_calculate_cost
(self, response: anthropic.types.Message)
codeclash/agents/mini_anthropic_model.py:223
↓ 1 callers
Method
_calculate_time_running
Calculate time running for a job Returns: Tuple of (formatted_string, seconds)
codeclash/viewer/app_aws.py:130
↓ 1 callers
Function
_cleanup_api_files
Remove API endpoint files that were created during freezing
scripts/freeze_viewer.py:200
↓ 1 callers
Method
_cleanup_compute_lock
Clean up compute lock after use to avoid memory leak
codeclash/viewer/app.py:155
↓ 1 callers
Method
_commit
Commit changes to the agent's codebase.
codeclash/agents/player.py:196
↓ 1 callers
Method
_compile_agent
Compile an agent's code in the game container. Args: agent: The agent to compile idx: Index for naming the output dir
codeclash/arenas/battlecode24/battlecode24.py:115
↓ 1 callers
Method
_compile_agent
Compile an agent's code in the game container. Args: agent: The agent to compile idx: Index for naming the output dir
codeclash/arenas/battlecode23/battlecode23.py:115
↓ 1 callers
Method
_compile_engines_in_game_container
Recompile each agent's engine in the game container and return engine paths. Returns: dict mapping agent name to engine
codeclash/arenas/chess/chess.py:75
↓ 1 callers
Method
_constrained_covariance
(self, H: np.ndarray)
codeclash/analysis/metrics/elo.py:386
↓ 1 callers
Method
_create_dummy_agent
Create a dummy agent for matrix evaluation.
codeclash/analysis/matrix.py:153
↓ 1 callers
Method
_create_elo_violin_plot
Create a violin plot showing the distribution of Elo scores for each model.
codeclash/analysis/metrics/elo.py:822
↓ 1 callers
Method
_create_rank_matrix_plot
Create a matrix plot showing the percentage of times each model achieves each rank.
codeclash/analysis/metrics/elo.py:765
↓ 1 callers
Function
_doc
(head_extra: str, scripts: str)
codeclash/replay/base.py:307
↓ 1 callers
Method
_episodes_per_round
(self)
codeclash/arenas/cyborg/cyborg.py:42
↓ 1 callers
Method
_evaluate_matrix_cell_parallel
Evaluate a single matrix cell using pre-initialized agents. Returns (i, j, result).
codeclash/analysis/matrix.py:184
↓ 1 callers
Method
_extract_modified_files_from_diff
Extract modified file paths from a git diff and get their full content. Returns a dict mapping file path to full file content. Only in
codeclash/agents/player.py:212
↓ 1 callers
Function
_fetch_batch_jobs_impl
Internal implementation of batch jobs fetching with timeout
codeclash/viewer/app.py:1401
↓ 1 callers
Function
_find_all_game_folders_impl
Internal implementation of find_all_game_folders with timeout
codeclash/viewer/app.py:403
↓ 1 callers
Function
_finish_reason_from_anthropic
(stop_reason: str | None)
codeclash/agents/mini_anthropic_model.py:43
↓ 1 callers
Method
_format_traj_str
(self, messages: list[dict[str, Any]])
codeclash/analysis/llm_as_judge/big_questions.py:150
↓ 1 callers
Method
_generate_aws_console_link
Generate AWS console link for a job
codeclash/viewer/app_aws.py:216
↓ 1 callers
Method
_generate_emagedoc_link
Generate emagedoc.xyz viewer link for a job
codeclash/viewer/app_aws.py:222
↓ 1 callers
Method
_generate_s3_link
Generate S3 console link for a job
codeclash/viewer/app_aws.py:231
↓ 1 callers
Method
_get_aws_command
Get AWS command for a job
codeclash/viewer/app_aws.py:210
↓ 1 callers
Method
_get_battle_config
(self)
codeclash/arenas/robocode/robocode.py:41
↓ 1 callers
Method
_get_commit_hash
Get the current commit hash.
codeclash/agents/player.py:188
↓ 1 callers
Method
_get_compute_lock
Get or create a lock for a specific cache key
codeclash/viewer/app.py:148
↓ 1 callers
Method
_get_round_diff
Read diff data from changes_r{round}.json file. Returns None if file doesn't exist.
codeclash/analysis/matrix.py:142
↓ 1 callers
Method
_get_round_info
Get round info for a job
codeclash/viewer/app_aws.py:204
↓ 1 callers
Method
_get_round_score
Calculate score for a round. Returns (p1_score, p2_score) where each is 0.0, 0.5, or 1.0.
codeclash/analysis/metrics/elo.py:84
↓ 1 callers
Method
_get_sorted_pair
(self, p1: str, p2: str)
codeclash/analysis/metrics/elo.py:81
↓ 1 callers
Method
_get_unique_model_name
(self, model: str)
codeclash/analysis/metrics/elo.py:78
↓ 1 callers
Method
_get_winner_json
(self, output_file: str, agents: list[Player])
codeclash/arenas/robotrumble/robotrumble.py:101
↓ 1 callers
Method
_get_winner_txt
(self, output_file: str, agents: list[Player])
codeclash/arenas/robotrumble/robotrumble.py:81
↓ 1 callers
Method
_hessian
(self, strengths: np.ndarray, pairs: list[tuple[int, int]], wins: np.ndarray)
codeclash/analysis/metrics/elo.py:368
↓ 1 callers
Method
_initialize_agent_pools
Pre-initialize agents for all rounds for each player.
codeclash/analysis/matrix.py:122
↓ 1 callers
Method
_initialize_game_pool
Initialize a pool of game objects for parallel execution.
codeclash/analysis/matrix.py:104
↓ 1 callers
Method
_initialize_instance_row
Initialize a row with basic instance metadata and NaN values for all data types.
codeclash/analysis/llm_as_judge/aggregate_results.py:132
↓ 1 callers
Function
_king
(board, white: bool)
codeclash/arenas/chess/replay.py:81
↓ 1 callers
Function
_lines_changed_from_patch_text
Count added + removed lines in a unified diff string using unidiff.PatchSet. Returns {} if the patch cannot be parsed.
codeclash/analysis/viz/line_chart_per_round_specific.py:41
↓ 1 callers
Function
_lines_changed_from_patch_text
Count added + removed lines in a unified diff string using unidiff.PatchSet. Returns 0 if the patch cannot be parsed.
codeclash/analysis/viz/line_chart_per_round_changes.py:32
↓ 1 callers
Method
_load_existing_progress
Load existing progress from matrix.json if it exists.
codeclash/analysis/matrix.py:96
↓ 1 callers
Method
_load_pairings
Load match pairings from stored JSON file. Returns: Dict mapping match_idx to (agent1_name, agent2_name) tuple
codeclash/arenas/chess/chess.py:375
↓ 1 callers
Method
_max_footrule
(n: int)
codeclash/analysis/metrics/elo.py:758
↓ 1 callers
Function
_movetext
Extract the SAN token list from PGN movetext (strip headers/comments/numbers/result).
codeclash/arenas/chess/replay.py:189
↓ 1 callers
Method
_negative_log_likelihood
Negative log-likelihood for Bradley-Terry model with L2 regularization.
codeclash/analysis/metrics/elo.py:514
↓ 1 callers
Method
_parse_actions
(self, response: anthropic.types.Message)
codeclash/agents/mini_anthropic_model.py:208
↓ 1 callers
Method
_parse_all_games_in_pgn
Parse all games from a PGN file. Args: pgn_content: Content of the PGN file (may contain multiple games) Return
codeclash/arenas/chess/chess.py:251
↓ 1 callers
Method
_parse_all_logs
Parse all available log files in the tournament directory (metadata only, no content)
codeclash/viewer/app.py:910
↓ 1 callers
Method
_parse_simulation_log
Parse a single simulation log to determine the winner. Args: log_path: Path to the log file sim_meta: Simulation meta
codeclash/arenas/battlecode23/battlecode23.py:254
↓ 1 callers
Function
_player_model
Extract a display model name from a player config (mirrors the viewer).
codeclash/replay/__init__.py:87
↓ 1 callers
Method
_plot_results
Create line plots showing Elo vs max rounds for each game.
codeclash/analysis/metrics/elo.py:1061
↓ 1 callers
Method
_plot_results
Create line plots showing Elo vs round for each game.
codeclash/analysis/metrics/elo.py:1178
↓ 1 callers
Method
_pre_round_setup
Copy agent codebases into game's container
codeclash/arenas/arena.py:229
↓ 1 callers
Method
_process_tournament
(self, metadata_path: Path)
codeclash/analysis/metrics/elo.py:144
↓ 1 callers
Method
_query
(self, messages: list[dict], **kwargs)
codeclash/agents/mini_anthropic_model.py:167
↓ 1 callers
Function
_rank
(card: str)
codeclash/arenas/bridge/replay.py:91
↓ 1 callers
Function
_reaches
Can `piece` at (fr,fc) pseudo-legally move/capture to (tr,tc)? (path + pattern only)
codeclash/arenas/chess/replay.py:90
↓ 1 callers
Method
_read_all_match_results
Read all match result files and parse them. Returns: List of (winner, agent1_name, agent2_name) tuples winne
codeclash/arenas/chess/chess.py:396
↓ 1 callers
Function
_render_game_viewer_impl
Internal implementation of render_game_viewer with timeout
codeclash/viewer/app.py:1029
↓ 1 callers
Method
_render_prompt_templates
(self)
codeclash/agents/utils.py:30
↓ 1 callers
Function
_resolve_ladder_rules
Validate the optional ``ladder_rules`` block and return ``(min_round_win_fraction, win_last_k)``. Defaults: win at least ``min_round_win_fraction
codeclash/cli/ladder.py:21
↓ 1 callers
Method
_save_plot
Save plot in both PDF and PNG formats.
codeclash/analysis/metrics/elo.py:1024
↓ 1 callers
Method
_save_plot
Save plot in both PDF and PNG formats.
codeclash/analysis/metrics/elo.py:1140
↓ 1 callers
Method
_set_cache_control_on_last_message
Add cache_control to the last block of the last message.
codeclash/agents/mini_anthropic_model.py:135
↓ 1 callers
Method
_sims_per_round
(self)
codeclash/arenas/bomberland/bomberland.py:60
↓ 1 callers
Function
_sq
Algebraic square (e.g. 'e4') -> (row, col), row 0 = rank 8.
codeclash/arenas/chess/replay.py:33
↓ 1 callers
Method
_start_cmd
Command to start the submission's server on $PORT. Submissions are either the Python starter (main.py) or any other language via a run.sh laun
codeclash/arenas/battlesnake/battlesnake.py:87
↓ 1 callers
Method
_strip_display_text
Remove the 'text' key we add to non-text blocks for interactive display and 'caller' (None) that model_dump() emits from newer SDK versions.
codeclash/agents/mini_anthropic_model.py:153
↓ 1 callers
Function
_trick_winner
(trick: list[dict], trump: str | None)
codeclash/arenas/bridge/replay.py:95
↓ 1 callers
Method
_update_elo_per_round
(self, players: list[Player], results: list[dict[str, int]])
codeclash/analysis/bootstrap/bootstrap.py:97
↓ 1 callers
Method
_update_elo_per_tournament
(self, players: list[Player], results: list[dict[str, int]])
codeclash/analysis/bootstrap/bootstrap.py:114
↓ 1 callers
Method
_wait_for_ports
Wait for ports to be served, up to timeout seconds. Returns: List of ports that are actually served after timeout.
codeclash/arenas/battlesnake/battlesnake.py:37
↓ 1 callers
Method
_write_changes_to_file
Write all changes to a JSON file in players/{name}/changes_r{round}.json
codeclash/agents/player.py:98
↓ 1 callers
Function
action_space_to_plain
(action_space)
codeclash/arenas/cyborg/runtime/run_cyborg.py:58
↓ 1 callers
Function
activateSelectedRow
()
codeclash/viewer/static/js/picker.js:744
↓ 1 callers
Function
aggregate_win_rates_across_games
Aggregate win rates across multiple games using micro-averaging
codeclash/analysis/viz/line_chart_per_round_win_rate.py:89
↓ 1 callers
Function
analyze_churn_concentration_per_player
(data: list, use_magnitude: bool = False)
codeclash/analysis/viz/scatter_codebase_organization.py:312
↓ 1 callers
Function
analyze_file_reuse_per_player
Calculate file reuse ratio per player across all arenas.
codeclash/analysis/viz/scatter_codebase_organization.py:462
↓ 1 callers
Method
analyze_line_counts
Analyze line counts across all rounds for all files that appear in changed files
codeclash/viewer/app.py:729
↓ 1 callers
Function
analyze_opponent_code_access
Check trajectory logs for commands accessing /opponent_codebases/
codeclash/analysis/transparent/main.py:32
↓ 1 callers
Function
analyze_per_player
(data: list, N: int = 5)
codeclash/analysis/viz/scatter_codebase_organization.py:227
↓ 1 callers
Function
analyze_root_clutter_per_player
(data: list)
codeclash/analysis/viz/scatter_codebase_organization.py:248
↓ 1 callers
Method
analyze_sim_wins_per_round
Analyze scores per round for each competitor from round_stats in metadata.json. Scores are calculated as wins + 0.5*ties, same as in the table
codeclash/viewer/app.py:795
↓ 1 callers
Function
analyze_temporal_opponent_access
Track opponent code access by round number (early vs late tournament)
codeclash/analysis/transparent/main.py:94
↓ 1 callers
Function
analyze_throwaway_files_per_player
Calculate throwaway files per player, averaged across tournaments.
codeclash/analysis/viz/throwaway_files_bar_chart.py:84
↓ 1 callers
Function
analyze_total_throwaway_per_player
(data: list, threshold_round: int = 15)
codeclash/analysis/viz/throwaway_files_cdf.py:21
↓ 1 callers
Function
analyze_tournament_directory
Analyze all tournaments in a directory for round-to-round recovery patterns. Args: log_dir: Path to directory containing tournament
codeclash/analysis/viz/line_chart_model_resiliency.py:130
← previous
next →
201–300 of 1,100, ranked by callers