csim 2.0.2__tar.gz → 2.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {csim-2.0.2/csim.egg-info → csim-2.0.4}/PKG-INFO +1 -1
- {csim-2.0.2 → csim-2.0.4}/csim/utils.py +8 -1
- {csim-2.0.2 → csim-2.0.4/csim.egg-info}/PKG-INFO +1 -1
- {csim-2.0.2 → csim-2.0.4}/setup.py +1 -1
- {csim-2.0.2 → csim-2.0.4}/LICENSE +0 -0
- {csim-2.0.2 → csim-2.0.4}/MANIFEST.in +0 -0
- {csim-2.0.2 → csim-2.0.4}/README.md +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/CodeSimilarity.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/DataStructures.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/Visitors.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__init__.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__pycache__/CodeSimilarity.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__pycache__/DataStructures.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__pycache__/Visitors.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__pycache__/__init__.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__pycache__/main.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/__pycache__/utils.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14Lexer.interp +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14Lexer.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14Lexer.tokens +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14Parser.interp +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14Parser.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14Parser.tokens +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14ParserBase.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/CPP14ParserVisitor.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__init__.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__pycache__/CPP14Lexer.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__pycache__/CPP14Parser.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__pycache__/CPP14ParserBase.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__pycache__/CPP14ParserVisitor.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__pycache__/__init__.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/__pycache__/utils.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/transformGrammar.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/cpp/utils.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20Lexer.interp +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20Lexer.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20Lexer.tokens +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20Parser.interp +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20Parser.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20Parser.tokens +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/Java20ParserVisitor.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/__init__.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/__pycache__/Java20Lexer.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/__pycache__/Java20Parser.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/__pycache__/Java20ParserVisitor.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/__pycache__/__init__.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/__pycache__/utils.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/java/utils.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/language/__init__.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/language/__pycache__/__init__.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/language/__pycache__/lexer.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/language/__pycache__/parser.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/language/lexer.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/language/parser.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/main.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/processing/__init__.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/processing/__pycache__/__init__.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/processing/__pycache__/distance_metrics.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/processing/__pycache__/tree_processing.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/processing/distance_metrics.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/processing/tree_processing.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonLexer.interp +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonLexer.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonLexer.tokens +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonLexerBase.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonParser.interp +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonParser.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonParser.tokens +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/PythonParserVisitor.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__init__.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__pycache__/PythonLexer.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__pycache__/PythonLexerBase.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__pycache__/PythonParser.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__pycache__/PythonParserVisitor.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__pycache__/__init__.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/__pycache__/utils.cpython-314.pyc +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim/python/utils.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim.egg-info/SOURCES.txt +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim.egg-info/dependency_links.txt +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim.egg-info/entry_points.txt +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim.egg-info/requires.txt +0 -0
- {csim-2.0.2 → csim-2.0.4}/csim.egg-info/top_level.txt +0 -0
- {csim-2.0.2 → csim-2.0.4}/setup.cfg +0 -0
- {csim-2.0.2 → csim-2.0.4}/test/test_cli.py +0 -0
- {csim-2.0.2 → csim-2.0.4}/test/test_module.py +0 -0
|
@@ -235,6 +235,13 @@ def get_output_by_group(file_names, groups, similarity_indices, threshold, print
|
|
|
235
235
|
else:
|
|
236
236
|
unique_groups.append(file_names[file_group[0]])
|
|
237
237
|
|
|
238
|
+
# Sort the similarity groups by average similarity in descending order
|
|
239
|
+
similarity_groups_avg, similarity_groups = zip(
|
|
240
|
+
*sorted(
|
|
241
|
+
zip(similarity_groups_avg, similarity_groups), key=lambda x: x[0], reverse=True
|
|
242
|
+
)
|
|
243
|
+
)
|
|
244
|
+
|
|
238
245
|
if unique_groups:
|
|
239
246
|
result.append(f"Unique Files (similarity below threshold):")
|
|
240
247
|
for file in unique_groups:
|
|
@@ -243,7 +250,7 @@ def get_output_by_group(file_names, groups, similarity_indices, threshold, print
|
|
|
243
250
|
if printable_output:
|
|
244
251
|
return "\n".join(result)
|
|
245
252
|
|
|
246
|
-
return similarity_groups, similarity_groups_avg, unique_groups
|
|
253
|
+
return similarity_groups, similarity_groups_avg, unique_groups, "\n".join(result)
|
|
247
254
|
|
|
248
255
|
|
|
249
256
|
def group_by_exhaustive_search(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|