mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
2157 lines
69 KiB
JSON
2157 lines
69 KiB
JSON
[{
|
|
"testCaseDescription": "go-constructors-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
19
|
|
],
|
|
"end": [
|
|
2,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
25
|
|
],
|
|
"end": [
|
|
2,
|
|
28
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
18
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '10'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
17
|
|
],
|
|
"end": [
|
|
4,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index e69de29..51ab923 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -0,0 +1,4 @@",
|
|
"+make(chan<- int)",
|
|
"+make(chan<- int, (new - old))",
|
|
"+make(chan<- int, 5, 10)",
|
|
"+ new(map[string]string)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "373575e6e5a174c5eb29446674ef708b8032fd36..b92d43e3295aa55df78f78e94135a9a3f42272e9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-constructors-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
22
|
|
],
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
28
|
|
],
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '7'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '11'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
14
|
|
],
|
|
"end": [
|
|
4,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
13
|
|
],
|
|
"end": [
|
|
5,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
13
|
|
],
|
|
"end": [
|
|
6,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
19
|
|
],
|
|
"end": [
|
|
6,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
25
|
|
],
|
|
"end": [
|
|
6,
|
|
28
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
13
|
|
],
|
|
"end": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
18
|
|
],
|
|
"end": [
|
|
7,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
21
|
|
],
|
|
"end": [
|
|
7,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '10'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
2
|
|
],
|
|
"end": [
|
|
8,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
10
|
|
],
|
|
"end": [
|
|
8,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
17
|
|
],
|
|
"end": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index 51ab923..76b35ec 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -1,3 +1,11 @@",
|
|
"+make(chan<- string)",
|
|
"+make(chan<- string, (new - old))",
|
|
"+make(chan<- string, 7, 11)",
|
|
"+ new(map[int]int)",
|
|
"+make(chan<- int)",
|
|
"+make(chan<- int, (new - old))",
|
|
"+make(chan<- int, 5, 10)",
|
|
"+ new(map[string]string)",
|
|
" make(chan<- int)",
|
|
" make(chan<- int, (new - old))",
|
|
" make(chan<- int, 5, 10)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "b92d43e3295aa55df78f78e94135a9a3f42272e9..a2d11a1de8338efd481722b35339bfae956755ea"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-constructors-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
16
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
18
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '7' with '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '11' with '10'"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
14
|
|
],
|
|
"end": [
|
|
4,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
17
|
|
],
|
|
"end": [
|
|
4,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index 76b35ec..b8e9fef 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -1,7 +1,7 @@",
|
|
"-make(chan<- string)",
|
|
"-make(chan<- string, (new - old))",
|
|
"-make(chan<- string, 7, 11)",
|
|
"- new(map[int]int)",
|
|
"+make(chan<- int)",
|
|
"+make(chan<- int, (new - old))",
|
|
"+make(chan<- int, 5, 10)",
|
|
"+ new(map[string]string)",
|
|
" make(chan<- int)",
|
|
" make(chan<- int, (new - old))",
|
|
" make(chan<- int, 5, 10)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "a2d11a1de8338efd481722b35339bfae956755ea..98b609bb08e23dee807f686aa6d6da8e9623a9e0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-constructors-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
18
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '5' with '7'"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '10' with '11'"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
17
|
|
],
|
|
"end": [
|
|
4,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
14
|
|
],
|
|
"end": [
|
|
4,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index b8e9fef..76b35ec 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -1,7 +1,7 @@",
|
|
"-make(chan<- int)",
|
|
"-make(chan<- int, (new - old))",
|
|
"-make(chan<- int, 5, 10)",
|
|
"- new(map[string]string)",
|
|
"+make(chan<- string)",
|
|
"+make(chan<- string, (new - old))",
|
|
"+make(chan<- string, 7, 11)",
|
|
"+ new(map[int]int)",
|
|
" make(chan<- int)",
|
|
" make(chan<- int, (new - old))",
|
|
" make(chan<- int, 5, 10)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "98b609bb08e23dee807f686aa6d6da8e9623a9e0..4a75ed6a0ecf9860947b468f38c4dc2805e992d9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-constructors-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
22
|
|
],
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
28
|
|
],
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '7'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '11'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
14
|
|
],
|
|
"end": [
|
|
4,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
13
|
|
],
|
|
"end": [
|
|
5,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
13
|
|
],
|
|
"end": [
|
|
6,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
19
|
|
],
|
|
"end": [
|
|
6,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
25
|
|
],
|
|
"end": [
|
|
6,
|
|
28
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
13
|
|
],
|
|
"end": [
|
|
7,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
18
|
|
],
|
|
"end": [
|
|
7,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
21
|
|
],
|
|
"end": [
|
|
7,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '10'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
2
|
|
],
|
|
"end": [
|
|
8,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
10
|
|
],
|
|
"end": [
|
|
8,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
17
|
|
],
|
|
"end": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
13
|
|
],
|
|
"end": [
|
|
5,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
13
|
|
],
|
|
"end": [
|
|
6,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
22
|
|
],
|
|
"end": [
|
|
6,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
28
|
|
],
|
|
"end": [
|
|
6,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
13
|
|
],
|
|
"end": [
|
|
7,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
21
|
|
],
|
|
"end": [
|
|
7,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '7'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
24
|
|
],
|
|
"end": [
|
|
7,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '11'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
2
|
|
],
|
|
"end": [
|
|
8,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
10
|
|
],
|
|
"end": [
|
|
8,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
14
|
|
],
|
|
"end": [
|
|
8,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'int' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index 76b35ec..12f44d5 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -1,12 +1,8 @@",
|
|
"-make(chan<- string)",
|
|
"-make(chan<- string, (new - old))",
|
|
"-make(chan<- string, 7, 11)",
|
|
"- new(map[int]int)",
|
|
"-make(chan<- int)",
|
|
"-make(chan<- int, (new - old))",
|
|
"-make(chan<- int, 5, 10)",
|
|
"- new(map[string]string)",
|
|
" make(chan<- int)",
|
|
" make(chan<- int, (new - old))",
|
|
" make(chan<- int, 5, 10)",
|
|
" new(map[string]string)",
|
|
"+make(chan<- string)",
|
|
"+make(chan<- string, (new - old))",
|
|
"+make(chan<- string, 7, 11)",
|
|
"+ new(map[int]int)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "4a75ed6a0ecf9860947b468f38c4dc2805e992d9..70df4e76b0cf759ada0b2c01b7e9d68199626826"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-constructors-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
19
|
|
],
|
|
"end": [
|
|
2,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
25
|
|
],
|
|
"end": [
|
|
2,
|
|
28
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
18
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '10'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
17
|
|
],
|
|
"end": [
|
|
4,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index 12f44d5..0720537 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -1,7 +1,3 @@",
|
|
"-make(chan<- int)",
|
|
"-make(chan<- int, (new - old))",
|
|
"-make(chan<- int, 5, 10)",
|
|
"- new(map[string]string)",
|
|
" make(chan<- string)",
|
|
" make(chan<- string, (new - old))",
|
|
" make(chan<- string, 7, 11)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "70df4e76b0cf759ada0b2c01b7e9d68199626826..d5fd5730c50a06c8c248b4555c4d181043a50ee5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-constructors-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructors.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
22
|
|
],
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
28
|
|
],
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'old' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'make' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
13
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'string' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '7'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '11'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
10
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
14
|
|
],
|
|
"end": [
|
|
4,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'int' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructors.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructors.go b/constructors.go",
|
|
"index 0720537..e69de29 100644",
|
|
"--- a/constructors.go",
|
|
"+++ b/constructors.go",
|
|
"@@ -1,4 +0,0 @@",
|
|
"-make(chan<- string)",
|
|
"-make(chan<- string, (new - old))",
|
|
"-make(chan<- string, 7, 11)",
|
|
"- new(map[int]int)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "d5fd5730c50a06c8c248b4555c4d181043a50ee5..1b4a35f87087d1718b97eb8e7ea5f49b5ca174ec"
|
|
}]
|