MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / fingerprint

Method fingerprint

src/summarycode/copyright_tallies.py:177–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 self.key = toascii(self.key, translit=True)
176
177 def fingerprint(self):
178 key = self.key
179 if not isinstance(key, str):
180 key = unidecode(key)
181 fp = fingerprints.generate(key)
182
183 if TRACE_TEXT or TRACE_FP:
184 logger_debug('Text.fingerprint:key: ', repr(self.key))
185 logger_debug('Text.fingerprint:fp : ', fingerprints.generate(unidecode(self.key)))
186
187 self.key = fp
188
189
190def tally_copyrights(texts, _detector=CopyrightDetector()):

Callers 2

tallyFunction · 0.80
process_holdersFunction · 0.80

Calls 2

logger_debugFunction · 0.70
generateMethod · 0.45

Tested by

no test coverage detected