Skip to content

Commit

Permalink
Merge branch 'hackclub:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
se1yu authored Dec 19, 2023
2 parents 296347d + a64e786 commit 11ce106
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/scripts/plagiarism_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ def main():
output_dir = sys.argv[3]
saved_dir_base = sys.argv[4]

print(f"Received arguments:")
print(f"Single file: {single_file}")
print(f"Directory: {directory}")
print(f"Output directory: {output_dir}")
print(f"Saved directory base: {saved_dir_base}")

print(f"All files in directory '{directory}':")
for f in glob.glob(os.path.join(directory, "*.js")):
print(f)

run_compare50(single_file, directory, output_dir, saved_dir_base)

if __name__ == "__main__":
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check_plagiarism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
echo "FILES=$js_files" >> $GITHUB_ENV
- name: Run Plagiarism Detection Script
run: python .github/scripts/plagiarism_check.py ${{ env.FILES }} games output_dir saved_dir
env:
FILES: ${{ env.FILES }}
run: python .github/scripts/plagiarism_check.py $FILES games output_dir saved_dir

- name: Extract and Display Similarity Percentages
run: python .github/scripts/extract_percentages.py saved_dir/
Expand Down

0 comments on commit 11ce106

Please sign in to comment.