MCPcopy Create free account

hub / github.com/CodeClash-ai/CodeClash / functions

Functions1,100 in github.com/CodeClash-ai/CodeClash

↓ 3 callersFunctionget_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 callersFunctionload_metadata
Load metadata.json from log directory and return Metadata object
codeclash/viewer/app.py:357
↓ 3 callersFunctionload_runtime_module
()
tests/arenas/test_bomberland.py:17
↓ 3 callersFunctionnormalize_offer
(offer, nmi)
codeclash/arenas/scml/runtime/run_scml.py:141
↓ 3 callersFunctionopenGame
(gameName)
codeclash/viewer/static/js/picker.js:3
↓ 3 callersMethodparse_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 callersMethodrestart
(self)
codeclash/arenas/scml/runtime/run_scml.py:281
↓ 3 callersMethodrestart
(self)
codeclash/arenas/cyborg/runtime/run_cyborg.py:176
↓ 3 callersMethodrun
Calculate Elo for max rounds from 1 to max_rounds and plot the results.
codeclash/analysis/metrics/elo.py:1031
↓ 3 callersMethodsave
Save figure to PDF.
codeclash/analysis/llm_as_judge/grounding_validation_triple_plot.py:447
↓ 3 callersMethodset
Set cache value
codeclash/viewer/app.py:132
↓ 3 callersFunctionsetSelectedRow
(index)
codeclash/viewer/static/js/picker.js:656
↓ 3 callersFunctionshowSuccessMessage
()
codeclash/viewer/static/js/clipboard.js:5
↓ 3 callersFunctionupdateNavigableRows
()
codeclash/viewer/static/js/picker.js:649
↓ 2 callersMethod__init__
(self)
tests/arenas/test_bomberland.py:129
↓ 2 callersMethod_compress_round_folder
(self, round_num_zero_indexed: int)
codeclash/tournaments/pvp.py:188
↓ 2 callersMethod_construct_game_script
( self, agents: list[Player], run_client: str, run_engine: str, verbos
codeclash/arenas/huskybench/huskybench.py:40
↓ 2 callersMethod_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 callersMethod_elos_from_result
(result: dict)
codeclash/analysis/metrics/elo.py:746
↓ 2 callersMethod_evaluate_matrix
Evaluate a matrix between two players using manual thread management.
codeclash/analysis/matrix.py:247
↓ 2 callersMethod_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 callersMethod_positions
(ranking: list[str])
codeclash/analysis/metrics/elo.py:754
↓ 2 callersMethod_ranking_from_elos
(elos: dict[str, float])
codeclash/analysis/metrics/elo.py:750
↓ 2 callersMethod_save
Save metadata to matrix.json.
codeclash/analysis/matrix.py:91
↓ 2 callersMethod_save
(self)
codeclash/tournaments/single_player.py:134
↓ 2 callersMethod_save_plot
Save plot in both PDF and PNG formats.
codeclash/analysis/metrics/elo.py:494
↓ 2 callersMethod_save_plot
Save plot in both PDF and PNG formats.
codeclash/analysis/metrics/elo.py:738
↓ 2 callersFunction_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 callersFunction_script_safe
JSON for inlining inside a <script> tag (guard against ``</script>``).
codeclash/replay/base.py:302
↓ 2 callersMethod_sigmoid
(x: np.ndarray)
codeclash/analysis/metrics/elo.py:511
↓ 2 callersMethod_start_worker
(self)
codeclash/arenas/scml/runtime/run_scml.py:238
↓ 2 callersMethod_start_worker
(self)
codeclash/arenas/cyborg/runtime/run_cyborg.py:136
↓ 2 callersMethod_tag_round
Git tag the codebase at the given round.
codeclash/agents/player.py:175
↓ 2 callersFunctionadd_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 callersMethodaggregate_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 callersFunctionanalyze_filename_redundancy_over_rounds
Calculate filename redundancy over rounds for each player-tournament.
codeclash/analysis/viz/scatter_codebase_organization.py:608
↓ 2 callersFunctionanalyze_per_player_arena
(data: list, N: int = 5)
codeclash/analysis/viz/scatter_codebase_organization.py:205
↓ 2 callersFunctionar_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 callersMethodbt_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 callersFunctionbuild_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 callersFunctionbuild_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 callersFunctioncalculate_lead_changes
Calculate how often the winner changes between consecutive rounds.
codeclash/analysis/multiplayer/win_change_rate.py:19
↓ 2 callersFunctioncalculate_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 callersFunctioncalculate_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 callersFunctioncalculate_winner_share
Calculate winner's share of total points for each round in a tournament.
codeclash/analysis/multiplayer/win_share.py:19
↓ 2 callersMethodcleanup_handlers
Close and remove file handlers to prevent file descriptor leaks.
codeclash/tournaments/tournament.py:37
↓ 2 callersMethodclear
Clear all cache entries
codeclash/viewer/app.py:143
↓ 2 callersFunctioncloseBulkActionsModal
()
codeclash/viewer/static/js/picker.js:163
↓ 2 callersFunctioncompute_win_rates
(folder_list)
codeclash/analysis/transparent/main.py:12
↓ 2 callersFunctionconservative_score
(r)
codeclash/analysis/metrics/tskill.py:67
↓ 2 callersFunctioncopyToClipboard
(text, button)
codeclash/viewer/static/js/clipboard.js:4
↓ 2 callersFunctioncopy_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 callersFunctioncreateLineCountChart
* Create the line count chart for a specific file
codeclash/viewer/static/js/analysis.js:57
↓ 2 callersMethodcreate_plot
Create all three plots.
codeclash/analysis/llm_as_judge/grounding_validation_triple_plot.py:434
↓ 2 callersMethoddecide
(self, observation, action_space)
codeclash/arenas/cyborg/runtime/run_cyborg.py:180
↓ 2 callersFunctiondiscover_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 callersFunctionentities_for_state
(metal, wood, bombs, blasts)
codeclash/arenas/bomberland/runtime/run_bomberland.py:157
↓ 2 callersFunctionexplode_bomb
(index, bombs, metal, wood, units, stats, blasts)
codeclash/arenas/bomberland/runtime/run_bomberland.py:237
↓ 2 callersFunctionextract_file_path_from_block
Extract file path from a git diff block.
codeclash/tournaments/utils/git_utils.py:24
↓ 2 callersFunctionfallbackCopy
()
codeclash/viewer/static/js/clipboard.js:36
↓ 2 callersFunctionget_agent
(config: dict, game_context: GameContext, environment: DockerEnvironment)
codeclash/agents/__init__.py:9
↓ 2 callersMethodget_agent
Create an agent with environment and game context.
codeclash/tournaments/single_player.py:63
↓ 2 callersMethodget_dummy_agent
Create a dummy agent that does nothing.
codeclash/tournaments/single_player.py:77
↓ 2 callersMethodget_game_context
Create a game context for an agent.
codeclash/tournaments/single_player.py:49
↓ 2 callersFunctionget_lines
(patch)
codeclash/analysis/code_evolve/main.py:89
↓ 2 callersMethodget_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 callersFunctionhasActiveFilters
()
codeclash/viewer/static/js/picker.js:1116
↓ 2 callersFunctionis_binary_block
(bl: list[str])
codeclash/tournaments/utils/git_utils.py:15
↓ 2 callersFunctionload_cached_results
Load all cached results from the data file.
codeclash/analysis/code_evolve/main.py:232
↓ 2 callersFunctionload_instances_from_path
(path: Path)
codeclash/analysis/llm_as_judge/big_questions.py:240
↓ 2 callersFunctionmain_cli
(argv: list[str] | None = None)
scripts/main_single_player.py:40
↓ 2 callersFunctionmirror
(pos, width, height)
codeclash/arenas/bomberland/runtime/run_bomberland.py:79
↓ 2 callersFunctionnormalize_response
(response)
codeclash/arenas/scml/runtime/run_scml.py:170
↓ 2 callersFunctionopenGameInNewTab
(gameName)
codeclash/viewer/static/js/picker.js:21
↓ 2 callersFunctionopenGamePicker
()
codeclash/viewer/static/js/app.js:4
↓ 2 callersFunctionopenGamePickerInNewTab
()
codeclash/viewer/static/js/app.js:10
↓ 2 callersMethodparse_game_metadata
Parse overall game metadata
codeclash/viewer/app.py:569
↓ 2 callersFunctionplayer_starts
(width, height, unit_count)
codeclash/arenas/bomberland/runtime/run_bomberland.py:84
↓ 2 callersFunctionplot_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 callersFunctionplot_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 callersFunctionplot_stratified
Plot win counts stratified by category (game or model).
codeclash/analysis/viz/win_rate_distribution.py:82
↓ 2 callersFunctionplot_stratified
Plot normalized scores stratified by category (game or model).
codeclash/analysis/viz/round_score_distribution.py:88
↓ 2 callersFunctionpolicy_stats
(agent_class: type)
codeclash/arenas/scml/runtime/run_scml.py:431
↓ 2 callersMethodpost_run_hook
Should be called after we called the run method.
codeclash/agents/player.py:124
↓ 2 callersMethodpre_run_hook
Should be called before we call the run method.
codeclash/agents/player.py:92
↓ 2 callersFunctionprepareChartData
* Prepare chart data for a specific file
codeclash/viewer/static/js/analysis.js:126
↓ 2 callersFunctionrender_game_viewer
Common logic for rendering game viewer pages with timeout protection
codeclash/viewer/app.py:1070
↓ 2 callersFunctionresponse_to_name
(response)
codeclash/arenas/scml/runtime/run_scml.py:93
↓ 2 callersMethodrun
Main execution function that runs all rounds.
codeclash/tournaments/single_player.py:85
↓ 2 callersMethodrun_competition_phase
(self, round_num: int)
codeclash/tournaments/pvp.py:99
↓ 2 callersFunctions3_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 callersFunctionset_log_base_directory
Set the logs directory directly
codeclash/viewer/app.py:334
↓ 2 callersFunctionsetupFileDropdown
* Setup the file dropdown change handler
codeclash/viewer/static/js/analysis.js:42
↓ 2 callersFunctionshowMatrix
(matrixName)
codeclash/viewer/static/js/matrix.js:59
↓ 2 callersFunctionsplit_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 callersFunctiontag_to_str
(tag: dict)
codeclash/analysis/code_evolve/main.py:154
↓ 2 callersFunctiontoggleModelSelection
(event, modelName)
codeclash/viewer/static/js/picker.js:991
↓ 2 callersFunctiontoggleTocMenu
()
codeclash/viewer/static/js/app.js:344
↓ 2 callersFunctionunpack
(theta: np.ndarray)
codeclash/analysis/bootstrap/analyze_round_correlations.py:80
↓ 2 callersFunctionupdateSelectAllCheckbox
()
codeclash/viewer/static/js/picker.js:98
← previousnext →101–200 of 1,100, ranked by callers