Skip to content

Commit

Permalink
Fix everthing showing up in commiting stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PabiGamito committed Nov 18, 2018
1 parent 93856fe commit 1dd55c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions process.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ let predicted = {};
function getPredictedSuggestion(prediction) {
let commands = [];
for (p of prediction.payload) {
if (predicted[p.displayName] != true && p.classification.score > 0.3) {
if (predicted[p.displayName] != true && p.classification.score > 0.7) {
predicted[p.displayName] = true;
switch (p.displayName) {
case "log": {
Expand Down Expand Up @@ -217,8 +217,6 @@ async function verbNounPairToCommand(verb, nouns, text, file_mapping) {
case "commit":
let files = nouns;

console.log(nouns);

if (nouns.length == 0) {
files = ["-A"];
} else if (nouns.length == 1) {
Expand Down

0 comments on commit 1dd55c8

Please sign in to comment.