Skip to main content

查重工具

本工具可以根据从hustoj后台导出的竞赛log文件, 自动分离出每个人的最后一次ac提交并存储, 之后使用jplag查重.

用法

usage: plag4nju4cprog [-h] [-d DIR] [-s SUFFIX] [-a] [-o] [-r] [-p] [-n NTOKS] [-j JAR_PATH] log

plagiarism detect from hustoj's logfile, multi-process

positional arguments:
  log                   log file u want to cut

options:
  -h, --help            show this help message and exit
  -d DIR, --dir DIR     target directory u want to place the cut files in. default to the same name as the log file
  -s SUFFIX, --suffix SUFFIX
                        suffix you want to add. i have no idea what this will do.
  -a, --all             whether to include all pairs in result
  -o, --old             use old method for cpp code
  -r, --remove          remove existing directory if set to true
  -p, --parallel        turn on to parallel
  -n NTOKS, --ntoks NTOKS
                        how many identical tokens will be recognized as copy. higher means more tolerant. default to 100
  -j JAR_PATH, --jar_path JAR_PATH
                        where jplag jar is. u need to manage java environment yourself. default to "./jplag.jar"

JPlag

jplag仓库: jplag.

需要自己下载。作者自己用4.3.0测试过,更新的版本需要自己测试。

怎么看报告

运行后会首先创建文件夹存储切分出来的代码文件, 在这个文件夹下随后会产生一个results-%dtoks的文件夹, 名字的意思是在%d的敏感度下查重的结果. 文件夹里面会有若干个以题目编号为名字的zip格式文件, 每个代表那一题的查重结果.

访问这个网站, 把zip文件拖进去就可以看查重结果了.

Release files for plagiarism-detect-for-nju 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plagiarism-detect-for-nju 1.0.4
File Size Uploaded
plagiarism_detect_for_nju-1.0.4.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plagiarism-detect-for-nju 1.0.4
File Interpreter ABI Platform
plagiarism_detect_for_nju-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / plagiarism_detect_for_nju-1.0.4.tar.gz

Download URL plagiarism_detect_for_nju-1.0.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
462650a8852b39e38c80ac9ac8bc3955cfa7b633c1cbdd3b8fee3c0b7c2cfad7
BLAKE2b-256 checksum
How to use checksums
babbce505daf0ef9627a120135d0cc947520712b78ccbd56b4174ed7b49f03cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Release files / plagiarism_detect_for_nju-1.0.4-py3-none-any.whl

Download URL plagiarism_detect_for_nju-1.0.4-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
873a7b7bda3bffee3374046e1cc9f44b8b983aab1c83cb6a5d4175af98dcc0f4
BLAKE2b-256 checksum
How to use checksums
22729fc2a9042cceb37c8cf96189c47c0c6d990036c9a69281c95e6fc93a20bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page