Skip to content

Commit 7fb9f18

Browse files
committed
Remove emagedoc refs
1 parent f4ea06b commit 7fb9f18

8 files changed

Lines changed: 24 additions & 9 deletions

File tree

codeclash/arenas/battlesnake/battlesnake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _run_single_simulation(self, player2port: dict[str, int], idx: int) -> str:
6868

6969
cmd = self.run_cmd_round + " " + " ".join(cmd_args) + f" -o {self.log_env / f'sim_{idx}.jsonl'}"
7070

71-
# https://github.com/emagedoc/CodeClash/issues/62 (timeouts)
71+
# https://github.com/CodeClash-ai/CodeClash/issues/62 (timeouts)
7272
try:
7373
response = self.environment.execute(
7474
cmd,

codeclash/arenas/robotrumble/robotrumble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _run_single_simulation(self, agents: list[Player], idx: int, cmd: str):
4242
"""Run a single robotrumble simulation and return the output."""
4343
cmd = f"{cmd} > {self.log_env / f'sim_{idx}.{self.sim_ext}'}"
4444

45-
# https://github.com/emagedoc/CodeClash/issues/62 (timeouts)
45+
# https://github.com/CodeClash-ai/CodeClash/issues/62 (timeouts)
4646
try:
4747
response = self.environment.execute(cmd, timeout=120)
4848
except subprocess.TimeoutExpired:

codeclash/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
LOCAL_LOG_DIR = REPO_DIR / "logs" # this one is always relative to the location of this code
77
DIR_WORK = Path("/workspace")
88
FILE_RESULTS = "results.json"
9-
GH_ORG = "emagedoc"
9+
GH_ORG = "CodeClash-ai"
1010
RESULT_TIE = "Tie"
1111
OPPONENT_CODEBASES_DIR_NAME = "opponent_codebases"

docs/_footer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="grid cards">
2-
<a href="https://github.com/emagedoc/CodeClash/issues/new" class="nav-card-link">
2+
<a href="https://github.com/CodeClash-ai/CodeClash/issues/new" class="nav-card-link">
33
<div class="nav-card">
44
<div class="nav-card-header">
55
<span class="material-icons nav-card-icon">bug_report</span>

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Welcome to **CodeClash**, a framework for evaluating Large Language Models (LLMs
2929
</div>
3030
</a>
3131

32-
<a href="https://github.com/emagedoc/CodeClash" class="nav-card-link">
32+
<a href="https://github.com/CodeClash-ai/CodeClash" class="nav-card-link">
3333
<div class="nav-card">
3434
<div class="nav-card-header">
3535
<span class="material-icons nav-card-icon">code</span>

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ site_name: CodeClash Documentation
22

33
site_url: https://docs.codeclash.ai
44

5-
repo_url: https://github.com/emagedoc/CodeClash
6-
repo_name: emagedoc/CodeClash
5+
repo_url: https://github.com/CodeClash-ai/CodeClash
6+
repo_name: CodeClash-ai/CodeClash
77
edit_uri: edit/main/docs/
88

99
theme:

scripts/clear_tags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [[ ! "$REPO" =~ ^(CoreWar|RobotRumble|RoboCode|HuskyBench|BattleSnake|BattleC
99
echo "Repository name must be one of: CoreWar, RobotRumble, RoboCode, HuskyBench, BattleSnake, BattleCode"
1010
exit 1
1111
fi
12-
git clone git@github.com:emagedoc/$REPO.git
12+
git clone git@github.com:CodeClash-ai/$REPO.git
1313
cd $REPO
1414
git ls-remote --tags origin | awk '{print $2}' | sed 's/refs\/tags\///' | xargs -I {} git push origin :refs/tags/{}
1515
cd ..

scripts/push_log_to_gh.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ def main(cc_folder: Path):
4949
metadata = json.load(f)
5050
players = [x["name"] for x in metadata["config"]["players"]]
5151

52+
# Detect default branch name
53+
default_branch = (
54+
subprocess.run(
55+
"git symbolic-ref refs/remotes/origin/HEAD",
56+
shell=True,
57+
check=True,
58+
capture_output=True,
59+
cwd=arena,
60+
)
61+
.stdout.decode("utf-8")
62+
.strip()
63+
.split("/")[-1]
64+
)
65+
print(f"Default branch detected: {default_branch}")
66+
5267
# Push diffs for each player
5368
for player in players:
5469
player_log_folder = cc_folder / "players" / player
@@ -57,7 +72,7 @@ def main(cc_folder: Path):
5772
print(f"Branch {branch_name} already exists, skipping...")
5873
continue
5974
subprocess.run(
60-
f"git checkout main; git branch {branch_name} -D; git checkout -b {branch_name}",
75+
f"git checkout {default_branch}; git branch {branch_name} -D; git checkout -b {branch_name}",
6176
shell=True,
6277
check=True,
6378
cwd=arena,

0 commit comments

Comments
 (0)