-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.json
47 lines (41 loc) · 1.77 KB
/
content.json
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
{"intents":
[
{
"tag":"writemessage",
"input":["write a message", "write message", "print a message","print a hello world","write a hello world"],
"responses":[
"print('Hello World')"
]
},
{
"tag":"getrepositorie",
"input":["List all names of GitHub repositories for an org.","list all names of GitHub repositories for an org","list all names of github repositories for an org"],
"responses":["url = 'https://api.github.com/orgs/' + org + '/repos'\nrequest = urllib.request.Request(url)\nresponse = urllib.request.urlopen(request)\ndata = json.loads(response.read().decode())\nreturn [repo['name'] for repo in data"]
},
{
"tag":"webserver",
"input":["create a web server", "create a webserver", "webserver", "web server"],
"responses":[""]
},
{
"tag":"hello",
"input":["write a message with hello", "write hello", "print a hello"],
"responses":["print('hello')","print('Hello')"]
},
{
"tag":"fetchtweets",
"input":["fetch tweets", "fetch tweets from twitter"],
"responses":[]
},
{
"tag":"workwebsite",
"input":["a software that enters a website returns if it is working", "A software that enters a website returns if it is working."],
"responses":[]
},
{
"tag":"randomanimals",
"input":["create a list of random animals"],
"responses":["import random\nanimals = ['cat', 'dog', 'fish', 'bird', 'snake', 'lizard', 'turtle', 'hamster', 'gerbil', 'rabbit', 'guinea pig', 'chinchilla', 'rat', 'mouse', 'ferret', 'hedgehog', 'hermit crab', 'tarantula', 'frog']"]
}
]
}