Update files from the datasets library (from 1.9.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.9.0
Files changed (2)
30 unmodified lines3132333435363730 unmodified linestask_ids:- language-modelingpaperswithcode_id: codesearchnetpretty_name: CodeSearchNet---
# Dataset Card for CodeSearchNet corpus198 unmodified lines199200201202202203204204205206207198 unmodified lines for file_id_, filepath in enumerate(filepaths): with open(filepath, encoding="utf-8") as f: for row_id_, row in enumerate(f): # Key of the example = dir_id_ + entry_id + row_id, # Key of the example = file_id + row_id, # to ensure all examples have a distinct key id_ = file_id_ + row_id_ id_ = f"{file_id_}_{row_id_}" data = json.loads(row) yield id_, { "repository_name": data["repo"],README.md+1
code_search_net.py+2-2