From 000d90bc494d90ebd6f72441865ba3976ebcdd57 Mon Sep 17 00:00:00 2001 From: Jakub Adamski Date: Wed, 15 Jun 2022 12:06:09 +0200 Subject: [PATCH] fixes --- semantic_parser/gramatics/issue.jsgf | 2 +- semantic_parser/gramatics/pullrequest.jsgf | 2 +- semantic_parser/gramatics/tests.jsgf | 2 +- system/apimock.py | 4 +++- system/generator_jezyka_nautalnego.py | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/semantic_parser/gramatics/issue.jsgf b/semantic_parser/gramatics/issue.jsgf index a5a3d2a..e1f6116 100644 --- a/semantic_parser/gramatics/issue.jsgf +++ b/semantic_parser/gramatics/issue.jsgf @@ -16,7 +16,7 @@ public = (pokaz [mi] [moje] | wyswietl [mi] [moje] | powiedz mi o| przed = [nowe] | [nowych]; - = {repozytoria}; + = {repo}; = (dwa | dwoch | dwojki) | (trzy | trzech | trojki ) | (cztery | czterech) | (piec | pieciu ) | (szesc | szesciu ) | (siedem| siedmiu) | (osiem | osmiu) | (dziewiec | dziewieciu ); diff --git a/semantic_parser/gramatics/pullrequest.jsgf b/semantic_parser/gramatics/pullrequest.jsgf index 7c2d011..964e358 100644 --- a/semantic_parser/gramatics/pullrequest.jsgf +++ b/semantic_parser/gramatics/pullrequest.jsgf @@ -8,7 +8,7 @@ public = {action} [w = [nowe] | [nowych]; - = {repozytoria}; + = {repo}; = pull requesty | pull requestow; diff --git a/semantic_parser/gramatics/tests.jsgf b/semantic_parser/gramatics/tests.jsgf index 8c9bd3a..f5079d4 100644 --- a/semantic_parser/gramatics/tests.jsgf +++ b/semantic_parser/gramatics/tests.jsgf @@ -18,7 +18,7 @@ public = (pokaz mi | wyswietl mi | powiedz mi o | przedstaw mi) [] = [nowe] | [nowych]; - = {repozytoria}; + = {repo}; = testy | testach | test; diff --git a/system/apimock.py b/system/apimock.py index 8749bfc..83d5db0 100644 --- a/system/apimock.py +++ b/system/apimock.py @@ -1,5 +1,7 @@ repositoriesMock = ["repo1", "repo2", "repo3", "repo4"] -repositoriesPublicMock = ["repo1", "repo2", "repo3"]issuesMock = [ +repositoriesPublicMock = ["repo1", "repo2", "repo3"] + +issuesMock = [ { "name": "Issue 1", "description": "Description of issue 1", diff --git a/system/generator_jezyka_nautalnego.py b/system/generator_jezyka_nautalnego.py index 7e75f97..52e6591 100644 --- a/system/generator_jezyka_nautalnego.py +++ b/system/generator_jezyka_nautalnego.py @@ -57,7 +57,7 @@ error_time = ["Podano nie prawidłowy czas, popraw ramy czasowe", "Czas jest nie error_repo = ["Podano nieprawidłową nazwę repozytorium", "Podaj ponownie nazwę repozytorium, ponieważ podania nie prawidłową"] def find(args, key): - print(args, key) + #print(args, key) for item in args: if item[0] == key: return item