1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
Commit Graph

57 Commits

Author SHA1 Message Date
Rob Rix
f39e3df33b Pass a DiffConstructor to diffTerms. 2016-06-03 02:59:48 -04:00
Rob Rix
a27786d226 Cache term costs. 2016-06-03 01:40:36 -04:00
Rob Rix
bcbb590b1f Add a cost field to Info. 2016-06-02 23:34:16 -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
9a35557c6f Rephrase replaceIn using definitions in the where clause. 2016-06-02 22:43:25 -04:00
Rob Rix
67d470aac6 Rebuild info using record syntax. 2016-06-02 19:10:59 -04:00
Rob Rix
43757e8a61 🔥 Categorizable.
This reverts commit be59b0c161362baae63308478177819828be7e1b.
2016-06-02 19:10:41 -04:00
joshvera
ce219977a6 formatting 2016-06-01 17:55:47 -04:00
joshvera
0157b6588c Return the entire diff as a deletion or insertion when a source blob is empty 2016-06-01 17:41:12 -04:00
joshvera
06a06eb5ac remove unused import 2016-06-01 12:16:59 -04:00
joshvera
eb4b280dfb s/Unknown/program 2016-05-31 16:44:44 -04:00
joshvera
0244e9a929 Store a category in Info instead of a Set 2016-05-31 16:13:01 -04:00
Rob Rix
7f3f408fb1 🔥 the absolute difference cost function. 2016-05-30 14:06:24 -04:00
Rob Rix
338ed4a5ce Revert "Represent term/diff costs as Rationals."
This reverts commit aea4e7ec784422696631156415855eab920af38a.
2016-05-30 14:05:23 -04:00
Rob Rix
e8f82b0845 Go back to using the cached term sizes. 2016-05-30 13:52:23 -04:00
Rob Rix
88beca1557 Rename the parameter. 2016-05-30 13:43:20 -04:00
Rob Rix
21e0a31472 Represent term/diff costs as Rationals. 2016-05-30 10:47:16 -04:00
Rob Rix
de6d7edec2 Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	semantic-diff.cabal
#	src/Alignment.hs
#	src/Control/Comonad/Cofree.hs
#	src/Data/Adjoined.hs
#	src/Diffing.hs
#	src/Interpreter.hs
#	src/Prologue.hs
#	src/Renderer/JSON.hs
#	src/Renderer/Patch.hs
#	src/Renderer/Split.hs
#	src/SplitDiff.hs
#	src/Term.hs
#	test/AlignmentSpec.hs
#	test/ArbitraryTerm.hs
#	test/PatchOutputSpec.hs
2016-05-27 09:35:26 -04:00
Rob Rix
cfe15a5afa Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	src/Alignment.hs
#	src/Control/Comonad/Cofree.hs
#	src/Data/Adjoined.hs
#	src/Data/Align.hs
#	src/Data/Bifunctor/These.hs
#	src/Data/Coalescent.hs
#	src/Data/Copointed.hs
#	src/Data/Functor/Both.hs
#	src/Data/Option.hs
#	src/Line.hs
#	src/Patch.hs
#	src/Range.hs
#	src/Renderer/JSON.hs
#	src/Renderer/Patch.hs
#	src/Renderer/Split.hs
#	src/SplitDiff.hs
#	stack.yaml
#	test/AlignmentSpec.hs
#	test/CorpusSpec.hs
#	test/Data/Adjoined/Spec.hs
#	test/Data/Functor/Both/Spec.hs
2016-05-26 15:25:45 -04:00
joshvera
e3559641ff s/headF.runCofree/extract 2016-05-26 14:55:46 -04:00
joshvera
473ec980b1 Merge remote-tracking branch 'origin/master' into diff-summaries 2016-05-26 13:40:54 -04:00
joshvera
8180b37285 Use Protolude via the Prologue module and add NoImplicitPrelude 2016-05-26 12:58:04 -04:00
joshvera
68948287f8 Add a summary renderer 2016-05-18 12:01:16 -04:00
joshvera
48c7498ce2 Define Term in terms of Cofree 2016-05-04 14:37:24 -04:00
joshvera
9f8fc439b3 typealias Annotated to CofreeF 2016-05-03 14:19:10 -04:00
joshvera
4eedcc4a70 Fix up other catas 2016-05-03 12:36:59 -04:00
joshvera
6c07d4dc55 WIP CofreeF 2016-05-03 12:17:38 -04:00
Rob Rix
97e4229f1b Use record syntax to update the info. 2016-04-27 13:55:02 -04:00
Rob Rix
e3ace6408c Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	test/AlignmentSpec.hs
#	test/PatchOutputSpec.hs
2016-04-14 12:57:45 -04:00
Rob Rix
63a3b69c24 Split replaceIn across several lines. 2016-04-12 18:00:09 -04:00
Rob Rix
694567f8e3 Use the absolute difference cost. 2016-04-12 11:53:56 -04:00
Rob Rix
1d639ce8eb Compute the absolute difference of a diff as its cost. 2016-04-12 11:53:51 -04:00
Rob Rix
d872b5ffff Add a cost function which sums diff sizes, not just term sizes. 2016-04-12 11:46:37 -04:00
Rob Rix
851d53fa07 Recompute term sizes after replacing multi-word leaves. 2016-04-12 11:22:02 -04:00
Rob Rix
da4fc09e82 Reformat across lines. 2016-04-12 11:13:29 -04:00
Rob Rix
e6c81e1c22 🔥 some redundant imports & bindings. 2016-04-12 04:44:12 -04:00
Rob Rix
3239eaf551 Compute diff costs via foldMap. 2016-04-11 16:51:10 -04:00
Rob Rix
465c1f9ab7 Use the cached term sizes to diff. 2016-04-11 15:09:45 -04:00
Rob Rix
2a08e059d2 Add a function to compute the cost from the cached term sizes. 2016-04-11 15:09:21 -04:00
Rob Rix
71e8454fb4 Add a size field to Info. 2016-04-11 15:02:58 -04:00
Rob Rix
4fb2c30892 Pass the cost function to interpret. 2016-04-11 14:49:25 -04:00
joshvera
a553709112 Specialize Renderer to Text 2016-04-04 17:20:26 -04:00
joshvera
506abacbc6 Document use of strictness in diffFiles 2016-04-04 17:03:35 -04:00
joshvera
cf898c66c6 Strictly render in diffFiles 2016-04-01 15:35:38 -04:00
Rob Rix
e8fbe8c789 Move Info into its own module. 2016-03-30 17:26:52 -04:00
Rob Rix
2c91333d16 Use GeneralizedNewtypeDeriving to clean up Source.
O(1) null, and far fewer symbol collisions.
2016-03-11 18:31:01 -05:00
Rob Rix
ae149c94ff Use runBothWith to tidy up a few computations. 2016-02-29 19:43:57 -05:00
Rob Rix
0626228917 Data.Bifunctor.Join is actually Data.Functor.Both. 2016-02-28 21:29:59 -05:00
Rob Rix
ea87105b4b Use Join for sources everywhere. 2016-02-28 21:10:56 -05:00