jenyag commited on
Commit
30c17b1
1 Parent(s): 7b83437

Added load the data section to README

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -675,3 +675,28 @@ dataset_info:
675
  - split: test
676
  path: data/function_class_mask_one_composer/py_context/test-*
677
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
675
  - split: test
676
  path: data/function_class_mask_one_composer/py_context/test-*
677
  ---
678
+
679
+ # Repository Level Code Completion Dataset for Evaluation
680
+ This is a dataset of repository snapshots before a commit where a python file has been added. One needs to complete added file with given content of repository composed in different ways.
681
+
682
+ ## How to load the data
683
+ 1. via [`load_dataset`](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.load_dataset):
684
+
685
+ ```
686
+ from datasets import load_dataset
687
+
688
+ data_files = # choose from the table below
689
+ dataset = load_dataset("'jenyag/repo-code-completion", data_files=data_files, split="train")
690
+ ```
691
+
692
+ #### Options for `data_files`:
693
+ | | **all_context** | **non_py_context** | **py_context** |
694
+ |----|----|----|----|
695
+ | **function class mask half composer** | data/function_class_mask_half_composer/all_context/test-* | data/function_class_mask_half_composer/non_py_context/test-* | data/function_class_mask_half_composer/py_context/test-* |
696
+ | **imports first composer** | data/imports_first_composer/all_context/test-* | data/imports_first_composer/non_py_context/test-* | data/imports_first_composer/py_context/test-* |
697
+ | **alphabetical composer** | data/alphabetical_composer/all_context/test-* | data/alphabetical_composer/non_py_context/test-* | data/alphabetical_composer/py_context/test-* |
698
+ | **naive composer** | data/naive_composer/all_context/test-* | data/naive_composer/non_py_context/test-* | data/naive_composer/py_context/test-* |
699
+ | **path distance composer** | data/path_distance_composer/all_context/test-* | data/path_distance_composer/non_py_context/test-* | data/path_distance_composer/py_context/test-* |
700
+ | **file length composer** | data/file_length_composer/all_context/test-* | data/file_length_composer/non_py_context/test-* | data/file_length_composer/py_context/test-* |
701
+ | **half memory composer** | data/half_memory_composer/all_context/test-* | data/half_memory_composer/non_py_context/test-* | data/half_memory_composer/py_context/test-* |
702
+ | **function class mask one composer** | data/function_class_mask_one_composer/all_context/test-* | data/function_class_mask_one_composer/non_py_context/test-* | data/function_class_mask_one_composer/py_context/test-* |