update documentation
Browse filesFiles changed (3)
- README.md+12-1
- github_preprocessing.py+5-2
- query.sql+3
177 unmodified lines178179180181177 unmodified lines## Considerations for Using the DataThe dataset consists of source code from a wide range of repositories. As such they can potentially include harmful or biased code as well as sensitive information like passwords or usernames.177 unmodified lines178179180181182183184185186187188189190191192177 unmodified lines## Considerations for Using the DataThe dataset consists of source code from a wide range of repositories. As such they can potentially include harmful or biased code as well as sensitive information like passwords or usernames.## Releases### v1.0- Initial release of dataset- The query was executed on _Feb 14, 2022, 12:03:16 PM UTC+1_### v1.1- Fix missing Scala/TypeScript- Fix deduplication issue with inconsistent Python `hash`- The query was executed on _Mar 16, 2022, 6:23:39 PM UTC+1_
26 unmodified lines272829303132333435104 unmodified lines14014114214326 unmodified linesPATTERN = re.compile(r'\s+')def get_hash(example):"""Get hash of content field."""return {"hash": hash(re.sub(PATTERN, '', example["content"]))}def line_stats(example):104 unmodified lineslist(tqdm(p.imap_unordered(save_shard, zip(filenames, shards), chunksize=4), total=num_shards))print(f"Time to save dataset: {time.time()-t_start:.2f}")# To push to hub run `git add` and `git push` inside dataset repo folder26 unmodified lines272829303132333435363738104 unmodified lines14314414514626 unmodified linesPATTERN = re.compile(r'\s+')def hash_func(text):return hashlib.md5(re.sub(PATTERN, '', text).encode("utf-8")).hexdigest()def get_hash(example):"""Get hash of content field."""return {"hash": hash_func(example["content"])}def line_stats(example):104 unmodified lineslist(tqdm(p.imap_unordered(save_shard, zip(filenames, shards), chunksize=4), total=num_shards))print(f"Time to save dataset: {time.time()-t_start:.2f}")# To push to hub run `git add/commit/push` inside dataset repo folder
68 unmodified lines6970717273747576777868 unmodified linesOR f.path LIKE '%.rb'OR f.path LIKE '%.rs'OR f.path LIKE '%.sql'OR f.path LIKE '%.sh'OR f.path LIKE '%.bash'OR f.path LIKE '%.command'OR f.path LIKE '%.zsh'OR f.path LIKE '%.tex'OR f.path LIKE '%.vb'OR f.path LIKE '%Dockerfile'68 unmodified lines6970717273747576777879808168 unmodified linesOR f.path LIKE '%.rb'OR f.path LIKE '%.rs'OR f.path LIKE '%.sql'OR f.path LIKE '%.scala'OR f.path LIKE '%.sh'OR f.path LIKE '%.bash'OR f.path LIKE '%.command'OR f.path LIKE '%.zsh'OR f.path LIKE '%.ts'OR f.path LIKE '%.tsx'OR f.path LIKE '%.tex'OR f.path LIKE '%.vb'OR f.path LIKE '%Dockerfile'
README.md+12-1
github_preprocessing.py+5-2
query.sql+3