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

Method normalize

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

Source from the content-addressed store, hash-verified

163 count = attr.attrib(default=1)
164
165 def normalize(self):
166 if TRACE_TEXT:
167 logger_debug('Text.normalize:', self)
168 key = self.key.lower()
169 key = ' '.join(key.split())
170 key = key.strip('.,').strip()
171 key = clean(key)
172 self.key = key.strip('.,').strip()
173
174 def transliterate(self):
175 self.key = toascii(self.key, translit=True)

Callers 2

tallyFunction · 0.45
process_holdersFunction · 0.45

Calls 4

cleanFunction · 0.85
logger_debugFunction · 0.70
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected