diff --git a/code_completion/README.md b/project_level_code_completion/README.md similarity index 98% rename from code_completion/README.md rename to project_level_code_completion/README.md index 447cca7..e060ab9 100644 --- a/code_completion/README.md +++ b/project_level_code_completion/README.md @@ -17,7 +17,7 @@ The evaluation steps are the following: ## 💾 Install dependencies -* Change the working directory: `cd code_completion` +* Change the working directory: `cd project_level_code_completion` * install all the dependencies: `poetry install` * If you are going to use Flash Attention, run `poetry run pip install flash-attn --no-build-isolation`. * Refer to the [official documentation](https://github.com/Dao-AILab/flash-attention?tab=readme-ov-file#installation-and-features) for more details. diff --git a/code_completion/composers/alphabetical_composer.py b/project_level_code_completion/composers/alphabetical_composer.py similarity index 100% rename from code_completion/composers/alphabetical_composer.py rename to project_level_code_completion/composers/alphabetical_composer.py diff --git a/code_completion/composers/base_composer.py b/project_level_code_completion/composers/base_composer.py similarity index 100% rename from code_completion/composers/base_composer.py rename to project_level_code_completion/composers/base_composer.py diff --git a/code_completion/composers/composer_registry.py b/project_level_code_completion/composers/composer_registry.py similarity index 100% rename from code_completion/composers/composer_registry.py rename to project_level_code_completion/composers/composer_registry.py diff --git a/code_completion/composers/file_length_composer.py b/project_level_code_completion/composers/file_length_composer.py similarity index 100% rename from code_completion/composers/file_length_composer.py rename to project_level_code_completion/composers/file_length_composer.py diff --git a/code_completion/composers/function_class_half_mask.py b/project_level_code_completion/composers/function_class_half_mask.py similarity index 100% rename from code_completion/composers/function_class_half_mask.py rename to project_level_code_completion/composers/function_class_half_mask.py diff --git a/code_completion/composers/function_class_mask_one.py b/project_level_code_completion/composers/function_class_mask_one.py similarity index 100% rename from code_completion/composers/function_class_mask_one.py rename to project_level_code_completion/composers/function_class_mask_one.py diff --git a/code_completion/composers/half_memory_composer.py b/project_level_code_completion/composers/half_memory_composer.py similarity index 100% rename from code_completion/composers/half_memory_composer.py rename to project_level_code_completion/composers/half_memory_composer.py diff --git a/code_completion/composers/half_memory_path_distance_composer.py b/project_level_code_completion/composers/half_memory_path_distance_composer.py similarity index 100% rename from code_completion/composers/half_memory_path_distance_composer.py rename to project_level_code_completion/composers/half_memory_path_distance_composer.py diff --git a/code_completion/composers/imports_first_composer.py b/project_level_code_completion/composers/imports_first_composer.py similarity index 100% rename from code_completion/composers/imports_first_composer.py rename to project_level_code_completion/composers/imports_first_composer.py diff --git a/code_completion/composers/naive_composer.py b/project_level_code_completion/composers/naive_composer.py similarity index 100% rename from code_completion/composers/naive_composer.py rename to project_level_code_completion/composers/naive_composer.py diff --git a/code_completion/composers/one_completion_file_composer.py b/project_level_code_completion/composers/one_completion_file_composer.py similarity index 100% rename from code_completion/composers/one_completion_file_composer.py rename to project_level_code_completion/composers/one_completion_file_composer.py diff --git a/code_completion/composers/path_distance_composer.py b/project_level_code_completion/composers/path_distance_composer.py similarity index 100% rename from code_completion/composers/path_distance_composer.py rename to project_level_code_completion/composers/path_distance_composer.py diff --git a/code_completion/data_classes/datapoint_base.py b/project_level_code_completion/data_classes/datapoint_base.py similarity index 100% rename from code_completion/data_classes/datapoint_base.py rename to project_level_code_completion/data_classes/datapoint_base.py diff --git a/code_completion/data_classes/datapoint_commit_dataset.py b/project_level_code_completion/data_classes/datapoint_commit_dataset.py similarity index 100% rename from code_completion/data_classes/datapoint_commit_dataset.py rename to project_level_code_completion/data_classes/datapoint_commit_dataset.py diff --git a/code_completion/eval/common_apis.py b/project_level_code_completion/eval/common_apis.py similarity index 100% rename from code_completion/eval/common_apis.py rename to project_level_code_completion/eval/common_apis.py diff --git a/code_completion/eval/config/composers_config/python_fl.yaml b/project_level_code_completion/eval/config/composers_config/python_fl.yaml similarity index 100% rename from code_completion/eval/config/composers_config/python_fl.yaml rename to project_level_code_completion/eval/config/composers_config/python_fl.yaml diff --git a/code_completion/eval/config/composers_config/python_standard.yaml b/project_level_code_completion/eval/config/composers_config/python_standard.yaml similarity index 100% rename from code_completion/eval/config/composers_config/python_standard.yaml rename to project_level_code_completion/eval/config/composers_config/python_standard.yaml diff --git a/code_completion/eval/config/config.yaml b/project_level_code_completion/eval/config/config.yaml similarity index 100% rename from code_completion/eval/config/config.yaml rename to project_level_code_completion/eval/config/config.yaml diff --git a/code_completion/eval/config/dataset/huge.yaml b/project_level_code_completion/eval/config/dataset/huge.yaml similarity index 100% rename from code_completion/eval/config/dataset/huge.yaml rename to project_level_code_completion/eval/config/dataset/huge.yaml diff --git a/code_completion/eval/config/dataset/large.yaml b/project_level_code_completion/eval/config/dataset/large.yaml similarity index 100% rename from code_completion/eval/config/dataset/large.yaml rename to project_level_code_completion/eval/config/dataset/large.yaml diff --git a/code_completion/eval/config/dataset/medium.yaml b/project_level_code_completion/eval/config/dataset/medium.yaml similarity index 100% rename from code_completion/eval/config/dataset/medium.yaml rename to project_level_code_completion/eval/config/dataset/medium.yaml diff --git a/code_completion/eval/config/dataset/small.yaml b/project_level_code_completion/eval/config/dataset/small.yaml similarity index 100% rename from code_completion/eval/config/dataset/small.yaml rename to project_level_code_completion/eval/config/dataset/small.yaml diff --git a/code_completion/eval/config/params/codellama13b.yaml b/project_level_code_completion/eval/config/params/codellama13b.yaml similarity index 100% rename from code_completion/eval/config/params/codellama13b.yaml rename to project_level_code_completion/eval/config/params/codellama13b.yaml diff --git a/code_completion/eval/config/params/codellama13b_4bit.yaml b/project_level_code_completion/eval/config/params/codellama13b_4bit.yaml similarity index 100% rename from code_completion/eval/config/params/codellama13b_4bit.yaml rename to project_level_code_completion/eval/config/params/codellama13b_4bit.yaml diff --git a/code_completion/eval/config/params/codellama34b.yaml b/project_level_code_completion/eval/config/params/codellama34b.yaml similarity index 100% rename from code_completion/eval/config/params/codellama34b.yaml rename to project_level_code_completion/eval/config/params/codellama34b.yaml diff --git a/code_completion/eval/config/params/codellama34b_4bit.yaml b/project_level_code_completion/eval/config/params/codellama34b_4bit.yaml similarity index 100% rename from code_completion/eval/config/params/codellama34b_4bit.yaml rename to project_level_code_completion/eval/config/params/codellama34b_4bit.yaml diff --git a/code_completion/eval/config/params/codellama7b.yaml b/project_level_code_completion/eval/config/params/codellama7b.yaml similarity index 100% rename from code_completion/eval/config/params/codellama7b.yaml rename to project_level_code_completion/eval/config/params/codellama7b.yaml diff --git a/code_completion/eval/config/params/codellama7b_4bit.yaml b/project_level_code_completion/eval/config/params/codellama7b_4bit.yaml similarity index 100% rename from code_completion/eval/config/params/codellama7b_4bit.yaml rename to project_level_code_completion/eval/config/params/codellama7b_4bit.yaml diff --git a/code_completion/eval/config/params/debug.yaml b/project_level_code_completion/eval/config/params/debug.yaml similarity index 100% rename from code_completion/eval/config/params/debug.yaml rename to project_level_code_completion/eval/config/params/debug.yaml diff --git a/code_completion/eval/config/params/deepseekcoder1b.yaml b/project_level_code_completion/eval/config/params/deepseekcoder1b.yaml similarity index 100% rename from code_completion/eval/config/params/deepseekcoder1b.yaml rename to project_level_code_completion/eval/config/params/deepseekcoder1b.yaml diff --git a/code_completion/eval/config/params/deepseekcoder7b.yaml b/project_level_code_completion/eval/config/params/deepseekcoder7b.yaml similarity index 100% rename from code_completion/eval/config/params/deepseekcoder7b.yaml rename to project_level_code_completion/eval/config/params/deepseekcoder7b.yaml diff --git a/code_completion/eval/config/params/starcoder2_3b.yaml b/project_level_code_completion/eval/config/params/starcoder2_3b.yaml similarity index 100% rename from code_completion/eval/config/params/starcoder2_3b.yaml rename to project_level_code_completion/eval/config/params/starcoder2_3b.yaml diff --git a/code_completion/eval/config/params/starcoderbase1b.yaml b/project_level_code_completion/eval/config/params/starcoderbase1b.yaml similarity index 100% rename from code_completion/eval/config/params/starcoderbase1b.yaml rename to project_level_code_completion/eval/config/params/starcoderbase1b.yaml diff --git a/code_completion/eval/config/params/starcoderbase1b_4bit.yaml b/project_level_code_completion/eval/config/params/starcoderbase1b_4bit.yaml similarity index 100% rename from code_completion/eval/config/params/starcoderbase1b_4bit.yaml rename to project_level_code_completion/eval/config/params/starcoderbase1b_4bit.yaml diff --git a/code_completion/eval/config/params/starcoderbase3b.yaml b/project_level_code_completion/eval/config/params/starcoderbase3b.yaml similarity index 100% rename from code_completion/eval/config/params/starcoderbase3b.yaml rename to project_level_code_completion/eval/config/params/starcoderbase3b.yaml diff --git a/code_completion/eval/config/params/starcoderbase3b_4bit.yaml b/project_level_code_completion/eval/config/params/starcoderbase3b_4bit.yaml similarity index 100% rename from code_completion/eval/config/params/starcoderbase3b_4bit.yaml rename to project_level_code_completion/eval/config/params/starcoderbase3b_4bit.yaml diff --git a/code_completion/eval/config/params/starcoderbase7b.yaml b/project_level_code_completion/eval/config/params/starcoderbase7b.yaml similarity index 100% rename from code_completion/eval/config/params/starcoderbase7b.yaml rename to project_level_code_completion/eval/config/params/starcoderbase7b.yaml diff --git a/code_completion/eval/config/params/starcoderbase7b_4bit.yaml b/project_level_code_completion/eval/config/params/starcoderbase7b_4bit.yaml similarity index 100% rename from code_completion/eval/config/params/starcoderbase7b_4bit.yaml rename to project_level_code_completion/eval/config/params/starcoderbase7b_4bit.yaml diff --git a/code_completion/eval/eval.py b/project_level_code_completion/eval/eval.py similarity index 100% rename from code_completion/eval/eval.py rename to project_level_code_completion/eval/eval.py diff --git a/code_completion/eval/eval_pipeline.py b/project_level_code_completion/eval/eval_pipeline.py similarity index 100% rename from code_completion/eval/eval_pipeline.py rename to project_level_code_completion/eval/eval_pipeline.py diff --git a/code_completion/eval/line_generators.py b/project_level_code_completion/eval/line_generators.py similarity index 100% rename from code_completion/eval/line_generators.py rename to project_level_code_completion/eval/line_generators.py diff --git a/code_completion/eval/preprocess.py b/project_level_code_completion/eval/preprocess.py similarity index 100% rename from code_completion/eval/preprocess.py rename to project_level_code_completion/eval/preprocess.py diff --git a/code_completion/eval/preprocessors.py b/project_level_code_completion/eval/preprocessors.py similarity index 100% rename from code_completion/eval/preprocessors.py rename to project_level_code_completion/eval/preprocessors.py diff --git a/code_completion/eval/utils.py b/project_level_code_completion/eval/utils.py similarity index 100% rename from code_completion/eval/utils.py rename to project_level_code_completion/eval/utils.py diff --git a/code_completion/model_hub/model_classes.py b/project_level_code_completion/model_hub/model_classes.py similarity index 100% rename from code_completion/model_hub/model_classes.py rename to project_level_code_completion/model_hub/model_classes.py diff --git a/code_completion/model_hub/model_inference.py b/project_level_code_completion/model_hub/model_inference.py similarity index 100% rename from code_completion/model_hub/model_inference.py rename to project_level_code_completion/model_hub/model_inference.py diff --git a/code_completion/model_hub/model_registry.py b/project_level_code_completion/model_hub/model_registry.py similarity index 100% rename from code_completion/model_hub/model_registry.py rename to project_level_code_completion/model_hub/model_registry.py diff --git a/code_completion/poetry.lock b/project_level_code_completion/poetry.lock similarity index 100% rename from code_completion/poetry.lock rename to project_level_code_completion/poetry.lock diff --git a/code_completion/pyproject.toml b/project_level_code_completion/pyproject.toml similarity index 100% rename from code_completion/pyproject.toml rename to project_level_code_completion/pyproject.toml diff --git a/code_completion/tree_sitter_parser/parsed_file.py b/project_level_code_completion/tree_sitter_parser/parsed_file.py similarity index 100% rename from code_completion/tree_sitter_parser/parsed_file.py rename to project_level_code_completion/tree_sitter_parser/parsed_file.py diff --git a/code_completion/tree_sitter_parser/parsed_project.py b/project_level_code_completion/tree_sitter_parser/parsed_project.py similarity index 100% rename from code_completion/tree_sitter_parser/parsed_project.py rename to project_level_code_completion/tree_sitter_parser/parsed_project.py diff --git a/code_completion/tree_sitter_parser/parser.py b/project_level_code_completion/tree_sitter_parser/parser.py similarity index 100% rename from code_completion/tree_sitter_parser/parser.py rename to project_level_code_completion/tree_sitter_parser/parser.py