-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
30 lines (28 loc) · 1.27 KB
/
config.yml
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
name: "Code Translator"
title: "Code Translator"
favicon: "favicon.png"
logo: "logo.png"
from_language: "SAS"
to_language: "R"
open_ai_key: "your-key-here"
open_ai_model: "GPT-4o"
open_ai_max_tokens: 4000
# define regex patterns here
# the provided patterns match the following (in order)
# - regexPatternFilepath
# - regexPatternIPaddress
# - regexPatternUsernames
# - regexPatternPasswords
regex: [
"\\/(https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z]{2,}(\\.[a-zA-Z]{2,})(\\.[a-zA-Z]{2,})?\\/[a-zA-Z0-9]{2,}|((https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z]{2,}(\\.[a-zA-Z]{2,})(\\.[a-zA-Z]{2,})?)|(https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z0-9]{2,}\\.[a-zA-Z0-9]{2,}\\.[a-zA-Z0-9]{2,}(\\.[a-zA-Z0-9]{2,})?"
, "(?:[0-9]{1,3}\\.){3}[0-9]{1,3}"
, "([a-zA-Z]{1,}):\\/\\/([a-zA-Z]{1,})|([a-zA-Z]{1,}):\\/([a-zA-Z]{1,})|([a-zA-Z]{1,}):\\/\\/|([a-zA-Z]{1,}):\\/"
, "\\b(username)\\b|\\b(user)\\b|\\b(uid)\\b"
, "\\b(password)\\b|\\b(pword)\\b|\\b(pwrd)\\b|\\b(passw)\\b|\\b(pwd)\\b\\/g"
]
# the following params are for creation of the docker image and running the app with in a docker container
docker:
port: 3838
host: "0.0.0.0"
path: "/home/sas-to-r-translator"
image_name: "sas-to-r-translator"