Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch committed Oct 16, 2023
1 parent a695440 commit a3d2807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/python/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(
self.workdir = WORKDIR_DIRECTORY / workdir_id
self.workdir.mkdir(parents=True, exist_ok=True)
self.repo_path = self.workdir / self.path.name
shutil.copytree(self.path, self.repo_path,symlinks=True)
shutil.copytree(self.path, self.repo_path, symlinks=True)
self.repo = Repo(self.repo_path)
self.test_cache_directory = cache_directory / "test_cache"
self.sha_cache_directory = cache_directory / "sha_cache_entry"
Expand Down
4 changes: 2 additions & 2 deletions src/python/sample_merges.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"because it does not contain any merges.",
)
continue

merges["notes"].replace(np.nan, "", inplace=True)
if args.only_trivial_merges:
merges = merges[merges["notes"].str.contains("a parent is the base")]
Expand All @@ -76,4 +76,4 @@
n_merges = min(merges.shape[0], args.n_merges)
sample = merges.sample(n_merges, random_state=42)
sample.sort_index(inplace=True)
sample.to_csv(output_file)
sample.to_csv(output_file)

0 comments on commit a3d2807

Please sign in to comment.