1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
Commit Graph

8104 Commits

Author SHA1 Message Date
Rob Rix
45ce4bbf03 The interpreter specs don’t need to generate arbitrary vectors. 2016-08-10 09:26:58 -04:00
Rob Rix
04a4614dfc The diff specs don’t need to generate arbitrary vectors. 2016-08-10 09:21:58 -04:00
Rob Rix
f0466c0c43 Enable FlexibleContexts for the tests. 2016-08-10 09:15:42 -04:00
Rob Rix
1ce869b8d0 Avoid forAll/suchThat in the p/q tests.
This enables us to shrink properly.
2016-08-10 09:05:12 -04:00
Rob Rix
9261f19074 🔥 featureVector. 2016-08-09 16:34:37 -04:00
Rob Rix
4b2a7eaea4 Test featureVectorDecorator directly. 2016-08-09 16:34:10 -04:00
Rob Rix
1b59d2782f Add a function to compute positive integers. 2016-08-09 16:33:54 -04:00
Rob Rix
67034c067d 🔥 pqGrams. 2016-08-09 16:24:05 -04:00
Rob Rix
46c2e4d8e0 Test pqGramDecorator directly. 2016-08-09 16:23:38 -04:00
Rob Rix
e0ec5ad7d0 Export pqGramDecorator. 2016-08-09 16:18:53 -04:00
Rob Rix
15f0f9c47a Label arbitrary p,q-grams with the text, not the record. 2016-08-09 16:18:45 -04:00
Rob Rix
0facfdbb7f Reformat the algebra. 2016-08-09 16:10:56 -04:00
Rob Rix
50c52af354 Define padToSize in pqGramDecorator. 2016-08-09 16:09:23 -04:00
Rob Rix
89aa3dc96e Roll decorateTermWithFeatureVector into featureVectorDecorator. 2016-08-09 16:08:03 -04:00
Rob Rix
e0087f535a Correct the 📝 for pqGramDecorator. 2016-08-09 16:07:23 -04:00
Rob Rix
8e84a9026f 🔥 labelDecorator. 2016-08-09 16:06:24 -04:00
Rob Rix
b89892d0e1 Rename decorateTermWithPQGram to pqGramDecorator. 2016-08-09 16:06:12 -04:00
Rob Rix
6012dfd354 Compute the label in the p,q-gram decorator. 2016-08-09 16:05:42 -04:00
Rob Rix
404c0b7fd5 Rename decorateTermWithLabel to labelDecorator. 2016-08-09 16:02:54 -04:00
Rob Rix
bf3b8fdc3f 🔥 decorateTermWithPGram. 2016-08-09 16:00:19 -04:00
Rob Rix
3cbba53c18 Assign the stem in decorateTermWithPQGram. 2016-08-09 16:00:04 -04:00
Rob Rix
b966b56494 Move vmagnitude into unitVector. 2016-08-09 14:39:00 -04:00
Rob Rix
0cfa23fcc2 Extract the assignment of siblings. 2016-08-09 14:21:54 -04:00
Rob Rix
45fce4dffd Extract a function setting gram bases. 2016-08-09 13:11:10 -04:00
Rob Rix
4ad79e70d8 Extract the computation of the set of sibling labels. 2016-08-09 13:07:49 -04:00
Rob Rix
0cd9fa9e34 Correct the 📝 for decorateTermWithPQGram. 2016-08-09 11:10:04 -04:00
Rob Rix
6ab3e09c25 Implement featureVector in terms of the top-level unitVector binding. 2016-08-09 11:09:34 -04:00
Rob Rix
d255e16808 Correct the 📝 for decorateTermWithFeatureVector. 2016-08-09 11:08:44 -04:00
Rob Rix
c484a2c8fc Correct the 📝 for decorateTermWithPQGram. 2016-08-09 11:08:15 -04:00
Rob Rix
c63721cfd4 decorateTermWithPQGram calls out to decorateTermWithPGram. 2016-08-09 11:07:58 -04:00
Rob Rix
8d1fb84ed3 Idiomatic record construction. 2016-08-09 11:06:27 -04:00
Rob Rix
638d8eda23 📝 unitVector. 2016-08-09 11:05:35 -04:00
Rob Rix
71a42c2d98 Extract unitVector to the top level. 2016-08-09 11:05:32 -04:00
Rob Rix
5798a3b03d 🔥 decorateTermWithUnitVector. 2016-08-09 11:03:14 -04:00
Rob Rix
dc4b0be491 Extract the computation of the unit vector to the where clause. 2016-08-09 11:03:02 -04:00
Rob Rix
ccd734c117 Roll decorateTermWithUnitVector back into decorateTermWithFeatureVector. 2016-08-09 11:01:46 -04:00
Rob Rix
e369b445c2 Simplify the unit vector summation. 2016-08-09 10:57:25 -04:00
Rob Rix
4009d547a1 Revert "Add a unit vector decorator."
This reverts commit 94cdb43e577b4bf9381a34b1225c30163d3cac3f.
2016-08-09 10:51:17 -04:00
Rob Rix
dfffc15760 Add a unit vector decorator. 2016-08-08 16:56:15 -04:00
Rob Rix
076ad36229 🔥 some redundant parens. 2016-08-08 16:56:06 -04:00
Rob Rix
2d6857a51e Merge branch 'master' into precompute-p,q-grams 2016-08-08 16:48:47 -04:00
Rob Rix
0cfb700c23 Pad root labels out. 2016-08-08 16:47:33 -04:00
Rob Rix
3d4ea56ff3 Assign sibling labels to gram bases. 2016-08-08 16:47:03 -04:00
Rob Rix
23d4a0bd56 🔥 windowed. 2016-08-08 16:47:00 -04:00
Rob Rix
62e16b51cd 🔥 getGrams. 2016-08-08 16:46:56 -04:00
Rob Rix
832d8606a6 🔥 setBases. 2016-08-08 16:46:51 -04:00
Rob Rix
17bba1b762 Add a function to retrieve the head of a non-empty record. 2016-08-08 16:46:34 -04:00
Rob Rix
7603390361 Constrain the term functor to be Traversable. 2016-08-08 16:24:09 -04:00
Rob Rix
0c8b880aa6 Merge pull request #681 from github/improve-error-diff-summaries
Improve error diff summaries
2016-08-08 16:03:53 -04:00
joshvera
3a72b396ee Merge remote-tracking branch 'origin/master' into improve-error-diff-summaries 2016-08-08 15:41:27 -04:00