Skip to content

Commit

Permalink
feat: adds possibility to regulate the maximum depth of the AST, whic…
Browse files Browse the repository at this point in the history
…h plays a role in structure comparison.

Refs: #206.
  • Loading branch information
Artanias authored Oct 19, 2024
1 parent 4d44f1c commit 6e4569a
Show file tree
Hide file tree
Showing 14 changed files with 196 additions and 138 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UTIL_VERSION := 0.5.7
UTIL_VERSION := 0.5.8
UTIL_NAME := codeplag
PWD := $(shell pwd)

Expand Down
88 changes: 46 additions & 42 deletions locales/codeplag.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: codeplag 0.5.4\n"
"Project-Id-Version: codeplag 0.5.8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-09-19 22:34+0300\n"
"POT-Creation-Date: 2024-10-18 23:58+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Artyom Semidolin\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -17,182 +17,186 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.15.0\n"

#: src/codeplag/codeplagcli.py:46
#: src/codeplag/codeplagcli.py:47
msgid "You cannot specify the same value multiple times. You provided '{values}'."
msgstr ""

#: src/codeplag/codeplagcli.py:60
#: src/codeplag/codeplagcli.py:61
msgid "Directory '{path}' not found or not a directory."
msgstr ""

#: src/codeplag/codeplagcli.py:73
#: src/codeplag/codeplagcli.py:74
msgid "File '{path}' not found or not a file."
msgstr ""

#: src/codeplag/codeplagcli.py:85
#: src/codeplag/codeplagcli.py:86
msgid "Modifies and shows static settings of the '{util_name}' util."
msgstr ""

#: src/codeplag/codeplagcli.py:91
#: src/codeplag/codeplagcli.py:92
msgid "Settings commands of the '{util_name}' util."
msgstr ""

#: src/codeplag/codeplagcli.py:100
#: src/codeplag/codeplagcli.py:101
msgid "Manage the '{util_name}' util settings."
msgstr ""

#: src/codeplag/codeplagcli.py:105
#: src/codeplag/codeplagcli.py:106
msgid "Path to the environment file with GitHub access token."
msgstr ""

#: src/codeplag/codeplagcli.py:111
#: src/codeplag/codeplagcli.py:112
msgid "If defined, then saves reports about suspect works into provided path."
msgstr ""

#: src/codeplag/codeplagcli.py:118
#: src/codeplag/codeplagcli.py:119
msgid "Extension of saved report files."
msgstr ""

#: src/codeplag/codeplagcli.py:125
#: src/codeplag/codeplagcli.py:126
msgid "Show progress of searching plagiarism."
msgstr ""

#: src/codeplag/codeplagcli.py:132
#: src/codeplag/codeplagcli.py:133
msgid ""
"Threshold of analyzer which classifies two work as same. If this number "
"is too large, such as 99, then completely matching jobs will be found. "
"Otherwise, if this number is small, such as 50, then all work with "
"minimal similarity will be found."
msgstr ""

#: src/codeplag/codeplagcli.py:146
#: src/codeplag/codeplagcli.py:147
msgid "The maximum depth of the AST structure which play role in calculations."
msgstr ""

#: src/codeplag/codeplagcli.py:154
msgid ""
"The length of N-grams generated to calculate the Jakkar coefficient. A "
"long length of N-grams reduces the Jakkar coefficient because there are "
"fewer equal sequences of two works."
msgstr ""

#: src/codeplag/codeplagcli.py:157
#: src/codeplag/codeplagcli.py:165
msgid "The language of help messages, generated reports, errors."
msgstr ""

#: src/codeplag/codeplagcli.py:163
#: src/codeplag/codeplagcli.py:171
msgid ""
"Sets the threshold for the '{util_name}' util loggers'. Logging messages "
"that are less severe than the level will be ignored."
msgstr ""

#: src/codeplag/codeplagcli.py:173
#: src/codeplag/codeplagcli.py:181
msgid "The maximum number of processes that can be used to compare works."
msgstr ""

#: src/codeplag/codeplagcli.py:181
#: src/codeplag/codeplagcli.py:189
msgid "Show the '{util_name}' util settings."
msgstr ""

#: src/codeplag/codeplagcli.py:185
#: src/codeplag/codeplagcli.py:193
msgid "Start searching similar works."
msgstr ""

#: src/codeplag/codeplagcli.py:191
#: src/codeplag/codeplagcli.py:199
msgid "Absolute or relative path to a local directories with project files."
msgstr ""

#: src/codeplag/codeplagcli.py:201
#: src/codeplag/codeplagcli.py:209
msgid "Absolute or relative path to files on a computer."
msgstr ""

#: src/codeplag/codeplagcli.py:208
#: src/codeplag/codeplagcli.py:216
msgid ""
"Choose one of the following modes of searching plagiarism. The "
"'many_to_many' mode may require more free memory."
msgstr ""

#: src/codeplag/codeplagcli.py:219
#: src/codeplag/codeplagcli.py:227
msgid ""
"A regular expression for filtering checked works by name. Used with "
"options 'directories', 'github-user' and 'github-project-folders'."
msgstr ""

#: src/codeplag/codeplagcli.py:228
#: src/codeplag/codeplagcli.py:236
msgid "Ignore the threshold when checking of works."
msgstr ""

#: src/codeplag/codeplagcli.py:235
#: src/codeplag/codeplagcli.py:243
msgid "Extension responsible for the analyzed programming language."
msgstr ""

#: src/codeplag/codeplagcli.py:245
#: src/codeplag/codeplagcli.py:253
msgid "Searching in all branches."
msgstr ""

#: src/codeplag/codeplagcli.py:252
#: src/codeplag/codeplagcli.py:260
msgid "A regular expression to filter searching repositories on GitHub."
msgstr ""

#: src/codeplag/codeplagcli.py:259
#: src/codeplag/codeplagcli.py:267
msgid "URL to file in a GitHub repository."
msgstr ""

#: src/codeplag/codeplagcli.py:265
#: src/codeplag/codeplagcli.py:273
msgid "GitHub organization/user name."
msgstr ""

#: src/codeplag/codeplagcli.py:272
#: src/codeplag/codeplagcli.py:280
msgid "URL to a GitHub project folder."
msgstr ""

#: src/codeplag/codeplagcli.py:282
#: src/codeplag/codeplagcli.py:290
msgid ""
"Handling generated by the {util_name} reports as creating html report "
"file or show it on console."
msgstr ""

#: src/codeplag/codeplagcli.py:290
#: src/codeplag/codeplagcli.py:298
msgid "Report commands of the '{util_name}' util."
msgstr ""

#: src/codeplag/codeplagcli.py:299
#: src/codeplag/codeplagcli.py:307
msgid "Generate general report from created some time ago report files."
msgstr ""

#: src/codeplag/codeplagcli.py:304
#: src/codeplag/codeplagcli.py:312
msgid ""
"Path to save generated report. If it's a directory, then create a file in"
" it."
msgstr ""

#: src/codeplag/codeplagcli.py:313
#: src/codeplag/codeplagcli.py:321
msgid "Type of the created report file."
msgstr ""

#: src/codeplag/codeplagcli.py:323
#: src/codeplag/codeplagcli.py:331
msgid ""
"Program help to find similar parts of source codes for the different "
"languages."
msgstr ""

#: src/codeplag/codeplagcli.py:331
#: src/codeplag/codeplagcli.py:339
msgid "Print current version number and exit."
msgstr ""

#: src/codeplag/codeplagcli.py:337
#: src/codeplag/codeplagcli.py:345
msgid "Commands help."
msgstr ""

#: src/codeplag/codeplagcli.py:352
#: src/codeplag/codeplagcli.py:360
msgid "No command is provided; please choose one from the available (--help)."
msgstr ""

#: src/codeplag/codeplagcli.py:363
#: src/codeplag/codeplagcli.py:371
msgid "There is nothing to modify; please provide at least one argument."
msgstr ""

#: src/codeplag/codeplagcli.py:367
#: src/codeplag/codeplagcli.py:375
msgid "The'repo-regexp' option requires the provided 'github-user' option."
msgstr ""

#: src/codeplag/codeplagcli.py:375
#: src/codeplag/codeplagcli.py:383
msgid ""
"The'path-regexp' option requires the provided 'directories', 'github-"
"user', or 'github-project-folder' options."
Expand Down
Loading

0 comments on commit 6e4569a

Please sign in to comment.