From 193567d9e75b78425a036dd81a854d9880b3a929 Mon Sep 17 00:00:00 2001 From: Evgeniy Glukhov Date: Thu, 6 Jun 2024 12:27:09 +0400 Subject: [PATCH] Fix naming --- {code_completion => project_level_code_completion}/README.md | 2 +- .../composers/alphabetical_composer.py | 0 .../composers/base_composer.py | 0 .../composers/composer_registry.py | 0 .../composers/file_length_composer.py | 0 .../composers/function_class_half_mask.py | 0 .../composers/function_class_mask_one.py | 0 .../composers/half_memory_composer.py | 0 .../composers/half_memory_path_distance_composer.py | 0 .../composers/imports_first_composer.py | 0 .../composers/naive_composer.py | 0 .../composers/one_completion_file_composer.py | 0 .../composers/path_distance_composer.py | 0 .../data_classes/datapoint_base.py | 0 .../data_classes/datapoint_commit_dataset.py | 0 .../eval/common_apis.py | 0 .../eval/config/composers_config/python_fl.yaml | 0 .../eval/config/composers_config/python_standard.yaml | 0 .../eval/config/config.yaml | 0 .../eval/config/dataset/huge.yaml | 0 .../eval/config/dataset/large.yaml | 0 .../eval/config/dataset/medium.yaml | 0 .../eval/config/dataset/small.yaml | 0 .../eval/config/params/codellama13b.yaml | 0 .../eval/config/params/codellama13b_4bit.yaml | 0 .../eval/config/params/codellama34b.yaml | 0 .../eval/config/params/codellama34b_4bit.yaml | 0 .../eval/config/params/codellama7b.yaml | 0 .../eval/config/params/codellama7b_4bit.yaml | 0 .../eval/config/params/debug.yaml | 0 .../eval/config/params/deepseekcoder1b.yaml | 0 .../eval/config/params/deepseekcoder7b.yaml | 0 .../eval/config/params/starcoder2_3b.yaml | 0 .../eval/config/params/starcoderbase1b.yaml | 0 .../eval/config/params/starcoderbase1b_4bit.yaml | 0 .../eval/config/params/starcoderbase3b.yaml | 0 .../eval/config/params/starcoderbase3b_4bit.yaml | 0 .../eval/config/params/starcoderbase7b.yaml | 0 .../eval/config/params/starcoderbase7b_4bit.yaml | 0 {code_completion => project_level_code_completion}/eval/eval.py | 0 .../eval/eval_pipeline.py | 0 .../eval/line_generators.py | 0 .../eval/preprocess.py | 0 .../eval/preprocessors.py | 0 .../eval/utils.py | 0 .../model_hub/model_classes.py | 0 .../model_hub/model_inference.py | 0 .../model_hub/model_registry.py | 0 {code_completion => project_level_code_completion}/poetry.lock | 0 .../pyproject.toml | 0 .../tree_sitter_parser/parsed_file.py | 0 .../tree_sitter_parser/parsed_project.py | 0 .../tree_sitter_parser/parser.py | 0 53 files changed, 1 insertion(+), 1 deletion(-) rename {code_completion => project_level_code_completion}/README.md (98%) rename {code_completion => project_level_code_completion}/composers/alphabetical_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/base_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/composer_registry.py (100%) rename {code_completion => project_level_code_completion}/composers/file_length_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/function_class_half_mask.py (100%) rename {code_completion => project_level_code_completion}/composers/function_class_mask_one.py (100%) rename {code_completion => project_level_code_completion}/composers/half_memory_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/half_memory_path_distance_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/imports_first_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/naive_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/one_completion_file_composer.py (100%) rename {code_completion => project_level_code_completion}/composers/path_distance_composer.py (100%) rename {code_completion => project_level_code_completion}/data_classes/datapoint_base.py (100%) rename {code_completion => project_level_code_completion}/data_classes/datapoint_commit_dataset.py (100%) rename {code_completion => project_level_code_completion}/eval/common_apis.py (100%) rename {code_completion => project_level_code_completion}/eval/config/composers_config/python_fl.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/composers_config/python_standard.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/config.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/dataset/huge.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/dataset/large.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/dataset/medium.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/dataset/small.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/codellama13b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/codellama13b_4bit.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/codellama34b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/codellama34b_4bit.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/codellama7b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/codellama7b_4bit.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/debug.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/deepseekcoder1b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/deepseekcoder7b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoder2_3b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoderbase1b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoderbase1b_4bit.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoderbase3b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoderbase3b_4bit.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoderbase7b.yaml (100%) rename {code_completion => project_level_code_completion}/eval/config/params/starcoderbase7b_4bit.yaml (100%) rename {code_completion => project_level_code_completion}/eval/eval.py (100%) rename {code_completion => project_level_code_completion}/eval/eval_pipeline.py (100%) rename {code_completion => project_level_code_completion}/eval/line_generators.py (100%) rename {code_completion => project_level_code_completion}/eval/preprocess.py (100%) rename {code_completion => project_level_code_completion}/eval/preprocessors.py (100%) rename {code_completion => project_level_code_completion}/eval/utils.py (100%) rename {code_completion => project_level_code_completion}/model_hub/model_classes.py (100%) rename {code_completion => project_level_code_completion}/model_hub/model_inference.py (100%) rename {code_completion => project_level_code_completion}/model_hub/model_registry.py (100%) rename {code_completion => project_level_code_completion}/poetry.lock (100%) rename {code_completion => project_level_code_completion}/pyproject.toml (100%) rename {code_completion => project_level_code_completion}/tree_sitter_parser/parsed_file.py (100%) rename {code_completion => project_level_code_completion}/tree_sitter_parser/parsed_project.py (100%) rename {code_completion => project_level_code_completion}/tree_sitter_parser/parser.py (100%) 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