Skip to content

Commit cd080d1

Browse files
committed
Add shebang; make executable
(no changes to logic)
1 parent 6d6d272 commit cd080d1

13 files changed

Lines changed: 13 additions & 0 deletions

codeclash/analysis/metrics/elo.py

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import argparse
23
import json
34
from dataclasses import dataclass
@@ -82,6 +83,7 @@ def update_profiles(prof_and_score, round_weight, k_factor):
8283
weighted_k_factor = k_factor * round_weight
8384
rating_change = weighted_k_factor * (p1_score - expected_p1)
8485

86+
# Consistency:
8587
expected_p2 = expected_score(p2_prof.rating, p1_prof.rating)
8688
check = weighted_k_factor * (p2_score - expected_p2)
8789
assert abs(check + rating_change) < 1e-6, "Weighted ELO rating changes do not sum to zero!"

codeclash/analysis/metrics/win_rate.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import argparse
23
import json
34
from dataclasses import dataclass

codeclash/analysis/viz/box_plots_win_streaks.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import argparse
23
import json
34
from collections import defaultdict

codeclash/analysis/viz/cdf_command_diversity.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
"""
23
Command Diversity Analysis via CDF Visualization
34

codeclash/analysis/viz/cdf_files_edited_per_round.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import json
23

34
from matplotlib import pyplot as plt

codeclash/analysis/viz/cdf_steps_per_round.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import json
23

34
from matplotlib import pyplot as plt

codeclash/analysis/viz/cdf_thought_length_per_round.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import json
23
import re
34

codeclash/analysis/viz/heatmap_win_rates.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import argparse
23
import json
34
from collections import defaultdict

codeclash/analysis/viz/heatmap_win_streak_distribution.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import argparse
23
import json
34
from collections import defaultdict

codeclash/analysis/viz/line_chart_model_resiliency.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)