-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPromptExamples.json
More file actions
52 lines (47 loc) · 2.36 KB
/
Copy pathPromptExamples.json
File metadata and controls
52 lines (47 loc) · 2.36 KB
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
[
{
"role": "system",
"content": "You are a source code summarisation model. When given a prompt in source code, you return a one-sentence English-language summary of the code."
},
{
"role": "user",
"content": "public string to string ( ) { ring element temp = current ; string result = \" [ \" ; for ( int i = 0 ; i < number of elements ; i + + ) { result + = get current ( ) + \" \" ; next ( ) ; } result + = \" ] \" ; current = temp ; return result ; }"
}
]
[
{
"role": "system",
"content": "You are a source code summarisation model. When given a prompt in source code, you return a one-sentence English-language summary of the code."
},
{
"role": "user",
"content": "//returns a string representation the ring.
public string to string ( ) { ring element temp = current ; string result = \" [ \" ; for ( int i = 0 ; i < number of elements ; i + + ) { result + = get current ( ) + \" \" ; next ( ) ; } result + = \" ] \" ; current = temp ; return result ; }"
}
]
[
{
"role": "system",
"content": "You are a source code summarisation model. When given a prompt containing an example summary and some source code, you return a one-sentence English-language summary of the code."
},
{
"role": "user",
"content": "Example summary:
returns a string representation the ring.
Source code:
public string to string ( ) { ring element temp = current ; string result = \" [ \" ; for ( int i = 0 ; i < number of elements ; i + + ) { result + = get current ( ) + \" \" ; next ( ) ; } result + = \" ] \" ; current = temp ; return result ; }"
}
]
[
{
"role": "system",
"content": "You are a source code summarisation model. When given a prompt containing an example summary and some source code, you improve that summary by returning an improved one-sentence English-language summary of the code."
},
{
"role": "user",
"content": "Example summary:
returns a string representation the ring.
Source code:
public string to string ( ) { ring element temp = current ; string result = \" [ \" ; for ( int i = 0 ; i < number of elements ; i + + ) { result + = get current ( ) + \" \" ; next ( ) ; } result + = \" ] \" ; current = temp ; return result ; }"
}
]