File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ install_requires =
117117 typecode[full] >= 30.0.1
118118 extractcode[full] >= 31.0.0
119119 cyseq >= 0.0.2
120+ nostril-detector
120121
121122
122123[options.packages.find]
Original file line number Diff line number Diff line change 1717from time import time
1818
1919import attr
20+ from nostril_detector .nonsense_detector import generate_nonsense_detector
2021
2122from commoncode .text import toascii
2223from commoncode .text import unixlinesep
@@ -197,8 +198,9 @@ def detect_copyrights_from_lines(
197198 if TRACE or TRACE_DEEP :
198199 logger_debug (f'\n ========================================================================' )
199200 logger_debug (f'detect_copyrights_from_lines: processing candidate_lines group:' )
201+ nonsense = generate_nonsense_detector (min_length = 1 )
200202 for can in candidate_lines :
201- logger_debug (f' { can } ' )
203+ logger_debug (f' { can [ 1 ] } (is_nonsense( { nonsense ( can [ 1 ]) } )) ' )
202204
203205 detections = detector .detect (
204206 numbered_lines = candidate_lines ,
You can’t perform that action at this time.
0 commit comments