Skip to content

Commit 0cba132

Browse files
committed
Fix invalid escape sequences
1 parent 91c049b commit 0cba132

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

experiments/main/figures.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
cd "$(dirname "${BASH_SOURCE[0]}")"
66
# DIR is either the parameter passed to this script or the result directory
77
DIR="${1:-results}"
8-
pip install tabulate
8+
python3 -m pip install tabulate
99
echo ""
1010
echo "The following Table/Figure references refer to the revised paper, as attached to the comment thread of the discussion."
1111
echo ""

experiments/main/figures/fig_compiler_perf_syn_tran.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def main(
8989
row.extend(
9090
(
9191
int(unc[suffix] * SUBSET_SIZE[subset]),
92-
"${}$&$_{{\downarrow {:.1f}\\%}}$".format(
92+
"${}$&$_{{\\downarrow {:.1f}\\%}}$".format(
9393
int((unc[suffix] - id[suffix]) * SUBSET_SIZE[subset]),
9494
id[suffix] * 100 / unc[suffix] if unc[suffix] != 0 else 0,
9595
),
96-
"$\\textbf{{{}}}$&$_{{\downarrow {:.1f}\\%}}$".format(
96+
"$\\textbf{{{}}}$&$_{{\\downarrow {:.1f}\\%}}$".format(
9797
int(con[suffix] * SUBSET_SIZE[subset]),
9898
(unc[suffix] - con[suffix]) * 100 / unc[suffix]
9999
if unc[suffix] != 0

experiments/main/figures/fig_compiler_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def main(format="github", field="time_taken", suffix="_synth", directory="result
9393
row.extend(
9494
(
9595
# "{:.1f}".format(median(unc[suffix])) if total[suffix] else -1,
96-
"${:.1f}$&$_{{\\uparrow {:.1f}\%}}$".format(
96+
"${:.1f}$&$_{{\\uparrow {:.1f}\\%}}$".format(
9797
median(con[subset]),
9898
median(con[subset]) * 100 / median(unc[subset]) - 100,
9999
)

experiments/main/figures_revision/fig_compiler_perf_syn_tran_repair.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ def main(
135135
row.extend(
136136
(
137137
int(unc[suffix]) if unc[suffix] != 0 else -1,
138-
"${}$&$_{{\downarrow {:.1f}\\%}}$".format(
138+
"${}$&$_{{\\downarrow {:.1f}\\%}}$".format(
139139
int((unc[suffix] - id[suffix])),
140140
id[suffix] * 100 / unc[suffix] if unc[suffix] != 0 else 0,
141141
)
142142
if unc[suffix] != -1 and id[suffix] != -1
143143
else -1,
144-
"$\\textbf{{{}}}$&$_{{\downarrow {:.1f}\\%}}$".format(
144+
"$\\textbf{{{}}}$&$_{{\\downarrow {:.1f}\\%}}$".format(
145145
int(con[suffix]),
146146
(unc[suffix] - con[suffix]) * 100 / unc[suffix]
147147
if unc[suffix] != 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
# DIR is either the parameter passed to this script or the result directory
33
DIR="${1:-results}"
4-
python3 figures_revision/fig_resample_hist.py "${DIR}"/humaneval_google_gemma-2-2b-it_s=*_t=1_synth_c.jsonl --style latex
4+
python3 figures_revision/fig_resample_hist.py "${DIR}"/humaneval_google_gemma-2-2b-it_s=*_t=1_synth_c.jsonl --style latex

0 commit comments

Comments
 (0)