File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def main(
30
30
for example in dataset :
31
31
repo_name = example ["repo" ].split ("/" )[- 1 ]
32
32
if "swe" in dataset_name .lower ():
33
- if repo_split != "all" and example ["instance_id" ] != repo_split :
33
+ if repo_split != "all" and repo_split not in example ["instance_id" ]:
34
34
continue
35
35
else :
36
36
if repo_split != "all" and repo_name not in SPLIT [repo_split ]:
Original file line number Diff line number Diff line change @@ -36,15 +36,15 @@ def main(
36
36
if repo_split == "all" :
37
37
repos = dataset ["instance_id" ] # type: ignore
38
38
else :
39
- repos = [repo_split ]
39
+ repos = [one for one in dataset [ "instance_id" ] if repo_split in one ] # type: ignore
40
40
else :
41
41
repos = SPLIT [repo_split ]
42
42
triples = []
43
43
log_dirs = []
44
44
for example in dataset :
45
45
repo_name = example ["repo" ].split ("/" )[- 1 ]
46
46
if "swe" in dataset_name .lower ():
47
- if repo_split != "all" and example ["instance_id" ] != repo_split :
47
+ if repo_split != "all" and repo_split not in example ["instance_id" ]:
48
48
continue
49
49
else :
50
50
if repo_split != "all" and repo_name not in SPLIT [repo_split ]:
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def main(
31
31
for example in dataset :
32
32
repo_name = example ["repo" ].split ("/" )[- 1 ]
33
33
if "swe" in dataset_name .lower ():
34
- if repo_split != "all" and example ["instance_id" ] != repo_split :
34
+ if repo_split != "all" and repo_split not in example ["instance_id" ]:
35
35
continue
36
36
else :
37
37
if repo_split != "all" and repo_name not in SPLIT [repo_split ]:
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def main(
27
27
repo_name = example ["repo" ].split ("/" )[- 1 ]
28
28
clone_url = f"https://github.com/{ example ['repo' ]} .git"
29
29
if "swe" in dataset_name .lower ():
30
- if repo_split != "all" and example ["instance_id" ] != repo_split :
30
+ if repo_split != "all" and repo_split not in example ["instance_id" ]:
31
31
continue
32
32
clone_dir = os .path .abspath (os .path .join (base_dir , example ["instance_id" ]))
33
33
branch = example ["base_commit" ]
You can’t perform that action at this time.
0 commit comments