1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 17:32:05 +03:00
Commit Graph

169 Commits

Author SHA1 Message Date
Rob Rix
db5307a365 Benchmark diffing within leaves separately. 2015-11-12 15:07:00 -05:00
joshvera
2fc0349be3 Pass lines and columns to refined leaves 2015-11-09 15:21:59 -05:00
joshvera
f77b899377 Merge branch 'master' into line-numbers 2015-11-09 12:06:48 -05:00
joshvera
576457a3fe take a before and after line number range 2015-11-08 15:21:14 -05:00
Rob Rix
128132ac26 Correct the equality test over terms. 2015-11-05 17:38:40 -05:00
Rob Rix
95596ba60c Use the same cost function as for the overall diff. 2015-11-05 17:37:01 -05:00
Rob Rix
9be8a18bad Use a better cost function. 2015-11-05 17:36:01 -05:00
Rob Rix
c441eaf862 Use the correct index. 2015-11-05 17:34:28 -05:00
Rob Rix
99d3fcb1ab Allow replacement of characters. 2015-11-05 17:30:29 -05:00
Rob Rix
b6d59ff7ef Refine leaves in the output diff. 2015-11-05 17:26:14 -05:00
Rob Rix
82b40bd043 Partial application. 2015-11-05 17:26:06 -05:00
Rob Rix
e4db8a5f14 Refine patches. 2015-11-05 17:18:56 -05:00
Rob Rix
e668deb9f4 Produce the appropriate diffs. 2015-11-05 17:11:09 -05:00
Rob Rix
c6ec6fa311 Add a property computing a single-element range from an index. 2015-11-05 17:10:41 -05:00
Rob Rix
ead261d459 Disallow replacements. 2015-11-05 17:00:53 -05:00
Rob Rix
21ab49a97b Allow replacements. 2015-11-05 16:56:18 -05:00
Rob Rix
e9e962dfe5 Do SES on the substrings. 2015-11-05 16:53:16 -05:00
Rob Rix
8872c67c52 Only match leaves. 2015-11-05 16:52:54 -05:00
Rob Rix
6327829f6e Replace pures. 2015-11-05 16:49:24 -05:00
Rob Rix
4d4d077e1b Stub in a leaf replacement refinement function. 2015-11-05 16:23:49 -05:00
joshvera
eff47e0a3e Construct terms with line and column info 2015-11-04 15:12:22 -05:00
joshvera
7f014eff8e Merge branch 'master' into syntax-highlighting 2015-11-03 17:09:06 -05:00
Rob Rix
ad3462b135 Terms are annotated with their categories in the JSON too. 2015-11-03 13:20:38 -05:00
Rob Rix
75400c4065 Serialize annotations out in full. 2015-11-03 13:08:32 -05:00
Rob Rix
db614b5b16 Benchmark loading sources. 2015-11-03 11:56:01 -05:00
Rob Rix
a0b3738ee2 Benchmark parsing both inputs. 2015-11-03 10:20:15 -05:00
Rob Rix
74fa7ba1b4 Benchmark diffing. 2015-11-03 10:20:11 -05:00
Rob Rix
c1b7993895 Benchmark formatting with a label. 2015-11-03 10:20:02 -05:00
Rob Rix
2651c5ac51 benchmark rethrows. 2015-11-03 10:19:51 -05:00
Rob Rix
2ec0a752a0 Remove an unused value. 2015-11-02 18:06:54 -05:00
Rob Rix
44dbf62d7c Print and benchmark the diff. 2015-11-02 16:03:09 -05:00
Rob Rix
b1f1e29c13 Add a typealias for diffs. 2015-11-02 14:18:30 -05:00
Rob Rix
e4310be948 Only compute the JSON &c. for split diffs. 2015-11-02 13:20:42 -05:00
Rob Rix
202bc2b31b We’ll always have a pair of sources. 2015-11-02 13:06:23 -05:00
Rob Rix
b9f739844f Arguments are expected to contain pairs of sources. 2015-11-02 13:04:48 -05:00
Rob Rix
6d2729944d Use the parser to get our sources out. 2015-11-02 12:48:21 -05:00
Rob Rix
4b295c1c3f Correct the line range. 2015-10-30 18:16:46 -04:00
Rob Rix
c1d85ae7ef Fall back to line by line diffing. 2015-10-30 18:15:16 -04:00
Rob Rix
214c3cb2b4 Add a function parsing an input string into its component lines. 2015-10-30 18:13:22 -04:00
Rob Rix
cfe655c42e NSURL(string:) “succeeds” with paths, but makes broken URLs. 2015-10-30 17:49:59 -04:00
Rob Rix
67dae454f0 Path extensions can be non-nil and empty. 2015-10-30 17:25:19 -04:00
Rob Rix
49f8e54409 Use a computed property. 2015-10-30 17:21:47 -04:00
Rob Rix
ec579b2053 Allow the fragment to specify a type. 2015-10-30 17:16:02 -04:00
Rob Rix
62cb428ea6 Parse JSON with the JSON parser. 2015-10-30 14:56:38 -04:00
Rob Rix
4bd9a4d600 Use a switch statement. 2015-10-30 14:56:18 -04:00
Rob Rix
9476deb5d6 Convert CofreeJSON to Term. 2015-10-30 14:56:05 -04:00
Rob Rix
1ce9b60e2e Copy benchmarking in from doubt-json. 2015-10-30 13:59:22 -04:00
Rob Rix
40570c639c Use the parser function. 2015-10-30 13:58:43 -04:00
Rob Rix
d1d59c61ac Abstract a function to select the parser. 2015-10-30 13:58:19 -04:00
Rob Rix
ab49d4ab53 Get the path from the info plist. 2015-10-29 18:23:32 -04:00