Skip to content

Commit af0f06c

Browse files
authored
feat: short-output argument now have three modes. (#223)
Extends the logic of the `codeplag settings modify --short-output` argument. When provided '0' show all check works results in the stdout. When provided '1' show only new found check works results in the stdout. When provided '2' do not show check works result in the stdout.
1 parent 057b0f0 commit af0f06c

File tree

14 files changed

+227
-148
lines changed

14 files changed

+227
-148
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
UTIL_VERSION := 0.5.17
1+
UTIL_VERSION := 0.5.18
22
UTIL_NAME := codeplag
33
PWD := $(shell pwd)
44

debian/copyright.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ License:
33
All files in the codeplag/* and webparsers/* are licensed
44
under the MIT License as below.
55
.
6-
Copyright (c) 2021 Codeplag Development Team
6+
Copyright (c) 2021-2025 Codeplag Development Team
77
.
88
Permission is hereby granted, free of charge, to any person obtaining a
99
copy of this software and associated documentation files (the "Software"),
@@ -21,4 +21,4 @@ License:
2121
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2222
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2323
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

locales/codeplag.pot

+40-37
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#, fuzzy
66
msgid ""
77
msgstr ""
8-
"Project-Id-Version: codeplag 0.5.13\n"
9-
"POT-Creation-Date: 2025-02-25 22:01+0300\n"
8+
"Project-Id-Version: codeplag 0.5.18\n"
9+
"POT-Creation-Date: 2025-03-28 23:00+0300\n"
1010
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1111
"Last-Translator: Artyom Semidolin\n"
1212
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -56,167 +56,170 @@ msgid "Show progress of searching plagiarism."
5656
msgstr ""
5757

5858
#: src/codeplag/codeplagcli.py:133
59-
msgid "Do not show check works results in the stdout."
59+
msgid ""
60+
"When provided '0' show all check works results in the stdout. When "
61+
"provided '1' show only new found check works results in the stdout. When "
62+
"provided '2' do not show check works result in the stdout."
6063
msgstr ""
6164

62-
#: src/codeplag/codeplagcli.py:140
65+
#: src/codeplag/codeplagcli.py:144
6366
msgid ""
6467
"Threshold of analyzer which classifies two work as same. If this number "
6568
"is too large, such as 99, then completely matching jobs will be found. "
6669
"Otherwise, if this number is small, such as 50, then all work with "
6770
"minimal similarity will be found."
6871
msgstr ""
6972

70-
#: src/codeplag/codeplagcli.py:154
73+
#: src/codeplag/codeplagcli.py:158
7174
msgid "The maximum depth of the AST structure which play role in calculations."
7275
msgstr ""
7376

74-
#: src/codeplag/codeplagcli.py:161
77+
#: src/codeplag/codeplagcli.py:165
7578
msgid ""
7679
"The length of N-grams generated to calculate the Jakkar coefficient. A "
7780
"long length of N-grams reduces the Jakkar coefficient because there are "
7881
"fewer equal sequences of two works."
7982
msgstr ""
8083

81-
#: src/codeplag/codeplagcli.py:172
84+
#: src/codeplag/codeplagcli.py:176
8285
msgid "The language of help messages, generated reports, errors."
8386
msgstr ""
8487

85-
#: src/codeplag/codeplagcli.py:178
88+
#: src/codeplag/codeplagcli.py:182
8689
msgid ""
8790
"Sets the threshold for the '{util_name}' util loggers'. Logging messages "
8891
"that are less severe than the level will be ignored."
8992
msgstr ""
9093

91-
#: src/codeplag/codeplagcli.py:188
94+
#: src/codeplag/codeplagcli.py:192
9295
msgid "The maximum number of processes that can be used to compare works."
9396
msgstr ""
9497

95-
#: src/codeplag/codeplagcli.py:196
98+
#: src/codeplag/codeplagcli.py:200
9699
msgid "Show the '{util_name}' util settings."
97100
msgstr ""
98101

99-
#: src/codeplag/codeplagcli.py:200
102+
#: src/codeplag/codeplagcli.py:204
100103
msgid "Start searching similar works."
101104
msgstr ""
102105

103-
#: src/codeplag/codeplagcli.py:206
106+
#: src/codeplag/codeplagcli.py:210
104107
msgid "Absolute or relative path to a local directories with project files."
105108
msgstr ""
106109

107-
#: src/codeplag/codeplagcli.py:216
110+
#: src/codeplag/codeplagcli.py:220
108111
msgid "Absolute or relative path to files on a computer."
109112
msgstr ""
110113

111-
#: src/codeplag/codeplagcli.py:223
114+
#: src/codeplag/codeplagcli.py:227
112115
msgid ""
113116
"Choose one of the following modes of searching plagiarism. The "
114117
"'many_to_many' mode may require more free memory."
115118
msgstr ""
116119

117-
#: src/codeplag/codeplagcli.py:234
120+
#: src/codeplag/codeplagcli.py:238
118121
msgid ""
119122
"A regular expression for filtering checked works by name. Used with "
120123
"options 'directories', 'github-user' and 'github-project-folders'."
121124
msgstr ""
122125

123-
#: src/codeplag/codeplagcli.py:243
126+
#: src/codeplag/codeplagcli.py:247
124127
msgid "Ignore the threshold when checking of works."
125128
msgstr ""
126129

127-
#: src/codeplag/codeplagcli.py:250
130+
#: src/codeplag/codeplagcli.py:254
128131
msgid "Extension responsible for the analyzed programming language."
129132
msgstr ""
130133

131-
#: src/codeplag/codeplagcli.py:260
134+
#: src/codeplag/codeplagcli.py:264
132135
msgid "Searching in all branches."
133136
msgstr ""
134137

135-
#: src/codeplag/codeplagcli.py:267
138+
#: src/codeplag/codeplagcli.py:271
136139
msgid "A regular expression to filter searching repositories on GitHub."
137140
msgstr ""
138141

139-
#: src/codeplag/codeplagcli.py:274
142+
#: src/codeplag/codeplagcli.py:278
140143
msgid "URL to file in a GitHub repository."
141144
msgstr ""
142145

143-
#: src/codeplag/codeplagcli.py:280
146+
#: src/codeplag/codeplagcli.py:284
144147
msgid "GitHub organization/user name."
145148
msgstr ""
146149

147-
#: src/codeplag/codeplagcli.py:287
150+
#: src/codeplag/codeplagcli.py:291
148151
msgid "URL to a GitHub project folder."
149152
msgstr ""
150153

151-
#: src/codeplag/codeplagcli.py:297
154+
#: src/codeplag/codeplagcli.py:301
152155
msgid ""
153156
"Handling generated by the {util_name} reports as creating html report "
154157
"file or show it on console."
155158
msgstr ""
156159

157-
#: src/codeplag/codeplagcli.py:305
160+
#: src/codeplag/codeplagcli.py:309
158161
msgid "Report commands of the '{util_name}' util."
159162
msgstr ""
160163

161-
#: src/codeplag/codeplagcli.py:314
164+
#: src/codeplag/codeplagcli.py:318
162165
msgid "Generate general report from created some time ago report files."
163166
msgstr ""
164167

165-
#: src/codeplag/codeplagcli.py:319
168+
#: src/codeplag/codeplagcli.py:323
166169
msgid ""
167170
"Path to save generated report. If it's a directory, then create a file in"
168171
" it."
169172
msgstr ""
170173

171-
#: src/codeplag/codeplagcli.py:328
174+
#: src/codeplag/codeplagcli.py:332
172175
msgid "Type of the created report file."
173176
msgstr ""
174177

175-
#: src/codeplag/codeplagcli.py:336
178+
#: src/codeplag/codeplagcli.py:340
176179
msgid ""
177180
"Path to first compared works. Can be path to directory or URL to the "
178181
"project folder."
179182
msgstr ""
180183

181-
#: src/codeplag/codeplagcli.py:346
184+
#: src/codeplag/codeplagcli.py:350
182185
msgid ""
183186
"Path to second compared works. Can be path to directory or URL to the "
184187
"project folder."
185188
msgstr ""
186189

187-
#: src/codeplag/codeplagcli.py:358
190+
#: src/codeplag/codeplagcli.py:362
188191
msgid ""
189192
"Program help to find similar parts of source codes for the different "
190193
"languages."
191194
msgstr ""
192195

193-
#: src/codeplag/codeplagcli.py:365
196+
#: src/codeplag/codeplagcli.py:369
194197
msgid "Print current version number and exit."
195198
msgstr ""
196199

197-
#: src/codeplag/codeplagcli.py:371
200+
#: src/codeplag/codeplagcli.py:375
198201
msgid "Commands help."
199202
msgstr ""
200203

201-
#: src/codeplag/codeplagcli.py:386
204+
#: src/codeplag/codeplagcli.py:390
202205
msgid "No command is provided; please choose one from the available (--help)."
203206
msgstr ""
204207

205-
#: src/codeplag/codeplagcli.py:397
208+
#: src/codeplag/codeplagcli.py:401
206209
msgid "There is nothing to modify; please provide at least one argument."
207210
msgstr ""
208211

209-
#: src/codeplag/codeplagcli.py:401
212+
#: src/codeplag/codeplagcli.py:405
210213
msgid "The'repo-regexp' option requires the provided 'github-user' option."
211214
msgstr ""
212215

213-
#: src/codeplag/codeplagcli.py:409
216+
#: src/codeplag/codeplagcli.py:413
214217
msgid ""
215218
"The'path-regexp' option requires the provided 'directories', 'github-"
216219
"user', or 'github-project-folder' options."
217220
msgstr ""
218221

219-
#: src/codeplag/codeplagcli.py:420 src/codeplag/handlers/report.py:95
222+
#: src/codeplag/codeplagcli.py:424 src/codeplag/handlers/report.py:95
220223
msgid "All paths must be provided."
221224
msgstr ""
222225

0 commit comments

Comments
 (0)