From a4dfe48ff4e710fbe6a2a638ea63af19c431405e Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Fri, 14 Oct 2016 13:39:57 -0500 Subject: [PATCH 01/29] Output an import statement's expressions --- src/DiffSummary.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index aedce0b16..0961144e2 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -218,7 +218,8 @@ toTermName source term = case unwrap term of S.Comment a -> toCategoryName a S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term) S.Module identifier _ -> toTermName' identifier - S.Import identifier _ -> toTermName' identifier + S.Import identifier [] -> toTermName' identifier + S.Import identifier expr -> intercalate ", " (termNameFromSource <$> expr) <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From dfc11385d853c94faf1b6189fef18c5227aa04bf Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Fri, 14 Oct 2016 13:40:07 -0500 Subject: [PATCH 02/29] ++tests --- .../javascript/anonymous-function.json | 28 +- .../anonymous-parameterless-function.json | 28 +- .../diff-summaries/javascript/array.json | 28 +- .../javascript/arrow-function.json | 28 +- .../diff-summaries/javascript/assignment.json | 28 +- .../javascript/bitwise-operator.json | 28 +- .../javascript/boolean-operator.json | 28 +- .../javascript/chained-callbacks.json | 28 +- .../javascript/chained-property-access.json | 28 +- .../diff-summaries/javascript/class.json | 28 +- .../javascript/comma-operator.json | 28 +- .../diff-summaries/javascript/comment.json | 28 +- .../javascript/constructor-call.json | 28 +- .../javascript/delete-operator.json | 28 +- .../javascript/do-while-statement.json | 28 +- .../diff-summaries/javascript/export.json | 2557 +++++++++++++++++ .../diff-summaries/javascript/false.json | 28 +- .../javascript/for-in-statement.json | 28 +- .../for-loop-with-in-statement.json | 28 +- .../javascript/for-of-statement.json | 28 +- .../javascript/for-statement.json | 28 +- .../javascript/function-call-args.json | 28 +- .../javascript/function-call.json | 28 +- .../diff-summaries/javascript/function.json | 28 +- .../javascript/generator-function.json | 28 +- .../diff-summaries/javascript/identifier.json | 28 +- .../diff-summaries/javascript/if-else.json | 28 +- test/corpus/diff-summaries/javascript/if.json | 28 +- .../diff-summaries/javascript/import.json | 188 +- .../javascript/math-assignment-operator.json | 28 +- .../javascript/math-operator.json | 28 +- .../javascript/member-access-assignment.json | 28 +- .../javascript/member-access.json | 28 +- .../javascript/method-call.json | 28 +- .../javascript/named-function.json | 28 +- .../nested-do-while-in-function.json | 2493 +--------------- .../javascript/nested-functions.json | 28 +- .../diff-summaries/javascript/null.json | 28 +- .../diff-summaries/javascript/number.json | 28 +- .../javascript/object-with-methods.json | 28 +- .../diff-summaries/javascript/object.json | 28 +- .../diff-summaries/javascript/regex.json | 28 +- .../javascript/relational-operator.json | 28 +- .../javascript/return-statement.json | 28 +- .../diff-summaries/javascript/string.json | 28 +- .../subscript-access-assignment.json | 28 +- .../javascript/subscript-access-string.json | 28 +- .../javascript/subscript-access-variable.json | 28 +- .../javascript/switch-statement.json | 28 +- .../javascript/template-string.json | 28 +- .../diff-summaries/javascript/ternary.json | 28 +- .../javascript/this-expression.json | 28 +- .../javascript/throw-statement.json | 28 +- .../diff-summaries/javascript/true.json | 28 +- .../javascript/try-statement.json | 28 +- .../javascript/type-operator.json | 28 +- .../diff-summaries/javascript/undefined.json | 28 +- .../javascript/var-declaration.json | 28 +- .../diff-summaries/javascript/variable.json | 28 +- .../javascript/void-operator.json | 28 +- .../javascript/while-statement.json | 28 +- test/corpus/generated/if-else.json | 16 + test/corpus/generated/import.json | 16 + test/corpus/generated/javascript.json | 3 +- test/corpus/repos/javascript | 2 +- 65 files changed, 3635 insertions(+), 3264 deletions(-) create mode 100644 test/corpus/diff-summaries/javascript/export.json create mode 100644 test/corpus/generated/if-else.json create mode 100644 test/corpus/generated/import.json diff --git a/test/corpus/diff-summaries/javascript/anonymous-function.json b/test/corpus/diff-summaries/javascript/anonymous-function.json index 6c47651d0..97435a44b 100644 --- a/test/corpus/diff-summaries/javascript/anonymous-function.json +++ b/test/corpus/diff-summaries/javascript/anonymous-function.json @@ -25,9 +25,9 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "f0cdd4a1bb8a2f6eedc0e6b0ef94ac2047013a01", + "sha1": "70801fe02e1669714037fa964db6b89a852a2403", "gitDir": "test/corpus/repos/javascript", - "sha2": "d533a683b7aeac54a564659a758db8eaeef2d71f" + "sha2": "1f747c53f8f2f79467c0af9a8000e0715a6d0634" } ,{ "testCaseDescription": "javascript-anonymous-function-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "d533a683b7aeac54a564659a758db8eaeef2d71f", + "sha1": "1f747c53f8f2f79467c0af9a8000e0715a6d0634", "gitDir": "test/corpus/repos/javascript", - "sha2": "aa9d13e76b7ff4639ba2837f1a26cc41ab00018a" + "sha2": "d1dbcedb1af571b6d5658a0d8fd0eddcc70de998" } ,{ "testCaseDescription": "javascript-anonymous-function-delete-insert-test", @@ -195,9 +195,9 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "aa9d13e76b7ff4639ba2837f1a26cc41ab00018a", + "sha1": "d1dbcedb1af571b6d5658a0d8fd0eddcc70de998", "gitDir": "test/corpus/repos/javascript", - "sha2": "c6d8bbbcfc272d3b5cb6a7e77a2cfa1c629ea039" + "sha2": "0ade6170ad94891d6338e4bdf0417edd10f6386e" } ,{ "testCaseDescription": "javascript-anonymous-function-replacement-test", @@ -319,9 +319,9 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "c6d8bbbcfc272d3b5cb6a7e77a2cfa1c629ea039", + "sha1": "0ade6170ad94891d6338e4bdf0417edd10f6386e", "gitDir": "test/corpus/repos/javascript", - "sha2": "85c3ad13bfa904dae6bed9df201852fa2b46096b" + "sha2": "787c09ee5a2231dcb8da14119c84aa4666fde105" } ,{ "testCaseDescription": "javascript-anonymous-function-delete-replacement-test", @@ -380,9 +380,9 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "85c3ad13bfa904dae6bed9df201852fa2b46096b", + "sha1": "787c09ee5a2231dcb8da14119c84aa4666fde105", "gitDir": "test/corpus/repos/javascript", - "sha2": "4a2aceba7c9b5f4cbee2ce85b915e888a855f4fb" + "sha2": "c9beb0b04ab27699191627b5ba480e20ddefe9d9" } ,{ "testCaseDescription": "javascript-anonymous-function-delete-test", @@ -411,9 +411,9 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "4a2aceba7c9b5f4cbee2ce85b915e888a855f4fb", + "sha1": "c9beb0b04ab27699191627b5ba480e20ddefe9d9", "gitDir": "test/corpus/repos/javascript", - "sha2": "a812707dd9bd9b4cb3174beed3be1a7e4bc32aef" + "sha2": "10d138cd14f41056a0cae752e58f31f120cf823d" } ,{ "testCaseDescription": "javascript-anonymous-function-delete-rest-test", @@ -442,7 +442,7 @@ "filePaths": [ "anonymous-function.js" ], - "sha1": "a812707dd9bd9b4cb3174beed3be1a7e4bc32aef", + "sha1": "10d138cd14f41056a0cae752e58f31f120cf823d", "gitDir": "test/corpus/repos/javascript", - "sha2": "a008777b0de863298ff4e36e8462d5cb7e9b21e4" + "sha2": "45d448bfd33f1ae99cfb456e0406aacf8a062bae" }] diff --git a/test/corpus/diff-summaries/javascript/anonymous-parameterless-function.json b/test/corpus/diff-summaries/javascript/anonymous-parameterless-function.json index d5542bc14..4cd2b65c0 100644 --- a/test/corpus/diff-summaries/javascript/anonymous-parameterless-function.json +++ b/test/corpus/diff-summaries/javascript/anonymous-parameterless-function.json @@ -25,9 +25,9 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "fac79fd0ad66be230a6b21b14f15497e96d208a9", + "sha1": "45d448bfd33f1ae99cfb456e0406aacf8a062bae", "gitDir": "test/corpus/repos/javascript", - "sha2": "4fba9eb96ad3afbfd85fbd8b7e7613f864fc55ed" + "sha2": "aec6e727561aee130c90b90fa6540d97832a3482" } ,{ "testCaseDescription": "javascript-anonymous-parameterless-function-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "4fba9eb96ad3afbfd85fbd8b7e7613f864fc55ed", + "sha1": "aec6e727561aee130c90b90fa6540d97832a3482", "gitDir": "test/corpus/repos/javascript", - "sha2": "79669052279961631d3027a729064f9a22c364a5" + "sha2": "fb1355e502b99d6a88903728f06d89d59304a7bd" } ,{ "testCaseDescription": "javascript-anonymous-parameterless-function-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "79669052279961631d3027a729064f9a22c364a5", + "sha1": "fb1355e502b99d6a88903728f06d89d59304a7bd", "gitDir": "test/corpus/repos/javascript", - "sha2": "ba512adc8a9d2818cf8fcfe8f089986210a66b4c" + "sha2": "3eab315971fa3f78f733c025c8beb05cb82457c2" } ,{ "testCaseDescription": "javascript-anonymous-parameterless-function-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "ba512adc8a9d2818cf8fcfe8f089986210a66b4c", + "sha1": "3eab315971fa3f78f733c025c8beb05cb82457c2", "gitDir": "test/corpus/repos/javascript", - "sha2": "3c6961026667262b29b8a82213ae0743899ebf56" + "sha2": "432758e6abd2f308e1944d48ec1cefbd4f8ba924" } ,{ "testCaseDescription": "javascript-anonymous-parameterless-function-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "3c6961026667262b29b8a82213ae0743899ebf56", + "sha1": "432758e6abd2f308e1944d48ec1cefbd4f8ba924", "gitDir": "test/corpus/repos/javascript", - "sha2": "19d23e8b95dcb9fffc8edb8a83edf391720de0dc" + "sha2": "ac22e7129f5ddecf730ac4431dd41877aa8dbfd2" } ,{ "testCaseDescription": "javascript-anonymous-parameterless-function-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "19d23e8b95dcb9fffc8edb8a83edf391720de0dc", + "sha1": "ac22e7129f5ddecf730ac4431dd41877aa8dbfd2", "gitDir": "test/corpus/repos/javascript", - "sha2": "fab985aa953a201f8fbfe707c2630700be4be147" + "sha2": "1fd170dc95296ebcf67244deb59a3a0b363a0d4a" } ,{ "testCaseDescription": "javascript-anonymous-parameterless-function-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "anonymous-parameterless-function.js" ], - "sha1": "fab985aa953a201f8fbfe707c2630700be4be147", + "sha1": "1fd170dc95296ebcf67244deb59a3a0b363a0d4a", "gitDir": "test/corpus/repos/javascript", - "sha2": "d11654dcce5e88a83d9b45db32d668f12c7a0eef" + "sha2": "c75fb9316ad39a4eb2d3eb70fa688a22450f507d" }] diff --git a/test/corpus/diff-summaries/javascript/array.json b/test/corpus/diff-summaries/javascript/array.json index a06eb419f..479af818c 100644 --- a/test/corpus/diff-summaries/javascript/array.json +++ b/test/corpus/diff-summaries/javascript/array.json @@ -25,9 +25,9 @@ "filePaths": [ "array.js" ], - "sha1": "86c7257a797809a91b70c7762b2747d9df1884c8", + "sha1": "2e011ecd3b15a3f3ed45a39f96dd8534d0714b88", "gitDir": "test/corpus/repos/javascript", - "sha2": "ab7db7a02a27925161e4363033c29e16619409e8" + "sha2": "4e67638cf129c7270a16bf4e6b957be7daf08a96" } ,{ "testCaseDescription": "javascript-array-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "array.js" ], - "sha1": "ab7db7a02a27925161e4363033c29e16619409e8", + "sha1": "4e67638cf129c7270a16bf4e6b957be7daf08a96", "gitDir": "test/corpus/repos/javascript", - "sha2": "1d8da49487d3fe7d15f54a2523adf64aaed0b3ff" + "sha2": "08330a38c175dbf2a50bafd600950aaaf537dd6a" } ,{ "testCaseDescription": "javascript-array-delete-insert-test", @@ -102,9 +102,9 @@ "filePaths": [ "array.js" ], - "sha1": "1d8da49487d3fe7d15f54a2523adf64aaed0b3ff", + "sha1": "08330a38c175dbf2a50bafd600950aaaf537dd6a", "gitDir": "test/corpus/repos/javascript", - "sha2": "1002b843b25db730035b69a5ff4d59a06c9c9142" + "sha2": "baad9848daac3424442d4c96b551efecba2c9d74" } ,{ "testCaseDescription": "javascript-array-replacement-test", @@ -133,9 +133,9 @@ "filePaths": [ "array.js" ], - "sha1": "1002b843b25db730035b69a5ff4d59a06c9c9142", + "sha1": "baad9848daac3424442d4c96b551efecba2c9d74", "gitDir": "test/corpus/repos/javascript", - "sha2": "8e2bb26941fb12dacfe99991af6a42e7f95ecaf2" + "sha2": "f6f9bb85c5217e476e0b659f08019de6a75e5d88" } ,{ "testCaseDescription": "javascript-array-delete-replacement-test", @@ -194,9 +194,9 @@ "filePaths": [ "array.js" ], - "sha1": "8e2bb26941fb12dacfe99991af6a42e7f95ecaf2", + "sha1": "f6f9bb85c5217e476e0b659f08019de6a75e5d88", "gitDir": "test/corpus/repos/javascript", - "sha2": "1e59faf13834ab1d6ad04a6cf59b3e362063ae35" + "sha2": "e4a5c5332ee32b32d2bd96450afef7a10faf3d3f" } ,{ "testCaseDescription": "javascript-array-delete-test", @@ -225,9 +225,9 @@ "filePaths": [ "array.js" ], - "sha1": "1e59faf13834ab1d6ad04a6cf59b3e362063ae35", + "sha1": "e4a5c5332ee32b32d2bd96450afef7a10faf3d3f", "gitDir": "test/corpus/repos/javascript", - "sha2": "95a410714747a5327701b8584d3ad85127ca0705" + "sha2": "ce44d5b2951ac99732f60ad570e81aa50c15a54b" } ,{ "testCaseDescription": "javascript-array-delete-rest-test", @@ -256,7 +256,7 @@ "filePaths": [ "array.js" ], - "sha1": "95a410714747a5327701b8584d3ad85127ca0705", + "sha1": "ce44d5b2951ac99732f60ad570e81aa50c15a54b", "gitDir": "test/corpus/repos/javascript", - "sha2": "464d43e2c288ee6bd17e3396850befa470fd4b07" + "sha2": "86bc815338f38ac0b5c22bc2d78e64d445a1ee9d" }] diff --git a/test/corpus/diff-summaries/javascript/arrow-function.json b/test/corpus/diff-summaries/javascript/arrow-function.json index 7faa4d6a5..44e7da41d 100644 --- a/test/corpus/diff-summaries/javascript/arrow-function.json +++ b/test/corpus/diff-summaries/javascript/arrow-function.json @@ -25,9 +25,9 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "89181d843c19462fa79a37e0a99c5bee43558772", + "sha1": "af61bc777c8d895654d3d11c775df42353147dd6", "gitDir": "test/corpus/repos/javascript", - "sha2": "a59fef8e113ca886e2f83021d9429ad0988ae426" + "sha2": "d465aa4baaae24c5cc5c87415c785edf36034a2f" } ,{ "testCaseDescription": "javascript-arrow-function-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "a59fef8e113ca886e2f83021d9429ad0988ae426", + "sha1": "d465aa4baaae24c5cc5c87415c785edf36034a2f", "gitDir": "test/corpus/repos/javascript", - "sha2": "bfdc52dbc31f45e8c770621ccf9c0921536fae52" + "sha2": "271481578b4deecc5eea92c049502e8904e32a5d" } ,{ "testCaseDescription": "javascript-arrow-function-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "bfdc52dbc31f45e8c770621ccf9c0921536fae52", + "sha1": "271481578b4deecc5eea92c049502e8904e32a5d", "gitDir": "test/corpus/repos/javascript", - "sha2": "109741f827869e6c42bdd401edacd6501fe51404" + "sha2": "f70bbaadeb3dc72ebfc5c82e9f4cf54d4de03e72" } ,{ "testCaseDescription": "javascript-arrow-function-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "109741f827869e6c42bdd401edacd6501fe51404", + "sha1": "f70bbaadeb3dc72ebfc5c82e9f4cf54d4de03e72", "gitDir": "test/corpus/repos/javascript", - "sha2": "6ffec51dfd0b94f36b6e4a90fc17492ca465e81b" + "sha2": "9246a597725083ffdc01ce97b88b6b3705162b76" } ,{ "testCaseDescription": "javascript-arrow-function-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "6ffec51dfd0b94f36b6e4a90fc17492ca465e81b", + "sha1": "9246a597725083ffdc01ce97b88b6b3705162b76", "gitDir": "test/corpus/repos/javascript", - "sha2": "333092f88dd4c057c4444d6dda4854c5d0b33224" + "sha2": "ede8acbe6094e36a25fb61d87681ec452f4ad7d2" } ,{ "testCaseDescription": "javascript-arrow-function-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "333092f88dd4c057c4444d6dda4854c5d0b33224", + "sha1": "ede8acbe6094e36a25fb61d87681ec452f4ad7d2", "gitDir": "test/corpus/repos/javascript", - "sha2": "2806e6df308b06d3c6adc93bd54beaaf13d121f9" + "sha2": "d98846685eb068e39e22fbf7e9146af31a8cddad" } ,{ "testCaseDescription": "javascript-arrow-function-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "arrow-function.js" ], - "sha1": "2806e6df308b06d3c6adc93bd54beaaf13d121f9", + "sha1": "d98846685eb068e39e22fbf7e9146af31a8cddad", "gitDir": "test/corpus/repos/javascript", - "sha2": "0cc29cda5e56293f27ae0d77a45c59b5053014b5" + "sha2": "b4e9187be7ba27eddc36a48633b968a96c1f1f31" }] diff --git a/test/corpus/diff-summaries/javascript/assignment.json b/test/corpus/diff-summaries/javascript/assignment.json index b804d3834..a64551f3d 100644 --- a/test/corpus/diff-summaries/javascript/assignment.json +++ b/test/corpus/diff-summaries/javascript/assignment.json @@ -25,9 +25,9 @@ "filePaths": [ "assignment.js" ], - "sha1": "873f900a25ee37c895a4ee6fa350c9b94f53be99", + "sha1": "40b6f1311c0403515c07e8bfe680237a658094fa", "gitDir": "test/corpus/repos/javascript", - "sha2": "cb393e6e14c8599a66dca72d35a3ec977ea3b8b8" + "sha2": "f74c79a78e2948249b8071f5e2e07128a9b969fc" } ,{ "testCaseDescription": "javascript-assignment-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "assignment.js" ], - "sha1": "cb393e6e14c8599a66dca72d35a3ec977ea3b8b8", + "sha1": "f74c79a78e2948249b8071f5e2e07128a9b969fc", "gitDir": "test/corpus/repos/javascript", - "sha2": "6ddbeca055f9d8c7b34fb74327b93ded8cc3c0d6" + "sha2": "35ceae781e7f28a56b81e20d860e95d06f3333e6" } ,{ "testCaseDescription": "javascript-assignment-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "assignment.js" ], - "sha1": "6ddbeca055f9d8c7b34fb74327b93ded8cc3c0d6", + "sha1": "35ceae781e7f28a56b81e20d860e95d06f3333e6", "gitDir": "test/corpus/repos/javascript", - "sha2": "9afe58d40ec58f0f4faad229e134f3ebe8bb8762" + "sha2": "ca5d38d28e91a00efbd015290a0211272174241e" } ,{ "testCaseDescription": "javascript-assignment-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "assignment.js" ], - "sha1": "9afe58d40ec58f0f4faad229e134f3ebe8bb8762", + "sha1": "ca5d38d28e91a00efbd015290a0211272174241e", "gitDir": "test/corpus/repos/javascript", - "sha2": "a1996cab3d96f7a31e4b583642d8cbdb9bd908bc" + "sha2": "7d901651262d74cfca0dfc81c44c7a86248f3cc2" } ,{ "testCaseDescription": "javascript-assignment-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "assignment.js" ], - "sha1": "a1996cab3d96f7a31e4b583642d8cbdb9bd908bc", + "sha1": "7d901651262d74cfca0dfc81c44c7a86248f3cc2", "gitDir": "test/corpus/repos/javascript", - "sha2": "fb2003b1876d8b3325e2c4c9a1494119b8616084" + "sha2": "63e9e29bb4df3e86dcbc12ded86f488ef6080510" } ,{ "testCaseDescription": "javascript-assignment-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "assignment.js" ], - "sha1": "fb2003b1876d8b3325e2c4c9a1494119b8616084", + "sha1": "63e9e29bb4df3e86dcbc12ded86f488ef6080510", "gitDir": "test/corpus/repos/javascript", - "sha2": "f1cbe2562e84bf2df2e07b2927235f3441fa790d" + "sha2": "58fc119da33a4358f2a849163daff5507d83b460" } ,{ "testCaseDescription": "javascript-assignment-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "assignment.js" ], - "sha1": "f1cbe2562e84bf2df2e07b2927235f3441fa790d", + "sha1": "58fc119da33a4358f2a849163daff5507d83b460", "gitDir": "test/corpus/repos/javascript", - "sha2": "06498bf390f8e2481c9c1e38206d346338d60321" + "sha2": "57057e16ba96f294605ced40a286c5e5a70a4399" }] diff --git a/test/corpus/diff-summaries/javascript/bitwise-operator.json b/test/corpus/diff-summaries/javascript/bitwise-operator.json index 7611d156f..a6e162f1d 100644 --- a/test/corpus/diff-summaries/javascript/bitwise-operator.json +++ b/test/corpus/diff-summaries/javascript/bitwise-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "6405487c19dca6bdeeefb157771c0ab72168ff0a", + "sha1": "e3f833dfc51fcd9200d66c5e81cdf2de69abb9d8", "gitDir": "test/corpus/repos/javascript", - "sha2": "4acad2fb31a24d63ee57cec4e21162bcb48f006a" + "sha2": "423c60dc65ec3e37768c8eb392aca6a2640444d2" } ,{ "testCaseDescription": "javascript-bitwise-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "4acad2fb31a24d63ee57cec4e21162bcb48f006a", + "sha1": "423c60dc65ec3e37768c8eb392aca6a2640444d2", "gitDir": "test/corpus/repos/javascript", - "sha2": "4524ca60584238ce1599a68d6e077066451c0a63" + "sha2": "35d49d77da2b8cb4bb2ae383e91ae64a7fb72e37" } ,{ "testCaseDescription": "javascript-bitwise-operator-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "4524ca60584238ce1599a68d6e077066451c0a63", + "sha1": "35d49d77da2b8cb4bb2ae383e91ae64a7fb72e37", "gitDir": "test/corpus/repos/javascript", - "sha2": "a97243b6aee57967867a0af761e1b00288de3cc2" + "sha2": "728541b362df53dee75728e4bc777881024393b8" } ,{ "testCaseDescription": "javascript-bitwise-operator-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "a97243b6aee57967867a0af761e1b00288de3cc2", + "sha1": "728541b362df53dee75728e4bc777881024393b8", "gitDir": "test/corpus/repos/javascript", - "sha2": "bc2270acd60dacf6466ca623706b8ebb8cc34c79" + "sha2": "0c5fc4cfc696579b6f9bf2d81c2e998396be0a6d" } ,{ "testCaseDescription": "javascript-bitwise-operator-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "bc2270acd60dacf6466ca623706b8ebb8cc34c79", + "sha1": "0c5fc4cfc696579b6f9bf2d81c2e998396be0a6d", "gitDir": "test/corpus/repos/javascript", - "sha2": "ca7e1a44daaab78981c2695bea42ea4043d163bc" + "sha2": "5ec38c4f7db4d5c7539ce16bf00cb97cc3eafc6d" } ,{ "testCaseDescription": "javascript-bitwise-operator-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "ca7e1a44daaab78981c2695bea42ea4043d163bc", + "sha1": "5ec38c4f7db4d5c7539ce16bf00cb97cc3eafc6d", "gitDir": "test/corpus/repos/javascript", - "sha2": "a3f0ef05041ee17ec55bb62a4125f34ece184e72" + "sha2": "8502f6d6266a4e72c44a0abe73d11521e36eeabd" } ,{ "testCaseDescription": "javascript-bitwise-operator-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "bitwise-operator.js" ], - "sha1": "a3f0ef05041ee17ec55bb62a4125f34ece184e72", + "sha1": "8502f6d6266a4e72c44a0abe73d11521e36eeabd", "gitDir": "test/corpus/repos/javascript", - "sha2": "96871f5c2ef2b14860d405df34a60d10e9278c30" + "sha2": "e6555d14408de30d90a7b79e4d091182ed784144" }] diff --git a/test/corpus/diff-summaries/javascript/boolean-operator.json b/test/corpus/diff-summaries/javascript/boolean-operator.json index af480a537..1e0e3a693 100644 --- a/test/corpus/diff-summaries/javascript/boolean-operator.json +++ b/test/corpus/diff-summaries/javascript/boolean-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "5ac535331f7c6e2026742e53545ce76770bd30f3", + "sha1": "f18430c0e1b243d84f9119ec7d6109a0dadcb359", "gitDir": "test/corpus/repos/javascript", - "sha2": "f4e641288145358937e82afca9a4c72232c201e0" + "sha2": "174360733d084d00b5df70a022f1cb9aebd3d2d9" } ,{ "testCaseDescription": "javascript-boolean-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "f4e641288145358937e82afca9a4c72232c201e0", + "sha1": "174360733d084d00b5df70a022f1cb9aebd3d2d9", "gitDir": "test/corpus/repos/javascript", - "sha2": "77a884c918532e1ddcc70b5099899f685118bfc5" + "sha2": "fe4a53da03bc7ad93f0f96cdb34469ecec073af5" } ,{ "testCaseDescription": "javascript-boolean-operator-delete-insert-test", @@ -84,9 +84,9 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "77a884c918532e1ddcc70b5099899f685118bfc5", + "sha1": "fe4a53da03bc7ad93f0f96cdb34469ecec073af5", "gitDir": "test/corpus/repos/javascript", - "sha2": "852273959471e8ae38343a0c4b4d6727339a9e57" + "sha2": "933e30c46dc9f36210f6fe124ed4163eb2712dac" } ,{ "testCaseDescription": "javascript-boolean-operator-replacement-test", @@ -97,9 +97,9 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "852273959471e8ae38343a0c4b4d6727339a9e57", + "sha1": "933e30c46dc9f36210f6fe124ed4163eb2712dac", "gitDir": "test/corpus/repos/javascript", - "sha2": "8a40c8b2bf887c1203c3977f4cb09abce620af9c" + "sha2": "f728c9c335a59fd7fc244d392edbfdee80b16949" } ,{ "testCaseDescription": "javascript-boolean-operator-delete-replacement-test", @@ -128,9 +128,9 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "8a40c8b2bf887c1203c3977f4cb09abce620af9c", + "sha1": "f728c9c335a59fd7fc244d392edbfdee80b16949", "gitDir": "test/corpus/repos/javascript", - "sha2": "f3db14177678647bee4c8f16a91d3eb499286a64" + "sha2": "065e8047e655db0a9857a2f70d4ad453b6c5a0a5" } ,{ "testCaseDescription": "javascript-boolean-operator-delete-test", @@ -159,9 +159,9 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "f3db14177678647bee4c8f16a91d3eb499286a64", + "sha1": "065e8047e655db0a9857a2f70d4ad453b6c5a0a5", "gitDir": "test/corpus/repos/javascript", - "sha2": "a127d15b263d9b886984ee00fc15698b5f5f779c" + "sha2": "bf85f6a909b0bc64a50ef24954d1c1bde97ddf2c" } ,{ "testCaseDescription": "javascript-boolean-operator-delete-rest-test", @@ -190,7 +190,7 @@ "filePaths": [ "boolean-operator.js" ], - "sha1": "a127d15b263d9b886984ee00fc15698b5f5f779c", + "sha1": "bf85f6a909b0bc64a50ef24954d1c1bde97ddf2c", "gitDir": "test/corpus/repos/javascript", - "sha2": "1f4757af9e42772efc1ae6de3c59269c770a4da6" + "sha2": "e3f833dfc51fcd9200d66c5e81cdf2de69abb9d8" }] diff --git a/test/corpus/diff-summaries/javascript/chained-callbacks.json b/test/corpus/diff-summaries/javascript/chained-callbacks.json index 752fcf1e0..f6a623a31 100644 --- a/test/corpus/diff-summaries/javascript/chained-callbacks.json +++ b/test/corpus/diff-summaries/javascript/chained-callbacks.json @@ -25,9 +25,9 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "1865c22f682da9c138bef45e2387721bf89f8b2b", + "sha1": "181d9807930d201a183c1799b271ec7d6267a26d", "gitDir": "test/corpus/repos/javascript", - "sha2": "4993a06d31de2ee6e298a9976eb0543211a2e48a" + "sha2": "1af2906af6d949b4c5d5f6ceaa64df44470104e4" } ,{ "testCaseDescription": "javascript-chained-callbacks-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "4993a06d31de2ee6e298a9976eb0543211a2e48a", + "sha1": "1af2906af6d949b4c5d5f6ceaa64df44470104e4", "gitDir": "test/corpus/repos/javascript", - "sha2": "2e2c683a3463b8c2905fdb3805a09028e326f0c6" + "sha2": "f856a499264206367a551cebe58a4e4f67cc8007" } ,{ "testCaseDescription": "javascript-chained-callbacks-delete-insert-test", @@ -168,9 +168,9 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "2e2c683a3463b8c2905fdb3805a09028e326f0c6", + "sha1": "f856a499264206367a551cebe58a4e4f67cc8007", "gitDir": "test/corpus/repos/javascript", - "sha2": "9b71d27ed9e91daf4499ee22c858caddd7deb319" + "sha2": "105324cf7f7c16d0e74b689d04a2fc86bf5f0337" } ,{ "testCaseDescription": "javascript-chained-callbacks-replacement-test", @@ -265,9 +265,9 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "9b71d27ed9e91daf4499ee22c858caddd7deb319", + "sha1": "105324cf7f7c16d0e74b689d04a2fc86bf5f0337", "gitDir": "test/corpus/repos/javascript", - "sha2": "61004874a11330455392eb2b212a7536f7967afe" + "sha2": "a75cebf98525431d9bff8973722a47315fad481d" } ,{ "testCaseDescription": "javascript-chained-callbacks-delete-replacement-test", @@ -326,9 +326,9 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "61004874a11330455392eb2b212a7536f7967afe", + "sha1": "a75cebf98525431d9bff8973722a47315fad481d", "gitDir": "test/corpus/repos/javascript", - "sha2": "dfde43f0d95cbe1f88f9c81d6e39defae8a2f289" + "sha2": "19ecb71d42b69184d1aa796cd1f103d70815ff76" } ,{ "testCaseDescription": "javascript-chained-callbacks-delete-test", @@ -357,9 +357,9 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "dfde43f0d95cbe1f88f9c81d6e39defae8a2f289", + "sha1": "19ecb71d42b69184d1aa796cd1f103d70815ff76", "gitDir": "test/corpus/repos/javascript", - "sha2": "ca0b4715b7ec98cb02ba3984a73d0cdc3e8c030f" + "sha2": "cbe6e3eefef44bdee4618854e5436c6693da110f" } ,{ "testCaseDescription": "javascript-chained-callbacks-delete-rest-test", @@ -388,7 +388,7 @@ "filePaths": [ "chained-callbacks.js" ], - "sha1": "ca0b4715b7ec98cb02ba3984a73d0cdc3e8c030f", + "sha1": "cbe6e3eefef44bdee4618854e5436c6693da110f", "gitDir": "test/corpus/repos/javascript", - "sha2": "20c0101515fea6bdc19c425a3457aab307bb1afe" + "sha2": "367aef0cdd3bdd1e9bece657984d068d3dfa0841" }] diff --git a/test/corpus/diff-summaries/javascript/chained-property-access.json b/test/corpus/diff-summaries/javascript/chained-property-access.json index b8bd1faeb..8d783952f 100644 --- a/test/corpus/diff-summaries/javascript/chained-property-access.json +++ b/test/corpus/diff-summaries/javascript/chained-property-access.json @@ -25,9 +25,9 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "f9efef1bec9d9203920e566833e7c5340508b05d", + "sha1": "f90a3adaa2c74802e218415dbf5e97a2bc98edd6", "gitDir": "test/corpus/repos/javascript", - "sha2": "664a52df2195deea6960e9f08364a3b7356988a9" + "sha2": "47e35f990e572949549e96a1f0394c46d1b83457" } ,{ "testCaseDescription": "javascript-chained-property-access-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "664a52df2195deea6960e9f08364a3b7356988a9", + "sha1": "47e35f990e572949549e96a1f0394c46d1b83457", "gitDir": "test/corpus/repos/javascript", - "sha2": "9b3e7c4607a7f5fe0716473aad454ad3409a8ade" + "sha2": "976277ae0a88c56692c8f16fbf4835bfa38cb45f" } ,{ "testCaseDescription": "javascript-chained-property-access-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "9b3e7c4607a7f5fe0716473aad454ad3409a8ade", + "sha1": "976277ae0a88c56692c8f16fbf4835bfa38cb45f", "gitDir": "test/corpus/repos/javascript", - "sha2": "06d1e0b6477d2fe2e1ae67c621b3064188c70761" + "sha2": "8fd4f80abc4f79eb8013a84925a5ae67cd88342e" } ,{ "testCaseDescription": "javascript-chained-property-access-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "06d1e0b6477d2fe2e1ae67c621b3064188c70761", + "sha1": "8fd4f80abc4f79eb8013a84925a5ae67cd88342e", "gitDir": "test/corpus/repos/javascript", - "sha2": "06da0813d2316f6ffb986a4650ee32db29db2651" + "sha2": "2db392acb1f07efdde3d79a7287ce267c8353b7c" } ,{ "testCaseDescription": "javascript-chained-property-access-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "06da0813d2316f6ffb986a4650ee32db29db2651", + "sha1": "2db392acb1f07efdde3d79a7287ce267c8353b7c", "gitDir": "test/corpus/repos/javascript", - "sha2": "cd084e758faae97137c079f578ba6a8f2d440c4e" + "sha2": "79412c4439f3638bfd2cd55ac0d067253404782e" } ,{ "testCaseDescription": "javascript-chained-property-access-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "cd084e758faae97137c079f578ba6a8f2d440c4e", + "sha1": "79412c4439f3638bfd2cd55ac0d067253404782e", "gitDir": "test/corpus/repos/javascript", - "sha2": "3ab93ac03ad6b649b2e6d2c5bf010b7a9a59be14" + "sha2": "644f8f4ad6fb72187fcad570e5d6c6172f4ba2ee" } ,{ "testCaseDescription": "javascript-chained-property-access-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "chained-property-access.js" ], - "sha1": "3ab93ac03ad6b649b2e6d2c5bf010b7a9a59be14", + "sha1": "644f8f4ad6fb72187fcad570e5d6c6172f4ba2ee", "gitDir": "test/corpus/repos/javascript", - "sha2": "17e9074250852b119cf7a060b1ca98af0fe01386" + "sha2": "181d9807930d201a183c1799b271ec7d6267a26d" }] diff --git a/test/corpus/diff-summaries/javascript/class.json b/test/corpus/diff-summaries/javascript/class.json index 192e850f8..c707f800b 100644 --- a/test/corpus/diff-summaries/javascript/class.json +++ b/test/corpus/diff-summaries/javascript/class.json @@ -25,9 +25,9 @@ "filePaths": [ "class.js" ], - "sha1": "6c8fc6c071ee17be3212168ec8a7f28244c81b0e", + "sha1": "1687fbc8bd65353ada2371b087e39706dca32445", "gitDir": "test/corpus/repos/javascript", - "sha2": "1a5bb5adf0d34b92d2e476570ea712655a5f6dbf" + "sha2": "892b014468c1b6715f96775617a563dad96c8669" } ,{ "testCaseDescription": "javascript-class-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "class.js" ], - "sha1": "1a5bb5adf0d34b92d2e476570ea712655a5f6dbf", + "sha1": "892b014468c1b6715f96775617a563dad96c8669", "gitDir": "test/corpus/repos/javascript", - "sha2": "05b3b95138afdcc834a54e2e36a80279e1caadc9" + "sha2": "f9184a733a67b13b41a2b44160dc547f59a2af0a" } ,{ "testCaseDescription": "javascript-class-delete-insert-test", @@ -174,9 +174,9 @@ "filePaths": [ "class.js" ], - "sha1": "05b3b95138afdcc834a54e2e36a80279e1caadc9", + "sha1": "f9184a733a67b13b41a2b44160dc547f59a2af0a", "gitDir": "test/corpus/repos/javascript", - "sha2": "4fca91f083d66749ee24ec53470be3425c3056c1" + "sha2": "361b5260c3fa8a1d0065a5ab43df1df67cc84a5a" } ,{ "testCaseDescription": "javascript-class-replacement-test", @@ -277,9 +277,9 @@ "filePaths": [ "class.js" ], - "sha1": "4fca91f083d66749ee24ec53470be3425c3056c1", + "sha1": "361b5260c3fa8a1d0065a5ab43df1df67cc84a5a", "gitDir": "test/corpus/repos/javascript", - "sha2": "33448038d3c954bc41ca9cebe76a8515dcb73a8f" + "sha2": "51722ab39b8e1e9252c444566eb8352cae1064f6" } ,{ "testCaseDescription": "javascript-class-delete-replacement-test", @@ -338,9 +338,9 @@ "filePaths": [ "class.js" ], - "sha1": "33448038d3c954bc41ca9cebe76a8515dcb73a8f", + "sha1": "51722ab39b8e1e9252c444566eb8352cae1064f6", "gitDir": "test/corpus/repos/javascript", - "sha2": "b28ea56dba4e822a6f4ad5a0945f3bd47912dab4" + "sha2": "04ba0713087c4d698aa345091e64eb16a5697e31" } ,{ "testCaseDescription": "javascript-class-delete-test", @@ -369,9 +369,9 @@ "filePaths": [ "class.js" ], - "sha1": "b28ea56dba4e822a6f4ad5a0945f3bd47912dab4", + "sha1": "04ba0713087c4d698aa345091e64eb16a5697e31", "gitDir": "test/corpus/repos/javascript", - "sha2": "0cbd5489c6c2b88a8efdb104bc12b29f4ef6e7fa" + "sha2": "dfa72c8a38e310adfe9ecff859982b078f9da0c6" } ,{ "testCaseDescription": "javascript-class-delete-rest-test", @@ -400,7 +400,7 @@ "filePaths": [ "class.js" ], - "sha1": "0cbd5489c6c2b88a8efdb104bc12b29f4ef6e7fa", + "sha1": "dfa72c8a38e310adfe9ecff859982b078f9da0c6", "gitDir": "test/corpus/repos/javascript", - "sha2": "da9828689247082f15151bb277026ee62c845e79" + "sha2": "2e011ecd3b15a3f3ed45a39f96dd8534d0714b88" }] diff --git a/test/corpus/diff-summaries/javascript/comma-operator.json b/test/corpus/diff-summaries/javascript/comma-operator.json index 4f3661a53..2fee7aa37 100644 --- a/test/corpus/diff-summaries/javascript/comma-operator.json +++ b/test/corpus/diff-summaries/javascript/comma-operator.json @@ -40,9 +40,9 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "c472c259ecd41e6617d5cbfbc65b2bd86a3e142c", + "sha1": "e64ae9d5e5e9c36c61d46fc5a3205f970d0356d8", "gitDir": "test/corpus/repos/javascript", - "sha2": "83b04c688d092243e2f38910a8366d514db5743c" + "sha2": "e84c69ce819954d96c86ec0f2f7b3bbce6384be5" } ,{ "testCaseDescription": "javascript-comma-operator-replacement-insert-test", @@ -101,9 +101,9 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "83b04c688d092243e2f38910a8366d514db5743c", + "sha1": "e84c69ce819954d96c86ec0f2f7b3bbce6384be5", "gitDir": "test/corpus/repos/javascript", - "sha2": "08ee23b9a9c5db516f1a98911e6c6622c433259d" + "sha2": "6a58d584c7382ef31f27c34ee841325135d6b9bc" } ,{ "testCaseDescription": "javascript-comma-operator-delete-insert-test", @@ -162,9 +162,9 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "08ee23b9a9c5db516f1a98911e6c6622c433259d", + "sha1": "6a58d584c7382ef31f27c34ee841325135d6b9bc", "gitDir": "test/corpus/repos/javascript", - "sha2": "80115d79267aa7d3d9a31c9bd3d8d6666a6fd10f" + "sha2": "47f10b92df5bf03c3256eb913e8fc6e97c326453" } ,{ "testCaseDescription": "javascript-comma-operator-replacement-test", @@ -223,9 +223,9 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "80115d79267aa7d3d9a31c9bd3d8d6666a6fd10f", + "sha1": "47f10b92df5bf03c3256eb913e8fc6e97c326453", "gitDir": "test/corpus/repos/javascript", - "sha2": "f63d84ca262b4fb8cfa2ea84f0c28cf92390ffa8" + "sha2": "3b28011e6ebe3b6056cc4e73cf53bad55350603f" } ,{ "testCaseDescription": "javascript-comma-operator-delete-replacement-test", @@ -299,9 +299,9 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "f63d84ca262b4fb8cfa2ea84f0c28cf92390ffa8", + "sha1": "3b28011e6ebe3b6056cc4e73cf53bad55350603f", "gitDir": "test/corpus/repos/javascript", - "sha2": "4c393da00a0bfedce7f8caeb08dd8efc0ba9ce2c" + "sha2": "65d631dce57c217e10941764380477241a3f4ac2" } ,{ "testCaseDescription": "javascript-comma-operator-delete-test", @@ -345,9 +345,9 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "4c393da00a0bfedce7f8caeb08dd8efc0ba9ce2c", + "sha1": "65d631dce57c217e10941764380477241a3f4ac2", "gitDir": "test/corpus/repos/javascript", - "sha2": "4b37c7ed446f7af7f9d6aa850f5866d6aa89b192" + "sha2": "6d9d2eefc06326a88fda19bd5e3bbc58731aa887" } ,{ "testCaseDescription": "javascript-comma-operator-delete-rest-test", @@ -376,7 +376,7 @@ "filePaths": [ "comma-operator.js" ], - "sha1": "4b37c7ed446f7af7f9d6aa850f5866d6aa89b192", + "sha1": "6d9d2eefc06326a88fda19bd5e3bbc58731aa887", "gitDir": "test/corpus/repos/javascript", - "sha2": "6873cc4611d175edc365bf419d65f1b5e25bb44d" + "sha2": "546367ee497592b174f80ccf5d825d6ff2367833" }] diff --git a/test/corpus/diff-summaries/javascript/comment.json b/test/corpus/diff-summaries/javascript/comment.json index db7bb75f5..880d8d6ba 100644 --- a/test/corpus/diff-summaries/javascript/comment.json +++ b/test/corpus/diff-summaries/javascript/comment.json @@ -7,9 +7,9 @@ "filePaths": [ "comment.js" ], - "sha1": "d603516a4081b70aeda20baf5f77fef7a1340409", + "sha1": "c133ef4396a68d4ed57fbdd2e234087cac85fefb", "gitDir": "test/corpus/repos/javascript", - "sha2": "4f200a3be0eeff658ba52a548e02d9c4d7efff6f" + "sha2": "d1ccaf897a426ece9584c5a57802892b65c5f72b" } ,{ "testCaseDescription": "javascript-comment-replacement-insert-test", @@ -20,9 +20,9 @@ "filePaths": [ "comment.js" ], - "sha1": "4f200a3be0eeff658ba52a548e02d9c4d7efff6f", + "sha1": "d1ccaf897a426ece9584c5a57802892b65c5f72b", "gitDir": "test/corpus/repos/javascript", - "sha2": "d8e83200e2ce34fb3cf38bb1e8aa893e26ffcb47" + "sha2": "6814a7412d4ba6ec828ab880ed561ae4f1f2e0a5" } ,{ "testCaseDescription": "javascript-comment-delete-insert-test", @@ -33,9 +33,9 @@ "filePaths": [ "comment.js" ], - "sha1": "d8e83200e2ce34fb3cf38bb1e8aa893e26ffcb47", + "sha1": "6814a7412d4ba6ec828ab880ed561ae4f1f2e0a5", "gitDir": "test/corpus/repos/javascript", - "sha2": "723284f0e9f9d152653e766df1c48c4f416055ac" + "sha2": "206394d7e94fa58befcd714e524b96d4811fd84c" } ,{ "testCaseDescription": "javascript-comment-replacement-test", @@ -46,9 +46,9 @@ "filePaths": [ "comment.js" ], - "sha1": "723284f0e9f9d152653e766df1c48c4f416055ac", + "sha1": "206394d7e94fa58befcd714e524b96d4811fd84c", "gitDir": "test/corpus/repos/javascript", - "sha2": "89c59c15706628d7c53dc6d02943b74900075854" + "sha2": "94397ad7630e7f0db9bf984503c16a3ec7da877d" } ,{ "testCaseDescription": "javascript-comment-delete-replacement-test", @@ -59,9 +59,9 @@ "filePaths": [ "comment.js" ], - "sha1": "89c59c15706628d7c53dc6d02943b74900075854", + "sha1": "94397ad7630e7f0db9bf984503c16a3ec7da877d", "gitDir": "test/corpus/repos/javascript", - "sha2": "1d571a9d03a7da32cff99d3c5d47395d401bcebb" + "sha2": "2a6b392d03869bdf3bb2f53d9418e28c4effcc49" } ,{ "testCaseDescription": "javascript-comment-delete-test", @@ -72,9 +72,9 @@ "filePaths": [ "comment.js" ], - "sha1": "1d571a9d03a7da32cff99d3c5d47395d401bcebb", + "sha1": "2a6b392d03869bdf3bb2f53d9418e28c4effcc49", "gitDir": "test/corpus/repos/javascript", - "sha2": "9a9e4d07289ce1a8e791f458f500b4ab1a97cdc0" + "sha2": "386ac02e1e14152a5ed38f4b891dbe64216d0a3c" } ,{ "testCaseDescription": "javascript-comment-delete-rest-test", @@ -85,7 +85,7 @@ "filePaths": [ "comment.js" ], - "sha1": "9a9e4d07289ce1a8e791f458f500b4ab1a97cdc0", + "sha1": "386ac02e1e14152a5ed38f4b891dbe64216d0a3c", "gitDir": "test/corpus/repos/javascript", - "sha2": "899e0c38dde8677223460aef0abedc223d346af9" + "sha2": "9b3fa18f93b30e23feb552554523824b2cbd4051" }] diff --git a/test/corpus/diff-summaries/javascript/constructor-call.json b/test/corpus/diff-summaries/javascript/constructor-call.json index c297fd311..7026328bd 100644 --- a/test/corpus/diff-summaries/javascript/constructor-call.json +++ b/test/corpus/diff-summaries/javascript/constructor-call.json @@ -25,9 +25,9 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "d39e1d538ca94199b5d277c9bc2b3bc021d291db", + "sha1": "ec7e7ab3dbd5fa6f9f2a5c7d30b0a6be0c45ce57", "gitDir": "test/corpus/repos/javascript", - "sha2": "d9e619dc220c679243c569db7d2b0bb2930825d2" + "sha2": "1492a8657b22da71c9726e33a0e19ea9e1137816" } ,{ "testCaseDescription": "javascript-constructor-call-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "d9e619dc220c679243c569db7d2b0bb2930825d2", + "sha1": "1492a8657b22da71c9726e33a0e19ea9e1137816", "gitDir": "test/corpus/repos/javascript", - "sha2": "c5169223a5274822738734135103a8926141353c" + "sha2": "682c37410578bae9b760e5280c861ac23792bf00" } ,{ "testCaseDescription": "javascript-constructor-call-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "c5169223a5274822738734135103a8926141353c", + "sha1": "682c37410578bae9b760e5280c861ac23792bf00", "gitDir": "test/corpus/repos/javascript", - "sha2": "873677e00698ebac7dc7bee3829606704ae29e52" + "sha2": "da63b4adc67874bddf78fbce1a20aede8a467e05" } ,{ "testCaseDescription": "javascript-constructor-call-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "873677e00698ebac7dc7bee3829606704ae29e52", + "sha1": "da63b4adc67874bddf78fbce1a20aede8a467e05", "gitDir": "test/corpus/repos/javascript", - "sha2": "3b209965ce83be06371be2081648b05ef145cd93" + "sha2": "47ecab93e23899d70344b1b0258ceafbd4efda28" } ,{ "testCaseDescription": "javascript-constructor-call-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "3b209965ce83be06371be2081648b05ef145cd93", + "sha1": "47ecab93e23899d70344b1b0258ceafbd4efda28", "gitDir": "test/corpus/repos/javascript", - "sha2": "c5bf4aa291f7d8e348e8f2c93fc89dd03fb1bded" + "sha2": "f786ce09cb1f51af7b9430cc3b0940fb9f5e8cfc" } ,{ "testCaseDescription": "javascript-constructor-call-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "c5bf4aa291f7d8e348e8f2c93fc89dd03fb1bded", + "sha1": "f786ce09cb1f51af7b9430cc3b0940fb9f5e8cfc", "gitDir": "test/corpus/repos/javascript", - "sha2": "d073d8436024f8415b85cb0e73cb49e31330be5d" + "sha2": "62a977f90f4c4324a5a6b80c2b179afe827704a0" } ,{ "testCaseDescription": "javascript-constructor-call-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "constructor-call.js" ], - "sha1": "d073d8436024f8415b85cb0e73cb49e31330be5d", + "sha1": "62a977f90f4c4324a5a6b80c2b179afe827704a0", "gitDir": "test/corpus/repos/javascript", - "sha2": "f1ddb4977e48b0aecb113d8434659b1055347399" + "sha2": "977edd8e1b976d612c9c6f284738a4f22cc697b8" }] diff --git a/test/corpus/diff-summaries/javascript/delete-operator.json b/test/corpus/diff-summaries/javascript/delete-operator.json index 3cf319725..49137e7b1 100644 --- a/test/corpus/diff-summaries/javascript/delete-operator.json +++ b/test/corpus/diff-summaries/javascript/delete-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "9da76a32237e47f128668a4307d3129aa12afb03", + "sha1": "9d2a799fbc151f3fd9eb286a0e430d041fc946fd", "gitDir": "test/corpus/repos/javascript", - "sha2": "f0059be8815d35206b46b74d10e10432ce4ad8c9" + "sha2": "68547fe76f0e7b43b3c6d155769510553dd5d620" } ,{ "testCaseDescription": "javascript-delete-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "f0059be8815d35206b46b74d10e10432ce4ad8c9", + "sha1": "68547fe76f0e7b43b3c6d155769510553dd5d620", "gitDir": "test/corpus/repos/javascript", - "sha2": "c29bc21104a95e1068b2a49bfe2e6d05416751ed" + "sha2": "9340a74dc4076f29a17ead420c5f5795a4c5dfc4" } ,{ "testCaseDescription": "javascript-delete-operator-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "c29bc21104a95e1068b2a49bfe2e6d05416751ed", + "sha1": "9340a74dc4076f29a17ead420c5f5795a4c5dfc4", "gitDir": "test/corpus/repos/javascript", - "sha2": "a7e34b6d613610b15e26e99be05de0c76011e06f" + "sha2": "133ade61f147b00cb88874d06a587429d89a97e9" } ,{ "testCaseDescription": "javascript-delete-operator-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "a7e34b6d613610b15e26e99be05de0c76011e06f", + "sha1": "133ade61f147b00cb88874d06a587429d89a97e9", "gitDir": "test/corpus/repos/javascript", - "sha2": "c4bb78cc76dfa895f43b59cea3ba668a7ab0d0db" + "sha2": "7f5588ae1cd4d7585cb2debc02e58d55e855bfd6" } ,{ "testCaseDescription": "javascript-delete-operator-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "c4bb78cc76dfa895f43b59cea3ba668a7ab0d0db", + "sha1": "7f5588ae1cd4d7585cb2debc02e58d55e855bfd6", "gitDir": "test/corpus/repos/javascript", - "sha2": "fcaba71697f8dc1063d443fc041102b2a4b6bc54" + "sha2": "ebc171bf8bced7e31d33eff3472f48c543d4fd77" } ,{ "testCaseDescription": "javascript-delete-operator-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "fcaba71697f8dc1063d443fc041102b2a4b6bc54", + "sha1": "ebc171bf8bced7e31d33eff3472f48c543d4fd77", "gitDir": "test/corpus/repos/javascript", - "sha2": "dcf8441a2b1e133af16c5719f5ac7f24f1355b8b" + "sha2": "948a0740e9e44d7d65f8f50d1dba54247272a1fa" } ,{ "testCaseDescription": "javascript-delete-operator-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "delete-operator.js" ], - "sha1": "dcf8441a2b1e133af16c5719f5ac7f24f1355b8b", + "sha1": "948a0740e9e44d7d65f8f50d1dba54247272a1fa", "gitDir": "test/corpus/repos/javascript", - "sha2": "469577bfda137f076f81b242bad9512eea06f786" + "sha2": "55ba87e139fcd55bc3616dbfbb1f936afdff609e" }] diff --git a/test/corpus/diff-summaries/javascript/do-while-statement.json b/test/corpus/diff-summaries/javascript/do-while-statement.json index 44b337e87..a2fc12308 100644 --- a/test/corpus/diff-summaries/javascript/do-while-statement.json +++ b/test/corpus/diff-summaries/javascript/do-while-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "95a273f4b11e757c88a02d093c0d3a701f685690", + "sha1": "72136f15085dd59d51ce542116b6fba21a73bb2c", "gitDir": "test/corpus/repos/javascript", - "sha2": "c834104bb52d61ddd1beca752f798c9303577c72" + "sha2": "f9bf65ddd55c283f5aad6190ef453d552ee023f2" } ,{ "testCaseDescription": "javascript-do-while-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "c834104bb52d61ddd1beca752f798c9303577c72", + "sha1": "f9bf65ddd55c283f5aad6190ef453d552ee023f2", "gitDir": "test/corpus/repos/javascript", - "sha2": "95454c5409fa84fc30ea251c08b2882b8baf8e31" + "sha2": "09df0a553ad649da3809d681e6ac1cafcda63db6" } ,{ "testCaseDescription": "javascript-do-while-statement-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "95454c5409fa84fc30ea251c08b2882b8baf8e31", + "sha1": "09df0a553ad649da3809d681e6ac1cafcda63db6", "gitDir": "test/corpus/repos/javascript", - "sha2": "7fd9db6c1274c8b07915da8b34334e5bd00c3a06" + "sha2": "e514106de7ee8dc61276282edf308372f239215a" } ,{ "testCaseDescription": "javascript-do-while-statement-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "7fd9db6c1274c8b07915da8b34334e5bd00c3a06", + "sha1": "e514106de7ee8dc61276282edf308372f239215a", "gitDir": "test/corpus/repos/javascript", - "sha2": "bd3280aec17df26dc6cffe4ab4d3b22b55ff9266" + "sha2": "efcdf9c8b887e74df73b4556c23149ef45edbb22" } ,{ "testCaseDescription": "javascript-do-while-statement-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "bd3280aec17df26dc6cffe4ab4d3b22b55ff9266", + "sha1": "efcdf9c8b887e74df73b4556c23149ef45edbb22", "gitDir": "test/corpus/repos/javascript", - "sha2": "73566f339f1771e80f1fda989b500cfad9166289" + "sha2": "e531c49edf12bfbc0d6c502f5e1e172787857127" } ,{ "testCaseDescription": "javascript-do-while-statement-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "73566f339f1771e80f1fda989b500cfad9166289", + "sha1": "e531c49edf12bfbc0d6c502f5e1e172787857127", "gitDir": "test/corpus/repos/javascript", - "sha2": "1a2caf0cc2079942b32f207a2eedb8f2ebd5c7cb" + "sha2": "4f895a5ac4f5c156d2f0a651decc546498777019" } ,{ "testCaseDescription": "javascript-do-while-statement-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "do-while-statement.js" ], - "sha1": "1a2caf0cc2079942b32f207a2eedb8f2ebd5c7cb", + "sha1": "4f895a5ac4f5c156d2f0a651decc546498777019", "gitDir": "test/corpus/repos/javascript", - "sha2": "51d8aff9c58966d750d22ef8f1b1be9d38e7bcce" + "sha2": "8397e8bab234cfb40d758bd3f508928f7e609eda" }] diff --git a/test/corpus/diff-summaries/javascript/export.json b/test/corpus/diff-summaries/javascript/export.json new file mode 100644 index 000000000..bf650f1a0 --- /dev/null +++ b/test/corpus/diff-summaries/javascript/export.json @@ -0,0 +1,2557 @@ +[{ + "testCaseDescription": "javascript-export-insert-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "insert": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 39 + ] + } + }, + "summary": "Added the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Added the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Added the { name1, name2, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Added the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 30 + ] + } + }, + "summary": "Added the { namedFunction } export statement" + }, + { + "span": { + "insert": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 32 + ] + } + }, + "summary": "Added the { anonymous() } export statement" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 37 + ] + } + }, + "summary": "Added the { name1 } export statement" + }, + { + "span": { + "insert": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 29 + ] + } + }, + "summary": "Added the { name1 as default } export statement" + }, + { + "span": { + "insert": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Added the { 'foo' } export statement" + }, + { + "span": { + "insert": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 43 + ] + } + }, + "summary": "Added the { name1, name2, nameN } from 'foo' export statement" + }, + { + "span": { + "insert": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 65 + ] + } + }, + "summary": "Added the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "e2330ce7fde05d60da39def902d720cbed40a318", + "gitDir": "test/corpus/repos/javascript", + "sha2": "598da15d833cc590ccd2b11d449293c3cbd0432c" +} +,{ + "testCaseDescription": "javascript-export-replacement-insert-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "insert": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 39 + ] + } + }, + "summary": "Added the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "insert": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Added the { variable2 as name2, variable3 as name3, nameY } export statement" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Added the { name3, name4, nameT } export statement" + }, + { + "span": { + "insert": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Added the { name2 = value2, name3 = value3, name4, nameO } export statement" + }, + { + "span": { + "insert": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 35 + ] + } + }, + "summary": "Added the { otherNamedFunction } export statement" + }, + { + "span": { + "insert": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 39 + ] + } + }, + "summary": "Added the { newName1 } export statement" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 31 + ] + } + }, + "summary": "Added the { anonymous() } export statement" + }, + { + "span": { + "insert": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 31 + ] + } + }, + "summary": "Added the { name2 as statement } export statement" + }, + { + "span": { + "insert": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Added the { 'baz' } export statement" + }, + { + "span": { + "insert": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 44 + ] + } + }, + "summary": "Added the { name7, name8, nameP } from 'buzz' export statement" + }, + { + "span": { + "insert": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 66 + ] + } + }, + "summary": "Added the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + }, + { + "span": { + "insert": { + "start": [ + 12, + 1 + ], + "end": [ + 12, + 39 + ] + } + }, + "summary": "Added the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 13, + 1 + ], + "end": [ + 13, + 58 + ] + } + }, + "summary": "Added the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 14, + 1 + ], + "end": [ + 14, + 32 + ] + } + }, + "summary": "Added the { name1, name2, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 15, + 1 + ], + "end": [ + 15, + 57 + ] + } + }, + "summary": "Added the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "insert": { + "start": [ + 16, + 1 + ], + "end": [ + 16, + 30 + ] + } + }, + "summary": "Added the { namedFunction } export statement" + }, + { + "span": { + "insert": { + "start": [ + 17, + 1 + ], + "end": [ + 17, + 32 + ] + } + }, + "summary": "Added the { anonymous() } export statement" + }, + { + "span": { + "insert": { + "start": [ + 18, + 1 + ], + "end": [ + 18, + 37 + ] + } + }, + "summary": "Added the { name1 } export statement" + }, + { + "span": { + "insert": { + "start": [ + 19, + 1 + ], + "end": [ + 19, + 29 + ] + } + }, + "summary": "Added the { name1 as default } export statement" + }, + { + "span": { + "insert": { + "start": [ + 20, + 1 + ], + "end": [ + 20, + 21 + ] + } + }, + "summary": "Added the { 'foo' } export statement" + }, + { + "span": { + "insert": { + "start": [ + 21, + 1 + ], + "end": [ + 21, + 43 + ] + } + }, + "summary": "Added the { name1, name2, nameN } from 'foo' export statement" + }, + { + "span": { + "insert": { + "start": [ + 22, + 1 + ], + "end": [ + 22, + 65 + ] + } + }, + "summary": "Added the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "598da15d833cc590ccd2b11d449293c3cbd0432c", + "gitDir": "test/corpus/repos/javascript", + "sha2": "270adf2c2548f4c96046486a9aab6025a3829413" +} +,{ + "testCaseDescription": "javascript-export-delete-insert-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "replace": [ + { + "start": [ + 1, + 10 + ], + "end": [ + 1, + 15 + ] + }, + { + "start": [ + 1, + 10 + ], + "end": [ + 1, + 15 + ] + } + ] + }, + "summary": "Replaced the 'name4' identifier with the 'name1' identifier in the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 17 + ], + "end": [ + 1, + 22 + ] + }, + { + "start": [ + 1, + 17 + ], + "end": [ + 1, + 22 + ] + } + ] + }, + "summary": "Replaced the 'name5' identifier with the 'name2' identifier in the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 24 + ], + "end": [ + 1, + 29 + ] + }, + { + "start": [ + 1, + 24 + ], + "end": [ + 1, + 29 + ] + } + ] + }, + "summary": "Replaced the 'name6' identifier with the 'name3' identifier in the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 31 + ], + "end": [ + 1, + 36 + ] + }, + { + "start": [ + 1, + 31 + ], + "end": [ + 1, + 36 + ] + } + ] + }, + "summary": "Replaced the 'nameZ' identifier with the 'nameN' identifier in the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 2, + 10 + ], + "end": [ + 2, + 19 + ] + }, + { + "start": [ + 2, + 10 + ], + "end": [ + 2, + 19 + ] + } + ] + }, + "summary": "Replaced the 'variable2' identifier with the 'variable1' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 2, + 23 + ], + "end": [ + 2, + 28 + ] + }, + { + "start": [ + 2, + 23 + ], + "end": [ + 2, + 28 + ] + } + ] + }, + "summary": "Replaced the 'name2' identifier with the 'name1' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 2, + 30 + ], + "end": [ + 2, + 39 + ] + }, + { + "start": [ + 2, + 30 + ], + "end": [ + 2, + 39 + ] + } + ] + }, + "summary": "Replaced the 'variable3' identifier with the 'variable2' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 2, + 43 + ], + "end": [ + 2, + 48 + ] + }, + { + "start": [ + 2, + 43 + ], + "end": [ + 2, + 48 + ] + } + ] + }, + "summary": "Replaced the 'name3' identifier with the 'name2' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 2, + 50 + ], + "end": [ + 2, + 55 + ] + }, + { + "start": [ + 2, + 50 + ], + "end": [ + 2, + 55 + ] + } + ] + }, + "summary": "Replaced the 'nameY' identifier with the 'nameN' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 3, + 12 + ], + "end": [ + 3, + 17 + ] + }, + { + "start": [ + 3, + 12 + ], + "end": [ + 3, + 17 + ] + } + ] + }, + "summary": "Replaced the 'name3' identifier with the 'name1' identifier in the { name1, name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 3, + 19 + ], + "end": [ + 3, + 24 + ] + }, + { + "start": [ + 3, + 19 + ], + "end": [ + 3, + 24 + ] + } + ] + }, + "summary": "Replaced the 'name4' identifier with the 'name2' identifier in the { name1, name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 3, + 26 + ], + "end": [ + 3, + 31 + ] + }, + { + "start": [ + 3, + 26 + ], + "end": [ + 3, + 31 + ] + } + ] + }, + "summary": "Replaced the 'nameT' identifier with the 'nameN' identifier in the { name1, name2, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 12 + ], + "end": [ + 4, + 17 + ] + }, + { + "start": [ + 4, + 12 + ], + "end": [ + 4, + 17 + ] + } + ] + }, + "summary": "Replaced the 'name2' identifier with the 'name1' identifier in the name1 var assignment" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 20 + ], + "end": [ + 4, + 26 + ] + }, + { + "start": [ + 4, + 20 + ], + "end": [ + 4, + 26 + ] + } + ] + }, + "summary": "Replaced the 'value2' identifier with the 'value1' identifier in the name1 var assignment" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 28 + ], + "end": [ + 4, + 33 + ] + }, + { + "start": [ + 4, + 28 + ], + "end": [ + 4, + 33 + ] + } + ] + }, + "summary": "Replaced the 'name3' identifier with the 'name2' identifier in the name2 var assignment" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 36 + ], + "end": [ + 4, + 42 + ] + }, + { + "start": [ + 4, + 36 + ], + "end": [ + 4, + 42 + ] + } + ] + }, + "summary": "Replaced the 'value3' identifier with the 'value2' identifier in the name2 var assignment" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 44 + ], + "end": [ + 4, + 49 + ] + }, + { + "start": [ + 4, + 44 + ], + "end": [ + 4, + 49 + ] + } + ] + }, + "summary": "Replaced the 'name4' identifier with the 'name3' identifier in the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 51 + ], + "end": [ + 4, + 56 + ] + }, + { + "start": [ + 4, + 51 + ], + "end": [ + 4, + 56 + ] + } + ] + }, + "summary": "Replaced the 'nameO' identifier with the 'nameN' identifier in the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 16 + ], + "end": [ + 5, + 34 + ] + }, + { + "start": [ + 5, + 16 + ], + "end": [ + 5, + 29 + ] + } + ] + }, + "summary": "Replaced the 'otherNamedFunction' identifier with the 'namedFunction' identifier in the { namedFunction } export statement" + }, + { + "span": { + "insert": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 32 + ] + } + }, + "summary": "Added the { anonymous() } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 6, + 25 + ], + "end": [ + 6, + 33 + ] + }, + { + "start": [ + 7, + 25 + ], + "end": [ + 7, + 30 + ] + } + ] + }, + "summary": "Replaced the 'newName1' identifier with the 'name1' identifier in the name1 function" + }, + { + "span": { + "replace": [ + { + "start": [ + 6, + 36 + ], + "end": [ + 6, + 38 + ] + }, + { + "start": [ + 7, + 33 + ], + "end": [ + 7, + 36 + ] + } + ] + }, + "summary": "Replaced the '{}' expression statements with the '{ }' expression statements in the name1 function" + }, + { + "span": { + "insert": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 29 + ] + } + }, + "summary": "Added the { name1 as default } export statement" + }, + { + "span": { + "insert": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Added the { 'foo' } export statement" + }, + { + "span": { + "insert": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 43 + ] + } + }, + "summary": "Added the { name1, name2, nameN } from 'foo' export statement" + }, + { + "span": { + "insert": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 65 + ] + } + }, + "summary": "Added the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 31 + ] + } + }, + "summary": "Deleted the { anonymous() } export statement" + }, + { + "span": { + "delete": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 31 + ] + } + }, + "summary": "Deleted the { name2 as statement } export statement" + }, + { + "span": { + "delete": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Deleted the { 'baz' } export statement" + }, + { + "span": { + "delete": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 44 + ] + } + }, + "summary": "Deleted the { name7, name8, nameP } from 'buzz' export statement" + }, + { + "span": { + "delete": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 66 + ] + } + }, + "summary": "Deleted the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "270adf2c2548f4c96046486a9aab6025a3829413", + "gitDir": "test/corpus/repos/javascript", + "sha2": "416166785e45f945cb05e9bcaff9c5bde6bba30f" +} +,{ + "testCaseDescription": "javascript-export-replacement-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "replace": [ + { + "start": [ + 1, + 10 + ], + "end": [ + 1, + 15 + ] + }, + { + "start": [ + 1, + 10 + ], + "end": [ + 1, + 15 + ] + } + ] + }, + "summary": "Replaced the 'name1' identifier with the 'name4' identifier in the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 17 + ], + "end": [ + 1, + 22 + ] + }, + { + "start": [ + 1, + 17 + ], + "end": [ + 1, + 22 + ] + } + ] + }, + "summary": "Replaced the 'name2' identifier with the 'name5' identifier in the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 24 + ], + "end": [ + 1, + 29 + ] + }, + { + "start": [ + 1, + 24 + ], + "end": [ + 1, + 29 + ] + } + ] + }, + "summary": "Replaced the 'name3' identifier with the 'name6' identifier in the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 31 + ], + "end": [ + 1, + 36 + ] + }, + { + "start": [ + 1, + 31 + ], + "end": [ + 1, + 36 + ] + } + ] + }, + "summary": "Replaced the 'nameN' identifier with the 'nameZ' identifier in the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "insert": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Added the { variable2 as name2, variable3 as name3, nameY } export statement" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Added the { name3, name4, nameT } export statement" + }, + { + "span": { + "insert": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Added the { name2 = value2, name3 = value3, name4, nameO } export statement" + }, + { + "span": { + "insert": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 35 + ] + } + }, + "summary": "Added the { otherNamedFunction } export statement" + }, + { + "span": { + "insert": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 39 + ] + } + }, + "summary": "Added the { newName1 } export statement" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 31 + ] + } + }, + "summary": "Added the { anonymous() } export statement" + }, + { + "span": { + "insert": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 31 + ] + } + }, + "summary": "Added the { name2 as statement } export statement" + }, + { + "span": { + "insert": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Added the { 'baz' } export statement" + }, + { + "span": { + "insert": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 44 + ] + } + }, + "summary": "Added the { name7, name8, nameP } from 'buzz' export statement" + }, + { + "span": { + "insert": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 66 + ] + } + }, + "summary": "Added the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + }, + { + "span": { + "delete": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Deleted the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Deleted the { name1, name2, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Deleted the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 30 + ] + } + }, + "summary": "Deleted the { namedFunction } export statement" + }, + { + "span": { + "delete": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 32 + ] + } + }, + "summary": "Deleted the { anonymous() } export statement" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 37 + ] + } + }, + "summary": "Deleted the { name1 } export statement" + }, + { + "span": { + "delete": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 29 + ] + } + }, + "summary": "Deleted the { name1 as default } export statement" + }, + { + "span": { + "delete": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Deleted the { 'foo' } export statement" + }, + { + "span": { + "delete": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 43 + ] + } + }, + "summary": "Deleted the { name1, name2, nameN } from 'foo' export statement" + }, + { + "span": { + "delete": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 65 + ] + } + }, + "summary": "Deleted the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "416166785e45f945cb05e9bcaff9c5bde6bba30f", + "gitDir": "test/corpus/repos/javascript", + "sha2": "a5528705b6241b3811df4e318f725558db44c8f7" +} +,{ + "testCaseDescription": "javascript-export-delete-replacement-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "delete": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 39 + ] + } + }, + "summary": "Deleted the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "delete": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Deleted the { variable2 as name2, variable3 as name3, nameY } export statement" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Deleted the { name3, name4, nameT } export statement" + }, + { + "span": { + "delete": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Deleted the { name2 = value2, name3 = value3, name4, nameO } export statement" + }, + { + "span": { + "delete": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 35 + ] + } + }, + "summary": "Deleted the { otherNamedFunction } export statement" + }, + { + "span": { + "delete": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 39 + ] + } + }, + "summary": "Deleted the { newName1 } export statement" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 31 + ] + } + }, + "summary": "Deleted the { anonymous() } export statement" + }, + { + "span": { + "delete": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 31 + ] + } + }, + "summary": "Deleted the { name2 as statement } export statement" + }, + { + "span": { + "delete": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Deleted the { 'baz' } export statement" + }, + { + "span": { + "delete": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 44 + ] + } + }, + "summary": "Deleted the { name7, name8, nameP } from 'buzz' export statement" + }, + { + "span": { + "delete": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 66 + ] + } + }, + "summary": "Deleted the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + }, + { + "span": { + "delete": { + "start": [ + 12, + 1 + ], + "end": [ + 12, + 39 + ] + } + }, + "summary": "Deleted the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 13, + 1 + ], + "end": [ + 13, + 58 + ] + } + }, + "summary": "Deleted the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 14, + 1 + ], + "end": [ + 14, + 32 + ] + } + }, + "summary": "Deleted the { name1, name2, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 15, + 1 + ], + "end": [ + 15, + 57 + ] + } + }, + "summary": "Deleted the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 16, + 1 + ], + "end": [ + 16, + 30 + ] + } + }, + "summary": "Deleted the { namedFunction } export statement" + }, + { + "span": { + "delete": { + "start": [ + 17, + 1 + ], + "end": [ + 17, + 32 + ] + } + }, + "summary": "Deleted the { anonymous() } export statement" + }, + { + "span": { + "delete": { + "start": [ + 18, + 1 + ], + "end": [ + 18, + 37 + ] + } + }, + "summary": "Deleted the { name1 } export statement" + }, + { + "span": { + "delete": { + "start": [ + 19, + 1 + ], + "end": [ + 19, + 29 + ] + } + }, + "summary": "Deleted the { name1 as default } export statement" + }, + { + "span": { + "delete": { + "start": [ + 20, + 1 + ], + "end": [ + 20, + 21 + ] + } + }, + "summary": "Deleted the { 'foo' } export statement" + }, + { + "span": { + "delete": { + "start": [ + 21, + 1 + ], + "end": [ + 21, + 43 + ] + } + }, + "summary": "Deleted the { name1, name2, nameN } from 'foo' export statement" + }, + { + "span": { + "delete": { + "start": [ + 22, + 1 + ], + "end": [ + 22, + 65 + ] + } + }, + "summary": "Deleted the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + }, + { + "span": { + "insert": { + "start": [ + 12, + 1 + ], + "end": [ + 12, + 39 + ] + } + }, + "summary": "Added the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "insert": { + "start": [ + 13, + 1 + ], + "end": [ + 13, + 58 + ] + } + }, + "summary": "Added the { variable2 as name2, variable3 as name3, nameY } export statement" + }, + { + "span": { + "insert": { + "start": [ + 14, + 1 + ], + "end": [ + 14, + 32 + ] + } + }, + "summary": "Added the { name3, name4, nameT } export statement" + }, + { + "span": { + "insert": { + "start": [ + 15, + 1 + ], + "end": [ + 15, + 57 + ] + } + }, + "summary": "Added the { name2 = value2, name3 = value3, name4, nameO } export statement" + }, + { + "span": { + "insert": { + "start": [ + 16, + 1 + ], + "end": [ + 16, + 35 + ] + } + }, + "summary": "Added the { otherNamedFunction } export statement" + }, + { + "span": { + "insert": { + "start": [ + 17, + 1 + ], + "end": [ + 17, + 39 + ] + } + }, + "summary": "Added the { newName1 } export statement" + }, + { + "span": { + "insert": { + "start": [ + 18, + 1 + ], + "end": [ + 18, + 31 + ] + } + }, + "summary": "Added the { anonymous() } export statement" + }, + { + "span": { + "insert": { + "start": [ + 19, + 1 + ], + "end": [ + 19, + 31 + ] + } + }, + "summary": "Added the { name2 as statement } export statement" + }, + { + "span": { + "insert": { + "start": [ + 20, + 1 + ], + "end": [ + 20, + 21 + ] + } + }, + "summary": "Added the { 'baz' } export statement" + }, + { + "span": { + "insert": { + "start": [ + 21, + 1 + ], + "end": [ + 21, + 44 + ] + } + }, + "summary": "Added the { name7, name8, nameP } from 'buzz' export statement" + }, + { + "span": { + "insert": { + "start": [ + 22, + 1 + ], + "end": [ + 22, + 66 + ] + } + }, + "summary": "Added the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "a5528705b6241b3811df4e318f725558db44c8f7", + "gitDir": "test/corpus/repos/javascript", + "sha2": "d6329cbb744fedd1823ad9e855fb3d2405a83841" +} +,{ + "testCaseDescription": "javascript-export-delete-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "delete": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 39 + ] + } + }, + "summary": "Deleted the { name1, name2, name3, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Deleted the { variable1 as name1, variable2 as name2, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Deleted the { name1, name2, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Deleted the { name1 = value1, name2 = value2, name3, nameN } export statement" + }, + { + "span": { + "delete": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 30 + ] + } + }, + "summary": "Deleted the { namedFunction } export statement" + }, + { + "span": { + "delete": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 32 + ] + } + }, + "summary": "Deleted the { anonymous() } export statement" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 37 + ] + } + }, + "summary": "Deleted the { name1 } export statement" + }, + { + "span": { + "delete": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 29 + ] + } + }, + "summary": "Deleted the { name1 as default } export statement" + }, + { + "span": { + "delete": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Deleted the { 'foo' } export statement" + }, + { + "span": { + "delete": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 43 + ] + } + }, + "summary": "Deleted the { name1, name2, nameN } from 'foo' export statement" + }, + { + "span": { + "delete": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 65 + ] + } + }, + "summary": "Deleted the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "d6329cbb744fedd1823ad9e855fb3d2405a83841", + "gitDir": "test/corpus/repos/javascript", + "sha2": "3dbc63babc83806927f3cef5e8bef6b44fbd26ad" +} +,{ + "testCaseDescription": "javascript-export-delete-rest-test", + "expectedResult": { + "changes": { + "export.js": [ + { + "span": { + "delete": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 39 + ] + } + }, + "summary": "Deleted the { name4, name5, name6, nameZ } export statement" + }, + { + "span": { + "delete": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 58 + ] + } + }, + "summary": "Deleted the { variable2 as name2, variable3 as name3, nameY } export statement" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 32 + ] + } + }, + "summary": "Deleted the { name3, name4, nameT } export statement" + }, + { + "span": { + "delete": { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 57 + ] + } + }, + "summary": "Deleted the { name2 = value2, name3 = value3, name4, nameO } export statement" + }, + { + "span": { + "delete": { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 35 + ] + } + }, + "summary": "Deleted the { otherNamedFunction } export statement" + }, + { + "span": { + "delete": { + "start": [ + 6, + 1 + ], + "end": [ + 6, + 39 + ] + } + }, + "summary": "Deleted the { newName1 } export statement" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 31 + ] + } + }, + "summary": "Deleted the { anonymous() } export statement" + }, + { + "span": { + "delete": { + "start": [ + 8, + 1 + ], + "end": [ + 8, + 31 + ] + } + }, + "summary": "Deleted the { name2 as statement } export statement" + }, + { + "span": { + "delete": { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 21 + ] + } + }, + "summary": "Deleted the { 'baz' } export statement" + }, + { + "span": { + "delete": { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 44 + ] + } + }, + "summary": "Deleted the { name7, name8, nameP } from 'buzz' export statement" + }, + { + "span": { + "delete": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 66 + ] + } + }, + "summary": "Deleted the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "export.js" + ], + "sha1": "3dbc63babc83806927f3cef5e8bef6b44fbd26ad", + "gitDir": "test/corpus/repos/javascript", + "sha2": "2e227d9bf662f4a0a236c8308c7762d12d09e1eb" +}] diff --git a/test/corpus/diff-summaries/javascript/false.json b/test/corpus/diff-summaries/javascript/false.json index a5131e502..35fa25e2e 100644 --- a/test/corpus/diff-summaries/javascript/false.json +++ b/test/corpus/diff-summaries/javascript/false.json @@ -25,9 +25,9 @@ "filePaths": [ "false.js" ], - "sha1": "bbf6b6400a178da594fc516abd9fe3dfdede5d20", + "sha1": "19100604a6300c0f7230707208a10d15ff17b29d", "gitDir": "test/corpus/repos/javascript", - "sha2": "89d733b088d2a6da94a19ff0c16fabba91c80c24" + "sha2": "277f2a3491f3d4fbb51de259fd30ca09c2ea9480" } ,{ "testCaseDescription": "javascript-false-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "false.js" ], - "sha1": "89d733b088d2a6da94a19ff0c16fabba91c80c24", + "sha1": "277f2a3491f3d4fbb51de259fd30ca09c2ea9480", "gitDir": "test/corpus/repos/javascript", - "sha2": "2605368edef4d3827da56c308771e1dc24cef993" + "sha2": "80cf3777edc33fa90d44e537fa90f6b16b5bbfa9" } ,{ "testCaseDescription": "javascript-false-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "false.js" ], - "sha1": "2605368edef4d3827da56c308771e1dc24cef993", + "sha1": "80cf3777edc33fa90d44e537fa90f6b16b5bbfa9", "gitDir": "test/corpus/repos/javascript", - "sha2": "4f38a5af2216be284c9b5c091549ab004e96f100" + "sha2": "fc95554acc02ccc141e4be987e5597c31ec55378" } ,{ "testCaseDescription": "javascript-false-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "false.js" ], - "sha1": "4f38a5af2216be284c9b5c091549ab004e96f100", + "sha1": "fc95554acc02ccc141e4be987e5597c31ec55378", "gitDir": "test/corpus/repos/javascript", - "sha2": "ae755baae43b06954909c592b9b9774248e23ef8" + "sha2": "43643a4e91c37752dc0eacbddad6c959024526c1" } ,{ "testCaseDescription": "javascript-false-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "false.js" ], - "sha1": "ae755baae43b06954909c592b9b9774248e23ef8", + "sha1": "43643a4e91c37752dc0eacbddad6c959024526c1", "gitDir": "test/corpus/repos/javascript", - "sha2": "2b8a045d7312f727914381ef78a3ea8427ab73c6" + "sha2": "67254e66f243967940209ffafa43742eb2c7e4bf" } ,{ "testCaseDescription": "javascript-false-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "false.js" ], - "sha1": "2b8a045d7312f727914381ef78a3ea8427ab73c6", + "sha1": "67254e66f243967940209ffafa43742eb2c7e4bf", "gitDir": "test/corpus/repos/javascript", - "sha2": "b1032d7ba84f5f07b0ccf666ef73d54a10e4b923" + "sha2": "f168d461cfee0186f14f1e68d55ad2fa4a539ab8" } ,{ "testCaseDescription": "javascript-false-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "false.js" ], - "sha1": "b1032d7ba84f5f07b0ccf666ef73d54a10e4b923", + "sha1": "f168d461cfee0186f14f1e68d55ad2fa4a539ab8", "gitDir": "test/corpus/repos/javascript", - "sha2": "c5f34280c486ec310f996875d14386a8e9f63b1c" + "sha2": "1687fbc8bd65353ada2371b087e39706dca32445" }] diff --git a/test/corpus/diff-summaries/javascript/for-in-statement.json b/test/corpus/diff-summaries/javascript/for-in-statement.json index fa740b552..c63278b4e 100644 --- a/test/corpus/diff-summaries/javascript/for-in-statement.json +++ b/test/corpus/diff-summaries/javascript/for-in-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "b3571922f92da29e898094166c0af33f94bff605", + "sha1": "90afab60996a573711423295c92c426d0fef52d6", "gitDir": "test/corpus/repos/javascript", - "sha2": "897d709f759d57f757317df0821231c5d0e5db59" + "sha2": "46da1cb99ff152ed094d4e370972c214266e134a" } ,{ "testCaseDescription": "javascript-for-in-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "897d709f759d57f757317df0821231c5d0e5db59", + "sha1": "46da1cb99ff152ed094d4e370972c214266e134a", "gitDir": "test/corpus/repos/javascript", - "sha2": "e41f53eed9ef707029d3377700053812b516283f" + "sha2": "474b07a2d45deb9ef5eb170123267392440d2561" } ,{ "testCaseDescription": "javascript-for-in-statement-delete-insert-test", @@ -168,9 +168,9 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "e41f53eed9ef707029d3377700053812b516283f", + "sha1": "474b07a2d45deb9ef5eb170123267392440d2561", "gitDir": "test/corpus/repos/javascript", - "sha2": "52bb11af19fc41753f57b42a536369c86593cc7e" + "sha2": "f46b257de1383d21d9d5aa239a1b1ec4d6d7061f" } ,{ "testCaseDescription": "javascript-for-in-statement-replacement-test", @@ -265,9 +265,9 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "52bb11af19fc41753f57b42a536369c86593cc7e", + "sha1": "f46b257de1383d21d9d5aa239a1b1ec4d6d7061f", "gitDir": "test/corpus/repos/javascript", - "sha2": "ede0aa7c889d52c22019d59396184e7dfd52da21" + "sha2": "6ebe367424567d044cf26c093bf00b27ee4f261b" } ,{ "testCaseDescription": "javascript-for-in-statement-delete-replacement-test", @@ -326,9 +326,9 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "ede0aa7c889d52c22019d59396184e7dfd52da21", + "sha1": "6ebe367424567d044cf26c093bf00b27ee4f261b", "gitDir": "test/corpus/repos/javascript", - "sha2": "d6b33cd6c2c8ac516d925aa9363e01cef7ffa833" + "sha2": "f71a64f1a8d98057f001fa757a144f253b70a19c" } ,{ "testCaseDescription": "javascript-for-in-statement-delete-test", @@ -357,9 +357,9 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "d6b33cd6c2c8ac516d925aa9363e01cef7ffa833", + "sha1": "f71a64f1a8d98057f001fa757a144f253b70a19c", "gitDir": "test/corpus/repos/javascript", - "sha2": "d01241c4d10bbc9704e175f67e2545da5616957f" + "sha2": "8802178331eeeb9798f16bf23557729d99edf72a" } ,{ "testCaseDescription": "javascript-for-in-statement-delete-rest-test", @@ -388,7 +388,7 @@ "filePaths": [ "for-in-statement.js" ], - "sha1": "d01241c4d10bbc9704e175f67e2545da5616957f", + "sha1": "8802178331eeeb9798f16bf23557729d99edf72a", "gitDir": "test/corpus/repos/javascript", - "sha2": "4d5f1da9938770642007ba971d7fa14242bdd49f" + "sha2": "2ae3dbb197d2af3f6c733f583bd1e46038782da2" }] diff --git a/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json b/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json index 2e328ca8c..7b61939ef 100644 --- a/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json +++ b/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "2e0a052703f9effddf81fa1ebbf3f86d671f79bd", + "sha1": "a142f742b4f0d1430db5bcfdcc05d7c2a16ba18c", "gitDir": "test/corpus/repos/javascript", - "sha2": "d7b6ac21e7b5979fa4215aa2392f0d9164113096" + "sha2": "c5f7571d90038fee73eaf576013c1cb82f1ab7d9" } ,{ "testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "d7b6ac21e7b5979fa4215aa2392f0d9164113096", + "sha1": "c5f7571d90038fee73eaf576013c1cb82f1ab7d9", "gitDir": "test/corpus/repos/javascript", - "sha2": "7414d5a42c5400cb22522a1badbbe537559f820d" + "sha2": "f555a2d9d1edf1cde0f1b78075970d1a42815b47" } ,{ "testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "7414d5a42c5400cb22522a1badbbe537559f820d", + "sha1": "f555a2d9d1edf1cde0f1b78075970d1a42815b47", "gitDir": "test/corpus/repos/javascript", - "sha2": "f4d4e185de3564e2e9c9bb30b31b2d3b3ab5316e" + "sha2": "07d524e8ebdf8e90a44c7da74a5b089f5a3c9f7e" } ,{ "testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "f4d4e185de3564e2e9c9bb30b31b2d3b3ab5316e", + "sha1": "07d524e8ebdf8e90a44c7da74a5b089f5a3c9f7e", "gitDir": "test/corpus/repos/javascript", - "sha2": "8e056cf85850d440a5e43c667f45cf86028b849e" + "sha2": "6529218cf948d0422ec77304d46cddf58a1a8e6e" } ,{ "testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "8e056cf85850d440a5e43c667f45cf86028b849e", + "sha1": "6529218cf948d0422ec77304d46cddf58a1a8e6e", "gitDir": "test/corpus/repos/javascript", - "sha2": "1c116d93a473261e0fcc91be45782c9744b4a8ca" + "sha2": "0342c21e29bda8a1a34cbb060f8692a63146efac" } ,{ "testCaseDescription": "javascript-for-loop-with-in-statement-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "1c116d93a473261e0fcc91be45782c9744b4a8ca", + "sha1": "0342c21e29bda8a1a34cbb060f8692a63146efac", "gitDir": "test/corpus/repos/javascript", - "sha2": "ac0b3ceab1dd2402a27e1b2e3ff5812e4a2bb40e" + "sha2": "c06030facdcc8f8ecaeec1a870485e96ccdcbe2f" } ,{ "testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "for-loop-with-in-statement.js" ], - "sha1": "ac0b3ceab1dd2402a27e1b2e3ff5812e4a2bb40e", + "sha1": "c06030facdcc8f8ecaeec1a870485e96ccdcbe2f", "gitDir": "test/corpus/repos/javascript", - "sha2": "cadd169ab13abc1bed4a820437560473eab08a21" + "sha2": "9c7b259101e1beec8fddbc41696a9b616787065f" }] diff --git a/test/corpus/diff-summaries/javascript/for-of-statement.json b/test/corpus/diff-summaries/javascript/for-of-statement.json index 2067862da..5ca6999d6 100644 --- a/test/corpus/diff-summaries/javascript/for-of-statement.json +++ b/test/corpus/diff-summaries/javascript/for-of-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "35888bf1509d5649af7582979e28667d1d690447", + "sha1": "9c7b259101e1beec8fddbc41696a9b616787065f", "gitDir": "test/corpus/repos/javascript", - "sha2": "e608154978e1c27498e0aa93e988a2481e229fc8" + "sha2": "8442640c5e614faa9d365e0ef018f52e6fa2e4c0" } ,{ "testCaseDescription": "javascript-for-of-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "e608154978e1c27498e0aa93e988a2481e229fc8", + "sha1": "8442640c5e614faa9d365e0ef018f52e6fa2e4c0", "gitDir": "test/corpus/repos/javascript", - "sha2": "c01ea3285d35e1fd16e0394d6f0b7e1ea8802970" + "sha2": "cd49031c9d530429e688cb2c2d431f9886faf0c9" } ,{ "testCaseDescription": "javascript-for-of-statement-delete-insert-test", @@ -168,9 +168,9 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "c01ea3285d35e1fd16e0394d6f0b7e1ea8802970", + "sha1": "cd49031c9d530429e688cb2c2d431f9886faf0c9", "gitDir": "test/corpus/repos/javascript", - "sha2": "89eff4d5e9b589e41febf344c22eb5a04df68b16" + "sha2": "edc1d4bd5ce19e002db4d14aadf27fbee29f7043" } ,{ "testCaseDescription": "javascript-for-of-statement-replacement-test", @@ -265,9 +265,9 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "89eff4d5e9b589e41febf344c22eb5a04df68b16", + "sha1": "edc1d4bd5ce19e002db4d14aadf27fbee29f7043", "gitDir": "test/corpus/repos/javascript", - "sha2": "7965158f937b3ee160994456741eb00afe3fbd0d" + "sha2": "836a6ec3a87758b5c82406434417264242c87120" } ,{ "testCaseDescription": "javascript-for-of-statement-delete-replacement-test", @@ -326,9 +326,9 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "7965158f937b3ee160994456741eb00afe3fbd0d", + "sha1": "836a6ec3a87758b5c82406434417264242c87120", "gitDir": "test/corpus/repos/javascript", - "sha2": "a66323bfa0cd0f0a13774b57a83940c4068a40f3" + "sha2": "d85ad329517e7e4f8120a0f605d7ee3cc569c7ed" } ,{ "testCaseDescription": "javascript-for-of-statement-delete-test", @@ -357,9 +357,9 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "a66323bfa0cd0f0a13774b57a83940c4068a40f3", + "sha1": "d85ad329517e7e4f8120a0f605d7ee3cc569c7ed", "gitDir": "test/corpus/repos/javascript", - "sha2": "0ca09a3099c640d7c94b2f17af17271e929f9922" + "sha2": "d10a061030fa439d2be21180c3d2d03fbf85fe53" } ,{ "testCaseDescription": "javascript-for-of-statement-delete-rest-test", @@ -388,7 +388,7 @@ "filePaths": [ "for-of-statement.js" ], - "sha1": "0ca09a3099c640d7c94b2f17af17271e929f9922", + "sha1": "d10a061030fa439d2be21180c3d2d03fbf85fe53", "gitDir": "test/corpus/repos/javascript", - "sha2": "a2d502c7a7513f8b444a86b20b30bab03596fbc8" + "sha2": "71988243c189f72eb85f1e1cd55497985877d654" }] diff --git a/test/corpus/diff-summaries/javascript/for-statement.json b/test/corpus/diff-summaries/javascript/for-statement.json index f670860d5..ad684ceef 100644 --- a/test/corpus/diff-summaries/javascript/for-statement.json +++ b/test/corpus/diff-summaries/javascript/for-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "for-statement.js" ], - "sha1": "3796a991b2357c81a53bba876bd3301454149a67", + "sha1": "17ba0adbd505e57d01caa8bc3911712cff975e3d", "gitDir": "test/corpus/repos/javascript", - "sha2": "b96e317e7462b16604a14c3abfd3aa092eda22f9" + "sha2": "5e8db7d1e2ae20379e7bb09332a2ba4067c65a21" } ,{ "testCaseDescription": "javascript-for-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "for-statement.js" ], - "sha1": "b96e317e7462b16604a14c3abfd3aa092eda22f9", + "sha1": "5e8db7d1e2ae20379e7bb09332a2ba4067c65a21", "gitDir": "test/corpus/repos/javascript", - "sha2": "0ddad4bbd14536e0b3793d167f43d40ef1242bfa" + "sha2": "047b9d3dda6f8719862c879ffa9e0e9c7698e25b" } ,{ "testCaseDescription": "javascript-for-statement-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "for-statement.js" ], - "sha1": "0ddad4bbd14536e0b3793d167f43d40ef1242bfa", + "sha1": "047b9d3dda6f8719862c879ffa9e0e9c7698e25b", "gitDir": "test/corpus/repos/javascript", - "sha2": "021c4135ec99beb219b8a36571c7e43148eb1ad9" + "sha2": "2255837541bfa0e5b3dcc375391bc2efb05af24f" } ,{ "testCaseDescription": "javascript-for-statement-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "for-statement.js" ], - "sha1": "021c4135ec99beb219b8a36571c7e43148eb1ad9", + "sha1": "2255837541bfa0e5b3dcc375391bc2efb05af24f", "gitDir": "test/corpus/repos/javascript", - "sha2": "e67efbe9d926f8bf7a9d123a86399cc7259ae516" + "sha2": "25ff9eed404056ff40c2085bcf6dbf882553c2b4" } ,{ "testCaseDescription": "javascript-for-statement-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "for-statement.js" ], - "sha1": "e67efbe9d926f8bf7a9d123a86399cc7259ae516", + "sha1": "25ff9eed404056ff40c2085bcf6dbf882553c2b4", "gitDir": "test/corpus/repos/javascript", - "sha2": "eb778d7a56f5b5e6420565c7fe3f7b9729a7b92f" + "sha2": "9bf89ba60d7ef5208d7e7473aa63cf945e03ada7" } ,{ "testCaseDescription": "javascript-for-statement-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "for-statement.js" ], - "sha1": "eb778d7a56f5b5e6420565c7fe3f7b9729a7b92f", + "sha1": "9bf89ba60d7ef5208d7e7473aa63cf945e03ada7", "gitDir": "test/corpus/repos/javascript", - "sha2": "8febc6a8354ef03b60f5d79eb250b55d81b335ca" + "sha2": "4df4a14a9ac6fe38124df1738a337e2f48fed050" } ,{ "testCaseDescription": "javascript-for-statement-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "for-statement.js" ], - "sha1": "8febc6a8354ef03b60f5d79eb250b55d81b335ca", + "sha1": "4df4a14a9ac6fe38124df1738a337e2f48fed050", "gitDir": "test/corpus/repos/javascript", - "sha2": "9b4b62c9c1e7a10e77767f7e7fb43c58f9cf01ed" + "sha2": "40b6f1311c0403515c07e8bfe680237a658094fa" }] diff --git a/test/corpus/diff-summaries/javascript/function-call-args.json b/test/corpus/diff-summaries/javascript/function-call-args.json index ddee45df5..abab46926 100644 --- a/test/corpus/diff-summaries/javascript/function-call-args.json +++ b/test/corpus/diff-summaries/javascript/function-call-args.json @@ -25,9 +25,9 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "1c26ddab5fba493104cdbeecfad13b8a056a33ae", + "sha1": "f280453bb32a391891c7d93eaa0edb1747f29819", "gitDir": "test/corpus/repos/javascript", - "sha2": "da7ac6c46b4f7758257fa14eae2781012ee2646b" + "sha2": "54acb9d9fd2d16e5e46a8e28fb1fae8578d97182" } ,{ "testCaseDescription": "javascript-function-call-args-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "da7ac6c46b4f7758257fa14eae2781012ee2646b", + "sha1": "54acb9d9fd2d16e5e46a8e28fb1fae8578d97182", "gitDir": "test/corpus/repos/javascript", - "sha2": "8e183a32085b1a2813d196ad149ff5029686a556" + "sha2": "80ef06ef24cf365a7dad14c0b783dc3376895e38" } ,{ "testCaseDescription": "javascript-function-call-args-delete-insert-test", @@ -249,9 +249,9 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "8e183a32085b1a2813d196ad149ff5029686a556", + "sha1": "80ef06ef24cf365a7dad14c0b783dc3376895e38", "gitDir": "test/corpus/repos/javascript", - "sha2": "907ff75a064f38263f586bc88f941350344e81a0" + "sha2": "3b875163246b6d3c7aabacc0804ccb826854212c" } ,{ "testCaseDescription": "javascript-function-call-args-replacement-test", @@ -427,9 +427,9 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "907ff75a064f38263f586bc88f941350344e81a0", + "sha1": "3b875163246b6d3c7aabacc0804ccb826854212c", "gitDir": "test/corpus/repos/javascript", - "sha2": "754ebbed9937a29eaeba86f2abb3782d2313bb20" + "sha2": "d3c0d8228a46c470276ad37343c43ae40665eccb" } ,{ "testCaseDescription": "javascript-function-call-args-delete-replacement-test", @@ -488,9 +488,9 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "754ebbed9937a29eaeba86f2abb3782d2313bb20", + "sha1": "d3c0d8228a46c470276ad37343c43ae40665eccb", "gitDir": "test/corpus/repos/javascript", - "sha2": "1c531b12c0a68a71d780d4e7827be4b03198a818" + "sha2": "8cdf115a1bd074b33eb6db540a9749227a7ff523" } ,{ "testCaseDescription": "javascript-function-call-args-delete-test", @@ -519,9 +519,9 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "1c531b12c0a68a71d780d4e7827be4b03198a818", + "sha1": "8cdf115a1bd074b33eb6db540a9749227a7ff523", "gitDir": "test/corpus/repos/javascript", - "sha2": "745e324b6bb74d8d058796a6c3c5b74a5bbb0b98" + "sha2": "dcaa52d370076b0ccc3f741ef37bae9011bb48c1" } ,{ "testCaseDescription": "javascript-function-call-args-delete-rest-test", @@ -550,7 +550,7 @@ "filePaths": [ "function-call-args.js" ], - "sha1": "745e324b6bb74d8d058796a6c3c5b74a5bbb0b98", + "sha1": "dcaa52d370076b0ccc3f741ef37bae9011bb48c1", "gitDir": "test/corpus/repos/javascript", - "sha2": "79d513015fcca66bb73501ffae783b1c226934a8" + "sha2": "ec7e7ab3dbd5fa6f9f2a5c7d30b0a6be0c45ce57" }] diff --git a/test/corpus/diff-summaries/javascript/function-call.json b/test/corpus/diff-summaries/javascript/function-call.json index 3ef57cdaa..cfdee3525 100644 --- a/test/corpus/diff-summaries/javascript/function-call.json +++ b/test/corpus/diff-summaries/javascript/function-call.json @@ -25,9 +25,9 @@ "filePaths": [ "function-call.js" ], - "sha1": "4245fc4f5ad07d2d01f09a6715609b4968bed2e6", + "sha1": "367aef0cdd3bdd1e9bece657984d068d3dfa0841", "gitDir": "test/corpus/repos/javascript", - "sha2": "8e3e1c1e3f5e166786782bcb2d1ddc6451f5502f" + "sha2": "799e90563c8c36ab7ec034ed731e310d6f93d47b" } ,{ "testCaseDescription": "javascript-function-call-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "function-call.js" ], - "sha1": "8e3e1c1e3f5e166786782bcb2d1ddc6451f5502f", + "sha1": "799e90563c8c36ab7ec034ed731e310d6f93d47b", "gitDir": "test/corpus/repos/javascript", - "sha2": "8e669882672ce1d24bf3c7ef77380bfdf679605d" + "sha2": "2d2faa4329522ce1779400ef5b5ac910e24cc04f" } ,{ "testCaseDescription": "javascript-function-call-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "function-call.js" ], - "sha1": "8e669882672ce1d24bf3c7ef77380bfdf679605d", + "sha1": "2d2faa4329522ce1779400ef5b5ac910e24cc04f", "gitDir": "test/corpus/repos/javascript", - "sha2": "29989cd5f5e4e0440173d039e3e9ff64c7731dbf" + "sha2": "7cf7200c689673942b11cb0f1ee4ef6a4379b90a" } ,{ "testCaseDescription": "javascript-function-call-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "function-call.js" ], - "sha1": "29989cd5f5e4e0440173d039e3e9ff64c7731dbf", + "sha1": "7cf7200c689673942b11cb0f1ee4ef6a4379b90a", "gitDir": "test/corpus/repos/javascript", - "sha2": "ed9576c6715b16f5665f10e9558b5b0c16610f2d" + "sha2": "a9eab7722657406c0e15d2b3b7763e5a95cbaa96" } ,{ "testCaseDescription": "javascript-function-call-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "function-call.js" ], - "sha1": "ed9576c6715b16f5665f10e9558b5b0c16610f2d", + "sha1": "a9eab7722657406c0e15d2b3b7763e5a95cbaa96", "gitDir": "test/corpus/repos/javascript", - "sha2": "0a64dbdb3b3fc41dd60c6b9548b645f5b8d5886b" + "sha2": "e29a8f544b54eb16bc1e1a98e4d8fd1931729fab" } ,{ "testCaseDescription": "javascript-function-call-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "function-call.js" ], - "sha1": "0a64dbdb3b3fc41dd60c6b9548b645f5b8d5886b", + "sha1": "e29a8f544b54eb16bc1e1a98e4d8fd1931729fab", "gitDir": "test/corpus/repos/javascript", - "sha2": "7c11bbe584e1d04588ea3452153ba69cd7ad728a" + "sha2": "7cd7d623443541ca7e2727492bad9c354f52f5f1" } ,{ "testCaseDescription": "javascript-function-call-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "function-call.js" ], - "sha1": "7c11bbe584e1d04588ea3452153ba69cd7ad728a", + "sha1": "7cd7d623443541ca7e2727492bad9c354f52f5f1", "gitDir": "test/corpus/repos/javascript", - "sha2": "dadd3c0cc06f6505dd8efebc3e3e0d976818f22b" + "sha2": "e96a9f72694e18966839d0f138a99ac7be56b33e" }] diff --git a/test/corpus/diff-summaries/javascript/function.json b/test/corpus/diff-summaries/javascript/function.json index 5a9d7e590..49e46388f 100644 --- a/test/corpus/diff-summaries/javascript/function.json +++ b/test/corpus/diff-summaries/javascript/function.json @@ -25,9 +25,9 @@ "filePaths": [ "function.js" ], - "sha1": "bf731f26dbd512f6c40017aa952c201958a1bb9f", + "sha1": "86bc815338f38ac0b5c22bc2d78e64d445a1ee9d", "gitDir": "test/corpus/repos/javascript", - "sha2": "6e1d89cdd52744f60efcaa192de92833a9e20109" + "sha2": "676181036c80de93e3140524f333aa7eaccb1f74" } ,{ "testCaseDescription": "javascript-function-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "function.js" ], - "sha1": "6e1d89cdd52744f60efcaa192de92833a9e20109", + "sha1": "676181036c80de93e3140524f333aa7eaccb1f74", "gitDir": "test/corpus/repos/javascript", - "sha2": "60ad5ad54b89671e79621576a1c62253c99f32c1" + "sha2": "6e4ebf310243181f0ec31130e3e5ad92482b5ad8" } ,{ "testCaseDescription": "javascript-function-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "function.js" ], - "sha1": "60ad5ad54b89671e79621576a1c62253c99f32c1", + "sha1": "6e4ebf310243181f0ec31130e3e5ad92482b5ad8", "gitDir": "test/corpus/repos/javascript", - "sha2": "5652e2a52d69aea759f570b8429ca12876dc8b83" + "sha2": "112acd61210c225ad50f35e630b61ebd9ff2f765" } ,{ "testCaseDescription": "javascript-function-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "function.js" ], - "sha1": "5652e2a52d69aea759f570b8429ca12876dc8b83", + "sha1": "112acd61210c225ad50f35e630b61ebd9ff2f765", "gitDir": "test/corpus/repos/javascript", - "sha2": "35d029f148f3f3a0859f15ab6b01764d3da36e60" + "sha2": "c5dc18b838db9786a9f78be8f8ed28a17996d4cc" } ,{ "testCaseDescription": "javascript-function-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "function.js" ], - "sha1": "35d029f148f3f3a0859f15ab6b01764d3da36e60", + "sha1": "c5dc18b838db9786a9f78be8f8ed28a17996d4cc", "gitDir": "test/corpus/repos/javascript", - "sha2": "12428d9de7abb4173ddebd3f6fb5c37945c7b547" + "sha2": "dc45f0f86adfa4b2cfe134494fbc699034d75447" } ,{ "testCaseDescription": "javascript-function-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "function.js" ], - "sha1": "12428d9de7abb4173ddebd3f6fb5c37945c7b547", + "sha1": "dc45f0f86adfa4b2cfe134494fbc699034d75447", "gitDir": "test/corpus/repos/javascript", - "sha2": "67f9b43d4820aa5c4b3c511fc3d8203b648e7abd" + "sha2": "eb0c021da284ad13230fd8e4491e527bbca579ba" } ,{ "testCaseDescription": "javascript-function-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "function.js" ], - "sha1": "67f9b43d4820aa5c4b3c511fc3d8203b648e7abd", + "sha1": "eb0c021da284ad13230fd8e4491e527bbca579ba", "gitDir": "test/corpus/repos/javascript", - "sha2": "97fd068687478c18e12819a060dd676c736e57e6" + "sha2": "af61bc777c8d895654d3d11c775df42353147dd6" }] diff --git a/test/corpus/diff-summaries/javascript/generator-function.json b/test/corpus/diff-summaries/javascript/generator-function.json index 753db17e6..b722f0145 100644 --- a/test/corpus/diff-summaries/javascript/generator-function.json +++ b/test/corpus/diff-summaries/javascript/generator-function.json @@ -25,9 +25,9 @@ "filePaths": [ "generator-function.js" ], - "sha1": "6f86c3aa782a2bff143e0da2419cb62a9745cd22", + "sha1": "b4e9187be7ba27eddc36a48633b968a96c1f1f31", "gitDir": "test/corpus/repos/javascript", - "sha2": "8333af7e424736e3c5581b700ae4ad7034866a86" + "sha2": "a26979861c100cf411cc5d654c5d3be63fa76fcc" } ,{ "testCaseDescription": "javascript-generator-function-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "generator-function.js" ], - "sha1": "8333af7e424736e3c5581b700ae4ad7034866a86", + "sha1": "a26979861c100cf411cc5d654c5d3be63fa76fcc", "gitDir": "test/corpus/repos/javascript", - "sha2": "42dbe6e86ddd9bcbc32883ff86c4c9fba4cfc3ef" + "sha2": "ca3d5f50c4f5dbd0813329919dfecf84aef0bf0b" } ,{ "testCaseDescription": "javascript-generator-function-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "generator-function.js" ], - "sha1": "42dbe6e86ddd9bcbc32883ff86c4c9fba4cfc3ef", + "sha1": "ca3d5f50c4f5dbd0813329919dfecf84aef0bf0b", "gitDir": "test/corpus/repos/javascript", - "sha2": "f22458c44385318ccbf22fbeab3a7581e5de9b9f" + "sha2": "716e5f265c30661269e1b568472c6b64005feb0f" } ,{ "testCaseDescription": "javascript-generator-function-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "generator-function.js" ], - "sha1": "f22458c44385318ccbf22fbeab3a7581e5de9b9f", + "sha1": "716e5f265c30661269e1b568472c6b64005feb0f", "gitDir": "test/corpus/repos/javascript", - "sha2": "fc872ff28c661e88eb34b50f137b652f83eeaacf" + "sha2": "37b94707276264ac8b72f5facb4b1b74f84680e5" } ,{ "testCaseDescription": "javascript-generator-function-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "generator-function.js" ], - "sha1": "fc872ff28c661e88eb34b50f137b652f83eeaacf", + "sha1": "37b94707276264ac8b72f5facb4b1b74f84680e5", "gitDir": "test/corpus/repos/javascript", - "sha2": "c51191686e1a8430faa6415b951f8a452f6a4cf0" + "sha2": "079d28e719bee0335446baaab52b4b1adabe8cde" } ,{ "testCaseDescription": "javascript-generator-function-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "generator-function.js" ], - "sha1": "c51191686e1a8430faa6415b951f8a452f6a4cf0", + "sha1": "079d28e719bee0335446baaab52b4b1adabe8cde", "gitDir": "test/corpus/repos/javascript", - "sha2": "15f7c02a78058e416ba6c6d26b1c9b33ce5dd9b1" + "sha2": "ca1fae07803e91f51cbf8c43938b8ae29242f502" } ,{ "testCaseDescription": "javascript-generator-function-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "generator-function.js" ], - "sha1": "15f7c02a78058e416ba6c6d26b1c9b33ce5dd9b1", + "sha1": "ca1fae07803e91f51cbf8c43938b8ae29242f502", "gitDir": "test/corpus/repos/javascript", - "sha2": "060fdfdbf65d370eafe6d94f01d62a2c1be7ed76" + "sha2": "73ed6c706441e034a7c2f8922f9294250e675d04" }] diff --git a/test/corpus/diff-summaries/javascript/identifier.json b/test/corpus/diff-summaries/javascript/identifier.json index 60408b0b5..14fa1ec9e 100644 --- a/test/corpus/diff-summaries/javascript/identifier.json +++ b/test/corpus/diff-summaries/javascript/identifier.json @@ -25,9 +25,9 @@ "filePaths": [ "identifier.js" ], - "sha1": "65573db715ec0e4bd1e8d66b6d55c16c2851dd0f", + "sha1": "ce7c81be19fcdd12c1d61a8c7a1c999860b4280b", "gitDir": "test/corpus/repos/javascript", - "sha2": "87cbcc9911a7385eff63ac4bbea20c0a71c3a3fa" + "sha2": "3bea1e879959da42302446f858acbfd5c089fa90" } ,{ "testCaseDescription": "javascript-identifier-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "identifier.js" ], - "sha1": "87cbcc9911a7385eff63ac4bbea20c0a71c3a3fa", + "sha1": "3bea1e879959da42302446f858acbfd5c089fa90", "gitDir": "test/corpus/repos/javascript", - "sha2": "a25aecbc2a1d5b83af51a660c8b8ec735e343bb9" + "sha2": "126f86c0b5562b3b98c491fd69828b6ae4a3e1e8" } ,{ "testCaseDescription": "javascript-identifier-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "identifier.js" ], - "sha1": "a25aecbc2a1d5b83af51a660c8b8ec735e343bb9", + "sha1": "126f86c0b5562b3b98c491fd69828b6ae4a3e1e8", "gitDir": "test/corpus/repos/javascript", - "sha2": "af4403d0da6ba7512bf86298d423bb8e6755eb40" + "sha2": "c0439a405e4223612fa11aa963643a6ee323515d" } ,{ "testCaseDescription": "javascript-identifier-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "identifier.js" ], - "sha1": "af4403d0da6ba7512bf86298d423bb8e6755eb40", + "sha1": "c0439a405e4223612fa11aa963643a6ee323515d", "gitDir": "test/corpus/repos/javascript", - "sha2": "870d8c3be48b0993283ef5f3a7a6dd75e2f2e212" + "sha2": "93ce01e7f38a9e4dc42fc2e111380d564ca20f3d" } ,{ "testCaseDescription": "javascript-identifier-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "identifier.js" ], - "sha1": "870d8c3be48b0993283ef5f3a7a6dd75e2f2e212", + "sha1": "93ce01e7f38a9e4dc42fc2e111380d564ca20f3d", "gitDir": "test/corpus/repos/javascript", - "sha2": "97084ee0716ceac15148b0a1bcccdc85471d9dde" + "sha2": "4af02ddb0217425e4c61c89cc12afa353f838a4b" } ,{ "testCaseDescription": "javascript-identifier-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "identifier.js" ], - "sha1": "97084ee0716ceac15148b0a1bcccdc85471d9dde", + "sha1": "4af02ddb0217425e4c61c89cc12afa353f838a4b", "gitDir": "test/corpus/repos/javascript", - "sha2": "39f8849c2f95962fc292928fa40d000bba4ebc40" + "sha2": "3d8b222b75c6216026fadd617db43bb58571b6d7" } ,{ "testCaseDescription": "javascript-identifier-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "identifier.js" ], - "sha1": "39f8849c2f95962fc292928fa40d000bba4ebc40", + "sha1": "3d8b222b75c6216026fadd617db43bb58571b6d7", "gitDir": "test/corpus/repos/javascript", - "sha2": "8e71c0b3d7335cc35655cf5a548a4250324806a8" + "sha2": "d23325d922973a6d7b3a0e4c919269eb8da3acc7" }] diff --git a/test/corpus/diff-summaries/javascript/if-else.json b/test/corpus/diff-summaries/javascript/if-else.json index b2608be10..b34214b6f 100644 --- a/test/corpus/diff-summaries/javascript/if-else.json +++ b/test/corpus/diff-summaries/javascript/if-else.json @@ -25,9 +25,9 @@ "filePaths": [ "if-else.js" ], - "sha1": "50e5e8bb6b1f89c5e0b60ec478d248088fafe1d8", + "sha1": "bfb380359a517e4d4b1c0bf41d5aae1535ee2eb4", "gitDir": "test/corpus/repos/javascript", - "sha2": "22472bb90317dbc36adb76bce31f5b5875ec4c42" + "sha2": "29303f751040a0a92e5bd49e59d0a2f814129c7d" } ,{ "testCaseDescription": "javascript-if-else-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "if-else.js" ], - "sha1": "22472bb90317dbc36adb76bce31f5b5875ec4c42", + "sha1": "29303f751040a0a92e5bd49e59d0a2f814129c7d", "gitDir": "test/corpus/repos/javascript", - "sha2": "2166d99be0e7e365f4102c444292de6e94d2968c" + "sha2": "5cf73211180a64a7cdc988de17639759e1f00aa8" } ,{ "testCaseDescription": "javascript-if-else-delete-insert-test", @@ -336,9 +336,9 @@ "filePaths": [ "if-else.js" ], - "sha1": "2166d99be0e7e365f4102c444292de6e94d2968c", + "sha1": "5cf73211180a64a7cdc988de17639759e1f00aa8", "gitDir": "test/corpus/repos/javascript", - "sha2": "a4bd360d8e87e769c5e59e855e985b10cd96adaa" + "sha2": "c5f055a4765ad2e43e6154ad92382861ab88a058" } ,{ "testCaseDescription": "javascript-if-else-replacement-test", @@ -601,9 +601,9 @@ "filePaths": [ "if-else.js" ], - "sha1": "a4bd360d8e87e769c5e59e855e985b10cd96adaa", + "sha1": "c5f055a4765ad2e43e6154ad92382861ab88a058", "gitDir": "test/corpus/repos/javascript", - "sha2": "b02a9785d82c81756059290d17b54469becfa09a" + "sha2": "727f0d46c980576cd588c4fefd342c327b059a3c" } ,{ "testCaseDescription": "javascript-if-else-delete-replacement-test", @@ -662,9 +662,9 @@ "filePaths": [ "if-else.js" ], - "sha1": "b02a9785d82c81756059290d17b54469becfa09a", + "sha1": "727f0d46c980576cd588c4fefd342c327b059a3c", "gitDir": "test/corpus/repos/javascript", - "sha2": "a4298222ae338f7b37cfcb392b870d7f482106f0" + "sha2": "502bdfd3893439aaa3083515ddb42ef3b2347489" } ,{ "testCaseDescription": "javascript-if-else-delete-test", @@ -693,9 +693,9 @@ "filePaths": [ "if-else.js" ], - "sha1": "a4298222ae338f7b37cfcb392b870d7f482106f0", + "sha1": "502bdfd3893439aaa3083515ddb42ef3b2347489", "gitDir": "test/corpus/repos/javascript", - "sha2": "aa910a9ff2f723390e1dc8832fc701b5e68bf3ce" + "sha2": "448765f9348f3025b39aa2ebb3d960bd2b109b9b" } ,{ "testCaseDescription": "javascript-if-else-delete-rest-test", @@ -724,7 +724,7 @@ "filePaths": [ "if-else.js" ], - "sha1": "aa910a9ff2f723390e1dc8832fc701b5e68bf3ce", + "sha1": "448765f9348f3025b39aa2ebb3d960bd2b109b9b", "gitDir": "test/corpus/repos/javascript", - "sha2": "99000e408a9ff5553491972cfce5e9b2a1873904" + "sha2": "cd4e32b78606c7a57aa99922f75294e3b2a3c136" }] diff --git a/test/corpus/diff-summaries/javascript/if.json b/test/corpus/diff-summaries/javascript/if.json index 22937b7e6..fcad43dd9 100644 --- a/test/corpus/diff-summaries/javascript/if.json +++ b/test/corpus/diff-summaries/javascript/if.json @@ -25,9 +25,9 @@ "filePaths": [ "if.js" ], - "sha1": "53c5db9bb39adc5c031b70caef47bd82757e2123", + "sha1": "1669bea8ff257c1f4188d1b90d7f085ea3d7325e", "gitDir": "test/corpus/repos/javascript", - "sha2": "8fb1783482c65f8dc239cab7cad6d6497444eccb" + "sha2": "1fe71eab2e8d6bd997c60d26a1674fe265dd73c2" } ,{ "testCaseDescription": "javascript-if-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "if.js" ], - "sha1": "8fb1783482c65f8dc239cab7cad6d6497444eccb", + "sha1": "1fe71eab2e8d6bd997c60d26a1674fe265dd73c2", "gitDir": "test/corpus/repos/javascript", - "sha2": "92cb0d73d128e632110d9d2583d1fc1e9cd9bf83" + "sha2": "5f1556c1e3a0c28edd80a160a01ceab6d1a380d8" } ,{ "testCaseDescription": "javascript-if-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "if.js" ], - "sha1": "92cb0d73d128e632110d9d2583d1fc1e9cd9bf83", + "sha1": "5f1556c1e3a0c28edd80a160a01ceab6d1a380d8", "gitDir": "test/corpus/repos/javascript", - "sha2": "71dc340110c3ce7e39042e16f90d25fd3fffdf0d" + "sha2": "e8b3d1db0bf3d53cf843fbc71e29be27c1dbfb60" } ,{ "testCaseDescription": "javascript-if-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "if.js" ], - "sha1": "71dc340110c3ce7e39042e16f90d25fd3fffdf0d", + "sha1": "e8b3d1db0bf3d53cf843fbc71e29be27c1dbfb60", "gitDir": "test/corpus/repos/javascript", - "sha2": "fd8fd35219c2e2a30045b55dca614966e6c30cee" + "sha2": "5b4cb38b4643bddb457cc98f50121cc692cb76d1" } ,{ "testCaseDescription": "javascript-if-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "if.js" ], - "sha1": "fd8fd35219c2e2a30045b55dca614966e6c30cee", + "sha1": "5b4cb38b4643bddb457cc98f50121cc692cb76d1", "gitDir": "test/corpus/repos/javascript", - "sha2": "c581bf4d28dc96c5f18449df02e0816ff0f780b2" + "sha2": "ffe247500f425d285671d060ea18fd77ba34cbff" } ,{ "testCaseDescription": "javascript-if-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "if.js" ], - "sha1": "c581bf4d28dc96c5f18449df02e0816ff0f780b2", + "sha1": "ffe247500f425d285671d060ea18fd77ba34cbff", "gitDir": "test/corpus/repos/javascript", - "sha2": "e26dadfc17ee4b5a85e166d391ff16fc7e54488d" + "sha2": "fba1acf75716da4bc187e5d719fe1158ad4e57de" } ,{ "testCaseDescription": "javascript-if-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "if.js" ], - "sha1": "e26dadfc17ee4b5a85e166d391ff16fc7e54488d", + "sha1": "fba1acf75716da4bc187e5d719fe1158ad4e57de", "gitDir": "test/corpus/repos/javascript", - "sha2": "c46205f2bb3f15f4d213f86c71ece44db75a6cda" + "sha2": "bfb380359a517e4d4b1c0bf41d5aae1535ee2eb4" }] diff --git a/test/corpus/diff-summaries/javascript/import.json b/test/corpus/diff-summaries/javascript/import.json index 12200ba51..afec3bbb1 100644 --- a/test/corpus/diff-summaries/javascript/import.json +++ b/test/corpus/diff-summaries/javascript/import.json @@ -16,7 +16,7 @@ ] } }, - "summary": "Added the '\"foo\"' import statement" + "summary": "Added the 'defaultMember from \"foo\"' import statement" }, { "span": { @@ -31,7 +31,7 @@ ] } }, - "summary": "Added the '\"aardvark\"' import statement" + "summary": "Added the '* as name from \"aardvark\"' import statement" }, { "span": { @@ -46,7 +46,7 @@ ] } }, - "summary": "Added the '\"ant\"' import statement" + "summary": "Added the '{ member } from \"ant\"' import statement" }, { "span": { @@ -61,7 +61,7 @@ ] } }, - "summary": "Added the '\"antelope\"' import statement" + "summary": "Added the '{ member1 , member2 } from \"antelope\"' import statement" }, { "span": { @@ -76,7 +76,7 @@ ] } }, - "summary": "Added the '\"ant-eater\"' import statement" + "summary": "Added the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" }, { "span": { @@ -91,7 +91,7 @@ ] } }, - "summary": "Added the '\"anaconda\"' import statement" + "summary": "Added the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" }, { "span": { @@ -106,7 +106,7 @@ ] } }, - "summary": "Added the '\"alligator\"' import statement" + "summary": "Added the 'defaultMember, * as name from \"alligator\"' import statement" }, { "span": { @@ -130,9 +130,9 @@ "filePaths": [ "import.js" ], - "sha1": "110e284b9b5d70a24d6747dbb0e6e6f7525b44f3", + "sha1": "3d8abc91d860e610bac6e525520808516e272b42", "gitDir": "test/corpus/repos/javascript", - "sha2": "8929273e7a60a0f8d0b25917e9f9e7b8808492b9" + "sha2": "32c8a4c032e84cfb199cdfd423d0d1a8bea5244b" } ,{ "testCaseDescription": "javascript-import-replacement-insert-test", @@ -152,7 +152,7 @@ ] } }, - "summary": "Added the '\"babirusa\"' import statement" + "summary": "Added the 'defaultMember from \"babirusa\"' import statement" }, { "span": { @@ -167,7 +167,7 @@ ] } }, - "summary": "Added the '\"baboon\"' import statement" + "summary": "Added the '* as otherName from \"baboon\"' import statement" }, { "span": { @@ -182,7 +182,7 @@ ] } }, - "summary": "Added the '\"badger\"' import statement" + "summary": "Added the '{ element } from \"badger\"' import statement" }, { "span": { @@ -197,7 +197,7 @@ ] } }, - "summary": "Added the '\"bald-eagle\"' import statement" + "summary": "Added the '{ element1 , element2 } from \"bald-eagle\"' import statement" }, { "span": { @@ -212,7 +212,7 @@ ] } }, - "summary": "Added the '\"bandicoot\"' import statement" + "summary": "Added the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" }, { "span": { @@ -227,7 +227,7 @@ ] } }, - "summary": "Added the '\"banteng\"' import statement" + "summary": "Added the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" }, { "span": { @@ -242,7 +242,7 @@ ] } }, - "summary": "Added the '\"barbet\"' import statement" + "summary": "Added the 'defaultMember, * as element from \"barbet\"' import statement" }, { "span": { @@ -272,7 +272,7 @@ ] } }, - "summary": "Added the '\"foo\"' import statement" + "summary": "Added the 'defaultMember from \"foo\"' import statement" }, { "span": { @@ -287,7 +287,7 @@ ] } }, - "summary": "Added the '\"aardvark\"' import statement" + "summary": "Added the '* as name from \"aardvark\"' import statement" }, { "span": { @@ -302,7 +302,7 @@ ] } }, - "summary": "Added the '\"ant\"' import statement" + "summary": "Added the '{ member } from \"ant\"' import statement" }, { "span": { @@ -317,7 +317,7 @@ ] } }, - "summary": "Added the '\"antelope\"' import statement" + "summary": "Added the '{ member1 , member2 } from \"antelope\"' import statement" }, { "span": { @@ -332,7 +332,7 @@ ] } }, - "summary": "Added the '\"ant-eater\"' import statement" + "summary": "Added the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" }, { "span": { @@ -347,7 +347,7 @@ ] } }, - "summary": "Added the '\"anaconda\"' import statement" + "summary": "Added the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" }, { "span": { @@ -362,7 +362,7 @@ ] } }, - "summary": "Added the '\"alligator\"' import statement" + "summary": "Added the 'defaultMember, * as name from \"alligator\"' import statement" }, { "span": { @@ -386,9 +386,9 @@ "filePaths": [ "import.js" ], - "sha1": "8929273e7a60a0f8d0b25917e9f9e7b8808492b9", + "sha1": "32c8a4c032e84cfb199cdfd423d0d1a8bea5244b", "gitDir": "test/corpus/repos/javascript", - "sha2": "d56d94f765b22f263b9cf7a2bff4a62697f6e8a2" + "sha2": "4b732476e19885d1009ea2b22cd3e6a36824f421" } ,{ "testCaseDescription": "javascript-import-delete-insert-test", @@ -420,7 +420,7 @@ } ] }, - "summary": "Replaced the \"babirusa\" string with the \"foo\" string in the \"foo\" import statement" + "summary": "Replaced the \"babirusa\" string with the \"foo\" string in the defaultMember from \"foo\" import statement" }, { "span": { @@ -447,7 +447,7 @@ } ] }, - "summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the \"aardvark\" import statement" + "summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the name from \"aar from \"aardvark\" import statement" }, { "span": { @@ -474,7 +474,7 @@ } ] }, - "summary": "Replaced the 'otherName' identifier with the 'name' identifier in the \"aardvark\" import statement" + "summary": "Replaced the 'otherName' identifier with the 'name' identifier in the name from \"aardvark\" import statement" }, { "span": { @@ -489,7 +489,7 @@ ] } }, - "summary": "Added the '\"ant\"' import statement" + "summary": "Added the '{ member } from \"ant\"' import statement" }, { "span": { @@ -504,7 +504,7 @@ ] } }, - "summary": "Added the '\"antelope\"' import statement" + "summary": "Added the '{ member1 , member2 } from \"antelope\"' import statement" }, { "span": { @@ -519,7 +519,7 @@ ] } }, - "summary": "Added the '\"ant-eater\"' import statement" + "summary": "Added the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" }, { "span": { @@ -534,7 +534,7 @@ ] } }, - "summary": "Added the '\"anaconda\"' import statement" + "summary": "Added the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" }, { "span": { @@ -561,7 +561,7 @@ } ] }, - "summary": "Replaced the '\"badger\"' import statement with the '\"alligator\"' import statement" + "summary": "Replaced the '{ element } from \"badger\"' import statement with the 'defaultMember, * as name from \"alligator\"' import statement" }, { "span": { @@ -591,7 +591,7 @@ ] } }, - "summary": "Deleted the '\"bald-eagle\"' import statement" + "summary": "Deleted the '{ element1 , element2 } from \"bald-eagle\"' import statement" }, { "span": { @@ -606,7 +606,7 @@ ] } }, - "summary": "Deleted the '\"bandicoot\"' import statement" + "summary": "Deleted the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" }, { "span": { @@ -621,7 +621,7 @@ ] } }, - "summary": "Deleted the '\"banteng\"' import statement" + "summary": "Deleted the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" }, { "span": { @@ -636,7 +636,7 @@ ] } }, - "summary": "Deleted the '\"barbet\"' import statement" + "summary": "Deleted the 'defaultMember, * as element from \"barbet\"' import statement" }, { "span": { @@ -660,9 +660,9 @@ "filePaths": [ "import.js" ], - "sha1": "d56d94f765b22f263b9cf7a2bff4a62697f6e8a2", + "sha1": "4b732476e19885d1009ea2b22cd3e6a36824f421", "gitDir": "test/corpus/repos/javascript", - "sha2": "70b0e327d1737690933dfcf8c7bd925a1ca4f871" + "sha2": "90066a60acc543d36e07918d1856677b6387aa1b" } ,{ "testCaseDescription": "javascript-import-replacement-test", @@ -694,7 +694,7 @@ } ] }, - "summary": "Replaced the \"foo\" string with the \"babirusa\" string in the \"babirusa\" import statement" + "summary": "Replaced the \"foo\" string with the \"babirusa\" string in the defaultMember from \"babirusa\" import statement" }, { "span": { @@ -721,7 +721,7 @@ } ] }, - "summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the \"baboon\" import statement" + "summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the port * as from \"baboon\" import statement" }, { "span": { @@ -748,7 +748,7 @@ } ] }, - "summary": "Replaced the 'name' identifier with the 'otherName' identifier in the \"baboon\" import statement" + "summary": "Replaced the 'name' identifier with the 'otherName' identifier in the port * as from \"baboon\" import statement" }, { "span": { @@ -763,7 +763,7 @@ ] } }, - "summary": "Added the '\"badger\"' import statement" + "summary": "Added the '{ element } from \"badger\"' import statement" }, { "span": { @@ -778,7 +778,7 @@ ] } }, - "summary": "Added the '\"bald-eagle\"' import statement" + "summary": "Added the '{ element1 , element2 } from \"bald-eagle\"' import statement" }, { "span": { @@ -793,7 +793,7 @@ ] } }, - "summary": "Added the '\"bandicoot\"' import statement" + "summary": "Added the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" }, { "span": { @@ -808,7 +808,7 @@ ] } }, - "summary": "Added the '\"banteng\"' import statement" + "summary": "Added the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" }, { "span": { @@ -835,7 +835,7 @@ } ] }, - "summary": "Replaced the '\"ant\"' import statement with the '\"barbet\"' import statement" + "summary": "Replaced the '{ member } from \"ant\"' import statement with the 'defaultMember, * as element from \"barbet\"' import statement" }, { "span": { @@ -865,7 +865,7 @@ ] } }, - "summary": "Deleted the '\"antelope\"' import statement" + "summary": "Deleted the '{ member1 , member2 } from \"antelope\"' import statement" }, { "span": { @@ -880,7 +880,7 @@ ] } }, - "summary": "Deleted the '\"ant-eater\"' import statement" + "summary": "Deleted the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" }, { "span": { @@ -895,7 +895,7 @@ ] } }, - "summary": "Deleted the '\"anaconda\"' import statement" + "summary": "Deleted the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" }, { "span": { @@ -910,7 +910,7 @@ ] } }, - "summary": "Deleted the '\"alligator\"' import statement" + "summary": "Deleted the 'defaultMember, * as name from \"alligator\"' import statement" }, { "span": { @@ -934,9 +934,9 @@ "filePaths": [ "import.js" ], - "sha1": "70b0e327d1737690933dfcf8c7bd925a1ca4f871", + "sha1": "90066a60acc543d36e07918d1856677b6387aa1b", "gitDir": "test/corpus/repos/javascript", - "sha2": "67cbd6d7f2a4ae48578af14a879214662d82e4e2" + "sha2": "8a05e0e107e1e1f4bbe25ca647f926564e0748c6" } ,{ "testCaseDescription": "javascript-import-delete-replacement-test", @@ -956,7 +956,7 @@ ] } }, - "summary": "Deleted the '\"babirusa\"' import statement" + "summary": "Deleted the 'defaultMember from \"babirusa\"' import statement" }, { "span": { @@ -971,7 +971,7 @@ ] } }, - "summary": "Deleted the '\"baboon\"' import statement" + "summary": "Deleted the '* as otherName from \"baboon\"' import statement" }, { "span": { @@ -986,7 +986,7 @@ ] } }, - "summary": "Deleted the '\"badger\"' import statement" + "summary": "Deleted the '{ element } from \"badger\"' import statement" }, { "span": { @@ -1001,7 +1001,7 @@ ] } }, - "summary": "Deleted the '\"bald-eagle\"' import statement" + "summary": "Deleted the '{ element1 , element2 } from \"bald-eagle\"' import statement" }, { "span": { @@ -1016,7 +1016,7 @@ ] } }, - "summary": "Deleted the '\"bandicoot\"' import statement" + "summary": "Deleted the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" }, { "span": { @@ -1031,7 +1031,7 @@ ] } }, - "summary": "Deleted the '\"banteng\"' import statement" + "summary": "Deleted the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" }, { "span": { @@ -1046,7 +1046,7 @@ ] } }, - "summary": "Deleted the '\"barbet\"' import statement" + "summary": "Deleted the 'defaultMember, * as element from \"barbet\"' import statement" }, { "span": { @@ -1076,7 +1076,7 @@ ] } }, - "summary": "Deleted the '\"foo\"' import statement" + "summary": "Deleted the 'defaultMember from \"foo\"' import statement" }, { "span": { @@ -1091,7 +1091,7 @@ ] } }, - "summary": "Deleted the '\"aardvark\"' import statement" + "summary": "Deleted the '* as name from \"aardvark\"' import statement" }, { "span": { @@ -1106,7 +1106,7 @@ ] } }, - "summary": "Deleted the '\"ant\"' import statement" + "summary": "Deleted the '{ member } from \"ant\"' import statement" }, { "span": { @@ -1121,7 +1121,7 @@ ] } }, - "summary": "Deleted the '\"antelope\"' import statement" + "summary": "Deleted the '{ member1 , member2 } from \"antelope\"' import statement" }, { "span": { @@ -1136,7 +1136,7 @@ ] } }, - "summary": "Deleted the '\"ant-eater\"' import statement" + "summary": "Deleted the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" }, { "span": { @@ -1151,7 +1151,7 @@ ] } }, - "summary": "Deleted the '\"anaconda\"' import statement" + "summary": "Deleted the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" }, { "span": { @@ -1166,7 +1166,7 @@ ] } }, - "summary": "Deleted the '\"alligator\"' import statement" + "summary": "Deleted the 'defaultMember, * as name from \"alligator\"' import statement" }, { "span": { @@ -1196,7 +1196,7 @@ ] } }, - "summary": "Added the '\"babirusa\"' import statement" + "summary": "Added the 'defaultMember from \"babirusa\"' import statement" }, { "span": { @@ -1211,7 +1211,7 @@ ] } }, - "summary": "Added the '\"baboon\"' import statement" + "summary": "Added the '* as otherName from \"baboon\"' import statement" }, { "span": { @@ -1226,7 +1226,7 @@ ] } }, - "summary": "Added the '\"badger\"' import statement" + "summary": "Added the '{ element } from \"badger\"' import statement" }, { "span": { @@ -1241,7 +1241,7 @@ ] } }, - "summary": "Added the '\"bald-eagle\"' import statement" + "summary": "Added the '{ element1 , element2 } from \"bald-eagle\"' import statement" }, { "span": { @@ -1256,7 +1256,7 @@ ] } }, - "summary": "Added the '\"bandicoot\"' import statement" + "summary": "Added the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" }, { "span": { @@ -1271,7 +1271,7 @@ ] } }, - "summary": "Added the '\"banteng\"' import statement" + "summary": "Added the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" }, { "span": { @@ -1286,7 +1286,7 @@ ] } }, - "summary": "Added the '\"barbet\"' import statement" + "summary": "Added the 'defaultMember, * as element from \"barbet\"' import statement" }, { "span": { @@ -1310,9 +1310,9 @@ "filePaths": [ "import.js" ], - "sha1": "67cbd6d7f2a4ae48578af14a879214662d82e4e2", + "sha1": "8a05e0e107e1e1f4bbe25ca647f926564e0748c6", "gitDir": "test/corpus/repos/javascript", - "sha2": "f98b1467108f4fa1329acff5c7502306c0cb0f5c" + "sha2": "70f4f3d9f4fde350162c49ce9d3a2d7467b4f31f" } ,{ "testCaseDescription": "javascript-import-delete-test", @@ -1332,7 +1332,7 @@ ] } }, - "summary": "Deleted the '\"foo\"' import statement" + "summary": "Deleted the 'defaultMember from \"foo\"' import statement" }, { "span": { @@ -1347,7 +1347,7 @@ ] } }, - "summary": "Deleted the '\"aardvark\"' import statement" + "summary": "Deleted the '* as name from \"aardvark\"' import statement" }, { "span": { @@ -1362,7 +1362,7 @@ ] } }, - "summary": "Deleted the '\"ant\"' import statement" + "summary": "Deleted the '{ member } from \"ant\"' import statement" }, { "span": { @@ -1377,7 +1377,7 @@ ] } }, - "summary": "Deleted the '\"antelope\"' import statement" + "summary": "Deleted the '{ member1 , member2 } from \"antelope\"' import statement" }, { "span": { @@ -1392,7 +1392,7 @@ ] } }, - "summary": "Deleted the '\"ant-eater\"' import statement" + "summary": "Deleted the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" }, { "span": { @@ -1407,7 +1407,7 @@ ] } }, - "summary": "Deleted the '\"anaconda\"' import statement" + "summary": "Deleted the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" }, { "span": { @@ -1422,7 +1422,7 @@ ] } }, - "summary": "Deleted the '\"alligator\"' import statement" + "summary": "Deleted the 'defaultMember, * as name from \"alligator\"' import statement" }, { "span": { @@ -1446,9 +1446,9 @@ "filePaths": [ "import.js" ], - "sha1": "f98b1467108f4fa1329acff5c7502306c0cb0f5c", + "sha1": "70f4f3d9f4fde350162c49ce9d3a2d7467b4f31f", "gitDir": "test/corpus/repos/javascript", - "sha2": "ae342fb2632b86ad69f348c30b285da6157091b0" + "sha2": "c3af43ff5842e1fd2c08b3820b6f0f9cb7a2fdc5" } ,{ "testCaseDescription": "javascript-import-delete-rest-test", @@ -1468,7 +1468,7 @@ ] } }, - "summary": "Deleted the '\"babirusa\"' import statement" + "summary": "Deleted the 'defaultMember from \"babirusa\"' import statement" }, { "span": { @@ -1483,7 +1483,7 @@ ] } }, - "summary": "Deleted the '\"baboon\"' import statement" + "summary": "Deleted the '* as otherName from \"baboon\"' import statement" }, { "span": { @@ -1498,7 +1498,7 @@ ] } }, - "summary": "Deleted the '\"badger\"' import statement" + "summary": "Deleted the '{ element } from \"badger\"' import statement" }, { "span": { @@ -1513,7 +1513,7 @@ ] } }, - "summary": "Deleted the '\"bald-eagle\"' import statement" + "summary": "Deleted the '{ element1 , element2 } from \"bald-eagle\"' import statement" }, { "span": { @@ -1528,7 +1528,7 @@ ] } }, - "summary": "Deleted the '\"bandicoot\"' import statement" + "summary": "Deleted the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" }, { "span": { @@ -1543,7 +1543,7 @@ ] } }, - "summary": "Deleted the '\"banteng\"' import statement" + "summary": "Deleted the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" }, { "span": { @@ -1558,7 +1558,7 @@ ] } }, - "summary": "Deleted the '\"barbet\"' import statement" + "summary": "Deleted the 'defaultMember, * as element from \"barbet\"' import statement" }, { "span": { @@ -1582,7 +1582,7 @@ "filePaths": [ "import.js" ], - "sha1": "ae342fb2632b86ad69f348c30b285da6157091b0", + "sha1": "c3af43ff5842e1fd2c08b3820b6f0f9cb7a2fdc5", "gitDir": "test/corpus/repos/javascript", - "sha2": "fd1e9b12635afbdec41b1778d104a04b853b883f" + "sha2": "8c5cc3ef24ec9c35834725f3a2292a55e91eef27" }] diff --git a/test/corpus/diff-summaries/javascript/math-assignment-operator.json b/test/corpus/diff-summaries/javascript/math-assignment-operator.json index de5fb8e10..c5ac78c66 100644 --- a/test/corpus/diff-summaries/javascript/math-assignment-operator.json +++ b/test/corpus/diff-summaries/javascript/math-assignment-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "6e89831f8d15f9cb8f929ba8225f09180d8a52fb", + "sha1": "ef888d6d043b72dd4229c93518bb60b950cf0bf0", "gitDir": "test/corpus/repos/javascript", - "sha2": "599bd35c3f3203d5d1571119ac4f5a61f9d7cef8" + "sha2": "5266ee8240f6fa066fad60a93da4a96592132f43" } ,{ "testCaseDescription": "javascript-math-assignment-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "599bd35c3f3203d5d1571119ac4f5a61f9d7cef8", + "sha1": "5266ee8240f6fa066fad60a93da4a96592132f43", "gitDir": "test/corpus/repos/javascript", - "sha2": "8c8941551b6c92b15acb79dd88fa7c02e9612f1d" + "sha2": "42bc9fcb64330426fe2fa794db32642eddb56d84" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "8c8941551b6c92b15acb79dd88fa7c02e9612f1d", + "sha1": "42bc9fcb64330426fe2fa794db32642eddb56d84", "gitDir": "test/corpus/repos/javascript", - "sha2": "8fa47fe4df1beb106ae6214baf66518c7e2a95c5" + "sha2": "2fb8401bf000d4958f4bc1fd028566e7d593e23a" } ,{ "testCaseDescription": "javascript-math-assignment-operator-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "8fa47fe4df1beb106ae6214baf66518c7e2a95c5", + "sha1": "2fb8401bf000d4958f4bc1fd028566e7d593e23a", "gitDir": "test/corpus/repos/javascript", - "sha2": "7c77803daf441f39033a6b25e43c8d6e296cfc8f" + "sha2": "4069b449b43aeaced6f121864405d9a3e1ade76e" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "7c77803daf441f39033a6b25e43c8d6e296cfc8f", + "sha1": "4069b449b43aeaced6f121864405d9a3e1ade76e", "gitDir": "test/corpus/repos/javascript", - "sha2": "b37f8bf3d41273a6cf7b3dff018ceb61605b2363" + "sha2": "cdb81e378bce8d7390601e6bed5832bfcebb9b29" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "b37f8bf3d41273a6cf7b3dff018ceb61605b2363", + "sha1": "cdb81e378bce8d7390601e6bed5832bfcebb9b29", "gitDir": "test/corpus/repos/javascript", - "sha2": "5e786092a709765ff6c4f9491de2b17ee8c7184a" + "sha2": "84ba273359a53de7aef4b9246ec76d55dc0e820f" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "math-assignment-operator.js" ], - "sha1": "5e786092a709765ff6c4f9491de2b17ee8c7184a", + "sha1": "84ba273359a53de7aef4b9246ec76d55dc0e820f", "gitDir": "test/corpus/repos/javascript", - "sha2": "32abe7245bb664dff78175127f9542e25f8747e2" + "sha2": "a142f742b4f0d1430db5bcfdcc05d7c2a16ba18c" }] diff --git a/test/corpus/diff-summaries/javascript/math-operator.json b/test/corpus/diff-summaries/javascript/math-operator.json index e990467ff..641ea335a 100644 --- a/test/corpus/diff-summaries/javascript/math-operator.json +++ b/test/corpus/diff-summaries/javascript/math-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "math-operator.js" ], - "sha1": "a0175e65e90799bed222a0cca0576cd48cd7b133", + "sha1": "977edd8e1b976d612c9c6f284738a4f22cc697b8", "gitDir": "test/corpus/repos/javascript", - "sha2": "12f36d52f2c83a36587956650d27651a6f692952" + "sha2": "bd05dffb8711ecccbf470a2bb88d7a9b0dd3ee6d" } ,{ "testCaseDescription": "javascript-math-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "math-operator.js" ], - "sha1": "12f36d52f2c83a36587956650d27651a6f692952", + "sha1": "bd05dffb8711ecccbf470a2bb88d7a9b0dd3ee6d", "gitDir": "test/corpus/repos/javascript", - "sha2": "a436f5b13c4d438d2b389b72c6d9ed7e70224dda" + "sha2": "141c1166e0bb77f01b939087c90496c7e65b9302" } ,{ "testCaseDescription": "javascript-math-operator-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "math-operator.js" ], - "sha1": "a436f5b13c4d438d2b389b72c6d9ed7e70224dda", + "sha1": "141c1166e0bb77f01b939087c90496c7e65b9302", "gitDir": "test/corpus/repos/javascript", - "sha2": "32102f31cc5b8b5b74713e26a662e5f9da5690f2" + "sha2": "ff1f9d941de0f2a5852207483c88031b1f6cc308" } ,{ "testCaseDescription": "javascript-math-operator-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "math-operator.js" ], - "sha1": "32102f31cc5b8b5b74713e26a662e5f9da5690f2", + "sha1": "ff1f9d941de0f2a5852207483c88031b1f6cc308", "gitDir": "test/corpus/repos/javascript", - "sha2": "f69be3858e959b1bf8db98a254c0f6d88bcd4cef" + "sha2": "0c6e4341cc1c8400fcdc24125da09bf3132f995c" } ,{ "testCaseDescription": "javascript-math-operator-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "math-operator.js" ], - "sha1": "f69be3858e959b1bf8db98a254c0f6d88bcd4cef", + "sha1": "0c6e4341cc1c8400fcdc24125da09bf3132f995c", "gitDir": "test/corpus/repos/javascript", - "sha2": "bb28b7f574961d6f4e2f08b1e1b8eefeeab27ef9" + "sha2": "0cb0a2b439c6d673b53953706aeb4a429318d70c" } ,{ "testCaseDescription": "javascript-math-operator-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "math-operator.js" ], - "sha1": "bb28b7f574961d6f4e2f08b1e1b8eefeeab27ef9", + "sha1": "0cb0a2b439c6d673b53953706aeb4a429318d70c", "gitDir": "test/corpus/repos/javascript", - "sha2": "3c8d00ca3352e0d884fedf07a0d509317f048a45" + "sha2": "10b67d732632b9187a30e97e8d663dc906f67dc1" } ,{ "testCaseDescription": "javascript-math-operator-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "math-operator.js" ], - "sha1": "3c8d00ca3352e0d884fedf07a0d509317f048a45", + "sha1": "10b67d732632b9187a30e97e8d663dc906f67dc1", "gitDir": "test/corpus/repos/javascript", - "sha2": "2e01e44b83e82ce6f4210318eed9b60890b681f2" + "sha2": "f18430c0e1b243d84f9119ec7d6109a0dadcb359" }] diff --git a/test/corpus/diff-summaries/javascript/member-access-assignment.json b/test/corpus/diff-summaries/javascript/member-access-assignment.json index 034b03948..c0093bb46 100644 --- a/test/corpus/diff-summaries/javascript/member-access-assignment.json +++ b/test/corpus/diff-summaries/javascript/member-access-assignment.json @@ -25,9 +25,9 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "fc37323e4ce1e1a8f36d5c4d359e993026d32f78", + "sha1": "57057e16ba96f294605ced40a286c5e5a70a4399", "gitDir": "test/corpus/repos/javascript", - "sha2": "cec54b96fcb0ec67d7522d4225c137597be21b83" + "sha2": "64a0f73b0782e40f7c8aa9f3a695844e586b7135" } ,{ "testCaseDescription": "javascript-member-access-assignment-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "cec54b96fcb0ec67d7522d4225c137597be21b83", + "sha1": "64a0f73b0782e40f7c8aa9f3a695844e586b7135", "gitDir": "test/corpus/repos/javascript", - "sha2": "f2bf6ef6764c9b4d583784125467ccfc0bb5212c" + "sha2": "1b0263524f09631f8a3c374072a705da3ea4c0d1" } ,{ "testCaseDescription": "javascript-member-access-assignment-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "f2bf6ef6764c9b4d583784125467ccfc0bb5212c", + "sha1": "1b0263524f09631f8a3c374072a705da3ea4c0d1", "gitDir": "test/corpus/repos/javascript", - "sha2": "99ce3bda36caf74ca3f6d193147e0ea1145516f3" + "sha2": "4960286f9a702dfd1c3dad8a6cb5daa43d5e8d91" } ,{ "testCaseDescription": "javascript-member-access-assignment-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "99ce3bda36caf74ca3f6d193147e0ea1145516f3", + "sha1": "4960286f9a702dfd1c3dad8a6cb5daa43d5e8d91", "gitDir": "test/corpus/repos/javascript", - "sha2": "a1569c0f32457be606cadc5aade85da326ab2495" + "sha2": "b077d10f8bf6ed1b1458b962c7d99713850add3c" } ,{ "testCaseDescription": "javascript-member-access-assignment-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "a1569c0f32457be606cadc5aade85da326ab2495", + "sha1": "b077d10f8bf6ed1b1458b962c7d99713850add3c", "gitDir": "test/corpus/repos/javascript", - "sha2": "213c086c3a7b093d079a2db56cb6a4fd0deb3ea0" + "sha2": "54027439cf7d59db66c4834ac933f6dac40b74be" } ,{ "testCaseDescription": "javascript-member-access-assignment-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "213c086c3a7b093d079a2db56cb6a4fd0deb3ea0", + "sha1": "54027439cf7d59db66c4834ac933f6dac40b74be", "gitDir": "test/corpus/repos/javascript", - "sha2": "fe80556bc2ac80c04b08cccc79d74f3bd4154252" + "sha2": "3a0ea19deb43ea921f2a9c757f7085d66c68f0b1" } ,{ "testCaseDescription": "javascript-member-access-assignment-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "member-access-assignment.js" ], - "sha1": "fe80556bc2ac80c04b08cccc79d74f3bd4154252", + "sha1": "3a0ea19deb43ea921f2a9c757f7085d66c68f0b1", "gitDir": "test/corpus/repos/javascript", - "sha2": "a54212fd738c79646d7c35045d60217d25df7e8a" + "sha2": "71e846db3af817d1db02b2d462983f50a9059fc0" }] diff --git a/test/corpus/diff-summaries/javascript/member-access.json b/test/corpus/diff-summaries/javascript/member-access.json index 074c63f9f..98814bc12 100644 --- a/test/corpus/diff-summaries/javascript/member-access.json +++ b/test/corpus/diff-summaries/javascript/member-access.json @@ -25,9 +25,9 @@ "filePaths": [ "member-access.js" ], - "sha1": "90d12a1298d9b772784e930e48f21a67e0c3511b", + "sha1": "f3f37e99308905c9b051e7f10cebaa4d1ec6c444", "gitDir": "test/corpus/repos/javascript", - "sha2": "dd02dbf53dd13d9778613a76514fee8fbd957c73" + "sha2": "0200a98cef97fc3df019a352f2f5d176898ad468" } ,{ "testCaseDescription": "javascript-member-access-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "member-access.js" ], - "sha1": "dd02dbf53dd13d9778613a76514fee8fbd957c73", + "sha1": "0200a98cef97fc3df019a352f2f5d176898ad468", "gitDir": "test/corpus/repos/javascript", - "sha2": "188fdfa273d5893a248a5a376f6bc5048de79cb8" + "sha2": "51f409e7f29a168b41bfb2d7b8064e2e9fe0a4f2" } ,{ "testCaseDescription": "javascript-member-access-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "member-access.js" ], - "sha1": "188fdfa273d5893a248a5a376f6bc5048de79cb8", + "sha1": "51f409e7f29a168b41bfb2d7b8064e2e9fe0a4f2", "gitDir": "test/corpus/repos/javascript", - "sha2": "bb2fbdc481ae1aaef2c1976384c40c6977855612" + "sha2": "8227cb4479a439074210a62c580d4b038dede7a2" } ,{ "testCaseDescription": "javascript-member-access-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "member-access.js" ], - "sha1": "bb2fbdc481ae1aaef2c1976384c40c6977855612", + "sha1": "8227cb4479a439074210a62c580d4b038dede7a2", "gitDir": "test/corpus/repos/javascript", - "sha2": "a193af5a18c05a57c0e127005eacdfb1bb9bbb8b" + "sha2": "bf5cb9854778f98c5fc34d68969dd0f767a5929a" } ,{ "testCaseDescription": "javascript-member-access-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "member-access.js" ], - "sha1": "a193af5a18c05a57c0e127005eacdfb1bb9bbb8b", + "sha1": "bf5cb9854778f98c5fc34d68969dd0f767a5929a", "gitDir": "test/corpus/repos/javascript", - "sha2": "4c30cb38360a173cda4e75322f4af325fa4a62b4" + "sha2": "55827a99bd3d4084ca0788ad21b5546a7a25e80d" } ,{ "testCaseDescription": "javascript-member-access-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "member-access.js" ], - "sha1": "4c30cb38360a173cda4e75322f4af325fa4a62b4", + "sha1": "55827a99bd3d4084ca0788ad21b5546a7a25e80d", "gitDir": "test/corpus/repos/javascript", - "sha2": "e5dd9eed617575c0ce2036dfd7d35c1cef72046b" + "sha2": "4cf6f1f156839cb229a41a264511f1b51cc30e38" } ,{ "testCaseDescription": "javascript-member-access-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "member-access.js" ], - "sha1": "e5dd9eed617575c0ce2036dfd7d35c1cef72046b", + "sha1": "4cf6f1f156839cb229a41a264511f1b51cc30e38", "gitDir": "test/corpus/repos/javascript", - "sha2": "5614bab5690b85e7b159534b75f4e49496e339cd" + "sha2": "0d42e808e4dd17f60f2029cc59e0f7c86c8ce169" }] diff --git a/test/corpus/diff-summaries/javascript/method-call.json b/test/corpus/diff-summaries/javascript/method-call.json index ba6bc4cef..988b61fe8 100644 --- a/test/corpus/diff-summaries/javascript/method-call.json +++ b/test/corpus/diff-summaries/javascript/method-call.json @@ -25,9 +25,9 @@ "filePaths": [ "method-call.js" ], - "sha1": "ea7e16f96dec317f4c7e4e26bf655fb307c7b15e", + "sha1": "e96a9f72694e18966839d0f138a99ac7be56b33e", "gitDir": "test/corpus/repos/javascript", - "sha2": "6fc47fa2ad11c91f10b4a292045b57ad7bb1de22" + "sha2": "c843ec1fdb4fc70798d398b0e65703a31d1fe3f7" } ,{ "testCaseDescription": "javascript-method-call-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "method-call.js" ], - "sha1": "6fc47fa2ad11c91f10b4a292045b57ad7bb1de22", + "sha1": "c843ec1fdb4fc70798d398b0e65703a31d1fe3f7", "gitDir": "test/corpus/repos/javascript", - "sha2": "e0e9f0c4ed4753f0204675300bd648525233f074" + "sha2": "92dbb0eadf325a40065ffe285491c3ddaca0b5a2" } ,{ "testCaseDescription": "javascript-method-call-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "method-call.js" ], - "sha1": "e0e9f0c4ed4753f0204675300bd648525233f074", + "sha1": "92dbb0eadf325a40065ffe285491c3ddaca0b5a2", "gitDir": "test/corpus/repos/javascript", - "sha2": "9f845e5983c12a7f55ffb1846b0594aa324afcf8" + "sha2": "7e68072556a4a3f351fff8469f92ce74e8793332" } ,{ "testCaseDescription": "javascript-method-call-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "method-call.js" ], - "sha1": "9f845e5983c12a7f55ffb1846b0594aa324afcf8", + "sha1": "7e68072556a4a3f351fff8469f92ce74e8793332", "gitDir": "test/corpus/repos/javascript", - "sha2": "0e2dd5d51ef8689e984d4f879ad1b0ebfc3b315f" + "sha2": "453b2f8ab5c87e25686d19d1be286f09b6999227" } ,{ "testCaseDescription": "javascript-method-call-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "method-call.js" ], - "sha1": "0e2dd5d51ef8689e984d4f879ad1b0ebfc3b315f", + "sha1": "453b2f8ab5c87e25686d19d1be286f09b6999227", "gitDir": "test/corpus/repos/javascript", - "sha2": "cd28f3d5352450c506c86e5cb91a8e4f18b3a340" + "sha2": "bf3a8aa48a94639865a1292b0618a4d3077dab3c" } ,{ "testCaseDescription": "javascript-method-call-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "method-call.js" ], - "sha1": "cd28f3d5352450c506c86e5cb91a8e4f18b3a340", + "sha1": "bf3a8aa48a94639865a1292b0618a4d3077dab3c", "gitDir": "test/corpus/repos/javascript", - "sha2": "ed90012cc58d0e02e788c6112045cb553c46bac3" + "sha2": "f8ebc695e11abb8385d98befd834c9a644bba646" } ,{ "testCaseDescription": "javascript-method-call-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "method-call.js" ], - "sha1": "ed90012cc58d0e02e788c6112045cb553c46bac3", + "sha1": "f8ebc695e11abb8385d98befd834c9a644bba646", "gitDir": "test/corpus/repos/javascript", - "sha2": "238ba975795f6140285beff5d3d187ac1c7a3aab" + "sha2": "f280453bb32a391891c7d93eaa0edb1747f29819" }] diff --git a/test/corpus/diff-summaries/javascript/named-function.json b/test/corpus/diff-summaries/javascript/named-function.json index c945678b3..f8b8eda63 100644 --- a/test/corpus/diff-summaries/javascript/named-function.json +++ b/test/corpus/diff-summaries/javascript/named-function.json @@ -25,9 +25,9 @@ "filePaths": [ "named-function.js" ], - "sha1": "5c273fd87945c2af248d540c5aed68a31f6c7764", + "sha1": "73ed6c706441e034a7c2f8922f9294250e675d04", "gitDir": "test/corpus/repos/javascript", - "sha2": "a825db07ab287ffe905845e18e66a504818192bb" + "sha2": "e20576ba5fdac443d8e6cc88977cc3f1186fa282" } ,{ "testCaseDescription": "javascript-named-function-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "named-function.js" ], - "sha1": "a825db07ab287ffe905845e18e66a504818192bb", + "sha1": "e20576ba5fdac443d8e6cc88977cc3f1186fa282", "gitDir": "test/corpus/repos/javascript", - "sha2": "c5821e92dde2d8cd469e250f8f8dbd6fe3f67c87" + "sha2": "772e2a4589cbec599fefe45bf0d077cedf22ca86" } ,{ "testCaseDescription": "javascript-named-function-delete-insert-test", @@ -174,9 +174,9 @@ "filePaths": [ "named-function.js" ], - "sha1": "c5821e92dde2d8cd469e250f8f8dbd6fe3f67c87", + "sha1": "772e2a4589cbec599fefe45bf0d077cedf22ca86", "gitDir": "test/corpus/repos/javascript", - "sha2": "83f17b7b890d9fc0e45042f00b14d6d623b0a3bf" + "sha2": "d733727f807f049ebae6e871c6e0799a51cf4d6c" } ,{ "testCaseDescription": "javascript-named-function-replacement-test", @@ -277,9 +277,9 @@ "filePaths": [ "named-function.js" ], - "sha1": "83f17b7b890d9fc0e45042f00b14d6d623b0a3bf", + "sha1": "d733727f807f049ebae6e871c6e0799a51cf4d6c", "gitDir": "test/corpus/repos/javascript", - "sha2": "332ab29578147f9d59d9188a2ec38c7a532659ed" + "sha2": "6a1c88aa5002ac8beae4cd7060c6b746265ec980" } ,{ "testCaseDescription": "javascript-named-function-delete-replacement-test", @@ -338,9 +338,9 @@ "filePaths": [ "named-function.js" ], - "sha1": "332ab29578147f9d59d9188a2ec38c7a532659ed", + "sha1": "6a1c88aa5002ac8beae4cd7060c6b746265ec980", "gitDir": "test/corpus/repos/javascript", - "sha2": "6c664353e0ec7dc3c3a5c13f5187dbcbf9b7208c" + "sha2": "9880a1849836979a7cf3962b120697a38bb28c1a" } ,{ "testCaseDescription": "javascript-named-function-delete-test", @@ -369,9 +369,9 @@ "filePaths": [ "named-function.js" ], - "sha1": "6c664353e0ec7dc3c3a5c13f5187dbcbf9b7208c", + "sha1": "9880a1849836979a7cf3962b120697a38bb28c1a", "gitDir": "test/corpus/repos/javascript", - "sha2": "9db8b0515b801edce2f03e610530d5e21eae88bf" + "sha2": "67f23aac15c50d0d93b67f4deeb2c3d0b08e9b18" } ,{ "testCaseDescription": "javascript-named-function-delete-rest-test", @@ -400,7 +400,7 @@ "filePaths": [ "named-function.js" ], - "sha1": "9db8b0515b801edce2f03e610530d5e21eae88bf", + "sha1": "67f23aac15c50d0d93b67f4deeb2c3d0b08e9b18", "gitDir": "test/corpus/repos/javascript", - "sha2": "9116f7a64ba9239f8ae7846dffbecd56e444abe6" + "sha2": "f3f37e99308905c9b051e7f10cebaa4d1ec6c444" }] diff --git a/test/corpus/diff-summaries/javascript/nested-do-while-in-function.json b/test/corpus/diff-summaries/javascript/nested-do-while-in-function.json index d0d665673..b55c1a1af 100644 --- a/test/corpus/diff-summaries/javascript/nested-do-while-in-function.json +++ b/test/corpus/diff-summaries/javascript/nested-do-while-in-function.json @@ -1,8 +1,8 @@ [{ - "testCaseDescription": "javascript-export-insert-test", + "testCaseDescription": "javascript-nested-do-while-in-function-insert-test", "expectedResult": { "changes": { - "export.js": [ + "nested-do-while-in-function.js": [ { "span": { "insert": { @@ -12,178 +12,28 @@ ], "end": [ 1, - 39 - ] - } - }, - "summary": "Added the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 2, - 1 - ], - "end": [ - 2, - 58 - ] - } - }, - "summary": "Added the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Added the { name1, name2, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Added the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 30 - ] - } - }, - "summary": "Added the { namedFunction } export statement" - }, - { - "span": { - "insert": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 32 - ] - } - }, - "summary": "Added the { anonymous() } export statement" - }, - { - "span": { - "insert": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 37 - ] - } - }, - "summary": "Added the { name1 } export statement" - }, - { - "span": { - "insert": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 29 - ] - } - }, - "summary": "Added the { name1 as default } export statement" - }, - { - "span": { - "insert": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Added the { 'foo' } export statement" - }, - { - "span": { - "insert": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 43 - ] - } - }, - "summary": "Added the { name1, name2, nameN } from 'foo' export statement" - }, - { - "span": { - "insert": { - "start": [ - 11, - 1 - ], - "end": [ - 11, 65 ] } }, - "summary": "Added the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + "summary": "Added the 'f' function" } ] }, "errors": {} }, "filePaths": [ - "export.js" + "nested-do-while-in-function.js" ], - "sha1": "72504548152052efd94fe6f1209747c34ea4fc1d", + "sha1": "2a887b5d06f807f64eb0441bf4a29ca83e919096", "gitDir": "test/corpus/repos/javascript", - "sha2": "90c7996275782b55e27c09e44796f14a46053637" + "sha2": "ff6d30117ea0ab0742b58dac20c9560207d19ace" } ,{ - "testCaseDescription": "javascript-export-replacement-insert-test", + "testCaseDescription": "javascript-nested-do-while-in-function-replacement-insert-test", "expectedResult": { "changes": { - "export.js": [ + "nested-do-while-in-function.js": [ { "span": { "insert": { @@ -193,1102 +43,69 @@ ], "end": [ 1, - 39 - ] - } - }, - "summary": "Added the { name4, name5, name6, nameZ } export statement" - }, - { - "span": { - "insert": { - "start": [ - 2, - 1 - ], - "end": [ - 2, - 58 - ] - } - }, - "summary": "Added the { variable2 as name2, variable3 as name3, nameY } export statement" - }, - { - "span": { - "insert": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Added the { name3, name4, nameT } export statement" - }, - { - "span": { - "insert": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Added the { name2 = value2, name3 = value3, name4, nameO } export statement" - }, - { - "span": { - "insert": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 35 - ] - } - }, - "summary": "Added the { otherNamedFunction } export statement" - }, - { - "span": { - "insert": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 39 - ] - } - }, - "summary": "Added the { newName1 } export statement" - }, - { - "span": { - "insert": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 31 - ] - } - }, - "summary": "Added the { anonymous() } export statement" - }, - { - "span": { - "insert": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 31 - ] - } - }, - "summary": "Added the { name2 as statement } export statement" - }, - { - "span": { - "insert": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Added the { 'baz' } export statement" - }, - { - "span": { - "insert": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 44 - ] - } - }, - "summary": "Added the { name7, name8, nameP } from 'buzz' export statement" - }, - { - "span": { - "insert": { - "start": [ - 11, - 1 - ], - "end": [ - 11, - 66 - ] - } - }, - "summary": "Added the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" - }, - { - "span": { - "insert": { - "start": [ - 12, - 1 - ], - "end": [ - 12, - 39 - ] - } - }, - "summary": "Added the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 13, - 1 - ], - "end": [ - 13, - 58 - ] - } - }, - "summary": "Added the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 14, - 1 - ], - "end": [ - 14, - 32 - ] - } - }, - "summary": "Added the { name1, name2, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 15, - 1 - ], - "end": [ - 15, - 57 - ] - } - }, - "summary": "Added the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "insert": { - "start": [ - 16, - 1 - ], - "end": [ - 16, - 30 - ] - } - }, - "summary": "Added the { namedFunction } export statement" - }, - { - "span": { - "insert": { - "start": [ - 17, - 1 - ], - "end": [ - 17, - 32 - ] - } - }, - "summary": "Added the { anonymous() } export statement" - }, - { - "span": { - "insert": { - "start": [ - 18, - 1 - ], - "end": [ - 18, - 37 - ] - } - }, - "summary": "Added the { name1 } export statement" - }, - { - "span": { - "insert": { - "start": [ - 19, - 1 - ], - "end": [ - 19, - 29 - ] - } - }, - "summary": "Added the { name1 as default } export statement" - }, - { - "span": { - "insert": { - "start": [ - 20, - 1 - ], - "end": [ - 20, - 21 - ] - } - }, - "summary": "Added the { 'foo' } export statement" - }, - { - "span": { - "insert": { - "start": [ - 21, - 1 - ], - "end": [ - 21, - 43 - ] - } - }, - "summary": "Added the { name1, name2, nameN } from 'foo' export statement" - }, - { - "span": { - "insert": { - "start": [ - 22, - 1 - ], - "end": [ - 22, 65 ] } }, - "summary": "Added the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" - } - ] - }, - "errors": {} - }, - "filePaths": [ - "export.js" - ], - "sha1": "90c7996275782b55e27c09e44796f14a46053637", - "gitDir": "test/corpus/repos/javascript", - "sha2": "ef1adc8d77ae11e64e2b22e2c44c708211cd1dd8" -} -,{ - "testCaseDescription": "javascript-export-delete-insert-test", - "expectedResult": { - "changes": { - "export.js": [ - { - "span": { - "replace": [ - { - "start": [ - 1, - 10 - ], - "end": [ - 1, - 15 - ] - }, - { - "start": [ - 1, - 10 - ], - "end": [ - 1, - 15 - ] - } - ] - }, - "summary": "Replaced the 'name4' identifier with the 'name1' identifier in the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 1, - 17 - ], - "end": [ - 1, - 22 - ] - }, - { - "start": [ - 1, - 17 - ], - "end": [ - 1, - 22 - ] - } - ] - }, - "summary": "Replaced the 'name5' identifier with the 'name2' identifier in the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 1, - 24 - ], - "end": [ - 1, - 29 - ] - }, - { - "start": [ - 1, - 24 - ], - "end": [ - 1, - 29 - ] - } - ] - }, - "summary": "Replaced the 'name6' identifier with the 'name3' identifier in the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 1, - 31 - ], - "end": [ - 1, - 36 - ] - }, - { - "start": [ - 1, - 31 - ], - "end": [ - 1, - 36 - ] - } - ] - }, - "summary": "Replaced the 'nameZ' identifier with the 'nameN' identifier in the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 2, - 10 - ], - "end": [ - 2, - 19 - ] - }, - { - "start": [ - 2, - 10 - ], - "end": [ - 2, - 19 - ] - } - ] - }, - "summary": "Replaced the 'variable2' identifier with the 'variable1' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 2, - 23 - ], - "end": [ - 2, - 28 - ] - }, - { - "start": [ - 2, - 23 - ], - "end": [ - 2, - 28 - ] - } - ] - }, - "summary": "Replaced the 'name2' identifier with the 'name1' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 2, - 30 - ], - "end": [ - 2, - 39 - ] - }, - { - "start": [ - 2, - 30 - ], - "end": [ - 2, - 39 - ] - } - ] - }, - "summary": "Replaced the 'variable3' identifier with the 'variable2' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 2, - 43 - ], - "end": [ - 2, - 48 - ] - }, - { - "start": [ - 2, - 43 - ], - "end": [ - 2, - 48 - ] - } - ] - }, - "summary": "Replaced the 'name3' identifier with the 'name2' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 2, - 50 - ], - "end": [ - 2, - 55 - ] - }, - { - "start": [ - 2, - 50 - ], - "end": [ - 2, - 55 - ] - } - ] - }, - "summary": "Replaced the 'nameY' identifier with the 'nameN' identifier in the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 3, - 12 - ], - "end": [ - 3, - 17 - ] - }, - { - "start": [ - 3, - 12 - ], - "end": [ - 3, - 17 - ] - } - ] - }, - "summary": "Replaced the 'name3' identifier with the 'name1' identifier in the { name1, name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 3, - 19 - ], - "end": [ - 3, - 24 - ] - }, - { - "start": [ - 3, - 19 - ], - "end": [ - 3, - 24 - ] - } - ] - }, - "summary": "Replaced the 'name4' identifier with the 'name2' identifier in the { name1, name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 3, - 26 - ], - "end": [ - 3, - 31 - ] - }, - { - "start": [ - 3, - 26 - ], - "end": [ - 3, - 31 - ] - } - ] - }, - "summary": "Replaced the 'nameT' identifier with the 'nameN' identifier in the { name1, name2, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 4, - 12 - ], - "end": [ - 4, - 17 - ] - }, - { - "start": [ - 4, - 12 - ], - "end": [ - 4, - 17 - ] - } - ] - }, - "summary": "Replaced the 'name2' identifier with the 'name1' identifier in the name1 var assignment" - }, - { - "span": { - "replace": [ - { - "start": [ - 4, - 20 - ], - "end": [ - 4, - 26 - ] - }, - { - "start": [ - 4, - 20 - ], - "end": [ - 4, - 26 - ] - } - ] - }, - "summary": "Replaced the 'value2' identifier with the 'value1' identifier in the name1 var assignment" - }, - { - "span": { - "replace": [ - { - "start": [ - 4, - 28 - ], - "end": [ - 4, - 33 - ] - }, - { - "start": [ - 4, - 28 - ], - "end": [ - 4, - 33 - ] - } - ] - }, - "summary": "Replaced the 'name3' identifier with the 'name2' identifier in the name2 var assignment" - }, - { - "span": { - "replace": [ - { - "start": [ - 4, - 36 - ], - "end": [ - 4, - 42 - ] - }, - { - "start": [ - 4, - 36 - ], - "end": [ - 4, - 42 - ] - } - ] - }, - "summary": "Replaced the 'value3' identifier with the 'value2' identifier in the name2 var assignment" - }, - { - "span": { - "replace": [ - { - "start": [ - 4, - 44 - ], - "end": [ - 4, - 49 - ] - }, - { - "start": [ - 4, - 44 - ], - "end": [ - 4, - 49 - ] - } - ] - }, - "summary": "Replaced the 'name4' identifier with the 'name3' identifier in the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 4, - 51 - ], - "end": [ - 4, - 56 - ] - }, - { - "start": [ - 4, - 51 - ], - "end": [ - 4, - 56 - ] - } - ] - }, - "summary": "Replaced the 'nameO' identifier with the 'nameN' identifier in the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 5, - 16 - ], - "end": [ - 5, - 34 - ] - }, - { - "start": [ - 5, - 16 - ], - "end": [ - 5, - 29 - ] - } - ] - }, - "summary": "Replaced the 'otherNamedFunction' identifier with the 'namedFunction' identifier in the { namedFunction } export statement" + "summary": "Added the 'f' function" }, { "span": { "insert": { "start": [ - 6, + 2, 1 ], "end": [ - 6, - 32 - ] - } - }, - "summary": "Added the { anonymous() } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 6, - 25 - ], - "end": [ - 6, - 33 - ] - }, - { - "start": [ - 7, - 25 - ], - "end": [ - 7, - 30 - ] - } - ] - }, - "summary": "Replaced the 'newName1' identifier with the 'name1' identifier in the name1 function" - }, - { - "span": { - "replace": [ - { - "start": [ - 6, - 36 - ], - "end": [ - 6, - 38 - ] - }, - { - "start": [ - 7, - 33 - ], - "end": [ - 7, - 36 - ] - } - ] - }, - "summary": "Replaced the '{}' expression statements with the '{ }' expression statements in the name1 function" - }, - { - "span": { - "insert": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 29 - ] - } - }, - "summary": "Added the { name1 as default } export statement" - }, - { - "span": { - "insert": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Added the { 'foo' } export statement" - }, - { - "span": { - "insert": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 43 - ] - } - }, - "summary": "Added the { name1, name2, nameN } from 'foo' export statement" - }, - { - "span": { - "insert": { - "start": [ - 11, - 1 - ], - "end": [ - 11, + 2, 65 ] } }, - "summary": "Added the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" - }, - { - "span": { - "delete": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 31 - ] - } - }, - "summary": "Deleted the { anonymous() } export statement" - }, - { - "span": { - "delete": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 31 - ] - } - }, - "summary": "Deleted the { name2 as statement } export statement" - }, - { - "span": { - "delete": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Deleted the { 'baz' } export statement" - }, - { - "span": { - "delete": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 44 - ] - } - }, - "summary": "Deleted the { name7, name8, nameP } from 'buzz' export statement" - }, - { - "span": { - "delete": { - "start": [ - 11, - 1 - ], - "end": [ - 11, - 66 - ] - } - }, - "summary": "Deleted the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + "summary": "Added the 'f' function" } ] }, "errors": {} }, "filePaths": [ - "export.js" + "nested-do-while-in-function.js" ], - "sha1": "ef1adc8d77ae11e64e2b22e2c44c708211cd1dd8", + "sha1": "ff6d30117ea0ab0742b58dac20c9560207d19ace", "gitDir": "test/corpus/repos/javascript", - "sha2": "d1c4f0521a19820abb7c362835743afc7229e34a" + "sha2": "02c909644f2dd515afd7c1ad6e6d43eb2d4d34bf" } ,{ - "testCaseDescription": "javascript-export-replacement-test", + "testCaseDescription": "javascript-nested-do-while-in-function-delete-insert-test", "expectedResult": { "changes": { - "export.js": [ + "nested-do-while-in-function.js": [ { "span": { "replace": [ { "start": [ 1, - 10 + 41 ], "end": [ 1, - 15 + 45 ] }, { "start": [ 1, - 10 + 41 ], "end": [ 1, - 15 + 45 ] } ] }, - "summary": "Replaced the 'name1' identifier with the 'name4' identifier in the { name4, name5, name6, nameZ } export statement" + "summary": "Replaced the 'arg2' identifier with the 'arg1' identifier in the something(arg1) function call of the 'f' function" }, { "span": { @@ -1296,26 +113,69 @@ { "start": [ 1, - 17 + 57 ], "end": [ 1, - 22 + 61 ] }, { "start": [ 1, - 17 + 57 ], "end": [ 1, - 22 + 61 ] } ] }, - "summary": "Replaced the 'name2' identifier with the 'name5' identifier in the { name4, name5, name6, nameZ } export statement" + "summary": "Replaced the 'arg1' identifier with the 'arg2' identifier in the arg2 do/while statement of the 'f' function" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "nested-do-while-in-function.js" + ], + "sha1": "02c909644f2dd515afd7c1ad6e6d43eb2d4d34bf", + "gitDir": "test/corpus/repos/javascript", + "sha2": "b9766865391e6398e7c1c59eb6f98dea25120f2b" +} +,{ + "testCaseDescription": "javascript-nested-do-while-in-function-replacement-test", + "expectedResult": { + "changes": { + "nested-do-while-in-function.js": [ + { + "span": { + "replace": [ + { + "start": [ + 1, + 41 + ], + "end": [ + 1, + 45 + ] + }, + { + "start": [ + 1, + 41 + ], + "end": [ + 1, + 45 + ] + } + ] + }, + "summary": "Replaced the 'arg1' identifier with the 'arg2' identifier in the something(arg2) function call of the 'f' function" }, { "span": { @@ -1323,384 +183,57 @@ { "start": [ 1, - 24 + 57 ], "end": [ 1, - 29 + 61 ] }, { "start": [ 1, - 24 + 57 ], "end": [ 1, - 29 + 61 ] } ] }, - "summary": "Replaced the 'name3' identifier with the 'name6' identifier in the { name4, name5, name6, nameZ } export statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 1, - 31 - ], - "end": [ - 1, - 36 - ] - }, - { - "start": [ - 1, - 31 - ], - "end": [ - 1, - 36 - ] - } - ] - }, - "summary": "Replaced the 'nameN' identifier with the 'nameZ' identifier in the { name4, name5, name6, nameZ } export statement" - }, - { - "span": { - "insert": { - "start": [ - 2, - 1 - ], - "end": [ - 2, - 58 - ] - } - }, - "summary": "Added the { variable2 as name2, variable3 as name3, nameY } export statement" - }, - { - "span": { - "insert": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Added the { name3, name4, nameT } export statement" - }, - { - "span": { - "insert": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Added the { name2 = value2, name3 = value3, name4, nameO } export statement" - }, - { - "span": { - "insert": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 35 - ] - } - }, - "summary": "Added the { otherNamedFunction } export statement" - }, - { - "span": { - "insert": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 39 - ] - } - }, - "summary": "Added the { newName1 } export statement" - }, - { - "span": { - "insert": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 31 - ] - } - }, - "summary": "Added the { anonymous() } export statement" - }, - { - "span": { - "insert": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 31 - ] - } - }, - "summary": "Added the { name2 as statement } export statement" - }, - { - "span": { - "insert": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Added the { 'baz' } export statement" - }, - { - "span": { - "insert": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 44 - ] - } - }, - "summary": "Added the { name7, name8, nameP } from 'buzz' export statement" - }, - { - "span": { - "insert": { - "start": [ - 11, - 1 - ], - "end": [ - 11, - 66 - ] - } - }, - "summary": "Added the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" - }, + "summary": "Replaced the 'arg2' identifier with the 'arg1' identifier in the arg1 do/while statement of the 'f' function" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "nested-do-while-in-function.js" + ], + "sha1": "b9766865391e6398e7c1c59eb6f98dea25120f2b", + "gitDir": "test/corpus/repos/javascript", + "sha2": "89d4e14b5e7a904743522a6bb8a9e0fe4eb03836" +} +,{ + "testCaseDescription": "javascript-nested-do-while-in-function-delete-replacement-test", + "expectedResult": { + "changes": { + "nested-do-while-in-function.js": [ { "span": { "delete": { "start": [ - 2, + 1, 1 ], "end": [ - 2, - 58 - ] - } - }, - "summary": "Deleted the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Deleted the { name1, name2, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Deleted the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 30 - ] - } - }, - "summary": "Deleted the { namedFunction } export statement" - }, - { - "span": { - "delete": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 32 - ] - } - }, - "summary": "Deleted the { anonymous() } export statement" - }, - { - "span": { - "delete": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 37 - ] - } - }, - "summary": "Deleted the { name1 } export statement" - }, - { - "span": { - "delete": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 29 - ] - } - }, - "summary": "Deleted the { name1 as default } export statement" - }, - { - "span": { - "delete": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Deleted the { 'foo' } export statement" - }, - { - "span": { - "delete": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 43 - ] - } - }, - "summary": "Deleted the { name1, name2, nameN } from 'foo' export statement" - }, - { - "span": { - "delete": { - "start": [ - 11, - 1 - ], - "end": [ - 11, + 1, 65 ] } }, - "summary": "Deleted the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" - } - ] - }, - "errors": {} - }, - "filePaths": [ - "export.js" - ], - "sha1": "d1c4f0521a19820abb7c362835743afc7229e34a", - "gitDir": "test/corpus/repos/javascript", - "sha2": "788f0b94417dd9cc2fec8df60316d5bfbc334cd7" -} -,{ - "testCaseDescription": "javascript-export-delete-replacement-test", - "expectedResult": { - "changes": { - "export.js": [ - { - "span": { - "delete": { - "start": [ - 1, - 1 - ], - "end": [ - 1, - 39 - ] - } - }, - "summary": "Deleted the { name4, name5, name6, nameZ } export statement" + "summary": "Deleted the 'f' function" }, { "span": { @@ -1711,674 +244,43 @@ ], "end": [ 2, - 58 - ] - } - }, - "summary": "Deleted the { variable2 as name2, variable3 as name3, nameY } export statement" - }, - { - "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Deleted the { name3, name4, nameT } export statement" - }, - { - "span": { - "delete": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Deleted the { name2 = value2, name3 = value3, name4, nameO } export statement" - }, - { - "span": { - "delete": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 35 - ] - } - }, - "summary": "Deleted the { otherNamedFunction } export statement" - }, - { - "span": { - "delete": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 39 - ] - } - }, - "summary": "Deleted the { newName1 } export statement" - }, - { - "span": { - "delete": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 31 - ] - } - }, - "summary": "Deleted the { anonymous() } export statement" - }, - { - "span": { - "delete": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 31 - ] - } - }, - "summary": "Deleted the { name2 as statement } export statement" - }, - { - "span": { - "delete": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Deleted the { 'baz' } export statement" - }, - { - "span": { - "delete": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 44 - ] - } - }, - "summary": "Deleted the { name7, name8, nameP } from 'buzz' export statement" - }, - { - "span": { - "delete": { - "start": [ - 11, - 1 - ], - "end": [ - 11, - 66 - ] - } - }, - "summary": "Deleted the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" - }, - { - "span": { - "delete": { - "start": [ - 12, - 1 - ], - "end": [ - 12, - 39 - ] - } - }, - "summary": "Deleted the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 13, - 1 - ], - "end": [ - 13, - 58 - ] - } - }, - "summary": "Deleted the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 14, - 1 - ], - "end": [ - 14, - 32 - ] - } - }, - "summary": "Deleted the { name1, name2, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 15, - 1 - ], - "end": [ - 15, - 57 - ] - } - }, - "summary": "Deleted the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 16, - 1 - ], - "end": [ - 16, - 30 - ] - } - }, - "summary": "Deleted the { namedFunction } export statement" - }, - { - "span": { - "delete": { - "start": [ - 17, - 1 - ], - "end": [ - 17, - 32 - ] - } - }, - "summary": "Deleted the { anonymous() } export statement" - }, - { - "span": { - "delete": { - "start": [ - 18, - 1 - ], - "end": [ - 18, - 37 - ] - } - }, - "summary": "Deleted the { name1 } export statement" - }, - { - "span": { - "delete": { - "start": [ - 19, - 1 - ], - "end": [ - 19, - 29 - ] - } - }, - "summary": "Deleted the { name1 as default } export statement" - }, - { - "span": { - "delete": { - "start": [ - 20, - 1 - ], - "end": [ - 20, - 21 - ] - } - }, - "summary": "Deleted the { 'foo' } export statement" - }, - { - "span": { - "delete": { - "start": [ - 21, - 1 - ], - "end": [ - 21, - 43 - ] - } - }, - "summary": "Deleted the { name1, name2, nameN } from 'foo' export statement" - }, - { - "span": { - "delete": { - "start": [ - 22, - 1 - ], - "end": [ - 22, 65 ] } }, - "summary": "Deleted the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + "summary": "Deleted the 'f' function" }, { "span": { "insert": { - "start": [ - 12, - 1 - ], - "end": [ - 12, - 39 - ] - } - }, - "summary": "Added the { name4, name5, name6, nameZ } export statement" - }, - { - "span": { - "insert": { - "start": [ - 13, - 1 - ], - "end": [ - 13, - 58 - ] - } - }, - "summary": "Added the { variable2 as name2, variable3 as name3, nameY } export statement" - }, - { - "span": { - "insert": { - "start": [ - 14, - 1 - ], - "end": [ - 14, - 32 - ] - } - }, - "summary": "Added the { name3, name4, nameT } export statement" - }, - { - "span": { - "insert": { - "start": [ - 15, - 1 - ], - "end": [ - 15, - 57 - ] - } - }, - "summary": "Added the { name2 = value2, name3 = value3, name4, nameO } export statement" - }, - { - "span": { - "insert": { - "start": [ - 16, - 1 - ], - "end": [ - 16, - 35 - ] - } - }, - "summary": "Added the { otherNamedFunction } export statement" - }, - { - "span": { - "insert": { - "start": [ - 17, - 1 - ], - "end": [ - 17, - 39 - ] - } - }, - "summary": "Added the { newName1 } export statement" - }, - { - "span": { - "insert": { - "start": [ - 18, - 1 - ], - "end": [ - 18, - 31 - ] - } - }, - "summary": "Added the { anonymous() } export statement" - }, - { - "span": { - "insert": { - "start": [ - 19, - 1 - ], - "end": [ - 19, - 31 - ] - } - }, - "summary": "Added the { name2 as statement } export statement" - }, - { - "span": { - "insert": { - "start": [ - 20, - 1 - ], - "end": [ - 20, - 21 - ] - } - }, - "summary": "Added the { 'baz' } export statement" - }, - { - "span": { - "insert": { - "start": [ - 21, - 1 - ], - "end": [ - 21, - 44 - ] - } - }, - "summary": "Added the { name7, name8, nameP } from 'buzz' export statement" - }, - { - "span": { - "insert": { - "start": [ - 22, - 1 - ], - "end": [ - 22, - 66 - ] - } - }, - "summary": "Added the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" - } - ] - }, - "errors": {} - }, - "filePaths": [ - "export.js" - ], - "sha1": "788f0b94417dd9cc2fec8df60316d5bfbc334cd7", - "gitDir": "test/corpus/repos/javascript", - "sha2": "9b5c99359477beeb721e00c21ba20ac646acc43e" -} -,{ - "testCaseDescription": "javascript-export-delete-test", - "expectedResult": { - "changes": { - "export.js": [ - { - "span": { - "delete": { - "start": [ - 1, - 1 - ], - "end": [ - 1, - 39 - ] - } - }, - "summary": "Deleted the { name1, name2, name3, nameN } export statement" - }, - { - "span": { - "delete": { "start": [ 2, 1 ], "end": [ 2, - 58 - ] - } - }, - "summary": "Deleted the { variable1 as name1, variable2 as name2, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Deleted the { name1, name2, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Deleted the { name1 = value1, name2 = value2, name3, nameN } export statement" - }, - { - "span": { - "delete": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 30 - ] - } - }, - "summary": "Deleted the { namedFunction } export statement" - }, - { - "span": { - "delete": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 32 - ] - } - }, - "summary": "Deleted the { anonymous() } export statement" - }, - { - "span": { - "delete": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 37 - ] - } - }, - "summary": "Deleted the { name1 } export statement" - }, - { - "span": { - "delete": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 29 - ] - } - }, - "summary": "Deleted the { name1 as default } export statement" - }, - { - "span": { - "delete": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Deleted the { 'foo' } export statement" - }, - { - "span": { - "delete": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 43 - ] - } - }, - "summary": "Deleted the { name1, name2, nameN } from 'foo' export statement" - }, - { - "span": { - "delete": { - "start": [ - 11, - 1 - ], - "end": [ - 11, 65 ] } }, - "summary": "Deleted the { import1 as name1, import2 as name2, nameN } from 'bar' export statement" + "summary": "Added the 'f' function" } ] }, "errors": {} }, "filePaths": [ - "export.js" + "nested-do-while-in-function.js" ], - "sha1": "9b5c99359477beeb721e00c21ba20ac646acc43e", + "sha1": "89d4e14b5e7a904743522a6bb8a9e0fe4eb03836", "gitDir": "test/corpus/repos/javascript", - "sha2": "299ccb9aee08812e9f435c5036adc6266e0b64e7" + "sha2": "b9444a9255d1be7d6f8aac4eebd08adb9df16547" } ,{ - "testCaseDescription": "javascript-export-delete-rest-test", + "testCaseDescription": "javascript-nested-do-while-in-function-delete-test", "expectedResult": { "changes": { - "export.js": [ + "nested-do-while-in-function.js": [ { "span": { "delete": { @@ -2388,170 +290,51 @@ ], "end": [ 1, - 39 + 65 ] } }, - "summary": "Deleted the { name4, name5, name6, nameZ } export statement" - }, - { - "span": { - "delete": { - "start": [ - 2, - 1 - ], - "end": [ - 2, - 58 - ] - } - }, - "summary": "Deleted the { variable2 as name2, variable3 as name3, nameY } export statement" - }, - { - "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 32 - ] - } - }, - "summary": "Deleted the { name3, name4, nameT } export statement" - }, - { - "span": { - "delete": { - "start": [ - 4, - 1 - ], - "end": [ - 4, - 57 - ] - } - }, - "summary": "Deleted the { name2 = value2, name3 = value3, name4, nameO } export statement" - }, - { - "span": { - "delete": { - "start": [ - 5, - 1 - ], - "end": [ - 5, - 35 - ] - } - }, - "summary": "Deleted the { otherNamedFunction } export statement" - }, - { - "span": { - "delete": { - "start": [ - 6, - 1 - ], - "end": [ - 6, - 39 - ] - } - }, - "summary": "Deleted the { newName1 } export statement" - }, - { - "span": { - "delete": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 31 - ] - } - }, - "summary": "Deleted the { anonymous() } export statement" - }, - { - "span": { - "delete": { - "start": [ - 8, - 1 - ], - "end": [ - 8, - 31 - ] - } - }, - "summary": "Deleted the { name2 as statement } export statement" - }, - { - "span": { - "delete": { - "start": [ - 9, - 1 - ], - "end": [ - 9, - 21 - ] - } - }, - "summary": "Deleted the { 'baz' } export statement" - }, - { - "span": { - "delete": { - "start": [ - 10, - 1 - ], - "end": [ - 10, - 44 - ] - } - }, - "summary": "Deleted the { name7, name8, nameP } from 'buzz' export statement" - }, - { - "span": { - "delete": { - "start": [ - 11, - 1 - ], - "end": [ - 11, - 66 - ] - } - }, - "summary": "Deleted the { import6 as name6, import7 as name7, nameB } from 'fizz' export statement" + "summary": "Deleted the 'f' function" } ] }, "errors": {} }, "filePaths": [ - "export.js" + "nested-do-while-in-function.js" ], - "sha1": "299ccb9aee08812e9f435c5036adc6266e0b64e7", + "sha1": "b9444a9255d1be7d6f8aac4eebd08adb9df16547", "gitDir": "test/corpus/repos/javascript", - "sha2": "0821116298aea39bc51aeeda2acba727693341b3" + "sha2": "8d241972061ddd76bc31ca184f4df71c847ef44f" +} +,{ + "testCaseDescription": "javascript-nested-do-while-in-function-delete-rest-test", + "expectedResult": { + "changes": { + "nested-do-while-in-function.js": [ + { + "span": { + "delete": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 65 + ] + } + }, + "summary": "Deleted the 'f' function" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "nested-do-while-in-function.js" + ], + "sha1": "8d241972061ddd76bc31ca184f4df71c847ef44f", + "gitDir": "test/corpus/repos/javascript", + "sha2": "6a23d6c3d49e4aab8de5daedf66773c9eba65644" }] diff --git a/test/corpus/diff-summaries/javascript/nested-functions.json b/test/corpus/diff-summaries/javascript/nested-functions.json index 67741891b..c7476c742 100644 --- a/test/corpus/diff-summaries/javascript/nested-functions.json +++ b/test/corpus/diff-summaries/javascript/nested-functions.json @@ -25,9 +25,9 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "61b914ee8f95319311ab2a31fd2ad953cafb16fa", + "sha1": "2ae3dbb197d2af3f6c733f583bd1e46038782da2", "gitDir": "test/corpus/repos/javascript", - "sha2": "07887ecc86dddee8229a8d08ee8dcc6d7572121f" + "sha2": "475ee7ae5eff4e56bc226ad3a2486038d50a5e95" } ,{ "testCaseDescription": "javascript-nested-functions-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "07887ecc86dddee8229a8d08ee8dcc6d7572121f", + "sha1": "475ee7ae5eff4e56bc226ad3a2486038d50a5e95", "gitDir": "test/corpus/repos/javascript", - "sha2": "61c06e9efa18663594722716e58aa64e5ffd4758" + "sha2": "0c3acc500894a5961a872157c95fed200762da9d" } ,{ "testCaseDescription": "javascript-nested-functions-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "61c06e9efa18663594722716e58aa64e5ffd4758", + "sha1": "0c3acc500894a5961a872157c95fed200762da9d", "gitDir": "test/corpus/repos/javascript", - "sha2": "a020ecc7347999e4b5a89e698dea818a58cbf947" + "sha2": "48b340e7b3bd54aa35e2fdf9d2bb87bdd7afdf4e" } ,{ "testCaseDescription": "javascript-nested-functions-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "a020ecc7347999e4b5a89e698dea818a58cbf947", + "sha1": "48b340e7b3bd54aa35e2fdf9d2bb87bdd7afdf4e", "gitDir": "test/corpus/repos/javascript", - "sha2": "649807091c5b98fb7b727a3442047b3d82cffc94" + "sha2": "b014c105d8a719941c687729832424442fe1c43b" } ,{ "testCaseDescription": "javascript-nested-functions-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "649807091c5b98fb7b727a3442047b3d82cffc94", + "sha1": "b014c105d8a719941c687729832424442fe1c43b", "gitDir": "test/corpus/repos/javascript", - "sha2": "66d77629efe8fd4035a9cb5209fd9f60450b44f6" + "sha2": "dc09f8bb5cd29d5f1e434aed0d708564ed8abccc" } ,{ "testCaseDescription": "javascript-nested-functions-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "66d77629efe8fd4035a9cb5209fd9f60450b44f6", + "sha1": "dc09f8bb5cd29d5f1e434aed0d708564ed8abccc", "gitDir": "test/corpus/repos/javascript", - "sha2": "10164d0894b9f540b2def25a8f283bcaed45ec99" + "sha2": "11d324408c3f978fe3e75706ed5c396d1d0c249b" } ,{ "testCaseDescription": "javascript-nested-functions-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "nested-functions.js" ], - "sha1": "10164d0894b9f540b2def25a8f283bcaed45ec99", + "sha1": "11d324408c3f978fe3e75706ed5c396d1d0c249b", "gitDir": "test/corpus/repos/javascript", - "sha2": "266ec1f139daf92a206089f050ad57c325ce813c" + "sha2": "2a887b5d06f807f64eb0441bf4a29ca83e919096" }] diff --git a/test/corpus/diff-summaries/javascript/null.json b/test/corpus/diff-summaries/javascript/null.json index f5da78f88..47527a1e6 100644 --- a/test/corpus/diff-summaries/javascript/null.json +++ b/test/corpus/diff-summaries/javascript/null.json @@ -25,9 +25,9 @@ "filePaths": [ "null.js" ], - "sha1": "83b4466d65d17be14da0090c42bbc0fdea231913", + "sha1": "03b78b76f4c5137f7e54bad2aac4bc0a313bf051", "gitDir": "test/corpus/repos/javascript", - "sha2": "0df638a0b6390c85c68d506d1fe9b92e99147ec4" + "sha2": "358746b2d1754fb11dea4b07e5ee985a46efad9e" } ,{ "testCaseDescription": "javascript-null-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "null.js" ], - "sha1": "0df638a0b6390c85c68d506d1fe9b92e99147ec4", + "sha1": "358746b2d1754fb11dea4b07e5ee985a46efad9e", "gitDir": "test/corpus/repos/javascript", - "sha2": "c57f9943bffd17daa36a4155092f56853460d260" + "sha2": "1917b908d56566de7ba41fe573f021be9b90b106" } ,{ "testCaseDescription": "javascript-null-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "null.js" ], - "sha1": "c57f9943bffd17daa36a4155092f56853460d260", + "sha1": "1917b908d56566de7ba41fe573f021be9b90b106", "gitDir": "test/corpus/repos/javascript", - "sha2": "201f6a1332443796da10fef2d2526408d8e3e094" + "sha2": "269a9e58158be2b73adbfde7a873515e891585d4" } ,{ "testCaseDescription": "javascript-null-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "null.js" ], - "sha1": "201f6a1332443796da10fef2d2526408d8e3e094", + "sha1": "269a9e58158be2b73adbfde7a873515e891585d4", "gitDir": "test/corpus/repos/javascript", - "sha2": "fc229c5d0434aea2703786492b8eecea2cdc6530" + "sha2": "a2f4ef1342e8b8fe27b2ebc0eb139dae771a8d5f" } ,{ "testCaseDescription": "javascript-null-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "null.js" ], - "sha1": "fc229c5d0434aea2703786492b8eecea2cdc6530", + "sha1": "a2f4ef1342e8b8fe27b2ebc0eb139dae771a8d5f", "gitDir": "test/corpus/repos/javascript", - "sha2": "db5a0761286a67049dcc71fe89f691bef18c2ce8" + "sha2": "db6af092cea03febde7bbb1084cc3ca9f8283731" } ,{ "testCaseDescription": "javascript-null-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "null.js" ], - "sha1": "db5a0761286a67049dcc71fe89f691bef18c2ce8", + "sha1": "db6af092cea03febde7bbb1084cc3ca9f8283731", "gitDir": "test/corpus/repos/javascript", - "sha2": "73dd35fbefc2e121d28bd9b7326494c3fcc73a25" + "sha2": "63ccb6111f104782ea44e721fe9924d22e0f2163" } ,{ "testCaseDescription": "javascript-null-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "null.js" ], - "sha1": "73dd35fbefc2e121d28bd9b7326494c3fcc73a25", + "sha1": "63ccb6111f104782ea44e721fe9924d22e0f2163", "gitDir": "test/corpus/repos/javascript", - "sha2": "6119238f66f3114703920395b06a9987a976f19f" + "sha2": "74c7aa7b75841534d20cf36ca9804c38c56347b7" }] diff --git a/test/corpus/diff-summaries/javascript/number.json b/test/corpus/diff-summaries/javascript/number.json index 9a0cd71ea..6cb0f5d54 100644 --- a/test/corpus/diff-summaries/javascript/number.json +++ b/test/corpus/diff-summaries/javascript/number.json @@ -25,9 +25,9 @@ "filePaths": [ "number.js" ], - "sha1": "9ac043a42f1b6ef86f78ea1c9e119dcaefe5e1b9", + "sha1": "1fbf78e38d149f4488a791341040013fdb00da3b", "gitDir": "test/corpus/repos/javascript", - "sha2": "518a24b834da97dd11526511624a2e2406d08cb9" + "sha2": "b3c9161c126a0a01fb20de2c8d0951681de342c3" } ,{ "testCaseDescription": "javascript-number-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "number.js" ], - "sha1": "518a24b834da97dd11526511624a2e2406d08cb9", + "sha1": "b3c9161c126a0a01fb20de2c8d0951681de342c3", "gitDir": "test/corpus/repos/javascript", - "sha2": "6c4aca7919e4dc870d64b0c6c168236788b9e4c0" + "sha2": "f46b1863d5c0ee08e8595db5100c07af964f4de4" } ,{ "testCaseDescription": "javascript-number-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "number.js" ], - "sha1": "6c4aca7919e4dc870d64b0c6c168236788b9e4c0", + "sha1": "f46b1863d5c0ee08e8595db5100c07af964f4de4", "gitDir": "test/corpus/repos/javascript", - "sha2": "0a0b1399bd2b6e29c86b47190f1fb04a3114340c" + "sha2": "5866dd9dd4fd0bc119a03d4bcde45099fe739b05" } ,{ "testCaseDescription": "javascript-number-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "number.js" ], - "sha1": "0a0b1399bd2b6e29c86b47190f1fb04a3114340c", + "sha1": "5866dd9dd4fd0bc119a03d4bcde45099fe739b05", "gitDir": "test/corpus/repos/javascript", - "sha2": "027548af45a732b522e5a7cb5409f9817399249d" + "sha2": "3767ca5616b6394fb9548d78419b0721262ada04" } ,{ "testCaseDescription": "javascript-number-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "number.js" ], - "sha1": "027548af45a732b522e5a7cb5409f9817399249d", + "sha1": "3767ca5616b6394fb9548d78419b0721262ada04", "gitDir": "test/corpus/repos/javascript", - "sha2": "cc275c0ea8899fbde5800c0bcff4cf5fb9ef939a" + "sha2": "f02c59d9e8482819e974cffaa73bf510eb667bc8" } ,{ "testCaseDescription": "javascript-number-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "number.js" ], - "sha1": "cc275c0ea8899fbde5800c0bcff4cf5fb9ef939a", + "sha1": "f02c59d9e8482819e974cffaa73bf510eb667bc8", "gitDir": "test/corpus/repos/javascript", - "sha2": "c425ef566d594a7005444b2b415e5f43f9c162c1" + "sha2": "60dad463224cff89580648a60323a9d8d6294b4d" } ,{ "testCaseDescription": "javascript-number-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "number.js" ], - "sha1": "c425ef566d594a7005444b2b415e5f43f9c162c1", + "sha1": "60dad463224cff89580648a60323a9d8d6294b4d", "gitDir": "test/corpus/repos/javascript", - "sha2": "70c2b3ad28368d8cb4046e95c741a12084b1dc57" + "sha2": "50417237185c7e054472c267c7c8cdc687328c13" }] diff --git a/test/corpus/diff-summaries/javascript/object-with-methods.json b/test/corpus/diff-summaries/javascript/object-with-methods.json index 42a5064fe..561acf7fd 100644 --- a/test/corpus/diff-summaries/javascript/object-with-methods.json +++ b/test/corpus/diff-summaries/javascript/object-with-methods.json @@ -25,9 +25,9 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "35b4689cd0ad0f58c2cf2e8dead15d9abefbe207", + "sha1": "c75fb9316ad39a4eb2d3eb70fa688a22450f507d", "gitDir": "test/corpus/repos/javascript", - "sha2": "261c88f3063d52b84a5c4e583446644c9e11e24a" + "sha2": "79da3802869e2f94625ef1c0bdb49da4ca23f9d3" } ,{ "testCaseDescription": "javascript-objects-with-methods-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "261c88f3063d52b84a5c4e583446644c9e11e24a", + "sha1": "79da3802869e2f94625ef1c0bdb49da4ca23f9d3", "gitDir": "test/corpus/repos/javascript", - "sha2": "545491171b4d1330df4470705eb28bdde85f40c0" + "sha2": "aeda258410731ff60955c71a14cb61aa7d6b69b4" } ,{ "testCaseDescription": "javascript-objects-with-methods-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "545491171b4d1330df4470705eb28bdde85f40c0", + "sha1": "aeda258410731ff60955c71a14cb61aa7d6b69b4", "gitDir": "test/corpus/repos/javascript", - "sha2": "29e0f810e72e0f175f8957142088b3ec0a179017" + "sha2": "d43498dccb98ca54e268440f496338a1fa06d6f9" } ,{ "testCaseDescription": "javascript-objects-with-methods-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "29e0f810e72e0f175f8957142088b3ec0a179017", + "sha1": "d43498dccb98ca54e268440f496338a1fa06d6f9", "gitDir": "test/corpus/repos/javascript", - "sha2": "326ccb44e6ea0cc8a2e340ed637fbd24a8e683b1" + "sha2": "3b069d7b3a09829839b5273d6a3090c3a157f62c" } ,{ "testCaseDescription": "javascript-objects-with-methods-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "326ccb44e6ea0cc8a2e340ed637fbd24a8e683b1", + "sha1": "3b069d7b3a09829839b5273d6a3090c3a157f62c", "gitDir": "test/corpus/repos/javascript", - "sha2": "ad6f59e2c73d21145f4609499610a5a3d96513ba" + "sha2": "08b7ddaaa7317eb8d407d1ce97184c34e5240b99" } ,{ "testCaseDescription": "javascript-objects-with-methods-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "ad6f59e2c73d21145f4609499610a5a3d96513ba", + "sha1": "08b7ddaaa7317eb8d407d1ce97184c34e5240b99", "gitDir": "test/corpus/repos/javascript", - "sha2": "e0e2892207a25d7c1a176ad0ec9d58f9281ca1da" + "sha2": "70b414df2ee1dc004bf390fc83fd6bbc36628aa7" } ,{ "testCaseDescription": "javascript-objects-with-methods-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "objects-with-methods.js" ], - "sha1": "e0e2892207a25d7c1a176ad0ec9d58f9281ca1da", + "sha1": "70b414df2ee1dc004bf390fc83fd6bbc36628aa7", "gitDir": "test/corpus/repos/javascript", - "sha2": "e43540c8124aad861bcbb7e7fddb9a102d896194" + "sha2": "6ba1bec246beb40cd40df1ea4ec93aa3fb7781e8" }] diff --git a/test/corpus/diff-summaries/javascript/object.json b/test/corpus/diff-summaries/javascript/object.json index 699b51d3e..3c1ef2448 100644 --- a/test/corpus/diff-summaries/javascript/object.json +++ b/test/corpus/diff-summaries/javascript/object.json @@ -25,9 +25,9 @@ "filePaths": [ "object.js" ], - "sha1": "f55d6aa18c65e8c1e34afa1424a83c06b0d2bfab", + "sha1": "b3fe5bae4a947f5a90fb50f2b69ff505d7ca2932", "gitDir": "test/corpus/repos/javascript", - "sha2": "34ab93c9fe8cf97c51c2537efce11b24050c5ddb" + "sha2": "ad578ec57ff6d1e0ccd3c7efc9ee145bd0e6c4d5" } ,{ "testCaseDescription": "javascript-object-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "object.js" ], - "sha1": "34ab93c9fe8cf97c51c2537efce11b24050c5ddb", + "sha1": "ad578ec57ff6d1e0ccd3c7efc9ee145bd0e6c4d5", "gitDir": "test/corpus/repos/javascript", - "sha2": "ec7aec544be9d044da9e039a2e982ef9bf7926ee" + "sha2": "af25aa0ca2688c29840f137c7e943152deb478b3" } ,{ "testCaseDescription": "javascript-object-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "object.js" ], - "sha1": "ec7aec544be9d044da9e039a2e982ef9bf7926ee", + "sha1": "af25aa0ca2688c29840f137c7e943152deb478b3", "gitDir": "test/corpus/repos/javascript", - "sha2": "7d2fd48e0cfd988cbb8a2997dfd434fc30fa9ddf" + "sha2": "be9d1bd78b02440285241c92a13c3c0f2093d496" } ,{ "testCaseDescription": "javascript-object-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "object.js" ], - "sha1": "7d2fd48e0cfd988cbb8a2997dfd434fc30fa9ddf", + "sha1": "be9d1bd78b02440285241c92a13c3c0f2093d496", "gitDir": "test/corpus/repos/javascript", - "sha2": "456dae8c8f21037bd0307dc81e56588d1a2b505d" + "sha2": "c04887612722a69b86981a703f8276c967401e10" } ,{ "testCaseDescription": "javascript-object-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "object.js" ], - "sha1": "456dae8c8f21037bd0307dc81e56588d1a2b505d", + "sha1": "c04887612722a69b86981a703f8276c967401e10", "gitDir": "test/corpus/repos/javascript", - "sha2": "5d4270ca8f3ad68ff6c59b3ab9c4f63f827534d2" + "sha2": "b21035c33e1ad1ed000cd75f525d6263860760d4" } ,{ "testCaseDescription": "javascript-object-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "object.js" ], - "sha1": "5d4270ca8f3ad68ff6c59b3ab9c4f63f827534d2", + "sha1": "b21035c33e1ad1ed000cd75f525d6263860760d4", "gitDir": "test/corpus/repos/javascript", - "sha2": "62d403602ce53034c2af5b8a31a981c31d5babab" + "sha2": "b8d4ebb4bb863cad12eddc63c36fbab5b165b851" } ,{ "testCaseDescription": "javascript-object-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "object.js" ], - "sha1": "62d403602ce53034c2af5b8a31a981c31d5babab", + "sha1": "b8d4ebb4bb863cad12eddc63c36fbab5b165b851", "gitDir": "test/corpus/repos/javascript", - "sha2": "43c210e7da83b5bb9ff23b55ee98e74bbed3b965" + "sha2": "70801fe02e1669714037fa964db6b89a852a2403" }] diff --git a/test/corpus/diff-summaries/javascript/regex.json b/test/corpus/diff-summaries/javascript/regex.json index d11b761b4..1bb2c208e 100644 --- a/test/corpus/diff-summaries/javascript/regex.json +++ b/test/corpus/diff-summaries/javascript/regex.json @@ -25,9 +25,9 @@ "filePaths": [ "regex.js" ], - "sha1": "6c5d2f8381454312d9b09faa78a5906a62be7bf1", + "sha1": "a8d82ce2f93ff647407bf419c52871460f9c97eb", "gitDir": "test/corpus/repos/javascript", - "sha2": "d0171c53599d911bc84b456de29fc93fb0d834fb" + "sha2": "ea0eff1793ebe105c8b6442f67ca405bef23c74a" } ,{ "testCaseDescription": "javascript-regex-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "regex.js" ], - "sha1": "d0171c53599d911bc84b456de29fc93fb0d834fb", + "sha1": "ea0eff1793ebe105c8b6442f67ca405bef23c74a", "gitDir": "test/corpus/repos/javascript", - "sha2": "03a3616f5d44c2e9b6bec34bffe2e6e255ba8dd9" + "sha2": "1a0ba895f61e19f205bda942d710326f95a6c835" } ,{ "testCaseDescription": "javascript-regex-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "regex.js" ], - "sha1": "03a3616f5d44c2e9b6bec34bffe2e6e255ba8dd9", + "sha1": "1a0ba895f61e19f205bda942d710326f95a6c835", "gitDir": "test/corpus/repos/javascript", - "sha2": "8b9f5160d107a289602b45bd72cfc6baacc45a95" + "sha2": "a11c079f420cf6d465f0298c6be827ddf2e3fa0e" } ,{ "testCaseDescription": "javascript-regex-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "regex.js" ], - "sha1": "8b9f5160d107a289602b45bd72cfc6baacc45a95", + "sha1": "a11c079f420cf6d465f0298c6be827ddf2e3fa0e", "gitDir": "test/corpus/repos/javascript", - "sha2": "e64417a24f0e8ff077f9540c5a1157653bfafa04" + "sha2": "a41a393f2a4650057daf589114f2a8a7375d3415" } ,{ "testCaseDescription": "javascript-regex-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "regex.js" ], - "sha1": "e64417a24f0e8ff077f9540c5a1157653bfafa04", + "sha1": "a41a393f2a4650057daf589114f2a8a7375d3415", "gitDir": "test/corpus/repos/javascript", - "sha2": "90a2372e45fac48c3ebb06f07ba7bb1466c7f16a" + "sha2": "02bb6a471daed892a9c6daca059573dade9b887d" } ,{ "testCaseDescription": "javascript-regex-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "regex.js" ], - "sha1": "90a2372e45fac48c3ebb06f07ba7bb1466c7f16a", + "sha1": "02bb6a471daed892a9c6daca059573dade9b887d", "gitDir": "test/corpus/repos/javascript", - "sha2": "9130722fb2238f56d674c95fbaa62fc4d6a39abe" + "sha2": "49ffd45612bbe6b997445a609278acb2303940ad" } ,{ "testCaseDescription": "javascript-regex-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "regex.js" ], - "sha1": "9130722fb2238f56d674c95fbaa62fc4d6a39abe", + "sha1": "49ffd45612bbe6b997445a609278acb2303940ad", "gitDir": "test/corpus/repos/javascript", - "sha2": "3446a59224e0232fb851ace17dda13106fa50beb" + "sha2": "1669bea8ff257c1f4188d1b90d7f085ea3d7325e" }] diff --git a/test/corpus/diff-summaries/javascript/relational-operator.json b/test/corpus/diff-summaries/javascript/relational-operator.json index 01ef60dce..6e66afe48 100644 --- a/test/corpus/diff-summaries/javascript/relational-operator.json +++ b/test/corpus/diff-summaries/javascript/relational-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "22c7ad23b1c499bae8deea613c9d0da1b4ea8a72", + "sha1": "e6555d14408de30d90a7b79e4d091182ed784144", "gitDir": "test/corpus/repos/javascript", - "sha2": "b81b946cb905be820d1f3e173867bf35dabc7f5a" + "sha2": "853be3a2933dd0440739e49f2e6cbb5b8a7c988d" } ,{ "testCaseDescription": "javascript-relational-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "b81b946cb905be820d1f3e173867bf35dabc7f5a", + "sha1": "853be3a2933dd0440739e49f2e6cbb5b8a7c988d", "gitDir": "test/corpus/repos/javascript", - "sha2": "ca4f0d13e32ae638c82db244042970a5dd1be104" + "sha2": "da45439b761297a4a004d37d5a5d0844f5c357eb" } ,{ "testCaseDescription": "javascript-relational-operator-delete-insert-test", @@ -84,9 +84,9 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "ca4f0d13e32ae638c82db244042970a5dd1be104", + "sha1": "da45439b761297a4a004d37d5a5d0844f5c357eb", "gitDir": "test/corpus/repos/javascript", - "sha2": "07cc3956e2a56e9617b5aa57c8de7f3ab06e8125" + "sha2": "11624e1a755da2b7c72c3ecb47dcf031bef55ee6" } ,{ "testCaseDescription": "javascript-relational-operator-replacement-test", @@ -97,9 +97,9 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "07cc3956e2a56e9617b5aa57c8de7f3ab06e8125", + "sha1": "11624e1a755da2b7c72c3ecb47dcf031bef55ee6", "gitDir": "test/corpus/repos/javascript", - "sha2": "d4c67f879b9b8c295049e0264789f3e2ec3f2d7c" + "sha2": "86be0c2895d631508dbc9c893f9b7cad94f25610" } ,{ "testCaseDescription": "javascript-relational-operator-delete-replacement-test", @@ -128,9 +128,9 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "d4c67f879b9b8c295049e0264789f3e2ec3f2d7c", + "sha1": "86be0c2895d631508dbc9c893f9b7cad94f25610", "gitDir": "test/corpus/repos/javascript", - "sha2": "f8f0b033333946cd7f9489c2a145ad1d37e823b6" + "sha2": "9b51d4782be7439daee1f6278b105509352bd7e9" } ,{ "testCaseDescription": "javascript-relational-operator-delete-test", @@ -159,9 +159,9 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "f8f0b033333946cd7f9489c2a145ad1d37e823b6", + "sha1": "9b51d4782be7439daee1f6278b105509352bd7e9", "gitDir": "test/corpus/repos/javascript", - "sha2": "4c80cf20f846c4e33fe1e49c39859943af3f8b83" + "sha2": "71f90a186bf7a6ef1d7f1e36928d144d2dbf093b" } ,{ "testCaseDescription": "javascript-relational-operator-delete-rest-test", @@ -190,7 +190,7 @@ "filePaths": [ "relational-operator.js" ], - "sha1": "4c80cf20f846c4e33fe1e49c39859943af3f8b83", + "sha1": "71f90a186bf7a6ef1d7f1e36928d144d2dbf093b", "gitDir": "test/corpus/repos/javascript", - "sha2": "0f88094acb09b3ea752529625973f93a9b6ad15a" + "sha2": "17ba0adbd505e57d01caa8bc3911712cff975e3d" }] diff --git a/test/corpus/diff-summaries/javascript/return-statement.json b/test/corpus/diff-summaries/javascript/return-statement.json index 78f887b3d..bb9f4cd54 100644 --- a/test/corpus/diff-summaries/javascript/return-statement.json +++ b/test/corpus/diff-summaries/javascript/return-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "return-statement.js" ], - "sha1": "928a00d4fd3c3fc5e67b7d54564a784dd222d6df", + "sha1": "8397e8bab234cfb40d758bd3f508928f7e609eda", "gitDir": "test/corpus/repos/javascript", - "sha2": "f55421b230c4923ed664cd8e3622b7e51b058789" + "sha2": "b5cbe67685d4ed34e57adbca76e9edb2deb63872" } ,{ "testCaseDescription": "javascript-return-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "return-statement.js" ], - "sha1": "f55421b230c4923ed664cd8e3622b7e51b058789", + "sha1": "b5cbe67685d4ed34e57adbca76e9edb2deb63872", "gitDir": "test/corpus/repos/javascript", - "sha2": "94ea7d4bc4d4606830fbffc9dbf51ac81f739bdf" + "sha2": "d45f52c775e8f8de44818ec7b528d55415d27a62" } ,{ "testCaseDescription": "javascript-return-statement-delete-insert-test", @@ -102,9 +102,9 @@ "filePaths": [ "return-statement.js" ], - "sha1": "94ea7d4bc4d4606830fbffc9dbf51ac81f739bdf", + "sha1": "d45f52c775e8f8de44818ec7b528d55415d27a62", "gitDir": "test/corpus/repos/javascript", - "sha2": "1d8d11f76566ccd86e01a16c902233e28411ee56" + "sha2": "75525f5c71abf02dd570e9a3ce818bccf942b042" } ,{ "testCaseDescription": "javascript-return-statement-replacement-test", @@ -133,9 +133,9 @@ "filePaths": [ "return-statement.js" ], - "sha1": "1d8d11f76566ccd86e01a16c902233e28411ee56", + "sha1": "75525f5c71abf02dd570e9a3ce818bccf942b042", "gitDir": "test/corpus/repos/javascript", - "sha2": "43bb80a849e191473a96dd89f9155f4c555c6326" + "sha2": "e3c36babcfd30ff4680ded2f1ee86fa16f0c4582" } ,{ "testCaseDescription": "javascript-return-statement-delete-replacement-test", @@ -194,9 +194,9 @@ "filePaths": [ "return-statement.js" ], - "sha1": "43bb80a849e191473a96dd89f9155f4c555c6326", + "sha1": "e3c36babcfd30ff4680ded2f1ee86fa16f0c4582", "gitDir": "test/corpus/repos/javascript", - "sha2": "d98bd540bfb1bcf6c7f716e4cd2d408578b5eafe" + "sha2": "6f9a8bad0dd307d36f735a709cf1d2805fa99a56" } ,{ "testCaseDescription": "javascript-return-statement-delete-test", @@ -225,9 +225,9 @@ "filePaths": [ "return-statement.js" ], - "sha1": "d98bd540bfb1bcf6c7f716e4cd2d408578b5eafe", + "sha1": "6f9a8bad0dd307d36f735a709cf1d2805fa99a56", "gitDir": "test/corpus/repos/javascript", - "sha2": "f637e1d91328db29266f59df823d3394d26768dc" + "sha2": "14990f01359eb1939847a22c255fec278a43e529" } ,{ "testCaseDescription": "javascript-return-statement-delete-rest-test", @@ -256,7 +256,7 @@ "filePaths": [ "return-statement.js" ], - "sha1": "f637e1d91328db29266f59df823d3394d26768dc", + "sha1": "14990f01359eb1939847a22c255fec278a43e529", "gitDir": "test/corpus/repos/javascript", - "sha2": "326bf6e98fb79cd2a89f227fffebf3966e191811" + "sha2": "f44956c8e350313dc0c3aa6a19dd68f221bb3e01" }] diff --git a/test/corpus/diff-summaries/javascript/string.json b/test/corpus/diff-summaries/javascript/string.json index 064374171..490620bfb 100644 --- a/test/corpus/diff-summaries/javascript/string.json +++ b/test/corpus/diff-summaries/javascript/string.json @@ -25,9 +25,9 @@ "filePaths": [ "string.js" ], - "sha1": "ad80e055e0c410a3cdfb2d7337d93ddc04d8e133", + "sha1": "6ba1bec246beb40cd40df1ea4ec93aa3fb7781e8", "gitDir": "test/corpus/repos/javascript", - "sha2": "2a0c77c7be941de0f7b685ffa1d1cb8eaf8295c9" + "sha2": "07b2f9dc2ed50344b2fa4020fd5588b5ff8dbe31" } ,{ "testCaseDescription": "javascript-string-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "string.js" ], - "sha1": "2a0c77c7be941de0f7b685ffa1d1cb8eaf8295c9", + "sha1": "07b2f9dc2ed50344b2fa4020fd5588b5ff8dbe31", "gitDir": "test/corpus/repos/javascript", - "sha2": "6aa1cf06008a89a96399869f58f592f33703bef2" + "sha2": "3289ce841872ee7cd5e733c159865426eee0068c" } ,{ "testCaseDescription": "javascript-string-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "string.js" ], - "sha1": "6aa1cf06008a89a96399869f58f592f33703bef2", + "sha1": "3289ce841872ee7cd5e733c159865426eee0068c", "gitDir": "test/corpus/repos/javascript", - "sha2": "149faf05cc363689233be83aa6fe39eb144bfc8d" + "sha2": "22318114bb3837ac62d3fc84c2b7c4ff71795a69" } ,{ "testCaseDescription": "javascript-string-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "string.js" ], - "sha1": "149faf05cc363689233be83aa6fe39eb144bfc8d", + "sha1": "22318114bb3837ac62d3fc84c2b7c4ff71795a69", "gitDir": "test/corpus/repos/javascript", - "sha2": "9b66889555b222d79a51e6d6ef4c92d4dd701578" + "sha2": "3a931b70ae66d18954b5f893bfb8debcbc987b43" } ,{ "testCaseDescription": "javascript-string-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "string.js" ], - "sha1": "9b66889555b222d79a51e6d6ef4c92d4dd701578", + "sha1": "3a931b70ae66d18954b5f893bfb8debcbc987b43", "gitDir": "test/corpus/repos/javascript", - "sha2": "32e0b9b27410fe256e788ce232a898882bdc6978" + "sha2": "0d99ed2803b9e9e31790bbbf0a54a8807fbb932e" } ,{ "testCaseDescription": "javascript-string-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "string.js" ], - "sha1": "32e0b9b27410fe256e788ce232a898882bdc6978", + "sha1": "0d99ed2803b9e9e31790bbbf0a54a8807fbb932e", "gitDir": "test/corpus/repos/javascript", - "sha2": "dc50ebe6d6d6b77bc4d53bade496da8417eefdc6" + "sha2": "367cccc5389d3d586c3e27c6100233e99d6a2c9a" } ,{ "testCaseDescription": "javascript-string-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "string.js" ], - "sha1": "dc50ebe6d6d6b77bc4d53bade496da8417eefdc6", + "sha1": "367cccc5389d3d586c3e27c6100233e99d6a2c9a", "gitDir": "test/corpus/repos/javascript", - "sha2": "219f1d3d7d1848c03934a3c03323d75c8fdd3d56" + "sha2": "1fbf78e38d149f4488a791341040013fdb00da3b" }] diff --git a/test/corpus/diff-summaries/javascript/subscript-access-assignment.json b/test/corpus/diff-summaries/javascript/subscript-access-assignment.json index d56268c2b..db4e68c4a 100644 --- a/test/corpus/diff-summaries/javascript/subscript-access-assignment.json +++ b/test/corpus/diff-summaries/javascript/subscript-access-assignment.json @@ -25,9 +25,9 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "2f520298a4dcf5c9528a0458d67f9c049db13594", + "sha1": "71e846db3af817d1db02b2d462983f50a9059fc0", "gitDir": "test/corpus/repos/javascript", - "sha2": "3a3068954a70f399e20fccbe63275e92916c58da" + "sha2": "f8793a3e9e378e1ff4e64215c951fc5d5005e78f" } ,{ "testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "3a3068954a70f399e20fccbe63275e92916c58da", + "sha1": "f8793a3e9e378e1ff4e64215c951fc5d5005e78f", "gitDir": "test/corpus/repos/javascript", - "sha2": "9507f6e23aa4143a191f97fde57cf9bde823672f" + "sha2": "826a323095567dffdc42ca11a6a3be93294ecd0a" } ,{ "testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "9507f6e23aa4143a191f97fde57cf9bde823672f", + "sha1": "826a323095567dffdc42ca11a6a3be93294ecd0a", "gitDir": "test/corpus/repos/javascript", - "sha2": "4e9220f240f638eed3bf4b57c267e0a01923db2b" + "sha2": "19b04eea709e2924c2885081f8c513810684b77d" } ,{ "testCaseDescription": "javascript-subscript-access-assignment-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "4e9220f240f638eed3bf4b57c267e0a01923db2b", + "sha1": "19b04eea709e2924c2885081f8c513810684b77d", "gitDir": "test/corpus/repos/javascript", - "sha2": "7e257e14bd2d7edc51ee1186d5e1ecbfd32fe49b" + "sha2": "d7f9e29c6aeaa50e8d2ac03def43df4b26c9cf2f" } ,{ "testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "7e257e14bd2d7edc51ee1186d5e1ecbfd32fe49b", + "sha1": "d7f9e29c6aeaa50e8d2ac03def43df4b26c9cf2f", "gitDir": "test/corpus/repos/javascript", - "sha2": "a9dfea7d8dda5764305b632201ff5cbd9124112b" + "sha2": "b8b827a55d992c6e1b9d7498e733121346181edf" } ,{ "testCaseDescription": "javascript-subscript-access-assignment-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "a9dfea7d8dda5764305b632201ff5cbd9124112b", + "sha1": "b8b827a55d992c6e1b9d7498e733121346181edf", "gitDir": "test/corpus/repos/javascript", - "sha2": "d297e8716328201391f07fb0bd6cb8f6b2c05c72" + "sha2": "d24cf4c1a80f0defd2807b9cc8c7157b701a8402" } ,{ "testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "subscript-access-assignment.js" ], - "sha1": "d297e8716328201391f07fb0bd6cb8f6b2c05c72", + "sha1": "d24cf4c1a80f0defd2807b9cc8c7157b701a8402", "gitDir": "test/corpus/repos/javascript", - "sha2": "8ac0d0eaa2342f7e4728491b7f7c86b469ad78a5" + "sha2": "e64ae9d5e5e9c36c61d46fc5a3205f970d0356d8" }] diff --git a/test/corpus/diff-summaries/javascript/subscript-access-string.json b/test/corpus/diff-summaries/javascript/subscript-access-string.json index e316735f8..5e0f7ce77 100644 --- a/test/corpus/diff-summaries/javascript/subscript-access-string.json +++ b/test/corpus/diff-summaries/javascript/subscript-access-string.json @@ -25,9 +25,9 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "66e1a394a9c4de7fde0b87d1544fa3dbd6b76836", + "sha1": "bfd5b98057c8ea4f46c590f2aea1ccf1fff4532f", "gitDir": "test/corpus/repos/javascript", - "sha2": "80777a734edd6bb7424f0ce22d08165e2a24a49c" + "sha2": "109f2f1bab09e0cffae10c2ed02cee13fffbb4c8" } ,{ "testCaseDescription": "javascript-subscript-access-string-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "80777a734edd6bb7424f0ce22d08165e2a24a49c", + "sha1": "109f2f1bab09e0cffae10c2ed02cee13fffbb4c8", "gitDir": "test/corpus/repos/javascript", - "sha2": "511701800d4c9abd384d70ed822b23dd258fe921" + "sha2": "60255be124bb4a42e9ba6e258d618786ff5fe8fa" } ,{ "testCaseDescription": "javascript-subscript-access-string-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "511701800d4c9abd384d70ed822b23dd258fe921", + "sha1": "60255be124bb4a42e9ba6e258d618786ff5fe8fa", "gitDir": "test/corpus/repos/javascript", - "sha2": "b6ecedf1e472dd9e7c45b673c5d0f13affca6e7d" + "sha2": "6d7a475ad54e43226e386737e4e6e3d629df1a93" } ,{ "testCaseDescription": "javascript-subscript-access-string-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "b6ecedf1e472dd9e7c45b673c5d0f13affca6e7d", + "sha1": "6d7a475ad54e43226e386737e4e6e3d629df1a93", "gitDir": "test/corpus/repos/javascript", - "sha2": "a87356f1583f4c982e016ccc23e63eb9d15ac505" + "sha2": "1595f44aa0f6529b1281546d22c87a55887b5ec3" } ,{ "testCaseDescription": "javascript-subscript-access-string-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "a87356f1583f4c982e016ccc23e63eb9d15ac505", + "sha1": "1595f44aa0f6529b1281546d22c87a55887b5ec3", "gitDir": "test/corpus/repos/javascript", - "sha2": "7d60bb00a9d81493b00257bc5213bcf798d7a632" + "sha2": "36688c12d70c8a06833379e984e4be0a638be039" } ,{ "testCaseDescription": "javascript-subscript-access-string-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "7d60bb00a9d81493b00257bc5213bcf798d7a632", + "sha1": "36688c12d70c8a06833379e984e4be0a638be039", "gitDir": "test/corpus/repos/javascript", - "sha2": "551ebdffffc4bfe39c0e1d03eb225759f1467fc0" + "sha2": "09db267ea0e65b1f3551e65092fc44412d6f1c2c" } ,{ "testCaseDescription": "javascript-subscript-access-string-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "subscript-access-string.js" ], - "sha1": "551ebdffffc4bfe39c0e1d03eb225759f1467fc0", + "sha1": "09db267ea0e65b1f3551e65092fc44412d6f1c2c", "gitDir": "test/corpus/repos/javascript", - "sha2": "23be74584aa29c995896e5ccae7e16234ec7f12d" + "sha2": "f90a3adaa2c74802e218415dbf5e97a2bc98edd6" }] diff --git a/test/corpus/diff-summaries/javascript/subscript-access-variable.json b/test/corpus/diff-summaries/javascript/subscript-access-variable.json index 1be4de15e..e583f004a 100644 --- a/test/corpus/diff-summaries/javascript/subscript-access-variable.json +++ b/test/corpus/diff-summaries/javascript/subscript-access-variable.json @@ -25,9 +25,9 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "5903b9ccdd05fd26ba4069de7fdc8307a192feb7", + "sha1": "0d42e808e4dd17f60f2029cc59e0f7c86c8ce169", "gitDir": "test/corpus/repos/javascript", - "sha2": "f6296f4db93455d17afebbc6c87cd49b6d6ed9ab" + "sha2": "91475db9064f53b6f37e05e13c1376fdb71f5b4a" } ,{ "testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "f6296f4db93455d17afebbc6c87cd49b6d6ed9ab", + "sha1": "91475db9064f53b6f37e05e13c1376fdb71f5b4a", "gitDir": "test/corpus/repos/javascript", - "sha2": "2a9131e1f8253166b954393a23e5e9a37087ad7a" + "sha2": "e6200a0d53990a65d3d831bd28fc71e42e29cdf3" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "2a9131e1f8253166b954393a23e5e9a37087ad7a", + "sha1": "e6200a0d53990a65d3d831bd28fc71e42e29cdf3", "gitDir": "test/corpus/repos/javascript", - "sha2": "179a4b5e3be00dfb9da844cd9ac0e02c32cd9f8b" + "sha2": "4dd9c638f4dfe822e759e723c55acdb890d70cc7" } ,{ "testCaseDescription": "javascript-subscript-access-variable-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "179a4b5e3be00dfb9da844cd9ac0e02c32cd9f8b", + "sha1": "4dd9c638f4dfe822e759e723c55acdb890d70cc7", "gitDir": "test/corpus/repos/javascript", - "sha2": "2d600b483cc0e24fc9e58a7afad5300dd4a08696" + "sha2": "7ea82939db78b95666325839770e3401bfdd35fd" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "2d600b483cc0e24fc9e58a7afad5300dd4a08696", + "sha1": "7ea82939db78b95666325839770e3401bfdd35fd", "gitDir": "test/corpus/repos/javascript", - "sha2": "3deb25e124857cb5e3a42c709020ac5828e7d1df" + "sha2": "4d793827d9e2ad8a54ed3f0703d849f0f40f0d49" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "3deb25e124857cb5e3a42c709020ac5828e7d1df", + "sha1": "4d793827d9e2ad8a54ed3f0703d849f0f40f0d49", "gitDir": "test/corpus/repos/javascript", - "sha2": "9357444e76622b11a63cd52ed08f8956344b6990" + "sha2": "eac68c8756fbd3b0ef7f5ce4cda27fcf1878e5b7" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "subscript-access-variable.js" ], - "sha1": "9357444e76622b11a63cd52ed08f8956344b6990", + "sha1": "eac68c8756fbd3b0ef7f5ce4cda27fcf1878e5b7", "gitDir": "test/corpus/repos/javascript", - "sha2": "b7e192d7e878c96925cc14d96b5b032655559981" + "sha2": "bfd5b98057c8ea4f46c590f2aea1ccf1fff4532f" }] diff --git a/test/corpus/diff-summaries/javascript/switch-statement.json b/test/corpus/diff-summaries/javascript/switch-statement.json index e33500ab7..d5b65df56 100644 --- a/test/corpus/diff-summaries/javascript/switch-statement.json +++ b/test/corpus/diff-summaries/javascript/switch-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "cc9ed2af40be5ca85a086c4e412af886aa878efe", + "sha1": "9b3fa18f93b30e23feb552554523824b2cbd4051", "gitDir": "test/corpus/repos/javascript", - "sha2": "a174c096e16bf59365fb6e94b32bbac73a671a1f" + "sha2": "91d80090c088f1116ba7c702afcaf67a13517286" } ,{ "testCaseDescription": "javascript-switch-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "a174c096e16bf59365fb6e94b32bbac73a671a1f", + "sha1": "91d80090c088f1116ba7c702afcaf67a13517286", "gitDir": "test/corpus/repos/javascript", - "sha2": "482df33730f4d584118e0d196161a75f4fb088f6" + "sha2": "c248802378b971b32f538e0296f647e826fb2968" } ,{ "testCaseDescription": "javascript-switch-statement-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "482df33730f4d584118e0d196161a75f4fb088f6", + "sha1": "c248802378b971b32f538e0296f647e826fb2968", "gitDir": "test/corpus/repos/javascript", - "sha2": "57ffb4bd2aecdf65e5d0b6d997a94ee30fc803c0" + "sha2": "1327801f284f6b17fc44d43bef3fbdfb203c268b" } ,{ "testCaseDescription": "javascript-switch-statement-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "57ffb4bd2aecdf65e5d0b6d997a94ee30fc803c0", + "sha1": "1327801f284f6b17fc44d43bef3fbdfb203c268b", "gitDir": "test/corpus/repos/javascript", - "sha2": "f6cdead88eece454f368cee2a9ad62862fc2c328" + "sha2": "8c0fc45dcc59d18cb7bea2d6cdd15c8257567a7f" } ,{ "testCaseDescription": "javascript-switch-statement-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "f6cdead88eece454f368cee2a9ad62862fc2c328", + "sha1": "8c0fc45dcc59d18cb7bea2d6cdd15c8257567a7f", "gitDir": "test/corpus/repos/javascript", - "sha2": "b1d576c11d37fb8a485a0f602450cf6215b5bcae" + "sha2": "2f5c8dffebd285e44a67e8eaa5875fdbad9281ff" } ,{ "testCaseDescription": "javascript-switch-statement-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "b1d576c11d37fb8a485a0f602450cf6215b5bcae", + "sha1": "2f5c8dffebd285e44a67e8eaa5875fdbad9281ff", "gitDir": "test/corpus/repos/javascript", - "sha2": "7f97b237369f4075c8ee13b76c094412eaef3fb1" + "sha2": "a95f89c4c9071195175834ae7f2f5fc746ed851c" } ,{ "testCaseDescription": "javascript-switch-statement-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "switch-statement.js" ], - "sha1": "7f97b237369f4075c8ee13b76c094412eaef3fb1", + "sha1": "a95f89c4c9071195175834ae7f2f5fc746ed851c", "gitDir": "test/corpus/repos/javascript", - "sha2": "5ada28bb3e8f4fab0f622f1f77397b5683a80ade" + "sha2": "0a1875f1c7a75660da38253225a80c47d10d90b2" }] diff --git a/test/corpus/diff-summaries/javascript/template-string.json b/test/corpus/diff-summaries/javascript/template-string.json index b7885c7ce..5e8e18a2e 100644 --- a/test/corpus/diff-summaries/javascript/template-string.json +++ b/test/corpus/diff-summaries/javascript/template-string.json @@ -25,9 +25,9 @@ "filePaths": [ "template-string.js" ], - "sha1": "347f199c6eaabd4633ed4b5f62a3090617ec3f01", + "sha1": "cd4e32b78606c7a57aa99922f75294e3b2a3c136", "gitDir": "test/corpus/repos/javascript", - "sha2": "7a33150c5b7a06e83d72e8ac50c2a6f06823e3ac" + "sha2": "1ef05c50cbb0310146ddd3bc1e2e2f440da34008" } ,{ "testCaseDescription": "javascript-template-string-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "template-string.js" ], - "sha1": "7a33150c5b7a06e83d72e8ac50c2a6f06823e3ac", + "sha1": "1ef05c50cbb0310146ddd3bc1e2e2f440da34008", "gitDir": "test/corpus/repos/javascript", - "sha2": "83ca7243c9f22390689cd66358c07488f71832e6" + "sha2": "5193cc05a7c8c543175859d1d379514d2a83bef2" } ,{ "testCaseDescription": "javascript-template-string-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "template-string.js" ], - "sha1": "83ca7243c9f22390689cd66358c07488f71832e6", + "sha1": "5193cc05a7c8c543175859d1d379514d2a83bef2", "gitDir": "test/corpus/repos/javascript", - "sha2": "7d808ad7597c8b9b2a0983992e2eb8c08468c788" + "sha2": "7858b1ad5b8c2d6fffa53c2ca2854958d92a65f8" } ,{ "testCaseDescription": "javascript-template-string-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "template-string.js" ], - "sha1": "7d808ad7597c8b9b2a0983992e2eb8c08468c788", + "sha1": "7858b1ad5b8c2d6fffa53c2ca2854958d92a65f8", "gitDir": "test/corpus/repos/javascript", - "sha2": "85c96c1f03dafe216091b1f43d366fddef794f1f" + "sha2": "8d18e3562079de09f22ceff050ef807c99cedffa" } ,{ "testCaseDescription": "javascript-template-string-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "template-string.js" ], - "sha1": "85c96c1f03dafe216091b1f43d366fddef794f1f", + "sha1": "8d18e3562079de09f22ceff050ef807c99cedffa", "gitDir": "test/corpus/repos/javascript", - "sha2": "51b1300734e12cbe21fb966e5aacf5dca59e08cf" + "sha2": "b64abbca62fa2e3667277cd0c6c951555b70f83b" } ,{ "testCaseDescription": "javascript-template-string-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "template-string.js" ], - "sha1": "51b1300734e12cbe21fb966e5aacf5dca59e08cf", + "sha1": "b64abbca62fa2e3667277cd0c6c951555b70f83b", "gitDir": "test/corpus/repos/javascript", - "sha2": "9c72ddff1967feb610cdd5eda413229e5772470b" + "sha2": "3e19330ccfaa2a1e5bca83abe47c334bad5b9a49" } ,{ "testCaseDescription": "javascript-template-string-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "template-string.js" ], - "sha1": "9c72ddff1967feb610cdd5eda413229e5772470b", + "sha1": "3e19330ccfaa2a1e5bca83abe47c334bad5b9a49", "gitDir": "test/corpus/repos/javascript", - "sha2": "aa0b495c0fb0241d8dcdb62df337b9280d317986" + "sha2": "90afab60996a573711423295c92c426d0fef52d6" }] diff --git a/test/corpus/diff-summaries/javascript/ternary.json b/test/corpus/diff-summaries/javascript/ternary.json index d43beea0d..0b3b03bee 100644 --- a/test/corpus/diff-summaries/javascript/ternary.json +++ b/test/corpus/diff-summaries/javascript/ternary.json @@ -25,9 +25,9 @@ "filePaths": [ "ternary.js" ], - "sha1": "a0ecf361e5a77382049e8df1ed58b6e9fcf16a8f", + "sha1": "546367ee497592b174f80ccf5d825d6ff2367833", "gitDir": "test/corpus/repos/javascript", - "sha2": "a1f4aada0fc4df561c37031b2d9d9f230d21c2bc" + "sha2": "d034207184ac2882966c9ceb341bf21dccd89e61" } ,{ "testCaseDescription": "javascript-ternary-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "ternary.js" ], - "sha1": "a1f4aada0fc4df561c37031b2d9d9f230d21c2bc", + "sha1": "d034207184ac2882966c9ceb341bf21dccd89e61", "gitDir": "test/corpus/repos/javascript", - "sha2": "55d149eaa28ea6944a7e4f8644c1c95aeeb02e35" + "sha2": "41a4f0ccd0006e024da24ed56cac09e5a4a28169" } ,{ "testCaseDescription": "javascript-ternary-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "ternary.js" ], - "sha1": "55d149eaa28ea6944a7e4f8644c1c95aeeb02e35", + "sha1": "41a4f0ccd0006e024da24ed56cac09e5a4a28169", "gitDir": "test/corpus/repos/javascript", - "sha2": "ad2c749662fb7af836bec5c5cc1358f7f5704928" + "sha2": "57feb2212d928f197a6e4f81918a007451d3a6ca" } ,{ "testCaseDescription": "javascript-ternary-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "ternary.js" ], - "sha1": "ad2c749662fb7af836bec5c5cc1358f7f5704928", + "sha1": "57feb2212d928f197a6e4f81918a007451d3a6ca", "gitDir": "test/corpus/repos/javascript", - "sha2": "df201e629277d5601c6e212a48f51a54781c9a10" + "sha2": "1dd1670090943863b7959d6f8e4bc82491bfc4c9" } ,{ "testCaseDescription": "javascript-ternary-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "ternary.js" ], - "sha1": "df201e629277d5601c6e212a48f51a54781c9a10", + "sha1": "1dd1670090943863b7959d6f8e4bc82491bfc4c9", "gitDir": "test/corpus/repos/javascript", - "sha2": "04b7c1d81c0bbc51b21fd100a7a5378d41d16428" + "sha2": "5b9f88866d48b863f643680c32335fe6979ea4cd" } ,{ "testCaseDescription": "javascript-ternary-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "ternary.js" ], - "sha1": "04b7c1d81c0bbc51b21fd100a7a5378d41d16428", + "sha1": "5b9f88866d48b863f643680c32335fe6979ea4cd", "gitDir": "test/corpus/repos/javascript", - "sha2": "33ce07a2c74acc2db2029d9d8db3217eecee5fff" + "sha2": "9a0c3ca94de1174aedb23e56094cd83a72c9d3c0" } ,{ "testCaseDescription": "javascript-ternary-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "ternary.js" ], - "sha1": "33ce07a2c74acc2db2029d9d8db3217eecee5fff", + "sha1": "9a0c3ca94de1174aedb23e56094cd83a72c9d3c0", "gitDir": "test/corpus/repos/javascript", - "sha2": "788da0c756fba5a3bd248220d572e7e286327f92" + "sha2": "886fdf0a5427ef68011683a29ba955ad6a94df65" }] diff --git a/test/corpus/diff-summaries/javascript/this-expression.json b/test/corpus/diff-summaries/javascript/this-expression.json index da7608491..81a3c517a 100644 --- a/test/corpus/diff-summaries/javascript/this-expression.json +++ b/test/corpus/diff-summaries/javascript/this-expression.json @@ -25,9 +25,9 @@ "filePaths": [ "this-expression.js" ], - "sha1": "7fdb9e08edc6110d25c4015cd041d821eca34b14", + "sha1": "d23325d922973a6d7b3a0e4c919269eb8da3acc7", "gitDir": "test/corpus/repos/javascript", - "sha2": "5246c8f868e309b94cc337f6df914f4bf8e63deb" + "sha2": "b4a062f32ff8a4ab34e73a977b9615bf080d30a2" } ,{ "testCaseDescription": "javascript-this-expression-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "this-expression.js" ], - "sha1": "5246c8f868e309b94cc337f6df914f4bf8e63deb", + "sha1": "b4a062f32ff8a4ab34e73a977b9615bf080d30a2", "gitDir": "test/corpus/repos/javascript", - "sha2": "d1e9f4b6654f6a5e62b15aede20868dd71923d47" + "sha2": "98bf0d91f00c167f05cc5e1aa9d94cb475c1d191" } ,{ "testCaseDescription": "javascript-this-expression-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "this-expression.js" ], - "sha1": "d1e9f4b6654f6a5e62b15aede20868dd71923d47", + "sha1": "98bf0d91f00c167f05cc5e1aa9d94cb475c1d191", "gitDir": "test/corpus/repos/javascript", - "sha2": "da215acadf14d79c00135344cf2fb5068dc04883" + "sha2": "0ba8c7eb35b91a9cd13d03acca5db33f4f2e87cd" } ,{ "testCaseDescription": "javascript-this-expression-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "this-expression.js" ], - "sha1": "da215acadf14d79c00135344cf2fb5068dc04883", + "sha1": "0ba8c7eb35b91a9cd13d03acca5db33f4f2e87cd", "gitDir": "test/corpus/repos/javascript", - "sha2": "748bd4c5641d08440aad39a1854d64e89cfac9b9" + "sha2": "afe3bc0f2166f7e9b9e06a4d0567b64d748d3620" } ,{ "testCaseDescription": "javascript-this-expression-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "this-expression.js" ], - "sha1": "748bd4c5641d08440aad39a1854d64e89cfac9b9", + "sha1": "afe3bc0f2166f7e9b9e06a4d0567b64d748d3620", "gitDir": "test/corpus/repos/javascript", - "sha2": "b6d80ea26f383d11460a37e6f76fa017021f09b9" + "sha2": "aa767a9abefb0c68d6c57b577263b049bda630f8" } ,{ "testCaseDescription": "javascript-this-expression-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "this-expression.js" ], - "sha1": "b6d80ea26f383d11460a37e6f76fa017021f09b9", + "sha1": "aa767a9abefb0c68d6c57b577263b049bda630f8", "gitDir": "test/corpus/repos/javascript", - "sha2": "32e8072597c01c855b045a34edb7fd8e4bc1415d" + "sha2": "8bf52eb4c263710ddf9bf641989f2b1dc4318780" } ,{ "testCaseDescription": "javascript-this-expression-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "this-expression.js" ], - "sha1": "32e8072597c01c855b045a34edb7fd8e4bc1415d", + "sha1": "8bf52eb4c263710ddf9bf641989f2b1dc4318780", "gitDir": "test/corpus/repos/javascript", - "sha2": "0d1c2cdaf46b3c650950c2480d4cbb0286b71d73" + "sha2": "03b78b76f4c5137f7e54bad2aac4bc0a313bf051" }] diff --git a/test/corpus/diff-summaries/javascript/throw-statement.json b/test/corpus/diff-summaries/javascript/throw-statement.json index 02e873144..72fc0c49f 100644 --- a/test/corpus/diff-summaries/javascript/throw-statement.json +++ b/test/corpus/diff-summaries/javascript/throw-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "2ae4706629967d108b1958dd2c6b86d4b1100cf8", + "sha1": "0a1875f1c7a75660da38253225a80c47d10d90b2", "gitDir": "test/corpus/repos/javascript", - "sha2": "d5dc204ab281ba5a23b925ed37345643b1f24d6c" + "sha2": "d14bcf509fc9f98d8a79744e4b9a0bcc25c88119" } ,{ "testCaseDescription": "javascript-throw-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "d5dc204ab281ba5a23b925ed37345643b1f24d6c", + "sha1": "d14bcf509fc9f98d8a79744e4b9a0bcc25c88119", "gitDir": "test/corpus/repos/javascript", - "sha2": "e7cfe1735e1220e2c0ba05e8645724471c714679" + "sha2": "1806fe03f58da7833d722099122baa7e3376dc13" } ,{ "testCaseDescription": "javascript-throw-statement-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "e7cfe1735e1220e2c0ba05e8645724471c714679", + "sha1": "1806fe03f58da7833d722099122baa7e3376dc13", "gitDir": "test/corpus/repos/javascript", - "sha2": "30062f8ab2fc4a33c438bd66ca4ceec7e22dfdf0" + "sha2": "aaf9e0e0a5b6147ef14e4455c031b8ac13741e66" } ,{ "testCaseDescription": "javascript-throw-statement-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "30062f8ab2fc4a33c438bd66ca4ceec7e22dfdf0", + "sha1": "aaf9e0e0a5b6147ef14e4455c031b8ac13741e66", "gitDir": "test/corpus/repos/javascript", - "sha2": "6b109f90348029463707d7049e1a98eb664f245c" + "sha2": "25b0f6aadd06cc29f6d341a87cae0dc7a15af16a" } ,{ "testCaseDescription": "javascript-throw-statement-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "6b109f90348029463707d7049e1a98eb664f245c", + "sha1": "25b0f6aadd06cc29f6d341a87cae0dc7a15af16a", "gitDir": "test/corpus/repos/javascript", - "sha2": "e93161dec7ee7c6f57f9c7a482e6225058201cab" + "sha2": "615db3875602a1d834851e0483df8c38519e86cd" } ,{ "testCaseDescription": "javascript-throw-statement-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "e93161dec7ee7c6f57f9c7a482e6225058201cab", + "sha1": "615db3875602a1d834851e0483df8c38519e86cd", "gitDir": "test/corpus/repos/javascript", - "sha2": "6152bd641f7f4852871a99f4c9cff98d90ccd88f" + "sha2": "998d022e9b46640d255b3f341f31a9e868c6f7af" } ,{ "testCaseDescription": "javascript-throw-statement-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "throw-statement.js" ], - "sha1": "6152bd641f7f4852871a99f4c9cff98d90ccd88f", + "sha1": "998d022e9b46640d255b3f341f31a9e868c6f7af", "gitDir": "test/corpus/repos/javascript", - "sha2": "26e37a0640c0b799cf3aae29b84c1be6752eaa00" + "sha2": "3277969f1d72497bbb35dd967c8b39705c88507a" }] diff --git a/test/corpus/diff-summaries/javascript/true.json b/test/corpus/diff-summaries/javascript/true.json index 753a6e2cf..a6a117862 100644 --- a/test/corpus/diff-summaries/javascript/true.json +++ b/test/corpus/diff-summaries/javascript/true.json @@ -25,9 +25,9 @@ "filePaths": [ "true.js" ], - "sha1": "fdb6ac6ed17918be81b925990a334ea5eb297631", + "sha1": "61bc6f5d88996b0389008de15dcb953ab258e2ca", "gitDir": "test/corpus/repos/javascript", - "sha2": "26132ac7842e476cbf3f7d91186821b9e64ff41c" + "sha2": "fa43902d69716db56f90fd8631d091bfd0133113" } ,{ "testCaseDescription": "javascript-true-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "true.js" ], - "sha1": "26132ac7842e476cbf3f7d91186821b9e64ff41c", + "sha1": "fa43902d69716db56f90fd8631d091bfd0133113", "gitDir": "test/corpus/repos/javascript", - "sha2": "efc55f038f5345073040460af6fc161abde27c25" + "sha2": "826b4ac31a3425dd4c3c3ac7caf150018b005a15" } ,{ "testCaseDescription": "javascript-true-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "true.js" ], - "sha1": "efc55f038f5345073040460af6fc161abde27c25", + "sha1": "826b4ac31a3425dd4c3c3ac7caf150018b005a15", "gitDir": "test/corpus/repos/javascript", - "sha2": "efc8e62c1ca11349350946b0fbc49e7e363638c4" + "sha2": "cf09bef3158683c7796da1dfa950fac3cbc80e90" } ,{ "testCaseDescription": "javascript-true-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "true.js" ], - "sha1": "efc8e62c1ca11349350946b0fbc49e7e363638c4", + "sha1": "cf09bef3158683c7796da1dfa950fac3cbc80e90", "gitDir": "test/corpus/repos/javascript", - "sha2": "b728d61411648859122dad09a108b16bb91a12dd" + "sha2": "84c7ca368f600e74422e5890784692b267836ec7" } ,{ "testCaseDescription": "javascript-true-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "true.js" ], - "sha1": "b728d61411648859122dad09a108b16bb91a12dd", + "sha1": "84c7ca368f600e74422e5890784692b267836ec7", "gitDir": "test/corpus/repos/javascript", - "sha2": "b569210e60db45cf9457d0742fc56eef85e9eee8" + "sha2": "3a93d2360af32428b1958d6ed7bc51e8b1c1c756" } ,{ "testCaseDescription": "javascript-true-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "true.js" ], - "sha1": "b569210e60db45cf9457d0742fc56eef85e9eee8", + "sha1": "3a93d2360af32428b1958d6ed7bc51e8b1c1c756", "gitDir": "test/corpus/repos/javascript", - "sha2": "df280a9b904fda8f3725766d6b74b6ee7bcc8620" + "sha2": "21fd843f01bcddb7da8b9ef43c7f6ea45302ee44" } ,{ "testCaseDescription": "javascript-true-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "true.js" ], - "sha1": "df280a9b904fda8f3725766d6b74b6ee7bcc8620", + "sha1": "21fd843f01bcddb7da8b9ef43c7f6ea45302ee44", "gitDir": "test/corpus/repos/javascript", - "sha2": "7ede279716998188bc90996f9b66c5c534b0c8e4" + "sha2": "19100604a6300c0f7230707208a10d15ff17b29d" }] diff --git a/test/corpus/diff-summaries/javascript/try-statement.json b/test/corpus/diff-summaries/javascript/try-statement.json index 0b175ebdb..c9eefd293 100644 --- a/test/corpus/diff-summaries/javascript/try-statement.json +++ b/test/corpus/diff-summaries/javascript/try-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "try-statement.js" ], - "sha1": "b6d715f627e00f2f795cec2fe939da220b307e19", + "sha1": "3277969f1d72497bbb35dd967c8b39705c88507a", "gitDir": "test/corpus/repos/javascript", - "sha2": "2708ad9672beb7a27b69762c577cfb1ac9174d34" + "sha2": "eb577d6bbd81907bddfbc0538fd442dcc9ed0018" } ,{ "testCaseDescription": "javascript-try-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "try-statement.js" ], - "sha1": "2708ad9672beb7a27b69762c577cfb1ac9174d34", + "sha1": "eb577d6bbd81907bddfbc0538fd442dcc9ed0018", "gitDir": "test/corpus/repos/javascript", - "sha2": "a4bcde1e0bffdd8ee0918bf4520c914625a0385b" + "sha2": "735c21475da2387269d7a29ab6a39dbd53939235" } ,{ "testCaseDescription": "javascript-try-statement-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "try-statement.js" ], - "sha1": "a4bcde1e0bffdd8ee0918bf4520c914625a0385b", + "sha1": "735c21475da2387269d7a29ab6a39dbd53939235", "gitDir": "test/corpus/repos/javascript", - "sha2": "e48d8c4abb63d65fd1bc6f577cdd7c3c92c35a28" + "sha2": "e25adac726983ea8515b6129ad0e47ec25cb67c2" } ,{ "testCaseDescription": "javascript-try-statement-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "try-statement.js" ], - "sha1": "e48d8c4abb63d65fd1bc6f577cdd7c3c92c35a28", + "sha1": "e25adac726983ea8515b6129ad0e47ec25cb67c2", "gitDir": "test/corpus/repos/javascript", - "sha2": "bd9e37ae9af456aefb9f861a898153dbf49764bd" + "sha2": "a9502b41e69414312b5f1b6445104b257596aad3" } ,{ "testCaseDescription": "javascript-try-statement-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "try-statement.js" ], - "sha1": "bd9e37ae9af456aefb9f861a898153dbf49764bd", + "sha1": "a9502b41e69414312b5f1b6445104b257596aad3", "gitDir": "test/corpus/repos/javascript", - "sha2": "427b5dd3a923a16c061a0cf8b4a28ccefe0aa765" + "sha2": "5e9a5ef4027e1ffef3e3315f9c5643f2ad5245c9" } ,{ "testCaseDescription": "javascript-try-statement-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "try-statement.js" ], - "sha1": "427b5dd3a923a16c061a0cf8b4a28ccefe0aa765", + "sha1": "5e9a5ef4027e1ffef3e3315f9c5643f2ad5245c9", "gitDir": "test/corpus/repos/javascript", - "sha2": "8c3ecb08eba76016295bcc8ee21043ead12855bd" + "sha2": "63a91ca9494e57ac8af98c8eb9a95eb4e6314286" } ,{ "testCaseDescription": "javascript-try-statement-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "try-statement.js" ], - "sha1": "8c3ecb08eba76016295bcc8ee21043ead12855bd", + "sha1": "63a91ca9494e57ac8af98c8eb9a95eb4e6314286", "gitDir": "test/corpus/repos/javascript", - "sha2": "33cf0b65a7774ad67cdfb257650b457f9b26ab38" + "sha2": "a8d82ce2f93ff647407bf419c52871460f9c97eb" }] diff --git a/test/corpus/diff-summaries/javascript/type-operator.json b/test/corpus/diff-summaries/javascript/type-operator.json index 1d3372f36..0d2429225 100644 --- a/test/corpus/diff-summaries/javascript/type-operator.json +++ b/test/corpus/diff-summaries/javascript/type-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "type-operator.js" ], - "sha1": "0f3967e328ff709e625b33d5afc82950c147137f", + "sha1": "886fdf0a5427ef68011683a29ba955ad6a94df65", "gitDir": "test/corpus/repos/javascript", - "sha2": "109a51d9fc88f01d754e95a3a61be20f34af1638" + "sha2": "bf120c888260416cd8028b5e060ca73ede4b0b0b" } ,{ "testCaseDescription": "javascript-type-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "type-operator.js" ], - "sha1": "109a51d9fc88f01d754e95a3a61be20f34af1638", + "sha1": "bf120c888260416cd8028b5e060ca73ede4b0b0b", "gitDir": "test/corpus/repos/javascript", - "sha2": "fa86d6e5cec96f601c1f555e7187af8107c27898" + "sha2": "b1b25cd43ddc9f31bc435d5bc3aafc23dcae0c97" } ,{ "testCaseDescription": "javascript-type-operator-delete-insert-test", @@ -102,9 +102,9 @@ "filePaths": [ "type-operator.js" ], - "sha1": "fa86d6e5cec96f601c1f555e7187af8107c27898", + "sha1": "b1b25cd43ddc9f31bc435d5bc3aafc23dcae0c97", "gitDir": "test/corpus/repos/javascript", - "sha2": "be2f9d58adb1ab539241be976cde082e517e301d" + "sha2": "98887169cdb1a84b16884a8257e36cc5d484ee4c" } ,{ "testCaseDescription": "javascript-type-operator-replacement-test", @@ -133,9 +133,9 @@ "filePaths": [ "type-operator.js" ], - "sha1": "be2f9d58adb1ab539241be976cde082e517e301d", + "sha1": "98887169cdb1a84b16884a8257e36cc5d484ee4c", "gitDir": "test/corpus/repos/javascript", - "sha2": "9f6599f4fb89d46761c73373e7f522a608d40bd0" + "sha2": "e267616269545e1cc015d04467be68ea5c8dfffb" } ,{ "testCaseDescription": "javascript-type-operator-delete-replacement-test", @@ -194,9 +194,9 @@ "filePaths": [ "type-operator.js" ], - "sha1": "9f6599f4fb89d46761c73373e7f522a608d40bd0", + "sha1": "e267616269545e1cc015d04467be68ea5c8dfffb", "gitDir": "test/corpus/repos/javascript", - "sha2": "ca578825d58870b7ed200118176343a51c58e67b" + "sha2": "917601af1b9d5bfdfe01d3b37b562af1aa65cfab" } ,{ "testCaseDescription": "javascript-type-operator-delete-test", @@ -225,9 +225,9 @@ "filePaths": [ "type-operator.js" ], - "sha1": "ca578825d58870b7ed200118176343a51c58e67b", + "sha1": "917601af1b9d5bfdfe01d3b37b562af1aa65cfab", "gitDir": "test/corpus/repos/javascript", - "sha2": "58475ea430bba180c3f43dfccd0aae2a0640d021" + "sha2": "55cc831639c28ef5a20bdf962d5a619fffb49154" } ,{ "testCaseDescription": "javascript-type-operator-delete-rest-test", @@ -256,7 +256,7 @@ "filePaths": [ "type-operator.js" ], - "sha1": "58475ea430bba180c3f43dfccd0aae2a0640d021", + "sha1": "55cc831639c28ef5a20bdf962d5a619fffb49154", "gitDir": "test/corpus/repos/javascript", - "sha2": "0bc660e26c36f01dc2c8f6d74f9678c882cd8dcb" + "sha2": "9d2a799fbc151f3fd9eb286a0e430d041fc946fd" }] diff --git a/test/corpus/diff-summaries/javascript/undefined.json b/test/corpus/diff-summaries/javascript/undefined.json index 961b45a09..a1cae668c 100644 --- a/test/corpus/diff-summaries/javascript/undefined.json +++ b/test/corpus/diff-summaries/javascript/undefined.json @@ -25,9 +25,9 @@ "filePaths": [ "undefined.js" ], - "sha1": "3362913e5fcdcfd09abecb1010377f38e7267fa3", + "sha1": "74c7aa7b75841534d20cf36ca9804c38c56347b7", "gitDir": "test/corpus/repos/javascript", - "sha2": "9ccd73b0fe50935a3869659a230417521ac75497" + "sha2": "b74ffddd804e44ee4af9b7cdb0510779f1f5af8f" } ,{ "testCaseDescription": "javascript-undefined-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "undefined.js" ], - "sha1": "9ccd73b0fe50935a3869659a230417521ac75497", + "sha1": "b74ffddd804e44ee4af9b7cdb0510779f1f5af8f", "gitDir": "test/corpus/repos/javascript", - "sha2": "81692cd94ba7bf4146d43680ed738ec8f252e579" + "sha2": "1518e71f1b0b5527d71aedbf922b9b2e90ba8406" } ,{ "testCaseDescription": "javascript-undefined-delete-insert-test", @@ -117,9 +117,9 @@ "filePaths": [ "undefined.js" ], - "sha1": "81692cd94ba7bf4146d43680ed738ec8f252e579", + "sha1": "1518e71f1b0b5527d71aedbf922b9b2e90ba8406", "gitDir": "test/corpus/repos/javascript", - "sha2": "0d9935505afd13b6385ff18be6e41bd4a613120b" + "sha2": "c1886487fe93c397050fe6244fdbca6eb4e2f1a0" } ,{ "testCaseDescription": "javascript-undefined-replacement-test", @@ -163,9 +163,9 @@ "filePaths": [ "undefined.js" ], - "sha1": "0d9935505afd13b6385ff18be6e41bd4a613120b", + "sha1": "c1886487fe93c397050fe6244fdbca6eb4e2f1a0", "gitDir": "test/corpus/repos/javascript", - "sha2": "8f94569a74df3ff9fbf00ac9d35d69ec0c81feb3" + "sha2": "192ee0eaf101e0048dc2bc91daa6e7f4a1d31cf1" } ,{ "testCaseDescription": "javascript-undefined-delete-replacement-test", @@ -224,9 +224,9 @@ "filePaths": [ "undefined.js" ], - "sha1": "8f94569a74df3ff9fbf00ac9d35d69ec0c81feb3", + "sha1": "192ee0eaf101e0048dc2bc91daa6e7f4a1d31cf1", "gitDir": "test/corpus/repos/javascript", - "sha2": "88e1c98a8a6bf0337b6354a9a49d5656ecc8794b" + "sha2": "a6c55c3cd859e436334cdaa0296fd453291bc83d" } ,{ "testCaseDescription": "javascript-undefined-delete-test", @@ -255,9 +255,9 @@ "filePaths": [ "undefined.js" ], - "sha1": "88e1c98a8a6bf0337b6354a9a49d5656ecc8794b", + "sha1": "a6c55c3cd859e436334cdaa0296fd453291bc83d", "gitDir": "test/corpus/repos/javascript", - "sha2": "cd3dd156915f8e6bc18c93d313a7c8d51470bd4b" + "sha2": "fdc09c9d298056feab390d0ead318f56c89bbc43" } ,{ "testCaseDescription": "javascript-undefined-delete-rest-test", @@ -286,7 +286,7 @@ "filePaths": [ "undefined.js" ], - "sha1": "cd3dd156915f8e6bc18c93d313a7c8d51470bd4b", + "sha1": "fdc09c9d298056feab390d0ead318f56c89bbc43", "gitDir": "test/corpus/repos/javascript", - "sha2": "5701dcd1fd9e1f43dca6d6ab303b678e3288b9e8" + "sha2": "61bc6f5d88996b0389008de15dcb953ab258e2ca" }] diff --git a/test/corpus/diff-summaries/javascript/var-declaration.json b/test/corpus/diff-summaries/javascript/var-declaration.json index d4442fd7b..c261e74be 100644 --- a/test/corpus/diff-summaries/javascript/var-declaration.json +++ b/test/corpus/diff-summaries/javascript/var-declaration.json @@ -25,9 +25,9 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "6ca73703bc5617022319601f789d56b87d471cc1", + "sha1": "f44956c8e350313dc0c3aa6a19dd68f221bb3e01", "gitDir": "test/corpus/repos/javascript", - "sha2": "f4004dfdde01a01761ac0dcd197f494147d7516a" + "sha2": "20dd07a603351a930781662d3f1759fc709fda5b" } ,{ "testCaseDescription": "javascript-var-declaration-replacement-insert-test", @@ -101,9 +101,9 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "f4004dfdde01a01761ac0dcd197f494147d7516a", + "sha1": "20dd07a603351a930781662d3f1759fc709fda5b", "gitDir": "test/corpus/repos/javascript", - "sha2": "ba2a3a45be3b8782ac8a18b84c7fa6f3d26e90c6" + "sha2": "74e35660182dedb2683a233ae41432d9a9c1676d" } ,{ "testCaseDescription": "javascript-var-declaration-delete-insert-test", @@ -177,9 +177,9 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "ba2a3a45be3b8782ac8a18b84c7fa6f3d26e90c6", + "sha1": "74e35660182dedb2683a233ae41432d9a9c1676d", "gitDir": "test/corpus/repos/javascript", - "sha2": "f1939e012c8b3d3b58b7aae8f981a4106a77860f" + "sha2": "a38cf1a7aaf4bd43bfa90d4d18bdf228ac49778c" } ,{ "testCaseDescription": "javascript-var-declaration-replacement-test", @@ -250,9 +250,9 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "f1939e012c8b3d3b58b7aae8f981a4106a77860f", + "sha1": "a38cf1a7aaf4bd43bfa90d4d18bdf228ac49778c", "gitDir": "test/corpus/repos/javascript", - "sha2": "9ed88d7cd921098ec255ae94b91e38d0367bf240" + "sha2": "5e307c858ef96aecc3ec15156cfddd7a5a653482" } ,{ "testCaseDescription": "javascript-var-declaration-delete-replacement-test", @@ -371,9 +371,9 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "9ed88d7cd921098ec255ae94b91e38d0367bf240", + "sha1": "5e307c858ef96aecc3ec15156cfddd7a5a653482", "gitDir": "test/corpus/repos/javascript", - "sha2": "8f544122f865e5d4a7598d98751db8d419fa9422" + "sha2": "f8aeedd7012de98ee66a9ae5cf712a33dd68a3f8" } ,{ "testCaseDescription": "javascript-var-declaration-delete-test", @@ -402,9 +402,9 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "8f544122f865e5d4a7598d98751db8d419fa9422", + "sha1": "f8aeedd7012de98ee66a9ae5cf712a33dd68a3f8", "gitDir": "test/corpus/repos/javascript", - "sha2": "76e8ce59a2f7f20ade4ea71d30c00a920ce0e43b" + "sha2": "c28ecea2c86b0a11fa29702e9dca8e17f6225285" } ,{ "testCaseDescription": "javascript-var-declaration-delete-rest-test", @@ -463,7 +463,7 @@ "filePaths": [ "var-declaration.js" ], - "sha1": "76e8ce59a2f7f20ade4ea71d30c00a920ce0e43b", + "sha1": "c28ecea2c86b0a11fa29702e9dca8e17f6225285", "gitDir": "test/corpus/repos/javascript", - "sha2": "a3c66268f486faabfeedaf3ea91f8a4385d47baa" + "sha2": "c133ef4396a68d4ed57fbdd2e234087cac85fefb" }] diff --git a/test/corpus/diff-summaries/javascript/variable.json b/test/corpus/diff-summaries/javascript/variable.json index c9ae2e94e..fc21890fb 100644 --- a/test/corpus/diff-summaries/javascript/variable.json +++ b/test/corpus/diff-summaries/javascript/variable.json @@ -25,9 +25,9 @@ "filePaths": [ "variable.js" ], - "sha1": "6e820addaccc82920214045105b37bfa1f39a32c", + "sha1": "50417237185c7e054472c267c7c8cdc687328c13", "gitDir": "test/corpus/repos/javascript", - "sha2": "7ee285f5e30f9fa6f02a5aede8c5eac436205474" + "sha2": "a5b334096cce07de573261d9633345f09f95a3ca" } ,{ "testCaseDescription": "javascript-variable-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "variable.js" ], - "sha1": "7ee285f5e30f9fa6f02a5aede8c5eac436205474", + "sha1": "a5b334096cce07de573261d9633345f09f95a3ca", "gitDir": "test/corpus/repos/javascript", - "sha2": "2b656ffb0f98cf5a778cc2c1da1a5a02107493b7" + "sha2": "c229060ff90fca8acfca1a93efe764286b49e049" } ,{ "testCaseDescription": "javascript-variable-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "variable.js" ], - "sha1": "2b656ffb0f98cf5a778cc2c1da1a5a02107493b7", + "sha1": "c229060ff90fca8acfca1a93efe764286b49e049", "gitDir": "test/corpus/repos/javascript", - "sha2": "eb746fe7daa8bc14a58c2ca7b80795d6684f8df8" + "sha2": "58db86e1a79625f7b55b9f2ff00a1a4da45f1ba1" } ,{ "testCaseDescription": "javascript-variable-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "variable.js" ], - "sha1": "eb746fe7daa8bc14a58c2ca7b80795d6684f8df8", + "sha1": "58db86e1a79625f7b55b9f2ff00a1a4da45f1ba1", "gitDir": "test/corpus/repos/javascript", - "sha2": "d9a66b4c917da45775e4fb840289b88c917a2770" + "sha2": "87a1e88ac3ee9957cc804883119d1acd7f417eb6" } ,{ "testCaseDescription": "javascript-variable-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "variable.js" ], - "sha1": "d9a66b4c917da45775e4fb840289b88c917a2770", + "sha1": "87a1e88ac3ee9957cc804883119d1acd7f417eb6", "gitDir": "test/corpus/repos/javascript", - "sha2": "8cb7fa64dc4f2a979ea36da537f3cf1c21eafe8d" + "sha2": "5c7b943407c1ad81a08465df84fc9be9369aaafb" } ,{ "testCaseDescription": "javascript-variable-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "variable.js" ], - "sha1": "8cb7fa64dc4f2a979ea36da537f3cf1c21eafe8d", + "sha1": "5c7b943407c1ad81a08465df84fc9be9369aaafb", "gitDir": "test/corpus/repos/javascript", - "sha2": "53e3ff63fb5a182407a1a0d173a61d8a9120af61" + "sha2": "0b08245c7e7c1fc5b204b4db3139526c4755595b" } ,{ "testCaseDescription": "javascript-variable-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "variable.js" ], - "sha1": "53e3ff63fb5a182407a1a0d173a61d8a9120af61", + "sha1": "0b08245c7e7c1fc5b204b4db3139526c4755595b", "gitDir": "test/corpus/repos/javascript", - "sha2": "c12b83e8ee5acc229578c1c25f6d15ce9bf9ed90" + "sha2": "ce7c81be19fcdd12c1d61a8c7a1c999860b4280b" }] diff --git a/test/corpus/diff-summaries/javascript/void-operator.json b/test/corpus/diff-summaries/javascript/void-operator.json index 8bc479f2e..8cdb86c79 100644 --- a/test/corpus/diff-summaries/javascript/void-operator.json +++ b/test/corpus/diff-summaries/javascript/void-operator.json @@ -25,9 +25,9 @@ "filePaths": [ "void-operator.js" ], - "sha1": "c04b0a8c57f7b56de0545d9481e8a4ef70082a8a", + "sha1": "55ba87e139fcd55bc3616dbfbb1f936afdff609e", "gitDir": "test/corpus/repos/javascript", - "sha2": "78779f1eb250f941a8832103df6fc969e6234128" + "sha2": "ab0f0634de38b5a22473f9574c0208ad6a7eb68d" } ,{ "testCaseDescription": "javascript-void-operator-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "void-operator.js" ], - "sha1": "78779f1eb250f941a8832103df6fc969e6234128", + "sha1": "ab0f0634de38b5a22473f9574c0208ad6a7eb68d", "gitDir": "test/corpus/repos/javascript", - "sha2": "28888fc8798fab3d6b028f92438136633ee64136" + "sha2": "887229d2ddc0705cf998d97898a1c943669082da" } ,{ "testCaseDescription": "javascript-void-operator-delete-insert-test", @@ -114,9 +114,9 @@ "filePaths": [ "void-operator.js" ], - "sha1": "28888fc8798fab3d6b028f92438136633ee64136", + "sha1": "887229d2ddc0705cf998d97898a1c943669082da", "gitDir": "test/corpus/repos/javascript", - "sha2": "b7a410cc258d47a9d98dfd925896d5eb66fcabb8" + "sha2": "fa29ae5d2207571e54b6deddcaff5c5108038f52" } ,{ "testCaseDescription": "javascript-void-operator-replacement-test", @@ -157,9 +157,9 @@ "filePaths": [ "void-operator.js" ], - "sha1": "b7a410cc258d47a9d98dfd925896d5eb66fcabb8", + "sha1": "fa29ae5d2207571e54b6deddcaff5c5108038f52", "gitDir": "test/corpus/repos/javascript", - "sha2": "aeda531ab1e76c41ee56e66e8fac50307e95b2a2" + "sha2": "c9966552e236f06ae5ffa076b449e55089f08a34" } ,{ "testCaseDescription": "javascript-void-operator-delete-replacement-test", @@ -218,9 +218,9 @@ "filePaths": [ "void-operator.js" ], - "sha1": "aeda531ab1e76c41ee56e66e8fac50307e95b2a2", + "sha1": "c9966552e236f06ae5ffa076b449e55089f08a34", "gitDir": "test/corpus/repos/javascript", - "sha2": "00dc67cedb71f7b067cc4f2d8559e0057cb5f4b4" + "sha2": "7489a5f19ce1304e8f4267aa8f68b1f7d9c67ac2" } ,{ "testCaseDescription": "javascript-void-operator-delete-test", @@ -249,9 +249,9 @@ "filePaths": [ "void-operator.js" ], - "sha1": "00dc67cedb71f7b067cc4f2d8559e0057cb5f4b4", + "sha1": "7489a5f19ce1304e8f4267aa8f68b1f7d9c67ac2", "gitDir": "test/corpus/repos/javascript", - "sha2": "1639c1247e303b7a3f7889d0198a364bf68d4178" + "sha2": "57d46278c37cb3767e2df88d5b5a551442572de5" } ,{ "testCaseDescription": "javascript-void-operator-delete-rest-test", @@ -280,7 +280,7 @@ "filePaths": [ "void-operator.js" ], - "sha1": "1639c1247e303b7a3f7889d0198a364bf68d4178", + "sha1": "57d46278c37cb3767e2df88d5b5a551442572de5", "gitDir": "test/corpus/repos/javascript", - "sha2": "5d69b0b830d5ffab6a8388de50fd3a401b63efdf" + "sha2": "ef888d6d043b72dd4229c93518bb60b950cf0bf0" }] diff --git a/test/corpus/diff-summaries/javascript/while-statement.json b/test/corpus/diff-summaries/javascript/while-statement.json index 7eeb89479..effa3c51d 100644 --- a/test/corpus/diff-summaries/javascript/while-statement.json +++ b/test/corpus/diff-summaries/javascript/while-statement.json @@ -25,9 +25,9 @@ "filePaths": [ "while-statement.js" ], - "sha1": "a0478819b385c43798e15109807bef844fe45ee4", + "sha1": "71988243c189f72eb85f1e1cd55497985877d654", "gitDir": "test/corpus/repos/javascript", - "sha2": "ed52c5021ed747a19586d344e2ddc3946639fd8f" + "sha2": "d5f57afe71f760ae7813dfb72cfae29dc1d6c64b" } ,{ "testCaseDescription": "javascript-while-statement-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "while-statement.js" ], - "sha1": "ed52c5021ed747a19586d344e2ddc3946639fd8f", + "sha1": "d5f57afe71f760ae7813dfb72cfae29dc1d6c64b", "gitDir": "test/corpus/repos/javascript", - "sha2": "198cc7b5460de563f8efb1814b132e46297b4605" + "sha2": "c8e4b51f10281abd737f463109fc84d58ffd38b9" } ,{ "testCaseDescription": "javascript-while-statement-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "while-statement.js" ], - "sha1": "198cc7b5460de563f8efb1814b132e46297b4605", + "sha1": "c8e4b51f10281abd737f463109fc84d58ffd38b9", "gitDir": "test/corpus/repos/javascript", - "sha2": "22775e425c9914f367955c78cdb7469e55d5cc44" + "sha2": "ed24674afbd2dd93ed7151956a6d1f9bf5ac8688" } ,{ "testCaseDescription": "javascript-while-statement-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "while-statement.js" ], - "sha1": "22775e425c9914f367955c78cdb7469e55d5cc44", + "sha1": "ed24674afbd2dd93ed7151956a6d1f9bf5ac8688", "gitDir": "test/corpus/repos/javascript", - "sha2": "8782495f725c6fc97324620aeff528a095a68b7b" + "sha2": "4f708ee9e3f3b8cdd336146a2216119057c5a36b" } ,{ "testCaseDescription": "javascript-while-statement-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "while-statement.js" ], - "sha1": "8782495f725c6fc97324620aeff528a095a68b7b", + "sha1": "4f708ee9e3f3b8cdd336146a2216119057c5a36b", "gitDir": "test/corpus/repos/javascript", - "sha2": "4aba7f49b6547304c2378476dd908aa3def026d3" + "sha2": "7e035715f0e11b2507f254fb555826f713894ca5" } ,{ "testCaseDescription": "javascript-while-statement-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "while-statement.js" ], - "sha1": "4aba7f49b6547304c2378476dd908aa3def026d3", + "sha1": "7e035715f0e11b2507f254fb555826f713894ca5", "gitDir": "test/corpus/repos/javascript", - "sha2": "b2b393a32bc04ad373a6ca4db43bea5abbcc81b8" + "sha2": "e8caded26600053bc44e2729f6991811a2b60f04" } ,{ "testCaseDescription": "javascript-while-statement-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "while-statement.js" ], - "sha1": "b2b393a32bc04ad373a6ca4db43bea5abbcc81b8", + "sha1": "e8caded26600053bc44e2729f6991811a2b60f04", "gitDir": "test/corpus/repos/javascript", - "sha2": "3ff5637857ff238bbe227f6385ae4d57a67ae589" + "sha2": "72136f15085dd59d51ce542116b6fba21a73bb2c" }] diff --git a/test/corpus/generated/if-else.json b/test/corpus/generated/if-else.json new file mode 100644 index 000000000..2f69b4317 --- /dev/null +++ b/test/corpus/generated/if-else.json @@ -0,0 +1,16 @@ +[ + { + "repoPath": "test/corpus/repos/javascript", + "repoUrl": "https://github.com/rewinfrey/javascript.git", + "language": "javascript", + "syntaxes": [ + { + "syntax": "if-else", + "repoFilePath": "if-else.js", + "insert": "if (x) y; else if (a) b; else if (c) d; else if (e) f; else g", + "replacement": "if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o", + "testCaseFilePath": "test/corpus/diff-summaries/javascript/if-else.json" + } + ] + } +] diff --git a/test/corpus/generated/import.json b/test/corpus/generated/import.json new file mode 100644 index 000000000..b6c3d12f5 --- /dev/null +++ b/test/corpus/generated/import.json @@ -0,0 +1,16 @@ +[ + { + "repoPath": "test/corpus/repos/javascript", + "repoUrl": "https://github.com/rewinfrey/javascript.git", + "language": "javascript", + "syntaxes": [ + { + "syntax": "import", + "repoFilePath": "import.js", + "insert": "import defaultMember from \"foo\";\nimport * as name from \"aardvark\";\nimport { member } from \"ant\";\nimport { member1 , member2 } from \"antelope\";\nimport { member1 , member2 as alias2 } from \"ant-eater\";\nimport defaultMember, { member1, member2 as alias2 } from \"anaconda\";\nimport defaultMember, * as name from \"alligator\";\nimport \"arctic-tern\";", + "testCaseFilePath": "test/corpus/diff-summaries/javascript/import.json", + "replacement": "import defaultMember from \"babirusa\";\nimport * as otherName from \"baboon\";\nimport { element } from \"badger\";\nimport { element1 , element2 } from \"bald-eagle\";\nimport { element1 , element2 as elementAlias2 } from \"bandicoot\";\nimport defaultMember, { element1, element2 as elementAlias2 } from \"banteng\";\nimport defaultMember, * as element from \"barbet\";\nimport \"basilisk\";" + } + ] + } +] diff --git a/test/corpus/generated/javascript.json b/test/corpus/generated/javascript.json index be4b4d739..d97e8434c 100644 --- a/test/corpus/generated/javascript.json +++ b/test/corpus/generated/javascript.json @@ -429,8 +429,7 @@ "repoFilePath": "export.js", "insert": "export { name1, name2, name3, nameN };\nexport { variable1 as name1, variable2 as name2, nameN };\nexport let name1, name2, nameN;\nexport let name1 = value1, name2 = value2, name3, nameN;\nexport default namedFunction;\nexport default function () { };\nexport default function name1() { };\nexport { name1 as default };\nexport * from 'foo';\nexport { name1, name2, nameN } from 'foo';\nexport { import1 as name1, import2 as name2, nameN } from 'bar';", "testCaseFilePath": "test/corpus/diff-summaries/javascript/export.json", - "replacement": "export { name4, name5, name6, nameZ };\nexport { variable2 as name2, variable3 as name3, nameY };\nexport let name3, name4, nameT;\nexport let name2 = value2, name3 = value3, name4, nameO;\nexport default otherNamedFunction;\nexport default function newName1() {};\nexport default function () {};\nexport { name2 as statement };\nexport * from 'baz';\nexport { name7, name8, nameP } from 'buzz';\nexport { import6 as name6, import7 as name7, nameB } from 'fizz';", - "testCaseFilePath": "test/corpus/diff-summaries/javascript/nested-do-while-in-function.json" + "replacement": "export { name4, name5, name6, nameZ };\nexport { variable2 as name2, variable3 as name3, nameY };\nexport let name3, name4, nameT;\nexport let name2 = value2, name3 = value3, name4, nameO;\nexport default otherNamedFunction;\nexport default function newName1() {};\nexport default function () {};\nexport { name2 as statement };\nexport * from 'baz';\nexport { name7, name8, nameP } from 'buzz';\nexport { import6 as name6, import7 as name7, nameB } from 'fizz';" } ] } diff --git a/test/corpus/repos/javascript b/test/corpus/repos/javascript index 082111629..716198fcf 160000 --- a/test/corpus/repos/javascript +++ b/test/corpus/repos/javascript @@ -1 +1 @@ -Subproject commit 0821116298aea39bc51aeeda2acba727693341b3 +Subproject commit 716198fcfe43285d41323440ef41d93826d3b28a From 36eb60d05d0311efea2d34bb7875bd2606b0a503 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 11:01:45 -0500 Subject: [PATCH 03/29] Conditionally match against Indexed nodes when applying toTermName for Import Syntax --- src/DiffSummary.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 0961144e2..dfaa5119d 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -219,7 +219,9 @@ toTermName source term = case unwrap term of S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term) S.Module identifier _ -> toTermName' identifier S.Import identifier [] -> toTermName' identifier - S.Import identifier expr -> intercalate ", " (termNameFromSource <$> expr) <> " from " <> toTermName' identifier + S.Import identifier exprs'@(expr:exprs)-> case unwrap expr of + S.Indexed _ -> intercalate ", " (termNameFromSource <$> exprs) <> "from " <> toTermName' identifier + _ -> intercalate ", " (termNameFromSource <$> exprs') <> "from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From 69492f39e4a4fa19cab34a1e588c4cf68d4003cf Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 11:29:49 -0500 Subject: [PATCH 04/29] Maintain space for "from" when term node is not an Indexed node --- src/DiffSummary.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index dfaa5119d..89b5e2af8 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -221,7 +221,7 @@ toTermName source term = case unwrap term of S.Import identifier [] -> toTermName' identifier S.Import identifier exprs'@(expr:exprs)-> case unwrap expr of S.Indexed _ -> intercalate ", " (termNameFromSource <$> exprs) <> "from " <> toTermName' identifier - _ -> intercalate ", " (termNameFromSource <$> exprs') <> "from " <> toTermName' identifier + _ -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From 242654b05f2ddb6fd5c32ea5f90ec32009443bda Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 18:41:03 -0500 Subject: [PATCH 05/29] Update tests --- .../diff-summaries/javascript/export.json | 28 +-- .../diff-summaries/javascript/import.json | 206 +++++++++--------- test/corpus/repos/javascript | 2 +- 3 files changed, 118 insertions(+), 118 deletions(-) diff --git a/test/corpus/diff-summaries/javascript/export.json b/test/corpus/diff-summaries/javascript/export.json index bf650f1a0..72e80a343 100644 --- a/test/corpus/diff-summaries/javascript/export.json +++ b/test/corpus/diff-summaries/javascript/export.json @@ -175,9 +175,9 @@ "filePaths": [ "export.js" ], - "sha1": "e2330ce7fde05d60da39def902d720cbed40a318", + "sha1": "7b154b3b8e6510d0911a961769ca170ebcf3e0bc", "gitDir": "test/corpus/repos/javascript", - "sha2": "598da15d833cc590ccd2b11d449293c3cbd0432c" + "sha2": "4098e01dd7fb35deae0c2a1553b4055b36d73a99" } ,{ "testCaseDescription": "javascript-export-replacement-insert-test", @@ -521,9 +521,9 @@ "filePaths": [ "export.js" ], - "sha1": "598da15d833cc590ccd2b11d449293c3cbd0432c", + "sha1": "4098e01dd7fb35deae0c2a1553b4055b36d73a99", "gitDir": "test/corpus/repos/javascript", - "sha2": "270adf2c2548f4c96046486a9aab6025a3829413" + "sha2": "3c740c47e4bef9e9eb7a00ace15911e012d9aa60" } ,{ "testCaseDescription": "javascript-export-delete-insert-test", @@ -1254,9 +1254,9 @@ "filePaths": [ "export.js" ], - "sha1": "270adf2c2548f4c96046486a9aab6025a3829413", + "sha1": "3c740c47e4bef9e9eb7a00ace15911e012d9aa60", "gitDir": "test/corpus/repos/javascript", - "sha2": "416166785e45f945cb05e9bcaff9c5bde6bba30f" + "sha2": "3eaae6882acaa99d1a81b6f078760f8f4064d8e8" } ,{ "testCaseDescription": "javascript-export-replacement-test", @@ -1678,9 +1678,9 @@ "filePaths": [ "export.js" ], - "sha1": "416166785e45f945cb05e9bcaff9c5bde6bba30f", + "sha1": "3eaae6882acaa99d1a81b6f078760f8f4064d8e8", "gitDir": "test/corpus/repos/javascript", - "sha2": "a5528705b6241b3811df4e318f725558db44c8f7" + "sha2": "dd3d7da077d68e60dcf1e66f5c596ae3f1e8759a" } ,{ "testCaseDescription": "javascript-export-delete-replacement-test", @@ -2189,9 +2189,9 @@ "filePaths": [ "export.js" ], - "sha1": "a5528705b6241b3811df4e318f725558db44c8f7", + "sha1": "dd3d7da077d68e60dcf1e66f5c596ae3f1e8759a", "gitDir": "test/corpus/repos/javascript", - "sha2": "d6329cbb744fedd1823ad9e855fb3d2405a83841" + "sha2": "c99c48b85fb407d951a6c0727306e56177f42a34" } ,{ "testCaseDescription": "javascript-export-delete-test", @@ -2370,9 +2370,9 @@ "filePaths": [ "export.js" ], - "sha1": "d6329cbb744fedd1823ad9e855fb3d2405a83841", + "sha1": "c99c48b85fb407d951a6c0727306e56177f42a34", "gitDir": "test/corpus/repos/javascript", - "sha2": "3dbc63babc83806927f3cef5e8bef6b44fbd26ad" + "sha2": "96571a4b34a63da0a82af05407515052a72f5791" } ,{ "testCaseDescription": "javascript-export-delete-rest-test", @@ -2551,7 +2551,7 @@ "filePaths": [ "export.js" ], - "sha1": "3dbc63babc83806927f3cef5e8bef6b44fbd26ad", + "sha1": "96571a4b34a63da0a82af05407515052a72f5791", "gitDir": "test/corpus/repos/javascript", - "sha2": "2e227d9bf662f4a0a236c8308c7762d12d09e1eb" + "sha2": "eb860557e5d0732bbe7d085177a3261477d30eb8" }] diff --git a/test/corpus/diff-summaries/javascript/import.json b/test/corpus/diff-summaries/javascript/import.json index afec3bbb1..a810aa3ab 100644 --- a/test/corpus/diff-summaries/javascript/import.json +++ b/test/corpus/diff-summaries/javascript/import.json @@ -16,7 +16,7 @@ ] } }, - "summary": "Added the 'defaultMember from \"foo\"' import statement" + "summary": "Added the defaultMember from \"foo\" import statement" }, { "span": { @@ -31,7 +31,7 @@ ] } }, - "summary": "Added the '* as name from \"aardvark\"' import statement" + "summary": "Added the name from \"aardvark\" import statement" }, { "span": { @@ -46,7 +46,7 @@ ] } }, - "summary": "Added the '{ member } from \"ant\"' import statement" + "summary": "Added the member from \"ant\" import statement" }, { "span": { @@ -61,7 +61,7 @@ ] } }, - "summary": "Added the '{ member1 , member2 } from \"antelope\"' import statement" + "summary": "Added the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -76,7 +76,7 @@ ] } }, - "summary": "Added the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" + "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -91,7 +91,7 @@ ] } }, - "summary": "Added the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" + "summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement" }, { "span": { @@ -106,7 +106,7 @@ ] } }, - "summary": "Added the 'defaultMember, * as name from \"alligator\"' import statement" + "summary": "Added the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -121,7 +121,7 @@ ] } }, - "summary": "Added the '\"arctic-tern\"' import statement" + "summary": "Added the \"arctic-tern\" import statement" } ] }, @@ -130,9 +130,9 @@ "filePaths": [ "import.js" ], - "sha1": "3d8abc91d860e610bac6e525520808516e272b42", + "sha1": "756273ef4a7598fd5fcb9a681bb20bd0e585c3c3", "gitDir": "test/corpus/repos/javascript", - "sha2": "32c8a4c032e84cfb199cdfd423d0d1a8bea5244b" + "sha2": "fd475dda0e3ee31a8bdd50f5f442960562164f79" } ,{ "testCaseDescription": "javascript-import-replacement-insert-test", @@ -152,7 +152,7 @@ ] } }, - "summary": "Added the 'defaultMember from \"babirusa\"' import statement" + "summary": "Added the defaultMember from \"babirusa\" import statement" }, { "span": { @@ -167,7 +167,7 @@ ] } }, - "summary": "Added the '* as otherName from \"baboon\"' import statement" + "summary": "Added the otherName from \"baboon\" import statement" }, { "span": { @@ -182,7 +182,7 @@ ] } }, - "summary": "Added the '{ element } from \"badger\"' import statement" + "summary": "Added the element from \"badger\" import statement" }, { "span": { @@ -197,7 +197,7 @@ ] } }, - "summary": "Added the '{ element1 , element2 } from \"bald-eagle\"' import statement" + "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -212,7 +212,7 @@ ] } }, - "summary": "Added the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" + "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -227,7 +227,7 @@ ] } }, - "summary": "Added the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" + "summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement" }, { "span": { @@ -242,7 +242,7 @@ ] } }, - "summary": "Added the 'defaultMember, * as element from \"barbet\"' import statement" + "summary": "Added the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -257,7 +257,7 @@ ] } }, - "summary": "Added the '\"basilisk\"' import statement" + "summary": "Added the \"basilisk\" import statement" }, { "span": { @@ -272,7 +272,7 @@ ] } }, - "summary": "Added the 'defaultMember from \"foo\"' import statement" + "summary": "Added the defaultMember from \"foo\" import statement" }, { "span": { @@ -287,7 +287,7 @@ ] } }, - "summary": "Added the '* as name from \"aardvark\"' import statement" + "summary": "Added the name from \"aardvark\" import statement" }, { "span": { @@ -302,7 +302,7 @@ ] } }, - "summary": "Added the '{ member } from \"ant\"' import statement" + "summary": "Added the member from \"ant\" import statement" }, { "span": { @@ -317,7 +317,7 @@ ] } }, - "summary": "Added the '{ member1 , member2 } from \"antelope\"' import statement" + "summary": "Added the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -332,7 +332,7 @@ ] } }, - "summary": "Added the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" + "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -347,7 +347,7 @@ ] } }, - "summary": "Added the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" + "summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement" }, { "span": { @@ -362,7 +362,7 @@ ] } }, - "summary": "Added the 'defaultMember, * as name from \"alligator\"' import statement" + "summary": "Added the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -377,7 +377,7 @@ ] } }, - "summary": "Added the '\"arctic-tern\"' import statement" + "summary": "Added the \"arctic-tern\" import statement" } ] }, @@ -386,9 +386,9 @@ "filePaths": [ "import.js" ], - "sha1": "32c8a4c032e84cfb199cdfd423d0d1a8bea5244b", + "sha1": "fd475dda0e3ee31a8bdd50f5f442960562164f79", "gitDir": "test/corpus/repos/javascript", - "sha2": "4b732476e19885d1009ea2b22cd3e6a36824f421" + "sha2": "e660ca7ef35c1046ef3ead0dc1811557ce1fc23f" } ,{ "testCaseDescription": "javascript-import-delete-insert-test", @@ -447,7 +447,7 @@ } ] }, - "summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the name from \"aar from \"aardvark\" import statement" + "summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the name from \"aardvark\" import statement" }, { "span": { @@ -489,7 +489,7 @@ ] } }, - "summary": "Added the '{ member } from \"ant\"' import statement" + "summary": "Added the member from \"ant\" import statement" }, { "span": { @@ -504,7 +504,7 @@ ] } }, - "summary": "Added the '{ member1 , member2 } from \"antelope\"' import statement" + "summary": "Added the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -519,7 +519,7 @@ ] } }, - "summary": "Added the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" + "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -534,7 +534,7 @@ ] } }, - "summary": "Added the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" + "summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement" }, { "span": { @@ -561,7 +561,7 @@ } ] }, - "summary": "Replaced the '{ element } from \"badger\"' import statement with the 'defaultMember, * as name from \"alligator\"' import statement" + "summary": "Replaced the element from \"badger\" import statement with the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -576,7 +576,7 @@ ] } }, - "summary": "Added the '\"arctic-tern\"' import statement" + "summary": "Added the \"arctic-tern\" import statement" }, { "span": { @@ -591,7 +591,7 @@ ] } }, - "summary": "Deleted the '{ element1 , element2 } from \"bald-eagle\"' import statement" + "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -606,7 +606,7 @@ ] } }, - "summary": "Deleted the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" + "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -621,7 +621,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" + "summary": "Deleted the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement" }, { "span": { @@ -636,7 +636,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, * as element from \"barbet\"' import statement" + "summary": "Deleted the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -651,7 +651,7 @@ ] } }, - "summary": "Deleted the '\"basilisk\"' import statement" + "summary": "Deleted the \"basilisk\" import statement" } ] }, @@ -660,9 +660,9 @@ "filePaths": [ "import.js" ], - "sha1": "4b732476e19885d1009ea2b22cd3e6a36824f421", + "sha1": "e660ca7ef35c1046ef3ead0dc1811557ce1fc23f", "gitDir": "test/corpus/repos/javascript", - "sha2": "90066a60acc543d36e07918d1856677b6387aa1b" + "sha2": "2f85e029da180e89aadeda3834079cbc6b2626df" } ,{ "testCaseDescription": "javascript-import-replacement-test", @@ -721,7 +721,7 @@ } ] }, - "summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the port * as from \"baboon\" import statement" + "summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the otherName from \"baboon\" import statement" }, { "span": { @@ -748,7 +748,7 @@ } ] }, - "summary": "Replaced the 'name' identifier with the 'otherName' identifier in the port * as from \"baboon\" import statement" + "summary": "Replaced the 'name' identifier with the 'otherName' identifier in the otherName from \"baboon\" import statement" }, { "span": { @@ -763,7 +763,7 @@ ] } }, - "summary": "Added the '{ element } from \"badger\"' import statement" + "summary": "Added the element from \"badger\" import statement" }, { "span": { @@ -778,7 +778,7 @@ ] } }, - "summary": "Added the '{ element1 , element2 } from \"bald-eagle\"' import statement" + "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -793,7 +793,7 @@ ] } }, - "summary": "Added the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" + "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -808,7 +808,7 @@ ] } }, - "summary": "Added the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" + "summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement" }, { "span": { @@ -835,7 +835,7 @@ } ] }, - "summary": "Replaced the '{ member } from \"ant\"' import statement with the 'defaultMember, * as element from \"barbet\"' import statement" + "summary": "Replaced the member from \"ant\" import statement with the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -850,7 +850,7 @@ ] } }, - "summary": "Added the '\"basilisk\"' import statement" + "summary": "Added the \"basilisk\" import statement" }, { "span": { @@ -865,7 +865,7 @@ ] } }, - "summary": "Deleted the '{ member1 , member2 } from \"antelope\"' import statement" + "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -880,7 +880,7 @@ ] } }, - "summary": "Deleted the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" + "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -895,7 +895,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" + "summary": "Deleted the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement" }, { "span": { @@ -910,7 +910,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, * as name from \"alligator\"' import statement" + "summary": "Deleted the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -925,7 +925,7 @@ ] } }, - "summary": "Deleted the '\"arctic-tern\"' import statement" + "summary": "Deleted the \"arctic-tern\" import statement" } ] }, @@ -934,9 +934,9 @@ "filePaths": [ "import.js" ], - "sha1": "90066a60acc543d36e07918d1856677b6387aa1b", + "sha1": "2f85e029da180e89aadeda3834079cbc6b2626df", "gitDir": "test/corpus/repos/javascript", - "sha2": "8a05e0e107e1e1f4bbe25ca647f926564e0748c6" + "sha2": "e31f9695fa7dae0ff1ee9da577722ef11e97d955" } ,{ "testCaseDescription": "javascript-import-delete-replacement-test", @@ -956,7 +956,7 @@ ] } }, - "summary": "Deleted the 'defaultMember from \"babirusa\"' import statement" + "summary": "Deleted the defaultMember from \"babirusa\" import statement" }, { "span": { @@ -971,7 +971,7 @@ ] } }, - "summary": "Deleted the '* as otherName from \"baboon\"' import statement" + "summary": "Deleted the otherName from \"baboon\" import statement" }, { "span": { @@ -986,7 +986,7 @@ ] } }, - "summary": "Deleted the '{ element } from \"badger\"' import statement" + "summary": "Deleted the element from \"badger\" import statement" }, { "span": { @@ -1001,7 +1001,7 @@ ] } }, - "summary": "Deleted the '{ element1 , element2 } from \"bald-eagle\"' import statement" + "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -1016,7 +1016,7 @@ ] } }, - "summary": "Deleted the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" + "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -1031,7 +1031,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" + "summary": "Deleted the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement" }, { "span": { @@ -1046,7 +1046,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, * as element from \"barbet\"' import statement" + "summary": "Deleted the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -1061,7 +1061,7 @@ ] } }, - "summary": "Deleted the '\"basilisk\"' import statement" + "summary": "Deleted the \"basilisk\" import statement" }, { "span": { @@ -1076,7 +1076,7 @@ ] } }, - "summary": "Deleted the 'defaultMember from \"foo\"' import statement" + "summary": "Deleted the defaultMember from \"foo\" import statement" }, { "span": { @@ -1091,7 +1091,7 @@ ] } }, - "summary": "Deleted the '* as name from \"aardvark\"' import statement" + "summary": "Deleted the name from \"aardvark\" import statement" }, { "span": { @@ -1106,7 +1106,7 @@ ] } }, - "summary": "Deleted the '{ member } from \"ant\"' import statement" + "summary": "Deleted the member from \"ant\" import statement" }, { "span": { @@ -1121,7 +1121,7 @@ ] } }, - "summary": "Deleted the '{ member1 , member2 } from \"antelope\"' import statement" + "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -1136,7 +1136,7 @@ ] } }, - "summary": "Deleted the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" + "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -1151,7 +1151,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" + "summary": "Deleted the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement" }, { "span": { @@ -1166,7 +1166,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, * as name from \"alligator\"' import statement" + "summary": "Deleted the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -1181,7 +1181,7 @@ ] } }, - "summary": "Deleted the '\"arctic-tern\"' import statement" + "summary": "Deleted the \"arctic-tern\" import statement" }, { "span": { @@ -1196,7 +1196,7 @@ ] } }, - "summary": "Added the 'defaultMember from \"babirusa\"' import statement" + "summary": "Added the defaultMember from \"babirusa\" import statement" }, { "span": { @@ -1211,7 +1211,7 @@ ] } }, - "summary": "Added the '* as otherName from \"baboon\"' import statement" + "summary": "Added the otherName from \"baboon\" import statement" }, { "span": { @@ -1226,7 +1226,7 @@ ] } }, - "summary": "Added the '{ element } from \"badger\"' import statement" + "summary": "Added the element from \"badger\" import statement" }, { "span": { @@ -1241,7 +1241,7 @@ ] } }, - "summary": "Added the '{ element1 , element2 } from \"bald-eagle\"' import statement" + "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -1256,7 +1256,7 @@ ] } }, - "summary": "Added the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" + "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -1271,7 +1271,7 @@ ] } }, - "summary": "Added the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" + "summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement" }, { "span": { @@ -1286,7 +1286,7 @@ ] } }, - "summary": "Added the 'defaultMember, * as element from \"barbet\"' import statement" + "summary": "Added the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -1301,7 +1301,7 @@ ] } }, - "summary": "Added the '\"basilisk\"' import statement" + "summary": "Added the \"basilisk\" import statement" } ] }, @@ -1310,9 +1310,9 @@ "filePaths": [ "import.js" ], - "sha1": "8a05e0e107e1e1f4bbe25ca647f926564e0748c6", + "sha1": "e31f9695fa7dae0ff1ee9da577722ef11e97d955", "gitDir": "test/corpus/repos/javascript", - "sha2": "70f4f3d9f4fde350162c49ce9d3a2d7467b4f31f" + "sha2": "afe03c2144a3af7aa0194c59d908eda4b7f1e374" } ,{ "testCaseDescription": "javascript-import-delete-test", @@ -1332,7 +1332,7 @@ ] } }, - "summary": "Deleted the 'defaultMember from \"foo\"' import statement" + "summary": "Deleted the defaultMember from \"foo\" import statement" }, { "span": { @@ -1347,7 +1347,7 @@ ] } }, - "summary": "Deleted the '* as name from \"aardvark\"' import statement" + "summary": "Deleted the name from \"aardvark\" import statement" }, { "span": { @@ -1362,7 +1362,7 @@ ] } }, - "summary": "Deleted the '{ member } from \"ant\"' import statement" + "summary": "Deleted the member from \"ant\" import statement" }, { "span": { @@ -1377,7 +1377,7 @@ ] } }, - "summary": "Deleted the '{ member1 , member2 } from \"antelope\"' import statement" + "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -1392,7 +1392,7 @@ ] } }, - "summary": "Deleted the '{ member1 , member2 as alias2 } from \"ant-eater\"' import statement" + "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -1407,7 +1407,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, { member1, member2 as alias2 } from \"anaconda\"' import statement" + "summary": "Deleted the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement" }, { "span": { @@ -1422,7 +1422,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, * as name from \"alligator\"' import statement" + "summary": "Deleted the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -1437,7 +1437,7 @@ ] } }, - "summary": "Deleted the '\"arctic-tern\"' import statement" + "summary": "Deleted the \"arctic-tern\" import statement" } ] }, @@ -1446,9 +1446,9 @@ "filePaths": [ "import.js" ], - "sha1": "70f4f3d9f4fde350162c49ce9d3a2d7467b4f31f", + "sha1": "afe03c2144a3af7aa0194c59d908eda4b7f1e374", "gitDir": "test/corpus/repos/javascript", - "sha2": "c3af43ff5842e1fd2c08b3820b6f0f9cb7a2fdc5" + "sha2": "4a5f0f4efa9d8c86c918a82b980285923e8e7e26" } ,{ "testCaseDescription": "javascript-import-delete-rest-test", @@ -1468,7 +1468,7 @@ ] } }, - "summary": "Deleted the 'defaultMember from \"babirusa\"' import statement" + "summary": "Deleted the defaultMember from \"babirusa\" import statement" }, { "span": { @@ -1483,7 +1483,7 @@ ] } }, - "summary": "Deleted the '* as otherName from \"baboon\"' import statement" + "summary": "Deleted the otherName from \"baboon\" import statement" }, { "span": { @@ -1498,7 +1498,7 @@ ] } }, - "summary": "Deleted the '{ element } from \"badger\"' import statement" + "summary": "Deleted the element from \"badger\" import statement" }, { "span": { @@ -1513,7 +1513,7 @@ ] } }, - "summary": "Deleted the '{ element1 , element2 } from \"bald-eagle\"' import statement" + "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -1528,7 +1528,7 @@ ] } }, - "summary": "Deleted the '{ element1 , element2 as elementAlias2 } from \"bandicoot\"' import statement" + "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -1543,7 +1543,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, { element1, element2 as elementAlias2 } from \"banteng\"' import statement" + "summary": "Deleted the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement" }, { "span": { @@ -1558,7 +1558,7 @@ ] } }, - "summary": "Deleted the 'defaultMember, * as element from \"barbet\"' import statement" + "summary": "Deleted the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -1573,7 +1573,7 @@ ] } }, - "summary": "Deleted the '\"basilisk\"' import statement" + "summary": "Deleted the \"basilisk\" import statement" } ] }, @@ -1582,7 +1582,7 @@ "filePaths": [ "import.js" ], - "sha1": "c3af43ff5842e1fd2c08b3820b6f0f9cb7a2fdc5", + "sha1": "4a5f0f4efa9d8c86c918a82b980285923e8e7e26", "gitDir": "test/corpus/repos/javascript", - "sha2": "8c5cc3ef24ec9c35834725f3a2292a55e91eef27" + "sha2": "9001d783fa3d7a463ffd53227745f7f90f7e9b69" }] diff --git a/test/corpus/repos/javascript b/test/corpus/repos/javascript index 716198fcf..45188e6c8 160000 --- a/test/corpus/repos/javascript +++ b/test/corpus/repos/javascript @@ -1 +1 @@ -Subproject commit 716198fcfe43285d41323440ef41d93826d3b28a +Subproject commit 45188e6c8baa78ef8702407cdb9ed4fdfb62b0c8 From e8312297790e3cef1b22cb016e2fd8279b11a000 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 18:42:24 -0500 Subject: [PATCH 06/29] Don't single quote around an import statement --- src/DiffSummary.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 89b5e2af8..ae7cd3e9e 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -155,6 +155,7 @@ toLeafInfos leaf = pure . flip JSONSummary (sourceSpan leaf) $ case leaf of (LeafInfo "anonymous function" termName _) -> toDoc termName <+> "function" (LeafInfo cName@"string" termName _) -> toDoc termName <+> toDoc cName (LeafInfo cName@"export statement" termName _) -> toDoc termName <+> toDoc cName + (LeafInfo cName@"import statement" termName _) -> toDoc termName <+> toDoc cName LeafInfo{..} -> squotes (toDoc termName) <+> toDoc categoryName node -> panic $ "Expected a leaf info but got a: " <> show node From c05a3a961e564a7d88cb1e337b1aaa6dabb18217 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 18:44:15 -0500 Subject: [PATCH 07/29] For Import Syntax nodes containing an Indexed Syntax node with only one element, we need to take the source span of the child. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - If we don’t, this can lead to us taking more of the source than is desired. This relates to unnamed nodes in TreeSitter. The trouble is we don’t have the ability to determine if an unnamed node is what we want. --- src/DiffSummary.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index ae7cd3e9e..ec9e0e38c 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -219,10 +219,11 @@ toTermName source term = case unwrap term of S.Comment a -> toCategoryName a S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term) S.Module identifier _ -> toTermName' identifier - S.Import identifier [] -> toTermName' identifier - S.Import identifier exprs'@(expr:exprs)-> case unwrap expr of - S.Indexed _ -> intercalate ", " (termNameFromSource <$> exprs) <> "from " <> toTermName' identifier - _ -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier + S.Import identifier [] -> termNameFromSource identifier + S.Import identifier [expr] -> case unwrap expr of + S.Indexed [expr'] -> intercalate ", " [(termNameFromSource expr')] <> " from " <> toTermName' identifier + _ -> intercalate ", " [(termNameFromSource expr)] <> " from " <> toTermName' identifier + S.Import identifier exprs'@(expr:exprs) -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From bad1ae2d7827749b32e6875791f3cc8a314f17b6 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 18:47:49 -0500 Subject: [PATCH 08/29] Remove warnings --- src/DiffSummary.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index ec9e0e38c..4225fbb39 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -223,7 +223,7 @@ toTermName source term = case unwrap term of S.Import identifier [expr] -> case unwrap expr of S.Indexed [expr'] -> intercalate ", " [(termNameFromSource expr')] <> " from " <> toTermName' identifier _ -> intercalate ", " [(termNameFromSource expr)] <> " from " <> toTermName' identifier - S.Import identifier exprs'@(expr:exprs) -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier + S.Import identifier exprs'@(_:_) -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From 43e082c85f628e2cafb54d3a80a856ced9873075 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 18:50:47 -0500 Subject: [PATCH 09/29] Remove import generated file --- test/corpus/generated/import.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 test/corpus/generated/import.json diff --git a/test/corpus/generated/import.json b/test/corpus/generated/import.json deleted file mode 100644 index b6c3d12f5..000000000 --- a/test/corpus/generated/import.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "repoPath": "test/corpus/repos/javascript", - "repoUrl": "https://github.com/rewinfrey/javascript.git", - "language": "javascript", - "syntaxes": [ - { - "syntax": "import", - "repoFilePath": "import.js", - "insert": "import defaultMember from \"foo\";\nimport * as name from \"aardvark\";\nimport { member } from \"ant\";\nimport { member1 , member2 } from \"antelope\";\nimport { member1 , member2 as alias2 } from \"ant-eater\";\nimport defaultMember, { member1, member2 as alias2 } from \"anaconda\";\nimport defaultMember, * as name from \"alligator\";\nimport \"arctic-tern\";", - "testCaseFilePath": "test/corpus/diff-summaries/javascript/import.json", - "replacement": "import defaultMember from \"babirusa\";\nimport * as otherName from \"baboon\";\nimport { element } from \"badger\";\nimport { element1 , element2 } from \"bald-eagle\";\nimport { element1 , element2 as elementAlias2 } from \"bandicoot\";\nimport defaultMember, { element1, element2 as elementAlias2 } from \"banteng\";\nimport defaultMember, * as element from \"barbet\";\nimport \"basilisk\";" - } - ] - } -] From 99e070e107246ea3d186fb2327679e256ea91e1c Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 17 Oct 2016 18:51:23 -0500 Subject: [PATCH 10/29] Remove if-else generated file --- test/corpus/generated/if-else.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 test/corpus/generated/if-else.json diff --git a/test/corpus/generated/if-else.json b/test/corpus/generated/if-else.json deleted file mode 100644 index 2f69b4317..000000000 --- a/test/corpus/generated/if-else.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "repoPath": "test/corpus/repos/javascript", - "repoUrl": "https://github.com/rewinfrey/javascript.git", - "language": "javascript", - "syntaxes": [ - { - "syntax": "if-else", - "repoFilePath": "if-else.js", - "insert": "if (x) y; else if (a) b; else if (c) d; else if (e) f; else g", - "replacement": "if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o", - "testCaseFilePath": "test/corpus/diff-summaries/javascript/if-else.json" - } - ] - } -] From 90f1cc2fb4405c70a1b006fcbdb551d287db48bd Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 10:34:36 -0500 Subject: [PATCH 11/29] Remove unnecessary brackets --- src/DiffSummary.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 4225fbb39..b071c66f9 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -221,8 +221,8 @@ toTermName source term = case unwrap term of S.Module identifier _ -> toTermName' identifier S.Import identifier [] -> termNameFromSource identifier S.Import identifier [expr] -> case unwrap expr of - S.Indexed [expr'] -> intercalate ", " [(termNameFromSource expr')] <> " from " <> toTermName' identifier - _ -> intercalate ", " [(termNameFromSource expr)] <> " from " <> toTermName' identifier + S.Indexed expr' -> intercalate ", " (termNameFromSource <$> expr') <> " from " <> toTermName' identifier + _ -> intercalate ", " [termNameFromSource expr] <> " from " <> toTermName' identifier S.Import identifier exprs'@(_:_) -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" From 3b984eb470a4a9d98f295f46db93e9d0c43a7958 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 10:34:49 -0500 Subject: [PATCH 12/29] ++javascript --- test/corpus/repos/javascript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/corpus/repos/javascript b/test/corpus/repos/javascript index 45188e6c8..3ae621df1 160000 --- a/test/corpus/repos/javascript +++ b/test/corpus/repos/javascript @@ -1 +1 @@ -Subproject commit 45188e6c8baa78ef8702407cdb9ed4fdfb62b0c8 +Subproject commit 3ae621df162ded0a0cc23dc6ac16b11c9b5e5e43 From e423dfdc2b882b6a9af9d887d86cf894a3cda092 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 16:50:22 -0500 Subject: [PATCH 13/29] Add Data.List (concatMap) --- src/DiffSummary.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 3cf31f9e3..bd4e645e8 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -23,6 +23,7 @@ import qualified Text.PrettyPrint.Leijen.Text as P import SourceSpan import Source import Data.Aeson as A +import Data.List (concatMap) data Annotatable a = Annotatable a | Unannotatable a From 956fd5ba255361136cefe2e3724ae9fe78780a15 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 16:50:43 -0500 Subject: [PATCH 14/29] Add removeIndexedNode helper function --- src/DiffSummary.hs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index bd4e645e8..cebbe910e 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -231,6 +231,14 @@ toTermName source term = case unwrap term of termNameFromRange range = toText $ Source.slice range source range = characterRange . extract paramsToArgNames params = "(" <> intercalate ", " (toArgName <$> params) <> ")" + -- | For Import Syntaxes, unnamed nodes at the start or the end of a source are captured in a parent Indexed node. + -- | This in some cases can lead to us slicing a source based on the range of the Indexed node, rather than the children. + -- | This can cause us to add extra characters beyond the ranges of the Indexed nodes children. + -- | removeIndexedNode strips the containing Indexed nodes from a list of expressions to get the ranges of the children, + -- | so when we unionRanges we can ensure the union of ranges accounts only for children, and not the sometimes misleading Indexed node's ranges. + removeIndexedNode = concatMap (\term -> case unwrap term of + S.Indexed children -> removeIndexedNode children + _ -> [term]) toArgName :: SyntaxTerm leaf fields -> Text toArgName arg = case identifiable arg of Identifiable arg -> toTermName' arg From 7ae5ad32f32212cf834d395ee4682fa6934c972d Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 16:51:08 -0500 Subject: [PATCH 15/29] Use termNameFromChildren and revmoeIndexedNode helper function for Import SyntaxDiff terms --- src/DiffSummary.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index cebbe910e..fbd4e22b2 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -218,10 +218,8 @@ toTermName source term = case unwrap term of S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term) S.Module identifier _ -> toTermName' identifier S.Import identifier [] -> termNameFromSource identifier - S.Import identifier [expr] -> case unwrap expr of - S.Indexed expr' -> intercalate ", " (termNameFromSource <$> expr') <> " from " <> toTermName' identifier - _ -> intercalate ", " [termNameFromSource expr] <> " from " <> toTermName' identifier - S.Import identifier exprs'@(_:_) -> intercalate ", " (termNameFromSource <$> exprs') <> " from " <> toTermName' identifier + S.Import identifier expr@[expr'] -> (termNameFromChildren term (removeIndexedNode [expr'])) <> " from " <> toTermName' identifier + S.Import identifier exprs -> (termNameFromChildren term exprs) <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From 1f5c73143deb445fc08e0652f60fc6821ad17ee7 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 16:54:15 -0500 Subject: [PATCH 16/29] ++import.json tests --- .../diff-summaries/javascript/import.json | 76 +++++++++---------- test/corpus/repos/javascript | 2 +- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/test/corpus/diff-summaries/javascript/import.json b/test/corpus/diff-summaries/javascript/import.json index a810aa3ab..9354cb25e 100644 --- a/test/corpus/diff-summaries/javascript/import.json +++ b/test/corpus/diff-summaries/javascript/import.json @@ -61,7 +61,7 @@ ] } }, - "summary": "Added the { member1 , member2 } from \"antelope\" import statement" + "summary": "Added the member1 , member2 from \"antelope\" import statement" }, { "span": { @@ -76,7 +76,7 @@ ] } }, - "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" + "summary": "Added the member1 , member2 as alias2 from \"ant-eater\" import statement" }, { "span": { @@ -130,9 +130,9 @@ "filePaths": [ "import.js" ], - "sha1": "756273ef4a7598fd5fcb9a681bb20bd0e585c3c3", + "sha1": "3ae621df162ded0a0cc23dc6ac16b11c9b5e5e43", "gitDir": "test/corpus/repos/javascript", - "sha2": "fd475dda0e3ee31a8bdd50f5f442960562164f79" + "sha2": "7babe13ca5feebe037df2a299a0cb56b2dbfc487" } ,{ "testCaseDescription": "javascript-import-replacement-insert-test", @@ -197,7 +197,7 @@ ] } }, - "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" + "summary": "Added the element1 , element2 from \"bald-eagle\" import statement" }, { "span": { @@ -212,7 +212,7 @@ ] } }, - "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" + "summary": "Added the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" }, { "span": { @@ -317,7 +317,7 @@ ] } }, - "summary": "Added the { member1 , member2 } from \"antelope\" import statement" + "summary": "Added the member1 , member2 from \"antelope\" import statement" }, { "span": { @@ -332,7 +332,7 @@ ] } }, - "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" + "summary": "Added the member1 , member2 as alias2 from \"ant-eater\" import statement" }, { "span": { @@ -386,9 +386,9 @@ "filePaths": [ "import.js" ], - "sha1": "fd475dda0e3ee31a8bdd50f5f442960562164f79", + "sha1": "7babe13ca5feebe037df2a299a0cb56b2dbfc487", "gitDir": "test/corpus/repos/javascript", - "sha2": "e660ca7ef35c1046ef3ead0dc1811557ce1fc23f" + "sha2": "94d777812826cbf929a0e7a582daeb25c9f1cdad" } ,{ "testCaseDescription": "javascript-import-delete-insert-test", @@ -504,7 +504,7 @@ ] } }, - "summary": "Added the { member1 , member2 } from \"antelope\" import statement" + "summary": "Added the member1 , member2 from \"antelope\" import statement" }, { "span": { @@ -519,7 +519,7 @@ ] } }, - "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" + "summary": "Added the member1 , member2 as alias2 from \"ant-eater\" import statement" }, { "span": { @@ -591,7 +591,7 @@ ] } }, - "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" + "summary": "Deleted the element1 , element2 from \"bald-eagle\" import statement" }, { "span": { @@ -606,7 +606,7 @@ ] } }, - "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" + "summary": "Deleted the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" }, { "span": { @@ -660,9 +660,9 @@ "filePaths": [ "import.js" ], - "sha1": "e660ca7ef35c1046ef3ead0dc1811557ce1fc23f", + "sha1": "94d777812826cbf929a0e7a582daeb25c9f1cdad", "gitDir": "test/corpus/repos/javascript", - "sha2": "2f85e029da180e89aadeda3834079cbc6b2626df" + "sha2": "f8ddd719ed2909577bc19f08788957ffc1bc72ce" } ,{ "testCaseDescription": "javascript-import-replacement-test", @@ -778,7 +778,7 @@ ] } }, - "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" + "summary": "Added the element1 , element2 from \"bald-eagle\" import statement" }, { "span": { @@ -793,7 +793,7 @@ ] } }, - "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" + "summary": "Added the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" }, { "span": { @@ -865,7 +865,7 @@ ] } }, - "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" + "summary": "Deleted the member1 , member2 from \"antelope\" import statement" }, { "span": { @@ -880,7 +880,7 @@ ] } }, - "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" + "summary": "Deleted the member1 , member2 as alias2 from \"ant-eater\" import statement" }, { "span": { @@ -934,9 +934,9 @@ "filePaths": [ "import.js" ], - "sha1": "2f85e029da180e89aadeda3834079cbc6b2626df", + "sha1": "f8ddd719ed2909577bc19f08788957ffc1bc72ce", "gitDir": "test/corpus/repos/javascript", - "sha2": "e31f9695fa7dae0ff1ee9da577722ef11e97d955" + "sha2": "b94842f36559d65e33c859bca354e3e659923f62" } ,{ "testCaseDescription": "javascript-import-delete-replacement-test", @@ -1001,7 +1001,7 @@ ] } }, - "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" + "summary": "Deleted the element1 , element2 from \"bald-eagle\" import statement" }, { "span": { @@ -1016,7 +1016,7 @@ ] } }, - "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" + "summary": "Deleted the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" }, { "span": { @@ -1121,7 +1121,7 @@ ] } }, - "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" + "summary": "Deleted the member1 , member2 from \"antelope\" import statement" }, { "span": { @@ -1136,7 +1136,7 @@ ] } }, - "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" + "summary": "Deleted the member1 , member2 as alias2 from \"ant-eater\" import statement" }, { "span": { @@ -1241,7 +1241,7 @@ ] } }, - "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" + "summary": "Added the element1 , element2 from \"bald-eagle\" import statement" }, { "span": { @@ -1256,7 +1256,7 @@ ] } }, - "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" + "summary": "Added the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" }, { "span": { @@ -1310,9 +1310,9 @@ "filePaths": [ "import.js" ], - "sha1": "e31f9695fa7dae0ff1ee9da577722ef11e97d955", + "sha1": "b94842f36559d65e33c859bca354e3e659923f62", "gitDir": "test/corpus/repos/javascript", - "sha2": "afe03c2144a3af7aa0194c59d908eda4b7f1e374" + "sha2": "85252baf0a924e76d0e1c6d932571b293a2bb939" } ,{ "testCaseDescription": "javascript-import-delete-test", @@ -1377,7 +1377,7 @@ ] } }, - "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" + "summary": "Deleted the member1 , member2 from \"antelope\" import statement" }, { "span": { @@ -1392,7 +1392,7 @@ ] } }, - "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" + "summary": "Deleted the member1 , member2 as alias2 from \"ant-eater\" import statement" }, { "span": { @@ -1446,9 +1446,9 @@ "filePaths": [ "import.js" ], - "sha1": "afe03c2144a3af7aa0194c59d908eda4b7f1e374", + "sha1": "85252baf0a924e76d0e1c6d932571b293a2bb939", "gitDir": "test/corpus/repos/javascript", - "sha2": "4a5f0f4efa9d8c86c918a82b980285923e8e7e26" + "sha2": "cb3ee6d2ef9d7a875881dd16206604b505460ab7" } ,{ "testCaseDescription": "javascript-import-delete-rest-test", @@ -1513,7 +1513,7 @@ ] } }, - "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" + "summary": "Deleted the element1 , element2 from \"bald-eagle\" import statement" }, { "span": { @@ -1528,7 +1528,7 @@ ] } }, - "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" + "summary": "Deleted the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" }, { "span": { @@ -1582,7 +1582,7 @@ "filePaths": [ "import.js" ], - "sha1": "4a5f0f4efa9d8c86c918a82b980285923e8e7e26", + "sha1": "cb3ee6d2ef9d7a875881dd16206604b505460ab7", "gitDir": "test/corpus/repos/javascript", - "sha2": "9001d783fa3d7a463ffd53227745f7f90f7e9b69" + "sha2": "1fafdab82fd48882271d7313f894a0fb6629cf8c" }] diff --git a/test/corpus/repos/javascript b/test/corpus/repos/javascript index 3ae621df1..1fafdab82 160000 --- a/test/corpus/repos/javascript +++ b/test/corpus/repos/javascript @@ -1 +1 @@ -Subproject commit 3ae621df162ded0a0cc23dc6ac16b11c9b5e5e43 +Subproject commit 1fafdab82fd48882271d7313f894a0fb6629cf8c From c64056894dfcd79e9bfe754f1f3d91326a121121 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Tue, 18 Oct 2016 16:57:29 -0500 Subject: [PATCH 17/29] Clean up warnings --- src/DiffSummary.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index fbd4e22b2..a18454270 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -218,8 +218,8 @@ toTermName source term = case unwrap term of S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term) S.Module identifier _ -> toTermName' identifier S.Import identifier [] -> termNameFromSource identifier - S.Import identifier expr@[expr'] -> (termNameFromChildren term (removeIndexedNode [expr'])) <> " from " <> toTermName' identifier - S.Import identifier exprs -> (termNameFromChildren term exprs) <> " from " <> toTermName' identifier + S.Import identifier expr@[_] -> termNameFromChildren term (removeIndexedNode expr) <> " from " <> toTermName' identifier + S.Import identifier exprs -> termNameFromChildren term exprs <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" S.Export (Just identifier) expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" <> " from " <> toTermName' identifier From 84d2f7ae362e7f7f41f406064e4609bbdd9504c2 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Wed, 19 Oct 2016 18:06:34 -0500 Subject: [PATCH 18/29] Remove comments --- src/DiffSummary.hs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index a18454270..1b1013ce1 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -218,7 +218,6 @@ toTermName source term = case unwrap term of S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term) S.Module identifier _ -> toTermName' identifier S.Import identifier [] -> termNameFromSource identifier - S.Import identifier expr@[_] -> termNameFromChildren term (removeIndexedNode expr) <> " from " <> toTermName' identifier S.Import identifier exprs -> termNameFromChildren term exprs <> " from " <> toTermName' identifier S.Export Nothing expr -> "{ " <> intercalate ", " (termNameFromSource <$> expr) <> " }" S.Export (Just identifier) [] -> "{ " <> toTermName' identifier <> " }" @@ -229,14 +228,6 @@ toTermName source term = case unwrap term of termNameFromRange range = toText $ Source.slice range source range = characterRange . extract paramsToArgNames params = "(" <> intercalate ", " (toArgName <$> params) <> ")" - -- | For Import Syntaxes, unnamed nodes at the start or the end of a source are captured in a parent Indexed node. - -- | This in some cases can lead to us slicing a source based on the range of the Indexed node, rather than the children. - -- | This can cause us to add extra characters beyond the ranges of the Indexed nodes children. - -- | removeIndexedNode strips the containing Indexed nodes from a list of expressions to get the ranges of the children, - -- | so when we unionRanges we can ensure the union of ranges accounts only for children, and not the sometimes misleading Indexed node's ranges. - removeIndexedNode = concatMap (\term -> case unwrap term of - S.Indexed children -> removeIndexedNode children - _ -> [term]) toArgName :: SyntaxTerm leaf fields -> Text toArgName arg = case identifiable arg of Identifiable arg -> toTermName' arg From fe803e94ba91db9c2c7c19d89100153ec81153d7 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Wed, 19 Oct 2016 18:08:16 -0500 Subject: [PATCH 19/29] Only remove indexed nodes for import statements when the indexed node contains a child indexed node and so on. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is to make sure for these cases, when we have an indexed node containing a single indexed node and so on, that we’re capturing the range of children Leaf or other Syntax other than Indexed nodes. This is because of an issue that occurs when we construct SyntaxDiff for import syntaxes specifically for nested indexed statements. --- src/Language/JavaScript.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Language/JavaScript.hs b/src/Language/JavaScript.hs index 8876966ca..f4e1b8b60 100644 --- a/src/Language/JavaScript.hs +++ b/src/Language/JavaScript.hs @@ -67,7 +67,12 @@ termConstructor source sourceSpan name range children ("method_definition", [ identifier, exprs ]) -> S.Method identifier [] (toList (unwrap exprs)) ("class", [ identifier, superclass, definitions ]) -> S.Class identifier (Just superclass) (toList (unwrap definitions)) ("class", [ identifier, definitions ]) -> S.Class identifier Nothing (toList (unwrap definitions)) - ("import_statement", [ statements, identifier ] ) -> S.Import identifier (toList (unwrap statements)) + ("import_statement", [ statements, identifier ] ) -> S.Import identifier (removeIndexedNodes [statements]) + where + removeIndexedNodes = foldMap $ \term -> + case unwrap term of + S.Indexed [child] -> removeIndexedNodes [child] + _ -> [term] ("import_statement", [ identifier ] ) -> S.Import identifier [] ("export_statement", [ statements, identifier] ) -> S.Export (Just identifier) (toList (unwrap statements)) ("export_statement", [ statements ] ) -> case unwrap statements of From 1a787335b825f418f2066a5b6dcb40a08b4ec5c5 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Wed, 19 Oct 2016 18:10:28 -0500 Subject: [PATCH 20/29] Update tests --- .../diff-summaries/javascript/import.json | 330 ++++++++++-------- test/corpus/repos/javascript | 2 +- 2 files changed, 184 insertions(+), 148 deletions(-) diff --git a/test/corpus/diff-summaries/javascript/import.json b/test/corpus/diff-summaries/javascript/import.json index 9354cb25e..9533fc7cb 100644 --- a/test/corpus/diff-summaries/javascript/import.json +++ b/test/corpus/diff-summaries/javascript/import.json @@ -61,7 +61,7 @@ ] } }, - "summary": "Added the member1 , member2 from \"antelope\" import statement" + "summary": "Added the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -76,7 +76,7 @@ ] } }, - "summary": "Added the member1 , member2 as alias2 from \"ant-eater\" import statement" + "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -130,9 +130,9 @@ "filePaths": [ "import.js" ], - "sha1": "3ae621df162ded0a0cc23dc6ac16b11c9b5e5e43", + "sha1": "a2d4c453bd5819dd22716ce40c5abd91aaf0af96", "gitDir": "test/corpus/repos/javascript", - "sha2": "7babe13ca5feebe037df2a299a0cb56b2dbfc487" + "sha2": "8f038627298d51e24022cc940dbb46cfb596b42f" } ,{ "testCaseDescription": "javascript-import-replacement-insert-test", @@ -197,7 +197,7 @@ ] } }, - "summary": "Added the element1 , element2 from \"bald-eagle\" import statement" + "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -212,7 +212,7 @@ ] } }, - "summary": "Added the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" + "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -317,7 +317,7 @@ ] } }, - "summary": "Added the member1 , member2 from \"antelope\" import statement" + "summary": "Added the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -332,7 +332,7 @@ ] } }, - "summary": "Added the member1 , member2 as alias2 from \"ant-eater\" import statement" + "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -386,15 +386,30 @@ "filePaths": [ "import.js" ], - "sha1": "7babe13ca5feebe037df2a299a0cb56b2dbfc487", + "sha1": "8f038627298d51e24022cc940dbb46cfb596b42f", "gitDir": "test/corpus/repos/javascript", - "sha2": "94d777812826cbf929a0e7a582daeb25c9f1cdad" + "sha2": "d64ca338a92ed3c8bf4accf04cce6664434d8470" } ,{ "testCaseDescription": "javascript-import-delete-insert-test", "expectedResult": { "changes": { "import.js": [ + { + "span": { + "insert": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 33 + ] + } + }, + "summary": "Added the defaultMember from \"foo\" import statement" + }, { "span": { "replace": [ @@ -408,33 +423,6 @@ 37 ] }, - { - "start": [ - 1, - 27 - ], - "end": [ - 1, - 32 - ] - } - ] - }, - "summary": "Replaced the \"babirusa\" string with the \"foo\" string in the defaultMember from \"foo\" import statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 2, - 28 - ], - "end": [ - 2, - 36 - ] - }, { "start": [ 2, @@ -447,19 +435,19 @@ } ] }, - "summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the name from \"aardvark\" import statement" + "summary": "Replaced the \"babirusa\" string with the \"aardvark\" string in the name from \"aardvark\" import statement" }, { "span": { "replace": [ { "start": [ - 2, - 13 + 1, + 8 ], "end": [ - 2, - 22 + 1, + 21 ] }, { @@ -474,7 +462,7 @@ } ] }, - "summary": "Replaced the 'otherName' identifier with the 'name' identifier in the name from \"aardvark\" import statement" + "summary": "Replaced the 'defaultMember' identifier with the 'name' identifier in the name from \"aardvark\" import statement" }, { "span": { @@ -504,7 +492,7 @@ ] } }, - "summary": "Added the member1 , member2 from \"antelope\" import statement" + "summary": "Added the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -519,7 +507,7 @@ ] } }, - "summary": "Added the member1 , member2 as alias2 from \"ant-eater\" import statement" + "summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -538,30 +526,18 @@ }, { "span": { - "replace": [ - { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 34 - ] - }, - { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 50 - ] - } - ] + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 50 + ] + } }, - "summary": "Replaced the element from \"badger\" import statement with the defaultMember, * as name from \"alligator\" import statement" + "summary": "Added the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -578,6 +554,36 @@ }, "summary": "Added the \"arctic-tern\" import statement" }, + { + "span": { + "delete": { + "start": [ + 2, + 1 + ], + "end": [ + 2, + 37 + ] + } + }, + "summary": "Deleted the otherName from \"baboon\" import statement" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 34 + ] + } + }, + "summary": "Deleted the element from \"badger\" import statement" + }, { "span": { "delete": { @@ -591,7 +597,7 @@ ] } }, - "summary": "Deleted the element1 , element2 from \"bald-eagle\" import statement" + "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -606,7 +612,7 @@ ] } }, - "summary": "Deleted the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" + "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -660,15 +666,30 @@ "filePaths": [ "import.js" ], - "sha1": "94d777812826cbf929a0e7a582daeb25c9f1cdad", + "sha1": "d64ca338a92ed3c8bf4accf04cce6664434d8470", "gitDir": "test/corpus/repos/javascript", - "sha2": "f8ddd719ed2909577bc19f08788957ffc1bc72ce" + "sha2": "6cf5d045aecc63d55a582bbc3644f033ad58e36d" } ,{ "testCaseDescription": "javascript-import-replacement-test", "expectedResult": { "changes": { "import.js": [ + { + "span": { + "insert": { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 38 + ] + } + }, + "summary": "Added the defaultMember from \"babirusa\" import statement" + }, { "span": { "replace": [ @@ -684,17 +705,44 @@ }, { "start": [ - 1, - 27 + 2, + 28 ], "end": [ - 1, - 37 + 2, + 36 ] } ] }, - "summary": "Replaced the \"foo\" string with the \"babirusa\" string in the defaultMember from \"babirusa\" import statement" + "summary": "Replaced the \"foo\" string with the \"baboon\" string in the otherName from \"baboon\" import statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 1, + 8 + ], + "end": [ + 1, + 21 + ] + }, + { + "start": [ + 2, + 13 + ], + "end": [ + 2, + 22 + ] + } + ] + }, + "summary": "Replaced the 'defaultMember' identifier with the 'otherName' identifier in the otherName from \"baboon\" import statement" }, { "span": { @@ -711,17 +759,17 @@ }, { "start": [ - 2, - 28 + 3, + 25 ], "end": [ - 2, - 36 + 3, + 33 ] } ] }, - "summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the otherName from \"baboon\" import statement" + "summary": "Replaced the \"aardvark\" string with the \"badger\" string in the element from \"badger\" import statement" }, { "span": { @@ -738,32 +786,17 @@ }, { "start": [ - 2, - 13 + 3, + 10 ], "end": [ - 2, - 22 + 3, + 17 ] } ] }, - "summary": "Replaced the 'name' identifier with the 'otherName' identifier in the otherName from \"baboon\" import statement" - }, - { - "span": { - "insert": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 34 - ] - } - }, - "summary": "Added the element from \"badger\" import statement" + "summary": "Replaced the 'name' identifier with the 'element' identifier in the element from \"badger\" import statement" }, { "span": { @@ -778,7 +811,7 @@ ] } }, - "summary": "Added the element1 , element2 from \"bald-eagle\" import statement" + "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -793,7 +826,7 @@ ] } }, - "summary": "Added the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" + "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -812,30 +845,18 @@ }, { "span": { - "replace": [ - { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 30 - ] - }, - { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 50 - ] - } - ] + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 50 + ] + } }, - "summary": "Replaced the member from \"ant\" import statement with the defaultMember, * as element from \"barbet\" import statement" + "summary": "Added the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -852,6 +873,21 @@ }, "summary": "Added the \"basilisk\" import statement" }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 30 + ] + } + }, + "summary": "Deleted the member from \"ant\" import statement" + }, { "span": { "delete": { @@ -865,7 +901,7 @@ ] } }, - "summary": "Deleted the member1 , member2 from \"antelope\" import statement" + "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -880,7 +916,7 @@ ] } }, - "summary": "Deleted the member1 , member2 as alias2 from \"ant-eater\" import statement" + "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -934,9 +970,9 @@ "filePaths": [ "import.js" ], - "sha1": "f8ddd719ed2909577bc19f08788957ffc1bc72ce", + "sha1": "6cf5d045aecc63d55a582bbc3644f033ad58e36d", "gitDir": "test/corpus/repos/javascript", - "sha2": "b94842f36559d65e33c859bca354e3e659923f62" + "sha2": "3013722a563d2868bf7bfe021bdfdfdff521b967" } ,{ "testCaseDescription": "javascript-import-delete-replacement-test", @@ -1001,7 +1037,7 @@ ] } }, - "summary": "Deleted the element1 , element2 from \"bald-eagle\" import statement" + "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -1016,7 +1052,7 @@ ] } }, - "summary": "Deleted the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" + "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -1121,7 +1157,7 @@ ] } }, - "summary": "Deleted the member1 , member2 from \"antelope\" import statement" + "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -1136,7 +1172,7 @@ ] } }, - "summary": "Deleted the member1 , member2 as alias2 from \"ant-eater\" import statement" + "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -1241,7 +1277,7 @@ ] } }, - "summary": "Added the element1 , element2 from \"bald-eagle\" import statement" + "summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -1256,7 +1292,7 @@ ] } }, - "summary": "Added the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" + "summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -1310,9 +1346,9 @@ "filePaths": [ "import.js" ], - "sha1": "b94842f36559d65e33c859bca354e3e659923f62", + "sha1": "3013722a563d2868bf7bfe021bdfdfdff521b967", "gitDir": "test/corpus/repos/javascript", - "sha2": "85252baf0a924e76d0e1c6d932571b293a2bb939" + "sha2": "2f86f9da336f0407a2ca39d0ee4a959091bb7952" } ,{ "testCaseDescription": "javascript-import-delete-test", @@ -1377,7 +1413,7 @@ ] } }, - "summary": "Deleted the member1 , member2 from \"antelope\" import statement" + "summary": "Deleted the { member1 , member2 } from \"antelope\" import statement" }, { "span": { @@ -1392,7 +1428,7 @@ ] } }, - "summary": "Deleted the member1 , member2 as alias2 from \"ant-eater\" import statement" + "summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement" }, { "span": { @@ -1446,9 +1482,9 @@ "filePaths": [ "import.js" ], - "sha1": "85252baf0a924e76d0e1c6d932571b293a2bb939", + "sha1": "2f86f9da336f0407a2ca39d0ee4a959091bb7952", "gitDir": "test/corpus/repos/javascript", - "sha2": "cb3ee6d2ef9d7a875881dd16206604b505460ab7" + "sha2": "30944a87fbaf4af40445ddb8264003eedeec821f" } ,{ "testCaseDescription": "javascript-import-delete-rest-test", @@ -1513,7 +1549,7 @@ ] } }, - "summary": "Deleted the element1 , element2 from \"bald-eagle\" import statement" + "summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement" }, { "span": { @@ -1528,7 +1564,7 @@ ] } }, - "summary": "Deleted the element1 , element2 as elementAlias2 from \"bandicoot\" import statement" + "summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement" }, { "span": { @@ -1582,7 +1618,7 @@ "filePaths": [ "import.js" ], - "sha1": "cb3ee6d2ef9d7a875881dd16206604b505460ab7", + "sha1": "30944a87fbaf4af40445ddb8264003eedeec821f", "gitDir": "test/corpus/repos/javascript", - "sha2": "1fafdab82fd48882271d7313f894a0fb6629cf8c" + "sha2": "9610afd6cbcffec3359a682713065543f20fa1f3" }] diff --git a/test/corpus/repos/javascript b/test/corpus/repos/javascript index 1fafdab82..9610afd6c 160000 --- a/test/corpus/repos/javascript +++ b/test/corpus/repos/javascript @@ -1 +1 @@ -Subproject commit 1fafdab82fd48882271d7313f894a0fb6629cf8c +Subproject commit 9610afd6cbcffec3359a682713065543f20fa1f3 From 78f778c82ba301a6d89ab15363417a0f2d6f9989 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Wed, 19 Oct 2016 18:12:00 -0500 Subject: [PATCH 21/29] Remove unnecessary import --- src/DiffSummary.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 1b1013ce1..8c17994b9 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -23,7 +23,6 @@ import qualified Text.PrettyPrint.Leijen.Text as P import SourceSpan import Source import Data.Aeson as A -import Data.List (concatMap) data Annotatable a = Annotatable a | Unannotatable a From 8d7a74c2b23ca0438937a88f8aee9cf9050e16f6 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 16:22:29 -0500 Subject: [PATCH 22/29] Remove behavior stripping Indexed nodes --- src/Language/JavaScript.hs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Language/JavaScript.hs b/src/Language/JavaScript.hs index f4e1b8b60..8876966ca 100644 --- a/src/Language/JavaScript.hs +++ b/src/Language/JavaScript.hs @@ -67,12 +67,7 @@ termConstructor source sourceSpan name range children ("method_definition", [ identifier, exprs ]) -> S.Method identifier [] (toList (unwrap exprs)) ("class", [ identifier, superclass, definitions ]) -> S.Class identifier (Just superclass) (toList (unwrap definitions)) ("class", [ identifier, definitions ]) -> S.Class identifier Nothing (toList (unwrap definitions)) - ("import_statement", [ statements, identifier ] ) -> S.Import identifier (removeIndexedNodes [statements]) - where - removeIndexedNodes = foldMap $ \term -> - case unwrap term of - S.Indexed [child] -> removeIndexedNodes [child] - _ -> [term] + ("import_statement", [ statements, identifier ] ) -> S.Import identifier (toList (unwrap statements)) ("import_statement", [ identifier ] ) -> S.Import identifier [] ("export_statement", [ statements, identifier] ) -> S.Export (Just identifier) (toList (unwrap statements)) ("export_statement", [ statements ] ) -> case unwrap statements of From e68be8e3b87c67216474f4b96545bdc47624c4b6 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 16:22:45 -0500 Subject: [PATCH 23/29] Take the after annotation when we take the afterTerm --- src/Diff.hs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Diff.hs b/src/Diff.hs index 6fa60085e..0273c588d 100644 --- a/src/Diff.hs +++ b/src/Diff.hs @@ -35,10 +35,18 @@ mergeMaybe transform = iter algebra . fmap transform where algebra :: Mergeable f => TermF f (Both annotation) (Maybe (Term f annotation)) -> Maybe (Term f annotation) algebra (annotations :< syntax) = cofree . (Both.fst annotations :<) <$> sequenceAlt syntax +mergeMaybe' :: Mergeable f => (Patch (Term f annotation) -> Maybe (Term f annotation)) -> Diff f annotation -> Maybe (Term f annotation) +mergeMaybe' transform = iter algebra . fmap transform + where algebra :: Mergeable f => TermF f (Both annotation) (Maybe (Term f annotation)) -> Maybe (Term f annotation) + algebra (annotations :< syntax) = cofree . (Both.snd annotations :<) <$> sequenceAlt syntax + -- | Recover the before state of a diff. beforeTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) beforeTerm = mergeMaybe before -- | Recover the after state of a diff. afterTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) -afterTerm = mergeMaybe after +afterTerm diff = mergeMaybe after diff + +afterTerm' :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) +afterTerm' diff = mergeMaybe' after diff From 2f0d04ef0f9cb00e3028200787438f6485b68c09 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 16:22:56 -0500 Subject: [PATCH 24/29] Use afterTerm' --- src/DiffSummary.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 8c17994b9..56d341fd9 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -96,7 +96,7 @@ diffToDiffSummaries sources = para $ \diff -> let diff' = free (Prologue.fst <$> diff) annotateWithCategory :: [DiffSummary DiffInfo] -> [DiffSummary DiffInfo] - annotateWithCategory children = case (beforeTerm diff', afterTerm diff') of + annotateWithCategory children = case (beforeTerm diff', afterTerm' diff') of (_, Just diff'') -> appendSummary (Both.snd sources) diff'' <$> children (Just diff'', _) -> appendSummary (Both.fst sources) diff'' <$> children (Nothing, Nothing) -> [] From c91fd3270d9fd41c9c24433c59cc1ffe440d0dc1 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 16:33:47 -0500 Subject: [PATCH 25/29] Use new afterTerm behavior for all semantic-diff --- src/Diff.hs | 8 ++++---- src/DiffSummary.hs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Diff.hs b/src/Diff.hs index 0273c588d..e04192baf 100644 --- a/src/Diff.hs +++ b/src/Diff.hs @@ -45,8 +45,8 @@ beforeTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) beforeTerm = mergeMaybe before -- | Recover the after state of a diff. -afterTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) -afterTerm diff = mergeMaybe after diff - afterTerm' :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) -afterTerm' diff = mergeMaybe' after diff +afterTerm' diff = mergeMaybe after diff + +afterTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) +afterTerm diff = mergeMaybe' after diff diff --git a/src/DiffSummary.hs b/src/DiffSummary.hs index 56d341fd9..8c17994b9 100644 --- a/src/DiffSummary.hs +++ b/src/DiffSummary.hs @@ -96,7 +96,7 @@ diffToDiffSummaries sources = para $ \diff -> let diff' = free (Prologue.fst <$> diff) annotateWithCategory :: [DiffSummary DiffInfo] -> [DiffSummary DiffInfo] - annotateWithCategory children = case (beforeTerm diff', afterTerm' diff') of + annotateWithCategory children = case (beforeTerm diff', afterTerm diff') of (_, Just diff'') -> appendSummary (Both.snd sources) diff'' <$> children (Just diff'', _) -> appendSummary (Both.fst sources) diff'' <$> children (Nothing, Nothing) -> [] From 85a3864a960a6afd1a2f87e2952fa4946be39292 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 16:34:54 -0500 Subject: [PATCH 26/29] Remove unused function --- src/Diff.hs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Diff.hs b/src/Diff.hs index e04192baf..a44279109 100644 --- a/src/Diff.hs +++ b/src/Diff.hs @@ -45,8 +45,5 @@ beforeTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) beforeTerm = mergeMaybe before -- | Recover the after state of a diff. -afterTerm' :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) -afterTerm' diff = mergeMaybe after diff - afterTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) afterTerm diff = mergeMaybe' after diff From bd9fb81037ea4cf1ea1f993ca5fb2b32f44bd950 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 17:19:42 -0500 Subject: [PATCH 27/29] Consolidate back to single functions, passing in a function to extract the correct Annotation --- src/Diff.hs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/Diff.hs b/src/Diff.hs index a44279109..ae79020f2 100644 --- a/src/Diff.hs +++ b/src/Diff.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE TypeFamilies, TypeSynonymInstances #-} +{-# LANGUAGE TypeFamilies, TypeSynonymInstances, ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Diff where @@ -30,20 +30,15 @@ diffCost :: (Foldable f, Functor f) => Diff f annotation -> Int diffCost = diffSum $ patchSum termSize -- | Merge a diff using a function to provide the Term (in Maybe, to simplify recovery of the before/after state) for every Patch. -mergeMaybe :: Mergeable f => (Patch (Term f annotation) -> Maybe (Term f annotation)) -> Diff f annotation -> Maybe (Term f annotation) -mergeMaybe transform = iter algebra . fmap transform - where algebra :: Mergeable f => TermF f (Both annotation) (Maybe (Term f annotation)) -> Maybe (Term f annotation) - algebra (annotations :< syntax) = cofree . (Both.fst annotations :<) <$> sequenceAlt syntax - -mergeMaybe' :: Mergeable f => (Patch (Term f annotation) -> Maybe (Term f annotation)) -> Diff f annotation -> Maybe (Term f annotation) -mergeMaybe' transform = iter algebra . fmap transform - where algebra :: Mergeable f => TermF f (Both annotation) (Maybe (Term f annotation)) -> Maybe (Term f annotation) - algebra (annotations :< syntax) = cofree . (Both.snd annotations :<) <$> sequenceAlt syntax +mergeMaybe :: forall f annotation. Mergeable f => (Patch (Term f annotation) -> Maybe (Term f annotation)) -> (Both annotation -> annotation) -> Diff f annotation -> Maybe (Term f annotation) +mergeMaybe transform extractAnnotation = iter algebra . fmap transform + where algebra :: TermF f (Both annotation) (Maybe (Term f annotation)) -> Maybe (Term f annotation) + algebra (annotations :< syntax) = cofree . (extractAnnotation annotations :<) <$> sequenceAlt syntax -- | Recover the before state of a diff. beforeTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) -beforeTerm = mergeMaybe before +beforeTerm = mergeMaybe before Both.fst -- | Recover the after state of a diff. afterTerm :: Mergeable f => Diff f annotation -> Maybe (Term f annotation) -afterTerm diff = mergeMaybe' after diff +afterTerm = mergeMaybe after Both.snd From 5be0a1170766d8a748c44b4e4b82b6980dcd5c50 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 20 Oct 2016 17:27:30 -0500 Subject: [PATCH 28/29] Update Import tests --- .../diff-summaries/javascript/import.json | 316 ++++++++---------- test/corpus/repos/javascript | 2 +- 2 files changed, 141 insertions(+), 177 deletions(-) diff --git a/test/corpus/diff-summaries/javascript/import.json b/test/corpus/diff-summaries/javascript/import.json index 9533fc7cb..b5ac1e6d9 100644 --- a/test/corpus/diff-summaries/javascript/import.json +++ b/test/corpus/diff-summaries/javascript/import.json @@ -31,7 +31,7 @@ ] } }, - "summary": "Added the name from \"aardvark\" import statement" + "summary": "Added the * as name from \"aardvark\" import statement" }, { "span": { @@ -46,7 +46,7 @@ ] } }, - "summary": "Added the member from \"ant\" import statement" + "summary": "Added the { member } from \"ant\" import statement" }, { "span": { @@ -130,9 +130,9 @@ "filePaths": [ "import.js" ], - "sha1": "a2d4c453bd5819dd22716ce40c5abd91aaf0af96", + "sha1": "9610afd6cbcffec3359a682713065543f20fa1f3", "gitDir": "test/corpus/repos/javascript", - "sha2": "8f038627298d51e24022cc940dbb46cfb596b42f" + "sha2": "4bf41968b9cf8e43bccb4eb05e2f3345ec1fbf22" } ,{ "testCaseDescription": "javascript-import-replacement-insert-test", @@ -167,7 +167,7 @@ ] } }, - "summary": "Added the otherName from \"baboon\" import statement" + "summary": "Added the * as otherName from \"baboon\" import statement" }, { "span": { @@ -182,7 +182,7 @@ ] } }, - "summary": "Added the element from \"badger\" import statement" + "summary": "Added the { element } from \"badger\" import statement" }, { "span": { @@ -287,7 +287,7 @@ ] } }, - "summary": "Added the name from \"aardvark\" import statement" + "summary": "Added the * as name from \"aardvark\" import statement" }, { "span": { @@ -302,7 +302,7 @@ ] } }, - "summary": "Added the member from \"ant\" import statement" + "summary": "Added the { member } from \"ant\" import statement" }, { "span": { @@ -386,30 +386,15 @@ "filePaths": [ "import.js" ], - "sha1": "8f038627298d51e24022cc940dbb46cfb596b42f", + "sha1": "4bf41968b9cf8e43bccb4eb05e2f3345ec1fbf22", "gitDir": "test/corpus/repos/javascript", - "sha2": "d64ca338a92ed3c8bf4accf04cce6664434d8470" + "sha2": "f959bc243d5a53c6b9cfad8c2d13e361a35845f0" } ,{ "testCaseDescription": "javascript-import-delete-insert-test", "expectedResult": { "changes": { "import.js": [ - { - "span": { - "insert": { - "start": [ - 1, - 1 - ], - "end": [ - 1, - 33 - ] - } - }, - "summary": "Added the defaultMember from \"foo\" import statement" - }, { "span": { "replace": [ @@ -423,6 +408,33 @@ 37 ] }, + { + "start": [ + 1, + 27 + ], + "end": [ + 1, + 32 + ] + } + ] + }, + "summary": "Replaced the \"babirusa\" string with the \"foo\" string in the defaultMember from \"foo\" import statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 2, + 28 + ], + "end": [ + 2, + 36 + ] + }, { "start": [ 2, @@ -435,19 +447,19 @@ } ] }, - "summary": "Replaced the \"babirusa\" string with the \"aardvark\" string in the name from \"aardvark\" import statement" + "summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the * as name from \"aardvark\" import statement" }, { "span": { "replace": [ { "start": [ - 1, - 8 + 2, + 13 ], "end": [ - 1, - 21 + 2, + 22 ] }, { @@ -462,7 +474,7 @@ } ] }, - "summary": "Replaced the 'defaultMember' identifier with the 'name' identifier in the name from \"aardvark\" import statement" + "summary": "Replaced the 'otherName' identifier with the 'name' identifier in the * as name from \"aardvark\" import statement" }, { "span": { @@ -477,7 +489,7 @@ ] } }, - "summary": "Added the member from \"ant\" import statement" + "summary": "Added the { member } from \"ant\" import statement" }, { "span": { @@ -526,18 +538,30 @@ }, { "span": { - "insert": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 50 - ] - } + "replace": [ + { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 34 + ] + }, + { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 50 + ] + } + ] }, - "summary": "Added the defaultMember, * as name from \"alligator\" import statement" + "summary": "Replaced the { element } from \"badger\" import statement with the defaultMember, * as name from \"alligator\" import statement" }, { "span": { @@ -554,36 +578,6 @@ }, "summary": "Added the \"arctic-tern\" import statement" }, - { - "span": { - "delete": { - "start": [ - 2, - 1 - ], - "end": [ - 2, - 37 - ] - } - }, - "summary": "Deleted the otherName from \"baboon\" import statement" - }, - { - "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 34 - ] - } - }, - "summary": "Deleted the element from \"badger\" import statement" - }, { "span": { "delete": { @@ -666,30 +660,15 @@ "filePaths": [ "import.js" ], - "sha1": "d64ca338a92ed3c8bf4accf04cce6664434d8470", + "sha1": "f959bc243d5a53c6b9cfad8c2d13e361a35845f0", "gitDir": "test/corpus/repos/javascript", - "sha2": "6cf5d045aecc63d55a582bbc3644f033ad58e36d" + "sha2": "2adaab96ff3e868d0e8d91825c5acaa58f88a5e9" } ,{ "testCaseDescription": "javascript-import-replacement-test", "expectedResult": { "changes": { "import.js": [ - { - "span": { - "insert": { - "start": [ - 1, - 1 - ], - "end": [ - 1, - 38 - ] - } - }, - "summary": "Added the defaultMember from \"babirusa\" import statement" - }, { "span": { "replace": [ @@ -705,44 +684,17 @@ }, { "start": [ - 2, - 28 + 1, + 27 ], "end": [ - 2, - 36 + 1, + 37 ] } ] }, - "summary": "Replaced the \"foo\" string with the \"baboon\" string in the otherName from \"baboon\" import statement" - }, - { - "span": { - "replace": [ - { - "start": [ - 1, - 8 - ], - "end": [ - 1, - 21 - ] - }, - { - "start": [ - 2, - 13 - ], - "end": [ - 2, - 22 - ] - } - ] - }, - "summary": "Replaced the 'defaultMember' identifier with the 'otherName' identifier in the otherName from \"baboon\" import statement" + "summary": "Replaced the \"foo\" string with the \"babirusa\" string in the defaultMember from \"babirusa\" import statement" }, { "span": { @@ -759,17 +711,17 @@ }, { "start": [ - 3, - 25 + 2, + 28 ], "end": [ - 3, - 33 + 2, + 36 ] } ] }, - "summary": "Replaced the \"aardvark\" string with the \"badger\" string in the element from \"badger\" import statement" + "summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the * as otherName from \"baboon\" import statement" }, { "span": { @@ -786,17 +738,32 @@ }, { "start": [ - 3, - 10 + 2, + 13 ], "end": [ - 3, - 17 + 2, + 22 ] } ] }, - "summary": "Replaced the 'name' identifier with the 'element' identifier in the element from \"badger\" import statement" + "summary": "Replaced the 'name' identifier with the 'otherName' identifier in the * as otherName from \"baboon\" import statement" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 34 + ] + } + }, + "summary": "Added the { element } from \"badger\" import statement" }, { "span": { @@ -845,18 +812,30 @@ }, { "span": { - "insert": { - "start": [ - 7, - 1 - ], - "end": [ - 7, - 50 - ] - } + "replace": [ + { + "start": [ + 3, + 1 + ], + "end": [ + 3, + 30 + ] + }, + { + "start": [ + 7, + 1 + ], + "end": [ + 7, + 50 + ] + } + ] }, - "summary": "Added the defaultMember, * as element from \"barbet\" import statement" + "summary": "Replaced the { member } from \"ant\" import statement with the defaultMember, * as element from \"barbet\" import statement" }, { "span": { @@ -873,21 +852,6 @@ }, "summary": "Added the \"basilisk\" import statement" }, - { - "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 30 - ] - } - }, - "summary": "Deleted the member from \"ant\" import statement" - }, { "span": { "delete": { @@ -970,9 +934,9 @@ "filePaths": [ "import.js" ], - "sha1": "6cf5d045aecc63d55a582bbc3644f033ad58e36d", + "sha1": "2adaab96ff3e868d0e8d91825c5acaa58f88a5e9", "gitDir": "test/corpus/repos/javascript", - "sha2": "3013722a563d2868bf7bfe021bdfdfdff521b967" + "sha2": "2fbab0c52886d92b646d883a100a9fdf680e2eb5" } ,{ "testCaseDescription": "javascript-import-delete-replacement-test", @@ -1007,7 +971,7 @@ ] } }, - "summary": "Deleted the otherName from \"baboon\" import statement" + "summary": "Deleted the * as otherName from \"baboon\" import statement" }, { "span": { @@ -1022,7 +986,7 @@ ] } }, - "summary": "Deleted the element from \"badger\" import statement" + "summary": "Deleted the { element } from \"badger\" import statement" }, { "span": { @@ -1127,7 +1091,7 @@ ] } }, - "summary": "Deleted the name from \"aardvark\" import statement" + "summary": "Deleted the * as name from \"aardvark\" import statement" }, { "span": { @@ -1142,7 +1106,7 @@ ] } }, - "summary": "Deleted the member from \"ant\" import statement" + "summary": "Deleted the { member } from \"ant\" import statement" }, { "span": { @@ -1247,7 +1211,7 @@ ] } }, - "summary": "Added the otherName from \"baboon\" import statement" + "summary": "Added the * as otherName from \"baboon\" import statement" }, { "span": { @@ -1262,7 +1226,7 @@ ] } }, - "summary": "Added the element from \"badger\" import statement" + "summary": "Added the { element } from \"badger\" import statement" }, { "span": { @@ -1346,9 +1310,9 @@ "filePaths": [ "import.js" ], - "sha1": "3013722a563d2868bf7bfe021bdfdfdff521b967", + "sha1": "2fbab0c52886d92b646d883a100a9fdf680e2eb5", "gitDir": "test/corpus/repos/javascript", - "sha2": "2f86f9da336f0407a2ca39d0ee4a959091bb7952" + "sha2": "4265168a1d23c17faf4a5796e7f88398fe75ca39" } ,{ "testCaseDescription": "javascript-import-delete-test", @@ -1383,7 +1347,7 @@ ] } }, - "summary": "Deleted the name from \"aardvark\" import statement" + "summary": "Deleted the * as name from \"aardvark\" import statement" }, { "span": { @@ -1398,7 +1362,7 @@ ] } }, - "summary": "Deleted the member from \"ant\" import statement" + "summary": "Deleted the { member } from \"ant\" import statement" }, { "span": { @@ -1482,9 +1446,9 @@ "filePaths": [ "import.js" ], - "sha1": "2f86f9da336f0407a2ca39d0ee4a959091bb7952", + "sha1": "4265168a1d23c17faf4a5796e7f88398fe75ca39", "gitDir": "test/corpus/repos/javascript", - "sha2": "30944a87fbaf4af40445ddb8264003eedeec821f" + "sha2": "19f82dee332aacf5f8d30ed8e90df6a4b49bf3a5" } ,{ "testCaseDescription": "javascript-import-delete-rest-test", @@ -1519,7 +1483,7 @@ ] } }, - "summary": "Deleted the otherName from \"baboon\" import statement" + "summary": "Deleted the * as otherName from \"baboon\" import statement" }, { "span": { @@ -1534,7 +1498,7 @@ ] } }, - "summary": "Deleted the element from \"badger\" import statement" + "summary": "Deleted the { element } from \"badger\" import statement" }, { "span": { @@ -1618,7 +1582,7 @@ "filePaths": [ "import.js" ], - "sha1": "30944a87fbaf4af40445ddb8264003eedeec821f", + "sha1": "19f82dee332aacf5f8d30ed8e90df6a4b49bf3a5", "gitDir": "test/corpus/repos/javascript", - "sha2": "9610afd6cbcffec3359a682713065543f20fa1f3" + "sha2": "950c3ba11262666fa769fa105e42cbe99b392eda" }] diff --git a/test/corpus/repos/javascript b/test/corpus/repos/javascript index 9610afd6c..950c3ba11 160000 --- a/test/corpus/repos/javascript +++ b/test/corpus/repos/javascript @@ -1 +1 @@ -Subproject commit 9610afd6cbcffec3359a682713065543f20fa1f3 +Subproject commit 950c3ba11262666fa769fa105e42cbe99b392eda From 416a69e82361e996f1ff82392d1a20f6d542a398 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Fri, 21 Oct 2016 10:19:24 -0500 Subject: [PATCH 29/29] Point javascript repo to new location --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 10520323d..ff26a6e9d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -18,7 +18,7 @@ url = https://github.com/jashkenas/backbone [submodule "test/corpus/repos/javascript"] path = test/corpus/repos/javascript - url = https://github.com/rewinfrey/javascript + url = https://github.com/diff-fixtures/javascript [submodule "vendor/hspec-expectations-pretty-diff"] path = vendor/hspec-expectations-pretty-diff url = https://github.com/rewinfrey/hspec-expectations-pretty-diff