Skip to content

Commit

Permalink
Illustration change + renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch committed Oct 18, 2023
1 parent 0fe7226 commit 45ec8b1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ To run style checking run `make style`.

* latex_output.py -> Output latex code for the resulting plots and table.

* merge_analyzer.py -> Compares merges that produce different output.
* merge_analyzer.py -> Analyzes a merge to determine if it should be tested.

* merges_sampler.py -> Samples merges to be tested.

* get_repos.py -> Downloads the repos list.

Expand Down
Binary file modified illustrations/Architecture.drawio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ java -cp build/libs/astmergeevaluation-all.jar \

# Sample 20*<n_merges> merges
read -ra merge_comparator_flags <<<"${comparator_flags}"
python3 src/python/sample_merges.py \
python3 src/python/merges_sampler.py \
--repos_head_passes_csv "$OUT_DIR/repos_head_passes.csv" \
--merges_path "$OUT_DIR/merges/" \
--output_dir "$OUT_DIR/merges_sampled/" \
Expand Down
8 changes: 4 additions & 4 deletions src/python/sample_merges.py → src/python/merges_sampler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
""" Samples n_merges for each repository.
usage: python3 sample_merges.py --repos_head_passes_csv <path_to_repos_head_passes.csv>
usage: python3 merges_sampler.py --repos_head_passes_csv <path_to_repos_head_passes.csv>
--merges_path <path_to_merges>
--output_dir <output_dir>
--include_trivial_merges (optional)
Expand Down Expand Up @@ -43,7 +43,7 @@
)
if not merge_list_file.exists():
print(
"sample_merges:",
"merges_sampler:",
repo_slug,
"does not have a list of merges. Missing file: ",
merge_list_file,
Expand All @@ -52,7 +52,7 @@

if output_file.exists():
print(
"sample_merges: Skipping",
"merges_sampler: Skipping",
repo_slug,
"because it is already computed.",
)
Expand All @@ -61,7 +61,7 @@
merges = pd.read_csv(merge_list_file, header=0, index_col="idx")
except pd.errors.EmptyDataError:
print(
"sample_merges: Skipping",
"merges_sampler: Skipping",
repo_slug,
"because it does not contain any merges.",
)
Expand Down

0 comments on commit 45ec8b1

Please sign in to comment.