1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/ruby/math-assignment.json

647 lines
20 KiB
JSON
Raw Normal View History

2016-10-24 20:43:31 +03:00
[{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-insert-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "3c53c22b9707f1ec06bfdbe21093d2bf46996a6f",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "1cb0c2832f46815909027bf1f539c8c052be8348"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-replacement-insert-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
2,
2016-10-24 20:43:31 +03:00
1
],
"end": [
2,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
2016-10-24 20:43:31 +03:00
],
"end": [
3,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
2016-10-24 20:43:31 +03:00
"start": [
4,
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
6,
2016-10-24 20:43:31 +03:00
1
],
"end": [
6,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
2016-10-24 20:43:31 +03:00
"start": [
7,
1
2016-10-24 20:43:31 +03:00
],
"end": [
7,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
2016-10-24 20:43:31 +03:00
8
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "1cb0c2832f46815909027bf1f539c8c052be8348",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "1915d0bed722cf0fb3f48687e7fd6a3a465150cb"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-delete-insert-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
2016-11-02 20:52:40 +03:00
"summary": "Replaced '2' with '1' in the math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "1915d0bed722cf0fb3f48687e7fd6a3a465150cb",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "85b2f4875d8f977715bd270ae23d2816564e28f5"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-replacement-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
2016-11-02 20:52:40 +03:00
"summary": "Replaced '1' with '2' in the math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "85b2f4875d8f977715bd270ae23d2816564e28f5",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "bf5921c4c0ed67e905e3d2993d30627a16c414a9"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-delete-replacement-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Deleted the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
3,
1
2016-10-24 20:43:31 +03:00
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
4,
2016-10-24 20:43:31 +03:00
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
6,
1
2016-10-24 20:43:31 +03:00
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
6,
2016-10-24 20:43:31 +03:00
1
],
"end": [
6,
6
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "bf5921c4c0ed67e905e3d2993d30627a16c414a9",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "110fbe6761e409c79af0373b5e63c7e381f3c4aa"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-delete-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
1,
2016-10-24 20:43:31 +03:00
1
],
"end": [
1,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
2,
2016-10-24 20:43:31 +03:00
1
],
"end": [
2,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
2016-10-24 20:43:31 +03:00
],
"end": [
3,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
4,
1
2016-10-24 20:43:31 +03:00
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "110fbe6761e409c79af0373b5e63c7e381f3c4aa",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "4b5185e4e5b5b24efcb82e67acf0cf1e3fdd7147"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-math-assignment-delete-rest-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"math-assignment.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"math-assignment.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-02 20:52:40 +03:00
"sha1": "4b5185e4e5b5b24efcb82e67acf0cf1e3fdd7147",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "3c8ecb84c45ce828f5cd9aca26ae38273556fe8e"
2016-10-24 20:43:31 +03:00
}]