MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / mkhash

Function mkhash

preprocess.py:8–12  ·  view source on GitHub ↗
(dat)

Source from the content-addressed store, hash-verified

6
7
8def mkhash(dat):
9 conc = ""
10 for i in dat:
11 conc += re.sub(r'\s*', '', i) + "\n"
12 yield hashlib.md5(conc.encode('utf8')).hexdigest()[:2]
13
14for path, dirs, files in os.walk('./code'):
15 for f in files:

Callers 1

preprocess.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected