-
Notifications
You must be signed in to change notification settings - Fork 31
/
.env.example
61 lines (57 loc) · 2.31 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Put .env into ${HOME}/.config/code_transformer/.env
#
# Per default, we assume the following folder structure:
# CODE_TRANSFORMER_DATA_PATH
# ├── raw
# │ ├── csn
# │ │ ├── python
# │ │ │ └── final
# │ │ │ └── ...
# │ │ :
# │ │ └── go
# │ ├── code2seq
# │ │ └── java-small
# │ └── code2seq-methods
# │ └── java-small
# ├── stage1
# └── stage2
# ├── python
# │ ├── train
# │ ├── valid
# │ ├── test
# │ └── vocabularies.p.gzip
# ├── java-small
# :
# └── python,javascript,go,ruby
#
#
# CODE_TRANSFORMER_BINARY_PATH
# ├── java-parser-1.0-SNAPSHOT.jar
# ├── JavaMethodExtractor-1.0.0-SNAPSHOT.jar
# └── semantic
#
# CODE_TRANSFORMER_MODELS_PATH
# ├── ct_lm
# ├── ct_code_summarization
# │ ├── CT-1
# │ │ ├── config.json
# │ │ ├── model_10000.p
# │ │ :
# │ │ └── model_450000.p
# │ :
# │ └── CT-24
# ├── great_code_summarization
# └── xl_net_code_summarization
export CODE_TRANSFORMER_DATA_PATH=<<<SPECIFY_FOLDER_TO_STORE_DATASETS>>>
export CODE_TRANSFORMER_BINARY_PATH=<<<SPECIFY_FOLDER_TO_STORE_BINARIES>>>
export CODE_TRANSFORMER_MODELS_PATH=<<<SPECIFY_FOLDER_TO_STORE_MODEL_CHECKPOINTS>>>
export CODE_TRANSFORMER_LOGS_PATH=<<<SPECIFY_FOLDER_TO_STORE_TRAIN_LOGS>>>
export CODE_TRANSFORMER_CSN_RAW_DATA_PATH=${CODE_TRANSFORMER_DATA_PATH}/raw/csn
export CODE_TRANSFORMER_CODE2SEQ_RAW_DATA_PATH=${CODE_TRANSFORMER_DATA_PATH}/raw/code2seq
export CODE_TRANSFORMER_CODE2SEQ_EXTRACTED_METHODS_DATA_PATH=${CODE_TRANSFORMER_DATA_PATH}/raw/code2seq-methods
export CODE_TRANSFORMER_DATA_PATH_STAGE_1=${CODE_TRANSFORMER_DATA_PATH}/stage1
export CODE_TRANSFORMER_DATA_PATH_STAGE_2=${CODE_TRANSFORMER_DATA_PATH}/stage2
export CODE_TRANSFORMER_JAVA_EXECUTABLE=java
export CODE_TRANSFORMER_JAVA_PARSER_EXECUTABLE=${CODE_TRANSFORMER_BINARY_PATH}/java-parser-1.0-SNAPSHOT.jar
export CODE_TRANSFORMER_JAVA_METHOD_EXTRACTOR_EXECUTABLE=${CODE_TRANSFORMER_BINARY_PATH}/JavaMethodExtractor-1.0.0-SNAPSHOT.jar
export CODE_TRANSFORMER_SEMANTIC_EXECUTABLE=${CODE_TRANSFORMER_BINARY_PATH}/semantic