mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
348 lines
10 KiB
JSON
348 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-bitwise-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i >> j' bitwise operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index e69de29..021cf6a 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+i >> j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "5edf134e2ccb0fa1cd27b2e07b4279575f1a5f0d..e2e6f5b9a61fa806befb17711cf3ae52dd20f725"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-bitwise-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i >> k' bitwise operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i >> j' bitwise operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index 021cf6a..3e0b6c1 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+i >> k;",
|
|
"+i >> j;",
|
|
" i >> j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "e2e6f5b9a61fa806befb17711cf3ae52dd20f725..de455af0e3ab990d8f20a4555d4bf28324551ed0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-bitwise-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'k' identifier with the 'j' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index 3e0b6c1..18853d1 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-i >> k;",
|
|
"+i >> j;",
|
|
" i >> j;",
|
|
" i >> j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "de455af0e3ab990d8f20a4555d4bf28324551ed0..59f5fd5cc14501c063c3ec3b9563503a4f22537b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-bitwise-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'j' identifier with the 'k' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index 18853d1..3e0b6c1 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-i >> j;",
|
|
"+i >> k;",
|
|
" i >> j;",
|
|
" i >> j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "59f5fd5cc14501c063c3ec3b9563503a4f22537b..24328d0f069d5e61a5926bedf6e0a074361d7477"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-bitwise-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i >> k' bitwise operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i >> j' bitwise operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i >> k' bitwise operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index 3e0b6c1..ee7d8de 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-i >> k;",
|
|
"-i >> j;",
|
|
" i >> j;",
|
|
"+i >> k;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "24328d0f069d5e61a5926bedf6e0a074361d7477..083807f60ce4fd39ee7612cb97e2dc2351a09203"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-bitwise-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i >> j' bitwise operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index ee7d8de..2800c8c 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-i >> j;",
|
|
" i >> k;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "083807f60ce4fd39ee7612cb97e2dc2351a09203..1bceab9d521db6e74ccfca50dae11d9ac030a4bc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-bitwise-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"bitwise-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i >> k' bitwise operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"bitwise-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
|
"index 2800c8c..e69de29 100644",
|
|
"--- a/bitwise-operator.js",
|
|
"+++ b/bitwise-operator.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-i >> k;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "1bceab9d521db6e74ccfca50dae11d9ac030a4bc..4e47562dd59646a6c6c55ab138660495394bc5c9"
|
|
}]
|