Skip to content

Commit

Permalink
Update collect_raw_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeyonglee0205 authored Mar 1, 2024
1 parent 5aca931 commit f090159
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions collect_raw_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def filter_old_PR (datapath, date):
filtered_pr[repo_name].append(pr_data)

if debug:
print(f'|PRs within relevant period|{sum([len(filtered_pr[repo]) for repo in filtered_pr])}|\n')
print(f'|PRs within relevant period|{sum([len(filtered_pr[repo]) for repo in filtered_pr])}| \n\n')
return filtered_pr


Expand Down Expand Up @@ -191,7 +191,7 @@ def contains_test_in_paths(paths):
filtered_test_pr[repo_name].append(pr_data)

if debug:
print(f'|... that also have test files|{sum([len(filtered_test_pr[repo]) for repo in filtered_test_pr])}|\n')
print(f'|... that also have test files|{sum([len(filtered_test_pr[repo]) for repo in filtered_test_pr])}| \n\n')

return filtered_test_pr

Expand All @@ -208,7 +208,7 @@ def filter_multiple_PR (filtered_pr):
filtered_issue_pr[repo_name].append(pr_data)

if debug:
print(f'|... that also only mention a single issue|{sum([len(filtered_issue_pr[repo]) for repo in filtered_issue_pr])}|')
print(f'|... that also only mention a single issue|{sum([len(filtered_issue_pr[repo]) for repo in filtered_issue_pr])}| \n\n')

return filtered_issue_pr

Expand Down Expand Up @@ -237,7 +237,7 @@ def find_lang(text):
filtered_lang_pr[repo_name].append(pr_data)

if debug:
print(f'|... that also are in English|{sum([len(filtered_lang_pr[repo]) for repo in filtered_lang_pr])}|\n')
print(f'|... that also are in English|{sum([len(filtered_lang_pr[repo]) for repo in filtered_lang_pr])}| \n\n')
return filtered_lang_pr

'''
Expand Down Expand Up @@ -304,7 +304,7 @@ def filter_main_branch_PR (filtered_pr):
}

if debug:
print(f'|... that also were merged in the main branch|{sum([len(filtered_main_pr[repo]) for repo in filtered_main_pr])}|')
print(f'|... that also were merged in the main branch|{sum([len(filtered_main_pr[repo]) for repo in filtered_main_pr])}| \n\n')

return filtered_main_pr

Expand Down Expand Up @@ -410,7 +410,7 @@ def filter_test_diff_PR (filtered_pr):
del new_cleaned_data[repo_name]

if debug:
print(f'|... for which a valid test could also be extracted from the PR|{sum([len(new_cleaned_data[repo]) for repo in new_cleaned_data])}|\n')
print(f'|... for which a valid test could also be extracted from the PR|{sum([len(new_cleaned_data[repo]) for repo in new_cleaned_data])}| \n\n')

return new_cleaned_data

Expand Down

0 comments on commit f090159

Please sign in to comment.