1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
Commit Graph

7032 Commits

Author SHA1 Message Date
Rob Rix
ce3b25d82d Merge branch 'fix-the-benchmarks' into push-benchmarks-to-graphite 2016-06-06 09:42:26 -04:00
Rob Rix
6f0bebe2fb Merge branch 'master' into fix-the-benchmarks 2016-06-06 09:28:53 -04:00
Rob Rix
955cd9c045 Merge remote-tracking branch 'origin/push-benchmarks-to-graphite' into push-benchmarks-to-graphite 2016-06-06 09:23:19 -04:00
Rob Rix
bfc28ec4a6 Merge branch 'master' into push-benchmarks-to-graphite 2016-06-06 09:22:36 -04:00
Rob Rix
6e66837cc0 Capitalize the Program category in the JSON fixtures. 2016-06-06 08:19:38 -04:00
Rob Rix
16207b03d1 Extract the term comparison relation. 2016-06-03 18:43:43 -04:00
Rob Rix
d3c23769e7 🔥 redundant parens. 2016-06-03 18:40:43 -04:00
Rob Rix
0f924f786c Assign the Error category. 2016-06-03 18:38:04 -04:00
Rob Rix
10b424cd47 Add an Error category. 2016-06-03 18:37:40 -04:00
Rob Rix
adca4a56a3 Assign the Program category. 2016-06-03 18:35:27 -04:00
Rob Rix
83b57fc643 Add a Category for the top-level scope. 2016-06-03 18:34:42 -04:00
Rob Rix
038bde4aaa Reformat to line Category constructors up.
This reverts commit 5ce35d2a39ff6b83abd19d0d9476cc75922a36fe.
2016-06-03 18:32:21 -04:00
Josh Vera
9b698b023b Merge pull request #593 from github/cache-cost-on-info
Cache cost on Info
2016-06-03 16:44:38 -04:00
Rob Rix
4d75f69e73 Reorder the comparable test before the equal terms test. 2016-06-03 16:37:09 -04:00
Rob Rix
a43be167f6 Merge branch 'master' into cache-cost-on-info 2016-06-03 16:24:02 -04:00
Josh Vera
6f91b5b86a Merge pull request #592 from github/construct-info-with-record-syntax
Construct Info with record syntax
2016-06-03 16:22:05 -04:00
Rob Rix
7802d4916c 🔥 FlexibleInstances & RecordWildCards pragmas. 2016-06-03 16:02:06 -04:00
Rob Rix
a571d9746d Add RecordWildCards and FlexibleInstances to our default extensions. 2016-06-03 15:59:58 -04:00
Rob Rix
9247980114 Revert "Don’t change diff sizes; don’t traverse subtrees to compute cost in SES."
This reverts commit 8735e65ea2de458116db0a58621083003a9129c0.
2016-06-03 15:31:07 -04:00
Rob Rix
8b98d25642 Revert "Go back to taking the absolute value, even tho it’s wrong."
This reverts commit 5278cd5e686406e3d08bbdafd980d813f1f33d1f.
2016-06-03 15:31:02 -04:00
Rob Rix
410629b165 Go back to taking the absolute value, even tho it’s wrong.
This is still a poor approximation to the edit distance, but it’s a
better one than `sum`, and it’s still very cheap.
2016-06-03 15:29:28 -04:00
Rob Rix
ec84afcadb Compare terms sans annotations.
🎩 @rewinfrey.
2016-06-03 15:28:15 -04:00
Rob Rix
0976c1e452 Don’t change diff sizes; don’t traverse subtrees to compute cost in SES. 2016-06-03 15:09:10 -04:00
Rob Rix
58363fc4de Assign costs in lineByLineParser. 2016-06-03 12:49:08 -04:00
Rob Rix
8dd124876d Assign leaf costs in breakDownLeavesByWord. 2016-06-03 12:48:54 -04:00
Rob Rix
33791e3ed6 Compute term costs at parse time, not in a second pass. 2016-06-03 12:14:06 -04:00
Rob Rix
02d0cd1507 Generalize SES over term and edit type parameters. 2016-06-03 09:27:33 -04:00
Rob Rix
bb83649c6c Simplify how we compute costs in patches. 2016-06-03 09:12:41 -04:00
Rob Rix
27333b5b23 Extract the cached diff costs. 2016-06-03 03:08:09 -04:00
Rob Rix
f39e3df33b Pass a DiffConstructor to diffTerms. 2016-06-03 02:59:48 -04:00
Rob Rix
6e256a53a5 Don’t bind variables we don’t use. 2016-06-03 02:44:12 -04:00
Rob Rix
0563bc58c1 Export the DiffConstructor type synonym. 2016-06-03 02:43:43 -04:00
Rob Rix
35327522b3 📝 DiffConstructor. 2016-06-03 02:42:27 -04:00
Rob Rix
9c07abcc07 Use a DiffConstructor to build diffs in constructAndRun & run. 2016-06-03 02:41:25 -04:00
Rob Rix
3e7784323f Stub in a DiffConstructor type synonym. 2016-06-03 02:41:01 -04:00
Rob Rix
e2860055e4 Correct the docs of Constructor. 2016-06-03 02:32:03 -04:00
Rob Rix
a27786d226 Cache term costs. 2016-06-03 01:40:36 -04:00
Rob Rix
4bfa1b72c4 Simplify diffAt using pattern guards. 2016-06-02 23:40:02 -04:00
Rob Rix
66efabda26 Simplify construction of deletions/insertions. 2016-06-02 23:36:18 -04:00
Rob Rix
bcbb590b1f Add a cost field to Info. 2016-06-02 23:34:16 -04:00
Rob Rix
0c05e3f29b Don’t bind an unused parameter. 2016-06-02 23:30:01 -04:00
Rob Rix
f3b0cd33da A Constructor takes an Info directly. 2016-06-02 23:06:09 -04:00
Rob Rix
15d110ef97 These, too, are singular. 2016-06-02 22:58:43 -04:00
Rob Rix
85bed9769a Use record syntax to make (like a tree and) leaves. 2016-06-02 22:56:59 -04:00
Rob Rix
db19380c36 These are not plural. 2016-06-02 22:56:10 -04:00
Rob Rix
f2eccbb275 🔥 the contortionist pointfree definition of info. 2016-06-02 22:55:11 -04:00
Rob Rix
3032a7893a Define assignKey with a case expression. 2016-06-02 22:54:02 -04:00
Rob Rix
42172ee5fd Avoid pattern matching on Info. 2016-06-02 22:45:05 -04:00
Rob Rix
7741cee48d Use RecordWildcards to clean up some uses of Info. 2016-06-02 22:43:47 -04:00
Rob Rix
9a35557c6f Rephrase replaceIn using definitions in the where clause. 2016-06-02 22:43:25 -04:00