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 lines31323334353630 unmodified linestask_ids:- language-modelingpaperswithcode_id: codesearchnet---# Dataset Card for CodeSearchNet corpus30 unmodified lines3132333435363730 unmodified linestask_ids:- language-modelingpaperswithcode_id: codesearchnetpretty_name: CodeSearchNet---# Dataset Card for CodeSearchNet corpus
198 unmodified lines199200201202203204205206207198 unmodified linesfor 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,# to ensure all examples have a distinct keyid_ = file_id_ + row_id_data = json.loads(row)yield id_, {"repository_name": data["repo"],198 unmodified lines199200201202203204205206207198 unmodified linesfor 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 = file_id + row_id,# to ensure all examples have a distinct keyid_ = f"{file_id_}_{row_id_}"data = json.loads(row)yield id_, {"repository_name": data["repo"],
README.md+1
code_search_net.py+2-2