pangxiang commited on
Commit
345a2be
·
verified ·
1 Parent(s): b5bd3c2

Update train_data.json

Browse files
Files changed (1) hide show
  1. train_data.json +42 -5
train_data.json CHANGED
@@ -1,5 +1,42 @@
1
- {
2
- "missing_brace": ["function test() { if (x) { ", "if (true) { for (let i=0; i<10; i++) { "],
3
- "missing_semicolon": ["console.log('hello')", "return result"],
4
- "no_fix": ["function test() { if (x) { } }", "console.log('hello');"]
5
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "input": "print('hello",
4
+ "output": "print('hello')",
5
+ "language": "python"
6
+ },
7
+ {
8
+ "input": "def test()\n return 'hello'",
9
+ "output": "def test():\n return 'hello'",
10
+ "language": "python"
11
+ },
12
+ {
13
+ "input": "<div class=test>",
14
+ "output": "<div class=\"test\">",
15
+ "language": "html"
16
+ },
17
+ {
18
+ "input": "<p>Hello World",
19
+ "output": "<p>Hello World</p>",
20
+ "language": "html"
21
+ },
22
+ {
23
+ "input": "function test() {",
24
+ "output": "function test() {\n // 函数体\n}",
25
+ "language": "javascript"
26
+ },
27
+ {
28
+ "input": "const name = 'John'",
29
+ "output": "const name = 'John';",
30
+ "language": "javascript"
31
+ },
32
+ {
33
+ "input": ".test { color: red }",
34
+ "output": ".test { color: red; }",
35
+ "language": "css"
36
+ },
37
+ {
38
+ "input": "public class Test {",
39
+ "output": "public class Test {\n public static void main(String[] args) {\n \n }\n}",
40
+ "language": "java"
41
+ }
42
+ ]