id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
49656131_92
{ "fields": [ { "declarator": "DECK_LABEL = \"label\"", "modifier": "private static final", "original_string": "private static final String DECK_LABEL = \"label\";", "type": "String", "var_name": "DECK_LABEL" }, { "declarator": "PUBLISHER = \"A Publisher\"", "modi...
{ "body": "@Test\n public void shouldBuildImportSpecWithLockSet() throws ImportException, JSONException {\n jsonObjectToLoad.put(JsonKeys.DECK_LABEL, DECK_LABEL);\n jsonObjectToLoad.put(JsonKeys.LOCKED, true);\n TxcImportUtility.ImportSpec importSpec =\n txcImportUtility.buildIm...
{ "fields": [ { "declarator": "INDEX_FILENAME = \"card_deck.csv\"", "modifier": "private static final", "original_string": "private static final String INDEX_FILENAME = \"card_deck.csv\";", "type": "String", "var_name": "INDEX_FILENAME" }, { "declarator": "ALT_INDEX_FIL...
{ "body": "@NonNull\n public ImportSpec buildImportSpec(File dir, String hash, JSONObject json) throws ImportException {\n ImportSpec spec;\n try {\n String deckLabel = json.getString(JsonKeys.DECK_LABEL);\n String publisher = json.optString(JsonKeys.PUBLISHER);\n Str...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_119
{ "fields": [ { "declarator": "nextButton", "modifier": "private", "original_string": "private NextButton nextButton;", "type": "NextButton", "var_name": "nextButton" } ], "file": "app/src/test/java/org/mercycorps/translationcards/view/NextButtonTest.java", "identifier": "N...
{ "body": "@Test\n public void shouldDisableNextButton() {\n nextButton.disable();\n\n assertFalse(nextButton.isClickable());\n\n TextView nextButtonLabelText = (TextView) nextButton.findViewById(R.id.next_button_text);\n assertEquals(getColor(nextButton.getContext(), R.color.textDisabl...
{ "fields": [ { "declarator": "nextButtonText", "modifier": "@Bind(R.id.next_button_text)", "original_string": "@Bind(R.id.next_button_text)TextView nextButtonText;", "type": "TextView", "var_name": "nextButtonText" }, { "declarator": "nextButtonImage", "modifier"...
{ "body": "public void disable() {\n this.setClickable(false);\n nextButtonText.setTextColor(ContextCompat.getColor(getContext(), R.color.textDisabled));\n nextButtonImage.setBackgroundResource(R.drawable.forward_arrow_disabled);\n }", "class_method_signature": "NextButton.disable()", "con...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_118
{ "fields": [ { "declarator": "nextButton", "modifier": "private", "original_string": "private NextButton nextButton;", "type": "NextButton", "var_name": "nextButton" } ], "file": "app/src/test/java/org/mercycorps/translationcards/view/NextButtonTest.java", "identifier": "N...
{ "body": "@Test\n public void shouldEnableNextButton() {\n nextButton.enable();\n\n assertTrue(nextButton.isClickable());\n\n TextView nextButtonLabelText = (TextView) nextButton.findViewById(R.id.next_button_text);\n assertEquals(getColor(nextButton.getContext(), R.color.primaryTextCo...
{ "fields": [ { "declarator": "nextButtonText", "modifier": "@Bind(R.id.next_button_text)", "original_string": "@Bind(R.id.next_button_text)TextView nextButtonText;", "type": "TextView", "var_name": "nextButtonText" }, { "declarator": "nextButtonImage", "modifier"...
{ "body": "public void enable() {\n this.setClickable(true);\n nextButtonText.setTextColor(ContextCompat.getColor(getContext(), R.color.primaryTextColor));\n nextButtonImage.setBackgroundResource(R.drawable.forward_arrow);\n }", "class_method_signature": "NextButton.enable()", "constructor...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_93
{ "fields": [ { "declarator": "DECK_LABEL = \"label\"", "modifier": "private static final", "original_string": "private static final String DECK_LABEL = \"label\";", "type": "String", "var_name": "DECK_LABEL" }, { "declarator": "PUBLISHER = \"A Publisher\"", "modi...
{ "body": "@Test\n public void shouldBuildImportSpecWithDictionariesWhenPresent() throws ImportException, JSONException {\n jsonObjectToLoad.put(JsonKeys.DECK_LABEL, DECK_LABEL);\n JSONArray currentDictionaries = new JSONArray(DICTIONARIES_AS_JSON);\n jsonObjectToLoad.put(JsonKeys.DICTIONARIES...
{ "fields": [ { "declarator": "INDEX_FILENAME = \"card_deck.csv\"", "modifier": "private static final", "original_string": "private static final String INDEX_FILENAME = \"card_deck.csv\";", "type": "String", "var_name": "INDEX_FILENAME" }, { "declarator": "ALT_INDEX_FIL...
{ "body": "@NonNull\n public ImportSpec buildImportSpec(File dir, String hash, JSONObject json) throws ImportException {\n ImportSpec spec;\n try {\n String deckLabel = json.getString(JsonKeys.DECK_LABEL);\n String publisher = json.optString(JsonKeys.PUBLISHER);\n Str...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_5
{ "fields": [ { "declarator": "NO_VALUE = \"\"", "modifier": "private static final", "original_string": "private static final String NO_VALUE = \"\";", "type": "String", "var_name": "NO_VALUE" }, { "declarator": "deck", "modifier": "private", "original_strin...
{ "body": "@Test\n public void getCreationDate_shouldFormatCreationDate() {\n assertThat(deck.getCreationDateString(), is(\"02/08/16\"));\n }", "class_method_signature": "DeckTest.getCreationDate_shouldFormatCreationDate()", "constructor": false, "full_signature": "@Test public void getCreationDate...
{ "fields": [ { "declarator": "title", "modifier": "private", "original_string": "private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "modifier": "private", "original_string": "private String author;", "type": "St...
{ "body": "public String getCreationDateString() {\n Date date = new Date(timestamp);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yy\", Locale.US);\n return dateFormat.format(date);\n }", "class_method_signature": "Deck.getCreationDateString()", "constructor": false, "fu...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_85
{ "fields": [ { "declarator": "languagesImportUtility", "modifier": "private static", "original_string": "private static LanguagesImportUtility languagesImportUtility;", "type": "LanguagesImportUtility", "var_name": "languagesImportUtility" }, { "declarator": "expectedV...
{ "body": "@Test\n public void shouldRemoveCharactersAfterTwoLetterIsoCode() throws IOException {\n Map<String, List<String>> actualValues = languagesImportUtility.getLanguageMap();\n\n assertEquals(expectedValues, actualValues);\n }", "class_method_signature": "LanguagesImportUtilityTest.should...
{ "fields": [ { "declarator": "TAG = LanguagesImportUtility.class.getName()", "modifier": "private static final", "original_string": "private static final String TAG = LanguagesImportUtility.class.getName();", "type": "String", "var_name": "TAG" }, { "declarator": "lang...
{ "body": "public Map<String, List<String>> getLanguageMap() {\n return languageMap;\n }", "class_method_signature": "LanguagesImportUtility.getLanguageMap()", "constructor": false, "full_signature": "public Map<String, List<String>> getLanguageMap()", "identifier": "getLanguageMap", "invocations"...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_11
{ "fields": [ { "declarator": "A_LANGUAGE = \"A Language\"", "modifier": "private static final", "original_string": "private static final String A_LANGUAGE = \"A Language\";", "type": "String", "var_name": "A_LANGUAGE" }, { "declarator": "presenter", "modifier": "...
{ "body": "@Test\n public void shouldSetBitMap() {\n presenter.setBitmaps();\n\n verify(view).setActivityBitmap(R.id.enter_deck_destination_image, R.drawable.enter_phrase_image);\n }", "class_method_signature": "EnterDeckDestinationPresenterTest.shouldSetBitMap()", "constructor": false, "ful...
{ "fields": [ { "declarator": "REQUEST_CODE = 0", "modifier": "private static final", "original_string": "private static final int REQUEST_CODE = 0;", "type": "int", "var_name": "REQUEST_CODE" }, { "declarator": "view", "modifier": "private final", "original...
{ "body": "public void setBitmaps() {\n view.setActivityBitmap(R.id.enter_deck_destination_image, R.drawable.enter_phrase_image);\n }", "class_method_signature": "EnterDeckDestinationPresenter.setBitmaps()", "constructor": false, "full_signature": "public void setBitmaps()", "identifier": "setBitmap...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_122
{ "fields": [ { "declarator": "IS_NOT_CENTERED = 0", "modifier": "private static final", "original_string": "private static final int IS_NOT_CENTERED = 0;", "type": "int", "var_name": "IS_NOT_CENTERED" }, { "declarator": "IS_CENTERED = -1", "modifier": "private st...
{ "body": "@Test\n public void shouldShowMyDecksViewWhenDecksArePresent() {\n ArrayList<Deck> decks = listWithOneDeck();\n when(deckRepository.getAllDecks()).thenReturn(decks);\n MyDecksPresenter myDecksPresenter = new MyDecksPresenter(view, deckRepository);\n\n myDecksPresenter.refresh...
{ "fields": [ { "declarator": "IS_NOT_CENTERED = 0", "modifier": "private static final", "original_string": "private static final int IS_NOT_CENTERED = 0;", "type": "int", "var_name": "IS_NOT_CENTERED" }, { "declarator": "IS_CENTERED = RelativeLayout.TRUE", "modif...
{ "body": "public void refreshListFooter() {\n if (decks.isEmpty()) {\n view.emptyViewState();\n view.updateMyDeckListCentered(IS_CENTERED);\n } else {\n view.nonEmptyViewState();\n view.updateMyDeckListCentered(IS_NOT_CENTERED);\n }\n }", "class_m...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_46
{ "fields": [ { "declarator": "presenter", "modifier": "private", "original_string": "private EnterDeckSourceLanguagePresenter presenter;", "type": "EnterDeckSourceLanguagePresenter", "var_name": "presenter" }, { "declarator": "activity", "modifier": "private", ...
{ "body": "@Test\n public void shouldStartLanguageSelectorActivityForAResultWhenLanguageIsClicked() {\n presenter.sourceLanguageClicked();\n\n verify(activity).startActivityForResult(LanguageSelectorActivity.class, 0);\n }", "class_method_signature": "EnterDeckSourceLanguagePresenterTest.shouldS...
{ "fields": [ { "declarator": "REQUEST_CODE = 0", "modifier": "private final", "original_string": "private final int REQUEST_CODE = 0;", "type": "int", "var_name": "REQUEST_CODE" }, { "declarator": "activity", "modifier": "private", "original_string": "priva...
{ "body": "public void sourceLanguageClicked() {\n activity.startActivityForResult(LanguageSelectorActivity.class, REQUEST_CODE);\n }", "class_method_signature": "EnterDeckSourceLanguagePresenter.sourceLanguageClicked()", "constructor": false, "full_signature": "public void sourceLanguageClicked()", ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_134
{ "fields": [ { "declarator": "TRANSLATION_LABEL = \"Test Translation\"", "modifier": "public static final", "original_string": "public static final String TRANSLATION_LABEL = \"Test Translation\";", "type": "String", "var_name": "TRANSLATION_LABEL" }, { "declarator": "...
{ "body": "@Test\n public void shouldShowAlertDialogWhenDeleteClicked() throws Exception {\n View resultingView = cardListAdapter.getView(0, null, null);\n resultingView.findViewById(R.id.translation_card_delete).performClick();\n AlertDialog dialog = ShadowAlertDialog.getLatestAlertDialog();\...
{ "fields": [ { "declarator": "translationService", "modifier": "private", "original_string": "private TranslationService translationService;", "type": "TranslationService", "var_name": "translationService" }, { "declarator": "dictionaryService", "modifier": "priv...
{ "body": "@Override\n public View getView(int position, View translationItemView, ViewGroup parent) {\n Translation item = getItem(position);\n TranslationCardItem cardItem;\n if (translationItemView == null) {\n cardItem = new TranslationCardItem(context);\n cardItem.se...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_50
{ "fields": [ { "declarator": "NO_DECK_TITLE = \"\"", "modifier": "private static final", "original_string": "private static final String NO_DECK_TITLE = \"\";", "type": "String", "var_name": "NO_DECK_TITLE" }, { "declarator": "A_DECK_TITLE = \"a deck title\"", "m...
{ "body": "@Test\n public void shouldStartEnterDeckSourceLanguageActivityWhenADeckTitleExists() {\n when(newDeckContext.getDeckTitle()).thenReturn(A_DECK_TITLE);\n\n presenter.nextButtonClicked();\n\n verify(activity).startActivityWithClass(EnterDeckSourceLanguageActivity.class);\n }", "c...
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private EnterDeckTitleView activity;", "type": "EnterDeckTitleView", "var_name": "activity" }, { "declarator": "newDeckContext", "modifier": "private", "original_string": "p...
{ "body": "public void nextButtonClicked() {\n if (isDeckTitleEmpty()) return;\n activity.startActivityWithClass(EnterDeckSourceLanguageActivity.class);\n }", "class_method_signature": "EnterDeckTitlePresenter.nextButtonClicked()", "constructor": false, "full_signature": "public void nextButton...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_70
{ "fields": [ { "declarator": "languageService", "modifier": "private", "original_string": "private LanguageService languageService;", "type": "LanguageService", "var_name": "languageService" }, { "declarator": "languagesImportUtility", "modifier": "private", ...
{ "body": "@Test\n public void shouldReturnCorrectIsoCodeForArabic() throws Exception {\n assertEquals(\"fa\", languageService.getIsoForLanguage(\"Persian\"));\n }", "class_method_signature": "LanguageServiceTest.shouldReturnCorrectIsoCodeForArabic()", "constructor": false, "full_signature": "@Test...
{ "fields": [ { "declarator": "languageMap", "modifier": "private final", "original_string": "private final Map<String, List<String>> languageMap;", "type": "Map<String, List<String>>", "var_name": "languageMap" }, { "declarator": "INVALID_ISO_CODE = \"xx\"", "mod...
{ "body": "public String getIsoForLanguage(String label) {\n if (label != null) {\n for (String isoCode : languageMap.keySet()) {\n if (languageMap.get(isoCode).contains(getTitleCaseName(label.trim()))) {\n return isoCode;\n }\n }\n ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_114
{ "fields": [ { "declarator": "DEFAULT_DICTIONARY_LABEL = \"Dictionary\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_DICTIONARY_LABEL = \"Dictionary\";", "type": "String", "var_name": "DEFAULT_DICTIONARY_LABEL" }, { "decla...
{ "body": "@Test\n public void shouldNotSetDeleteClickListenerIfCardLocked() {\n Deck basicDeck = new Deck(\"Test Deck\", \"\", \"1\", 1, true, \"Language\");\n when(deckService.currentDeck()).thenReturn(basicDeck);\n TranslationCardItem translationCardItem = getDefaultTranslationCard();\n ...
{ "fields": [ { "declarator": "TAG = \"TranslationCardItem\"", "modifier": "private static final", "original_string": "private static final String TAG = \"TranslationCardItem\";", "type": "String", "var_name": "TAG" }, { "declarator": "translation", "modifier": "p...
{ "body": "public void setDeleteClickListener(OnClickListener listener){\n if(!deckService.currentDeck().isLocked()) {\n this.deleteButton.setOnClickListener(listener);\n }\n }", "class_method_signature": "TranslationCardItem.setDeleteClickListener(OnClickListener listener)", "construc...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_27
{ "fields": [ { "declarator": "A_LANGUAGE = \"a language\"", "modifier": "private static final", "original_string": "private static final String A_LANGUAGE = \"a language\";", "type": "String", "var_name": "A_LANGUAGE" }, { "declarator": "view", "modifier": "priva...
{ "body": "@Test\n public void shouldSetDeckItemWhenViewIsInitialized() {\n Deck aDeck = mock(Deck.class);\n when(newDeckContext.getDeck()).thenReturn(aDeck);\n\n presenter.initializeView();\n\n verify(view).setDeckItem(aDeck);\n }", "class_method_signature": "ReviewAndSaveDeckPres...
{ "fields": [ { "declarator": "DELIMITER = \" \"", "modifier": "private static final", "original_string": "private static final String DELIMITER = \" \";", "type": "String", "var_name": "DELIMITER" }, { "declarator": "view", "modifier": "private", "origina...
{ "body": "public void initializeView() {\n view.setDeckItem(contextFromIntent.getDeck());\n fillLanguagesList();\n }", "class_method_signature": "ReviewAndSaveDeckPresenter.initializeView()", "constructor": false, "full_signature": "public void initializeView()", "identifier": "initializeVie...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_9
{ "fields": [ { "declarator": "NO_VALUE = \"\"", "modifier": "private static final", "original_string": "private static final String NO_VALUE = \"\";", "type": "String", "var_name": "NO_VALUE" }, { "declarator": "deck", "modifier": "private", "original_strin...
{ "body": "@Test\n public void shouldWriteMultipleDictionariesToJson() throws JSONException {\n Dictionary firstDictionary = mock(Dictionary.class);\n Dictionary secondDictionary = mock(Dictionary.class);\n Dictionary[] dictionaries = {firstDictionary, secondDictionary};\n JSONObject fi...
{ "fields": [ { "declarator": "title", "modifier": "private", "original_string": "private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "modifier": "private", "original_string": "private String author;", "type": "St...
{ "body": "public JSONObject toJSON(String exportedDeckName) throws JSONException {\n JSONObject json = new JSONObject();\n\n json.put(JsonKeys.DECK_LABEL, exportedDeckName);\n json.put(JsonKeys.PUBLISHER, author);\n if (externalId != null) {\n json.put(JsonKeys.EXTERNAL_ID, ext...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_31
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private AddDeckView activity;", "type": "AddDeckView", "var_name": "activity" }, { "declarator": "getStartedDeckPresenter", "modifier": "private", "original_string": "privat...
{ "body": "@Test\n public void shouldStartMyDecksActivityWhenBackButtonIsClicked() {\n getStartedDeckPresenter.backButtonClicked();\n\n verify(activity).startActivityWithClass(MyDecksActivity.class);\n }", "class_method_signature": "GetStartedDeckPresenterTest.shouldStartMyDecksActivityWhenBackB...
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private AddDeckView activity;", "type": "AddDeckView", "var_name": "activity" } ], "file": "app/src/main/java/org/mercycorps/translationcards/addDeck/presenter/GetStartedDeckPresenter.java", ...
{ "body": "public void backButtonClicked() {\n activity.startActivityWithClass(MyDecksActivity.class);\n }", "class_method_signature": "GetStartedDeckPresenter.backButtonClicked()", "constructor": false, "full_signature": "public void backButtonClicked()", "identifier": "backButtonClicked", "invoc...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_89
{ "fields": [ { "declarator": "DECK_LABEL = \"label\"", "modifier": "private static final", "original_string": "private static final String DECK_LABEL = \"label\";", "type": "String", "var_name": "DECK_LABEL" }, { "declarator": "PUBLISHER = \"A Publisher\"", "modi...
{ "body": "@Test\n public void shouldBuildImportSpecWithExternalIdWhenPresent() throws ImportException, JSONException {\n jsonObjectToLoad.put(JsonKeys.DECK_LABEL, DECK_LABEL);\n jsonObjectToLoad.put(JsonKeys.EXTERNAL_ID, EXTERNAL_ID);\n TxcImportUtility.ImportSpec importSpec =\n ...
{ "fields": [ { "declarator": "INDEX_FILENAME = \"card_deck.csv\"", "modifier": "private static final", "original_string": "private static final String INDEX_FILENAME = \"card_deck.csv\";", "type": "String", "var_name": "INDEX_FILENAME" }, { "declarator": "ALT_INDEX_FIL...
{ "body": "@NonNull\n public ImportSpec buildImportSpec(File dir, String hash, JSONObject json) throws ImportException {\n ImportSpec spec;\n try {\n String deckLabel = json.getString(JsonKeys.DECK_LABEL);\n String publisher = json.optString(JsonKeys.PUBLISHER);\n Str...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_66
{ "fields": [ { "declarator": "mediaConfig", "modifier": "private", "original_string": "private MediaConfig mediaConfig;", "type": "MediaConfig", "var_name": "mediaConfig" }, { "declarator": "audioRecorderManager", "modifier": "private", "original_string": "...
{ "body": "@Test(expected = RecordAudioException.class)\n public void shouldThrowRecordAudioExceptionWhenOutputFileIsNull() throws RecordAudioException, IOException {\n Mockito.doThrow(new IOException()).when(mediaRecorder).prepare();\n audioRecorderManager.record(mediaConfig);\n }", "class_meth...
{ "fields": [ { "declarator": "mediaRecorder", "modifier": "private", "original_string": "private MediaRecorder mediaRecorder;", "type": "MediaRecorder", "var_name": "mediaRecorder" }, { "declarator": "isRecording", "modifier": "private", "original_string": ...
{ "body": "public boolean record(MediaConfig mediaConfig) throws RecordAudioException {\n mediaRecorder = ((MainApplication) MainApplication.getContextFromMainApp()).getMediaRecorder();\n setupMediaRecorder(mediaConfig);\n prepareMediaRecorder();\n try {\n mediaRecorder.start();...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_102
{ "fields": [ { "declarator": "inputStreamBuilder", "modifier": "private", "original_string": "private InputStreamBuilder inputStreamBuilder;", "type": "InputStreamBuilder", "var_name": "inputStreamBuilder" }, { "declarator": "fileInputStream", "modifier": "privat...
{ "body": "@Test\n public void shouldWriteAssetTranslationAudioToZipOutputStream() throws Exception {\n String assetName = \"anAssetName\";\n when(fileInputStream.read(any(byte[].class))).thenReturn(15).thenReturn(-1);\n when(inputStreamBuilder.getAssetInputStream(assetName)).thenReturn(fileIn...
{ "fields": [ { "declarator": "SPEC_FILENAME = \"card_deck.json\"", "modifier": "static final", "original_string": "static final String SPEC_FILENAME = \"card_deck.json\";", "type": "String", "var_name": "SPEC_FILENAME" }, { "declarator": "BUFFER_SIZE = 2048", "mo...
{ "body": "protected void addAudioFilesToZip(Map<String, Boolean> filePaths, ZipOutputStream zipOutputStream) throws ExportException {\n try {\n for (Map.Entry<String, Boolean> entry : filePaths.entrySet()) {\n String baseFilename = new File(entry.getKey()).getName();\n ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
49656131_138
{ "fields": [ { "declarator": "TRANSLATION_LABEL = \"Test Translation\"", "modifier": "public static final", "original_string": "public static final String TRANSLATION_LABEL = \"Test Translation\";", "type": "String", "var_name": "TRANSLATION_LABEL" }, { "declarator": "...
{ "body": "@Test\n public void shouldPassCorrectDeckWhenEditTriggered() {\n View resultingView = cardListAdapter.getView(0, null, null);\n resultingView.findViewById(R.id.translation_card_edit).performClick();\n Deck retrievedDeck = (Deck)shadowOf(shadowOf(activity).getNextStartedActivity()).g...
{ "fields": [ { "declarator": "translationService", "modifier": "private", "original_string": "private TranslationService translationService;", "type": "TranslationService", "var_name": "translationService" }, { "declarator": "dictionaryService", "modifier": "priv...
{ "body": "@Override\n public View getView(int position, View translationItemView, ViewGroup parent) {\n Translation item = getItem(position);\n TranslationCardItem cardItem;\n if (translationItemView == null) {\n cardItem = new TranslationCardItem(context);\n cardItem.se...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49656131, "size": 5658, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/translation-cards/translation-cards" }
33046639_40
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetChildren()\n\t\tthrows Exception\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tSet<Entity> children = wikiResource.getChildren(new Entity(\"UKP\"));\n\t\tfor (Entity e : children) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t// Entity expectedElements[] = { new Entity(\"...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public Set<Entity> getChildren(Entity entity) throws LexicalSemanticResourceException {\n Set<Entity> children = new HashSet<Entity>();\n Category cat = null;\n String lexeme = WikipediaCategoryUtils.getCaseSensitiveLexeme(entity.getFirstLexeme(), isCaseSensitive);\n if (lexeme ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_17
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testContainsLexeme() throws Exception\n\t{\n\t\twordnet.setIsCaseSensitive(false);\n\t\tassertTrue(wordnet.containsLexeme(\"tree\"));\n\t\tassertTrue(wordnet.containsLexeme(\"Tree\"));\n\t\tassertTrue(wordnet.containsLexeme(\"cold\"));\n\t\tassertTrue(wordnet.containsLexeme(\"Cold\"));...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic boolean containsLexeme(String lexeme) throws LexicalSemanticResourceException {\n if (lexeme == null) {\n return false;\n }\n try {\n \t//zhu case sensitivity\n \tIndexWord[] indexWords = dict.lookupAllIndexWords(lexeme).getIndexWordArray(...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_56
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetRelatedLexemes()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tSet<String> expectedSynonyms = new HashSet<String>();\n\t\texpectedSynonyms.add(\"SIR\");\n\n\t\tSet<String> synonyms = wikiResource.getRelatedLexemes(\n\t\t\t\t\...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation) throws LexicalSemanticResourceException {\n Entity entity = WikipediaArticleUtils.lexemeToEntity(wiki, lexeme, isCaseSensitive);\n Set<String> relatedLexemes = new HashSet<String>();\n ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_21
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\t@Ignore(\"this fails due to a bug in the WordNet API, it returns not only automotive_vehicle, \"\n\t\t\t+ \"but also any other synset containing automotive or vehicle - See Bug 160\")\n\tpublic void testGetEntitySpecialCases()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twordnet.setIsCas...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.toSynset(dict, lexeme, isCaseSensitive);\n return WordNetUtils.synsetsToEntities(synsets);\n }", "class_method_signature": "WordNetResource.getEntity(St...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_3
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testGetEntityPos() throws LexicalSemanticResourceException {\n Set<String> expectedResults = new HashSet<String>();\n expectedResults.add(\"Absatz#1|Abschnitt#1|Textabschnitt#1|---n\");\n expectedResults.add(\"Absatz#4|Schuhabsatz#1|---n\");\n expectedResu...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Entity e = new Entity(lexeme);\n Set<Entity> entities = GermaNetUtils.synsetsToEntities( GermaNetUtils.entityToSynsets(gn, e) );\n return entities;\n }", "class_method_signature": "GermaNetReso...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_37
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testGetNumberOfEntities()\n\t\tthrows Exception\n\t{\n\t\twiktionaryGerman.setIsCaseSensitive(false);\n\t\tassertEquals(88436, wiktionaryGerman.getNumberOfEntities());\n\n\t\twiktionaryGerman.setIsCaseSensitive(true);\n\t\tassertEquals(88436, wiktionaryGerman.getNumberOfEntities());\n\...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public int getNumberOfEntities() throws LexicalSemanticResourceException {\n int i=0;\n Iterator<WordEntry> wordEntryIter = wkt.wordEntryIterator();\n while (wordEntryIter.hasNext()) {\n wordEntryIter.next();\n i++;\n }\n return i;\n }", "class_...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_36
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testGetEntities()\n\t\tthrows Exception\n\t{\n\t\twiktionaryGerman.setIsCaseSensitive(false);\n\t\tint i = 0;\n\t\tfor (Entity entity : wiktionaryGerman.getEntities()) {\n\t\t\tentity.getId();\n\t\t\ti++;\n\t\t}\n\t\tassertEquals(88436, i);\n\n\t\twiktionaryGerman.setIsCaseSensitive(tr...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public Iterable<Entity> getEntities() throws LexicalSemanticResourceException {\n \ttry{\n \t\twktIterable = new WiktionaryEntityIterable(wkt);\n } catch (DatabaseException e) {\n throw new LexicalSemanticResourceException(e);\n }\n return wktIterable;\n }", "clas...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_2
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testGetEntity() throws LexicalSemanticResourceException {\n\n Set<String> expectedResults = new HashSet<String>();\n expectedResults.add(\"Absatz#1|Abschnitt#1|Textabschnitt#1|---n\");\n expectedResults.add(\"Absatz#4|Schuhabsatz#1|---n\");\n expectedResul...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Entity e = new Entity(lexeme);\n Set<Entity> entities = GermaNetUtils.synsetsToEntities( GermaNetUtils.entityToSynsets(gn, e) );\n return entities;\n }", "class_method_signature": "GermaNetReso...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_20
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetEntity()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twordnet.setIsCaseSensitive(false);\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(\"tree#1145163|---v\");\n\t\texpectedResults.add(\"tree#1616293|---v\");\n\t\texpectedResults.add...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.toSynset(dict, lexeme, isCaseSensitive);\n return WordNetUtils.synsetsToEntities(synsets);\n }", "class_method_signature": "WordNetResource.getEntity(St...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_16
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n public void wordNetUtilsTest() throws LexicalSemanticResourceException {\n\n System.out.println(\n WordNetUtils.getExactEntity(((WordNetResource) wordnet).getDict(), POS.VERB, 1025455)\n );\n }", "class_method_signature": "WordNetUtilsTest.wordNetUtilsTest()", ...
{ "fields": [], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/main/java/de/tudarmstadt/ukp/dkpro/lexsemresource/wordnet/util/WordNetUtils.java", "identifier": "WordNetUtils", "interfaces": "", "methods": [ { "class_method_signature": "WordNetUtils.synsetsToEntities(Set<Synset> syn...
{ "body": "public static Entity getExactEntity(Dictionary dict, String lexeme, PoS pos, int sense,\n\t\t\tboolean isCaseSensitive)\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\treturn synsetToEntity(toSynset(dict, lexeme, pos, sense, isCaseSensitive));\n\t}", "class_method_signature": "WordNetUtils.getExac...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_41
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetEntities()\n\t\tthrows Exception\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tfor (Entity entity : wikiResource.getEntities()) {\n\t\t\tSet<String> testLexemes = entity.getLexemes();\n\t\t\tfor (String t : testLexemes) {\n\t\t\t\tSystem....
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public Iterable<Entity> getEntities() throws LexicalSemanticResourceException {\n return new WikipediaCategoryEntityIterable(wiki);\n }", "class_method_signature": "WikipediaCategoryResource.getEntities()", "constructor": false, "full_signature": "public Iterable<Entity> getEntities()", "...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_27
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\t@Ignore(\"There seems to be a bug in the WordNet API causing containsEntity() return false \"\n\t\t\t+ \"on some entities- See Bug 161\")\n\tpublic void testGetEntities()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twordnet.setIsCaseSensitive(false);\n\t\tint i = 0;\n\t\tfor (Entity enti...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Iterable<Entity> getEntities() {\n return new WordNetEntityIterable(dict);\n }", "class_method_signature": "WordNetResource.getEntities()", "constructor": false, "full_signature": "@Override public Iterable<Entity> getEntities()", "identifier": "getEntities", "invoca...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_5
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testGetLexicalRelations() throws LexicalSemanticResourceException {\n Set<String> expectedAntonyms = new HashSet<String>();\n expectedAntonyms.add(\"warm\");\n\n Set<String> expectedSynonyms = new HashSet<String>();\n expectedSynonyms.add(\"hartherzig\");\...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation)\n throws LexicalSemanticResourceException\n {\n \n Set<String> resultLexemes = new HashSet<String>();\n\n for (LexUnit lexUnit : gn.getLexUnits(lexeme, GermaNetUtils.ma...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_31
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testContainsLexeme()\n\t\tthrows Exception\n\t{\n\t\twiktionaryGerman.setIsCaseSensitive(true);\n\t\tassertTrue(\"Baum\", wiktionaryGerman.containsLexeme(\"Baum\"));\n\t\tassertFalse(\"baum\", wiktionaryGerman.containsLexeme(\"baum\"));\n\t\tassertFalse(\"tree\", wiktionaryGerman.conta...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public boolean containsLexeme(String lexeme) {\n boolean contained = false;\n List<WordEntry> words = wkt.getWordEntries(lexeme);\n if (words.size() != 0) {\n contained = true;\n }\n return contained;\n }", "class_method_signature": "WiktionaryResource.con...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_9
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testAmbiguity() throws LexicalSemanticResourceException {\n Map<String,Integer> lexemeMap = new HashMap<String,Integer>();\n\n for (Entity entity : germaNetCaseInsensitive.getEntities()) {\n for (String lexeme : entity.getLexemes()) {\n int cou...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Iterable<Entity> getEntities() throws LexicalSemanticResourceException {\n\t\treturn new GermaNetEntityIterable(gn);\n\t}", "class_method_signature": "GermaNetResource.getEntities()", "constructor": false, "full_signature": "public Iterable<Entity> getEntities()", "identifier": "getEntities"...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_46
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testContainsLexeme()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tassertTrue(wikiResource.containsLexeme(\"TK1\"));\n\t\t// \"Semantic Information Retrieval\" and \"SIR\" are different lexemes of\n\t\t// the same entity\n\t\t// s...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public boolean containsLexeme(String lexeme) throws LexicalSemanticResourceException {\n \tlexeme = WikipediaArticleUtils.getCaseSensitiveLexeme(lexeme, isCaseSensitive);\n \ttry {\n \twiki.getPage(lexeme);\n } catch (WikiApiException e) {\n return false;\n }\n ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_11
{ "fields": [], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.core-asl/src/test/java/de/tudarmstadt/ukp/dkpro/lexsemresource/core/ResourceFactoryTest.java", "identifier": "ResourceFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"We do not want to have all the resources on the Hudson server atm\")\n\tpublic void testGermaNet()\n\t\tthrows Exception\n\t{\n\t\tResourceFactory loader = new ResourceFactory(\"resources.xml\");\n\t\tLexicalSemanticResource germanetDe = loader.get(\"germanet\", \"de\");\n\t}", "class_...
{ "fields": [ { "declarator": "CONFIG_FILE = \"resources.xml\"", "modifier": "public final static", "original_string": "public final static String CONFIG_FILE = \"resources.xml\";", "type": "String", "var_name": "CONFIG_FILE" }, { "declarator": "DEFAULT_CONFIG_FILE = \"...
{ "body": "public LexicalSemanticResource get(String name, String lang)\n\t\tthrows ResourceLoaderException\n\t{\n\t\treturn (LexicalSemanticResource) context.getBean(name + \"-\" + lang,\n\t\t\t\tLexicalSemanticResource.class);\n\t}", "class_method_signature": "ResourceFactory.get(String name, String lang)", "co...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_50
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetEntity()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(getSirEntity().getId());\n\n\t\tSet<Entity> entities;\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tentities = wikiResource.getEntity...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Entity> entitySet = new HashSet<Entity>();\n if (!containsLexeme(lexeme)) {\n return entitySet;\n }\n Entity e = WikipediaArticleUtils.lexemeToEntity(wiki, lexeme, isCaseSensit...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_51
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetEntityPos()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(getSirEntity().getId());\n\n\t\tSet<Entity> entities;\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tentities = wikiResource.getEnt...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Entity> entitySet = new HashSet<Entity>();\n if (!containsLexeme(lexeme)) {\n return entitySet;\n }\n Entity e = WikipediaArticleUtils.lexemeToEntity(wiki, lexeme, isCaseSensit...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_10
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n\t@Ignore(\"This test produces too much console output and runs too slow. Deactivated for now.\")\n\tpublic void testHyponymMap()\n\t\tthrows Exception\n\t{\n\t\tEntityGraph eg = EntityGraphManager.getEntityGraph(germaNetCaseInsensitive, EntityGraphType.JGraphT);\n\t\teg.getIntrinsicInformationConte...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Entity e = new Entity(lexeme);\n Set<Entity> entities = GermaNetUtils.synsetsToEntities( GermaNetUtils.entityToSynsets(gn, e) );\n return entities;\n }", "class_method_signature": "GermaNetReso...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_47
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testContainsEntity()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tassertTrue(wikiResource.containsEntity(new Entity(\"TK1\")));\n\t\tEntity SIR = new Entity(\"SIR\");\n\t\tSystem.out.println(\"SIR Entity: \" + SIR);\n\n\t\t// \"S...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public boolean containsEntity(Entity entity) throws LexicalSemanticResourceException {\n return containsLexeme(entity.getFirstLexeme());\n }", "class_method_signature": "WikipediaArticleResource.containsEntity(Entity entity)", "constructor": false, "full_signature": "public boolean contains...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_8
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testOelCase() throws LexicalSemanticResourceException {\n String oel = \"\\u00d6l\";\n Set<Entity> entities = germaNet.getEntity(oel);\n for (Entity e : entities) {\n System.out.println(e);\n System.out.println(e.getSense(oel));\n// at the m...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Entity e = new Entity(lexeme);\n Set<Entity> entities = GermaNetUtils.synsetsToEntities( GermaNetUtils.entityToSynsets(gn, e) );\n return entities;\n }", "class_method_signature": "GermaNetReso...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_30
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetMostFrequentEntity()\n\t throws Exception\n\t{\n wordnet.setIsCaseSensitive(false);\n System.out.println(wordnet.getMostFrequentEntity(\"car\"));\n System.out.println(wordnet.getMostFrequentEntity(\"bat\"));\n System.out.println(wordnet.getMostFreq...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n public Entity getMostFrequentEntity(String lexeme)\n throws LexicalSemanticResourceException\n {\n for (PoS pos : PoS.values()) {\n Entity e = WordNetUtils.getMostFrequentEntity(dict, lexeme, pos, isCaseSensitive);\n if (e != null) {\n re...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_4
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testGetEntityPosSense() throws LexicalSemanticResourceException {\n Set<String> expectedResults = new HashSet<String>();\n expectedResults.add(\"Auto#1|Automobil#1|Kraftfahrzeug#1|Kraftwagen#1|Motorfahrzeug#1|Motorwagen#2|Wagen#3|---n\");\n\n // also test whether...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Entity e = new Entity(lexeme);\n Set<Entity> entities = GermaNetUtils.synsetsToEntities( GermaNetUtils.entityToSynsets(gn, e) );\n return entities;\n }", "class_method_signature": "GermaNetReso...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_26
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetGloss()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twordnet.setIsCaseSensitive(false);\n\t\tEntity e = new Entity(\"knocked-out\", PoS.adj, \"680634\");\n\t\tString gloss = \"damaged; \\\"the gym has some of the most knocked-out equipment since Vic Tanny\\\"\";\n\t\ta...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic String getGloss(Entity entity) throws LexicalSemanticResourceException {\n StringBuilder sb = new StringBuilder();\n Set<Synset> synsets = WordNetUtils.entityToSynsets(dict, entity, isCaseSensitive);\n for (Synset synset : synsets) {\n sb.append(synset.g...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_48
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetChildren()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tSet<Entity> children = wikiResource.getChildren(new Entity(\n\t\t\t\t\"Torsten Zesch\"));\n\t\tSet<String> expectedChildren = new HashSet<String>();\n\t\texpectedChildr...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Set<Entity> getChildren(Entity entity) throws LexicalSemanticResourceException {\n if (!this.containsEntity(entity)) {\n return Collections.emptySet();\n }\n Page p = WikipediaArticleUtils.entityToPage(wiki, entity, isCaseSensitive);\n return WikipediaArticleUt...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_33
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testGetEntity()\n\t\tthrows Exception\n\t{\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(\"mine#-|---n\");\n\t\texpectedResults.add(\"mine#-|---v\");\n\t\texpectedResults.add(\"mine#-|---unk\");\n\n\t\tSet<Entity> entities;\n\t\twiktionaryEnglish.se...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public Set<Entity> getEntity(String lexeme) {\n Set<Entity> resultEntities = new HashSet<Entity>();\n List<WordEntry> words = wkt.getWordEntries(lexeme);\n for (WordEntry word : words) {\n resultEntities.add( new Entity(lexeme, WiktionaryUtils.mapPos(word.getPartOfSpeech()))...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_7
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testGetNumberOfEntities() throws LexicalSemanticResourceException {\n assertEquals(74612, germaNetCaseInsensitive.getNumberOfEntities());\n assertEquals(74612, germaNet.getNumberOfEntities());\n }", "class_method_signature": "GermaNetResourceTest.testGetNumberOfEnt...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public int getNumberOfEntities() throws LexicalSemanticResourceException {\n\t\treturn gn.numSynsets();\n\t}", "class_method_signature": "GermaNetResource.getNumberOfEntities()", "constructor": false, "full_signature": "public int getNumberOfEntities()", "identifier": "getNumberOfEntities", "invo...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_25
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetSemanticRelations()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\n\t\twordnet.setIsCaseSensitive(false);\n\t\tSet<String> expectedHyponyms = new HashSet<String>();\n\t\texpectedHyponyms.add(\"cladogram#13912424|---n\");\n\t\texpectedHyponyms.add(\"stemma#13912540|---n\");...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<Entity> getRelatedEntities(Entity entity, SemanticRelation semanticRelation) throws LexicalSemanticResourceException {\n Set<Entity> relatedEntities = new HashSet<Entity>();\n Set<Synset> synsets = WordNetUtils.entityToSynsets(dict, entity, isCaseSensitive);\n\n ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_52
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetEntityPos2()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(getSirEntity().getId());\n\n\t\tSet<Entity> entities;\n\t\tentities = wikiResource.getEntity(\"SIR\", PoS.adj);\n\n\t\tassertEquals(e...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Entity> entitySet = new HashSet<Entity>();\n if (!containsLexeme(lexeme)) {\n return entitySet;\n }\n Entity e = WikipediaArticleUtils.lexemeToEntity(wiki, lexeme, isCaseSensit...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_13
{ "fields": [], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.core-asl/src/test/java/de/tudarmstadt/ukp/dkpro/lexsemresource/core/ResourceFactoryTest.java", "identifier": "ResourceFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"We do not want to have all the resources on the Hudson server atm\")\n\tpublic void testWiktionary()\n\t\tthrows Exception\n\t{\n\t\tResourceFactory loader = new ResourceFactory(\"resources.xml\");\n LexicalSemanticResource wikitionaryEn = loader.get(\"wiktionary\", \"en\");\n\t\t...
{ "fields": [ { "declarator": "CONFIG_FILE = \"resources.xml\"", "modifier": "public final static", "original_string": "public final static String CONFIG_FILE = \"resources.xml\";", "type": "String", "var_name": "CONFIG_FILE" }, { "declarator": "DEFAULT_CONFIG_FILE = \"...
{ "body": "public LexicalSemanticResource get(String name, String lang)\n\t\tthrows ResourceLoaderException\n\t{\n\t\treturn (LexicalSemanticResource) context.getBean(name + \"-\" + lang,\n\t\t\t\tLexicalSemanticResource.class);\n\t}", "class_method_signature": "ResourceFactory.get(String name, String lang)", "co...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_44
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetNumberOfEntities()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tassertEquals(17, wikiResource.getNumberOfEntities());\n\t\twikiResource.setIsCaseSensitive(true);\n\t\tassertEquals(17, wikiResource.getNumberOfEntities());\n\t...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public int getNumberOfEntities() {\n return new Long(wiki.getMetaData().getNumberOfCategories()).intValue();\n }", "class_method_signature": "WikipediaCategoryResource.getNumberOfEntities()", "constructor": false, "full_signature": "public int getNumberOfEntities()", "identifier": "getNum...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_29
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testHyponymMap()\n\t\tthrows Exception\n\t{\n\t\twordnet.setIsCaseSensitive(false);\n EntityGraph eg = EntityGraphManager.getEntityGraph(wordnet, EntityGraphType.JGraphT,\n new File(\"target/test-output/getEntityGraph\"));\n\t\teg.getIntrinsicInformationContent(wo...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.toSynset(dict, lexeme, isCaseSensitive);\n return WordNetUtils.synsetsToEntities(synsets);\n }", "class_method_signature": "WordNetResource.getEntity(St...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_28
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetNumberOfEntities()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\tassertEquals(117659, wordnet.getNumberOfEntities());\n\t}", "class_method_signature": "WordNetResourceTest.testGetNumberOfEntities()", "constructor": false, "full_signature": "@Test public void testG...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic int getNumberOfEntities() throws LexicalSemanticResourceException {\n if (this.numberOfEntities < 0) {\n int i=0;\n try {\n Iterator<Synset> adjIter = dict.getSynsetIterator(POS.ADJECTIVE);\n Iterator<Synset> advIter = dict.ge...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_45
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetResourceVersion()\n\t{\n\t\tassertEquals(\"_test_unknown-version\", wikiResource.getResourceVersion());\n\t}", "class_method_signature": "WikipediaCategoryResourceTest.testGetResourceVersion()", "constructor": false, "full_signature": "@Test public void testGetResourceVers...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public String getResourceVersion() {\n \tStringBuilder sb = new StringBuilder();\n \tString version = \"\";\n \tString language = \"\";\n try {\n \t MetaData metaData = wiki.getMetaData();\n \t language = metaData.getLanguage().toString();\n version = metaData.getVers...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_12
{ "fields": [], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.core-asl/src/test/java/de/tudarmstadt/ukp/dkpro/lexsemresource/core/ResourceFactoryTest.java", "identifier": "ResourceFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"We do not want to have all the resources on the Hudson server atm\")\n\tpublic void testWordNet()\n\t\tthrows Exception\n\t{\n\t\tResourceFactory loader = new ResourceFactory(\"resources.xml\");\n\t\tLexicalSemanticResource wordnetEn = loader.get(\"wordnet\", \"en\");\n\t}", "class_met...
{ "fields": [ { "declarator": "CONFIG_FILE = \"resources.xml\"", "modifier": "public final static", "original_string": "public final static String CONFIG_FILE = \"resources.xml\";", "type": "String", "var_name": "CONFIG_FILE" }, { "declarator": "DEFAULT_CONFIG_FILE = \"...
{ "body": "public LexicalSemanticResource get(String name, String lang)\n\t\tthrows ResourceLoaderException\n\t{\n\t\treturn (LexicalSemanticResource) context.getBean(name + \"-\" + lang,\n\t\t\t\tLexicalSemanticResource.class);\n\t}", "class_method_signature": "ResourceFactory.get(String name, String lang)", "co...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_53
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetNumberOfEntities()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tassertEquals(30, wikiResource.getNumberOfEntities());\n\n\t\twikiResource.setIsCaseSensitive(true);\n\t\tassertEquals(30, wikiResource.getNumberOfEntities());\n...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public int getNumberOfEntities() {\n long numberOfEntities = wiki.getMetaData().getNumberOfPages() - wiki.getMetaData().getNumberOfRedirectPages();\n return new Long(numberOfEntities).intValue();\n }", "class_method_signature": "WikipediaArticleResource.getNumberOfEntities()", "constru...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_24
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetLexicalRelations()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\n\t\twordnet.setIsCaseSensitive(false);\n\t\tSet<String> expectedAntonyms = new HashSet<String>();\n\t\texpectedAntonyms.add(\"cool\");\n\n\t\tSet<String> expectedSynonyms = new HashSet<String>();\n\t\texpect...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation) throws LexicalSemanticResourceException {\n\n Set<String> relatedLexemes = new HashSet<String>();\n\n// TODO this is caused by a JWNL bug I think - test whether this is still nece...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_6
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testGetEntities() throws LexicalSemanticResourceException {\n// int i=0;\n for (Entity entity : germaNetCaseInsensitive.getEntities()) {\n// Set<String> testLexemes = entity.getLexemes();\n// for (String t : testLexemes) {\n// System...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public Iterable<Entity> getEntities() throws LexicalSemanticResourceException {\n\t\treturn new GermaNetEntityIterable(gn);\n\t}", "class_method_signature": "GermaNetResource.getEntities()", "constructor": false, "full_signature": "public Iterable<Entity> getEntities()", "identifier": "getEntities"...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_32
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testContainsEntity()\n\t\tthrows Exception\n\t{\n\t\twiktionaryGerman.setIsCaseSensitive(true);\n\t\tassertTrue(\"Auto\", wiktionaryGerman.containsEntity(new Entity(\"Baum\", Entity.PoS.n)));\n\t\tassertTrue(\"Auto\", wiktionaryGerman.containsEntity(new Entity(\"Auto\", Entity.PoS.n)))...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public boolean containsEntity(Entity entity) {\n Set<WordEntry> entries = WiktionaryUtils.entityToWords(wkt, entity);\n if (entries.size() == 0) {\n return false;\n }\n else {\n return true;\n }\n }", "class_method_signature": "WiktionaryResourc...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_49
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetEntities()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\tint i = 0;\n\t\tint j = 0;\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tfor (Entity entity : wikiResource.getEntities()) {\n\t\t\tassertTrue(entity.toString(), wikiResource.containsEntity(entity));\n\t\t\ti++...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Iterable<Entity> getEntities() throws LexicalSemanticResourceException {\n return new WikipediaArticleEntityIterable(wiki, isCaseSensitive);\n }", "class_method_signature": "WikipediaArticleResource.getEntities()", "constructor": false, "full_signature": "public Iterable<Entity> getE...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_54
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetParents()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tSet<Entity> parents = wikiResource.getParents(new Entity(\n\t\t\t\t\"Torsten_Zesch\"));\n\t\tSet<String> expectedParents = new HashSet<String>();\n\t\texpectedParents.ad...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public Set<Entity> getParents(Entity entity) throws LexicalSemanticResourceException {\n if (!this.containsEntity(entity)) {\n return Collections.emptySet();\n }\n Page p = WikipediaArticleUtils.entityToPage(wiki, entity, isCaseSensitive);\n return WikipediaArticleUti...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_15
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" }, { "declarator": "dr", "modifier": "private static", "orig...
{ "body": "@Test\n\tpublic void testGetDomain() throws FileNotFoundException, JWNLException {\n Dictionary dict = Dictionary.getInstance(new FileInputStream(new File(\n \"src/main/resources/resource/WordNet_3/wordnet_properties.xml\")\n ));\n\t\tassertTrue(2737 >= test(dict,dr,POS...
{ "fields": [ { "declarator": "map", "modifier": "", "original_string": "HashMap<String,String> map;", "type": "HashMap<String,String>", "var_name": "map" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/main/java/de/tudarmstadt/ukp/dkpro/lexsemresource/w...
{ "body": "public String getDomain(Synset syn) {\n\t\tString off=Long.toString(syn.getOffset());\n\t\twhile(off.length()<8) {\n off=\"0\"+off;\n }\n\t\tif(syn.getPOS().equals(POS.NOUN)) {\n off=\"1\"+off;\n }\n\t\tif(syn.getPOS().equals(POS.VERB)) {\n off=\"2\"+off;\n ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_42
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetEntity()\n\t\tthrows Exception\n\t{\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(\"UKP#-|---unk\");\n\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tSet<Entity> entities = wikiResource.getEntity(\"UKP\");\n\t\tassertEquals(expectedResults...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n\n \tif (!containsLexeme(lexeme)) {\n return Collections.emptySet();\n }\n // we use a shortcut here, as a lexeme that is contained in Wikipedia always corresponds to a single entity that cont...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_39
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testContainsEntity()\n\t\tthrows Exception\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tassertTrue(wikiResource.containsEntity(new Entity(\"UKP\")));\n\t\tassertFalse(wikiResource.containsEntity(new Entity(\"UKT\")));\n\n\t\twikiResource.setIsCaseSensitive(true);\n\t\tassertT...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public boolean containsEntity(Entity entity) throws LexicalSemanticResourceException {\n return containsLexeme(entity.getFirstLexeme());\n }", "class_method_signature": "WikipediaCategoryResource.containsEntity(Entity entity)", "constructor": false, "full_signature": "public boolean contain...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_19
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testContainsEntitySpecialCases() throws Exception\n\t{\n\t\tMap<String, String> automotiveVehicleLexemes = new HashMap<String, String>();\n\t\tautomotiveVehicleLexemes.put(\"automotive_vehicle\", \"3791235\");\n\t\tautomotiveVehicleLexemes.put(\"motor_vehicle\", \"3791235\");\n\t\tEnti...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic boolean containsEntity(Entity entity) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.entityToSynsets(dict, entity, isCaseSensitive);\n if (synsets.size() == 0) {\n\t\t\treturn false;\n\t\t}\n return true;\n }", "class_method_sign...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_35
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testGetGloss()\n\t\tthrows Exception\n\t{\n\n\t\tSet<Entity> entities;\n\t\twiktionaryEnglish.setIsCaseSensitive(false);\n\t\tentities = wiktionaryEnglish.getEntity(\"mine\");\n\t\tString caseInSensitiveGloss = new String();\n\t\tfor (Entity e : entities) {\n\t\t\tSystem.out.println(e)...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public String getGloss(Entity entity) throws LexicalSemanticResourceException {\n return WiktionaryUtils.getGlossFromEntity(wkt, entity);\n }", "class_method_signature": "WiktionaryResource.getGloss(Entity entity)", "constructor": false, "full_signature": "public String getGloss(Entity ent...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_1
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testContainsEntity() throws LexicalSemanticResourceException{\n assertTrue(germaNetCaseInsensitive.containsEntity(new Entity(\"Auto\")));\n assertTrue(germaNetCaseInsensitive.containsEntity(new Entity(\"Auto\",PoS.n)));\n assertFalse(germaNetCaseInsensitive.conta...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public boolean containsEntity(Entity entity) throws LexicalSemanticResourceException {\n Set<Synset> synset = GermaNetUtils.entityToSynsets(gn, entity);\n if (synset.size() == 0) {\n return false;\n }\n else {\n return true;\n }\n }", "class_met...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_23
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetEntityPosSense()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\n\t\twordnet.setIsCaseSensitive(false);\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(\"tree#13912260|tree diagram#13912260|---n\");\n\n\t\t// also test whether compare\n\t\...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.toSynset(dict, lexeme, isCaseSensitive);\n return WordNetUtils.synsetsToEntities(synsets);\n }", "class_method_signature": "WordNetResource.getEntity(St...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_22
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testGetEntityPos()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\n\t\twordnet.setIsCaseSensitive(false);\n\t\tSet<String> expectedResults = new HashSet<String>();\n\t\texpectedResults.add(\"tree#13104059|---n\");\n\t\texpectedResults.add(\"tree#13912260|tree diagram#13912260|---n...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic Set<Entity> getEntity(String lexeme) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.toSynset(dict, lexeme, isCaseSensitive);\n return WordNetUtils.synsetsToEntities(synsets);\n }", "class_method_signature": "WordNetResource.getEntity(St...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_0
{ "fields": [ { "declarator": "germaNet", "modifier": "private static", "original_string": "private static LexicalSemanticResource germaNet;", "type": "LexicalSemanticResource", "var_name": "germaNet" }, { "declarator": "germaNetCaseInsensitive", "modifier": "priv...
{ "body": "@Test\n public void testContainsLexeme() throws LexicalSemanticResourceException{\n assertTrue(germaNetCaseInsensitive.containsLexeme(\"Auto\"));\n assertTrue(germaNetCaseInsensitive.containsLexeme(\"auto\"));\n assertTrue(germaNetCaseInsensitive.containsLexeme(\"fahren\"));\n ...
{ "fields": [ { "declarator": "resourceName = \"GermaNet\"", "modifier": "private final static", "original_string": "private final static String resourceName = \"GermaNet\";", "type": "String", "var_name": "resourceName" }, { "declarator": "resourceVersion = \"5.0\"", ...
{ "body": "public boolean containsLexeme(String lexeme) throws LexicalSemanticResourceException {\n\n if (lexeme == null) {\n return false;\n }\n\n return (gn.getLexUnits(lexeme, true).size() > 0);\n }", "class_method_signature": "GermaNetResource.containsLexeme(String lexeme)", ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_34
{ "fields": [ { "declarator": "wiktionaryGerman", "modifier": "private static", "original_string": "private static LexicalSemanticResource wiktionaryGerman;", "type": "LexicalSemanticResource", "var_name": "wiktionaryGerman" }, { "declarator": "wiktionaryEnglish", ...
{ "body": "@Test\n\tpublic void testGetRelatedLexemes()\n\t\tthrows Exception\n\t{\n\n\t\tSet<String> expectedAntonyms = new HashSet<String>();\n\t\texpectedAntonyms.add(\"rot\");\n\t\texpectedAntonyms.add(\"gelb\");\n\t\texpectedAntonyms.add(\"blau\");\n\n\t\tSet<String> expectedSynonyms = new HashSet<String>();\n\t...
{ "fields": [ { "declarator": "log = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log log = LogFactory.getLog(getClass());", "type": "Log", "var_name": "log" }, { "declarator": "resourceName = \"Wiktionary\"", "mod...
{ "body": "public Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation) throws LexicalSemanticResourceException {\n Map<String,String> lexemeMap = new HashMap<String,String>();\n lexemeMap.put(lexeme, sense);\n Entity entity = this.getEntity(lexemeMa...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_18
{ "fields": [ { "declarator": "wordnet", "modifier": "private static", "original_string": "private static LexicalSemanticResource wordnet;", "type": "LexicalSemanticResource", "var_name": "wordnet" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wordnet-asl/src/test/jav...
{ "body": "@Test\n\tpublic void testContainsEntity() throws Exception\n\t{\n\t\twordnet.setIsCaseSensitive(false);\n\t\tassertTrue(wordnet.containsEntity(new Entity(\"tree\")));\n\t\tassertTrue(wordnet.containsEntity(new Entity(\"Tree\")));\n\t\tassertTrue(wordnet.containsEntity(new Entity(\"tree\", PoS.n)));\n\t\tas...
{ "fields": [ { "declarator": "RESOURCE_NAME = \"WordNet\"", "modifier": "private static final", "original_string": "private static final String RESOURCE_NAME = \"WordNet\";", "type": "String", "var_name": "RESOURCE_NAME" }, { "declarator": "dict", "modifier": "pr...
{ "body": "@Override\n\tpublic boolean containsEntity(Entity entity) throws LexicalSemanticResourceException {\n Set<Synset> synsets = WordNetUtils.entityToSynsets(dict, entity, isCaseSensitive);\n if (synsets.size() == 0) {\n\t\t\treturn false;\n\t\t}\n return true;\n }", "class_method_sign...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_38
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testContainsLexeme()\n\t\tthrows Exception\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tassertTrue(wikiResource.containsLexeme(\"UKP\"));\n\t\tassertFalse(wikiResource.containsLexeme(\"UKT\"));\n\t\tassertTrue(wikiResource.containsLexeme(\"People_of_UKP\"));\n\t\tassertTrue(w...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public boolean containsLexeme(String lexeme) throws LexicalSemanticResourceException {\n lexeme = WikipediaCategoryUtils.getCaseSensitiveLexeme(lexeme, isCaseSensitive);\n \ttry {\n if(wiki.getCategory(lexeme) == null) {\n return false;\n }\n } catch (W...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_43
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetParents()\n\t\tthrows Exception\n\t{\n\t\twikiResource.setIsCaseSensitive(false);\n\t\tSet<Entity> parents = wikiResource.getParents(new Entity(\n\t\t\t\t\"Publications_of_Telecooperation\"));\n\t\tSet<String> expectedParents = new HashSet<String>();\n\t\texpectedParents.add(\"T...
{ "fields": [ { "declarator": "resourceName = \"WikipediaCG\"", "modifier": "private static final", "original_string": "private static final String resourceName = \"WikipediaCG\";", "type": "String", "var_name": "resourceName" }, { "declarator": "wiki", "modifier"...
{ "body": "public Set<Entity> getParents(Entity entity) throws LexicalSemanticResourceException {\n Set<Entity> parents = new HashSet<Entity>();\n Category cat;\n String lexeme = WikipediaCategoryUtils.getCaseSensitiveLexeme(entity.getFirstLexeme(), isCaseSensitive);\n if (lexeme == null) ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_14
{ "fields": [], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.core-asl/src/test/java/de/tudarmstadt/ukp/dkpro/lexsemresource/core/ResourceFactoryTest.java", "identifier": "ResourceFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"We do not want to have all the resources on the Hudson server atm\")\n\tpublic void testWikipedia()\n\t\tthrows Exception\n\t{\n\t\tResourceFactory loader = new ResourceFactory(\"resources.xml\");\n\t\tLexicalSemanticResource wikipediaDe = loader.get(\"wikipedia\", \"de\");\n\t\tLexicalS...
{ "fields": [ { "declarator": "CONFIG_FILE = \"resources.xml\"", "modifier": "public final static", "original_string": "public final static String CONFIG_FILE = \"resources.xml\";", "type": "String", "var_name": "CONFIG_FILE" }, { "declarator": "DEFAULT_CONFIG_FILE = \"...
{ "body": "public LexicalSemanticResource get(String name, String lang)\n\t\tthrows ResourceLoaderException\n\t{\n\t\treturn (LexicalSemanticResource) context.getBean(name + \"-\" + lang,\n\t\t\t\tLexicalSemanticResource.class);\n\t}", "class_method_signature": "ResourceFactory.get(String name, String lang)", "co...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
33046639_55
{ "fields": [ { "declarator": "wikiResource", "modifier": "private static", "original_string": "private static LexicalSemanticResource wikiResource;", "type": "LexicalSemanticResource", "var_name": "wikiResource" } ], "file": "de.tudarmstadt.ukp.dkpro.lexsemresource.wikipedia...
{ "body": "@Test\n\tpublic void testGetResourceVersion()\n\t\tthrows LexicalSemanticResourceException\n\t{\n\t\tassertEquals(\"_test_unknown-version\", wikiResource.getResourceVersion());\n\t}", "class_method_signature": "WikipediaArticleResourceTest.testGetResourceVersion()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "logger = LogFactory.getLog(getClass())", "modifier": "private final", "original_string": "private final Log logger = LogFactory.getLog(getClass());", "type": "Log", "var_name": "logger" }, { "declarator": "resourceName = \"WikipediaAG\"", ...
{ "body": "public String getResourceVersion() {\n StringBuilder sb = new StringBuilder();\n String version = \"\";\n String language = \"\";\n try {\n MetaData metaData = wiki.getMetaData();\n language = metaData.getLanguage().toString();\n version = metaDa...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33046639, "size": 12394, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/dkpro/dkpro-lsr" }
59115248_0
{ "fields": [], "file": "pay-java-baidu/src/test/java/com/egzosn/pay/baidu/api/BaiduPayServiceTest.java", "identifier": "BaiduPayServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void orderInfo() {\n BaiduPayConfigStorage configStorage = new BaiduPayConfigStorage();\n configStorage.setAppid(\"APP ID\");\n configStorage.setAppKey(\"APP KEY\");\n configStorage.setDealId(\"DEAL ID\");\n configStorage.setKeyPublic(\"KEY PUBLIC\");\n ...
{ "fields": [ { "declarator": "APP_KEY = \"appKey\"", "modifier": "public static final", "original_string": "public static final String APP_KEY = \"appKey\";", "type": "String", "var_name": "APP_KEY" }, { "declarator": "APP_ID = \"appId\"", "modifier": "public sta...
{ "body": "@Override\n public Map<String, Object> orderInfo(PayOrder order) {\n Map<String, Object> params = getUseOrderInfoParams(order);\n String rsaSign = getRsaSign(params, RSA_SIGN);\n params.put(RSA_SIGN, rsaSign);\n return params;\n }", "class_method_signature": "BaiduPaySer...
{ "created": null, "fork": null, "fork_count": 645, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 59115248, "size": 1659, "stargazer_count": 1588, "stars": null, "updates": null, "url": "https://github.com/egzosn/pay-java-parent" }
11128472_21
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/dom/util/PeriodUtilTest.java", "identifier": "PeriodUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void yearFromPeriod_success() throws Exception {\n\n // given\n String period;\n\n // when\n period = \"F2017M01\";\n // then\n Assertions.assertThat(PeriodUtil.yearFromPeriod(period).toString())\n .isEqualTo(\"2016-07-01/2017-07-01...
{ "fields": [ { "declarator": "financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\")", "modifier": "public static", "original_string": "public static Pattern financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\");", "type": "Pattern", "var_name": "financialYearPattern" }, ...
{ "body": "public static LocalDateInterval yearFromPeriod(final String period){\n if (period == null) {\n return new LocalDateInterval(); // Interval with open start and end date\n }\n LocalDate startDate = null;\n LocalDate endDate = null;\n if (financialYearPattern.matc...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_37
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void doDefault2CalculateInvoicesForProperty_works_when_user_has_no_countries() {\n\n // given\n InvoiceServiceMenu menu = new InvoiceServiceMenu();\n menu.countryRepository = countryRepository;\n menu.countryServiceForCurrentUser = countryServiceForCurrentUser;...
{ "fields": [ { "declarator": "leaseRepository", "modifier": "@javax.inject.Inject\n private", "original_string": "@javax.inject.Inject\n private LeaseRepository leaseRepository;", "type": "LeaseRepository", "var_name": "leaseRepository" }, { "declarator": "invoic...
{ "body": "public List<LeaseItemType> default2CalculateInvoicesForProperty() {\n return doDefault2CalculateInvoicesForProperty().selectedTypes();\n }", "class_method_signature": "InvoiceServiceMenu.default2CalculateInvoicesForProperty()", "constructor": false, "full_signature": "public List<LeaseItemT...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_17
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/dom/util/PeriodUtilTest.java", "identifier": "PeriodUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void financial_year_syntax() throws Exception {\n\n // given\n String period = \"F2019\"; // represents the 2018/2019 financial year\n\n // then\n Assertions.assertThat(PeriodUtil.yearFromPeriod(period).toString())\n .isEqualTo(\"2018-07-01/2019-...
{ "fields": [ { "declarator": "financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\")", "modifier": "public static", "original_string": "public static Pattern financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\");", "type": "Pattern", "var_name": "financialYearPattern" }, ...
{ "body": "public static LocalDateInterval yearFromPeriod(final String period){\n if (period == null) {\n return new LocalDateInterval(); // Interval with open start and end date\n }\n LocalDate startDate = null;\n LocalDate endDate = null;\n if (financialYearPattern.matc...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_40
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void find_Candidate_For_France_By_Code_works_when_no_result() throws Exception {\n\n // given\n ChamberOfCommerceCodeLookUpService service = new ChamberOfCommerceCodeLookUpService();\n service.messageService = mockMessageService;\n service.sirenService = mockSi...
{ "fields": [ { "declarator": "CONNECTION_WARNING = \"A connection to the external Siren service could not be made\"", "modifier": "private final static", "original_string": "private final static String CONNECTION_WARNING = \"A connection to the external Siren service could not be made\";", ...
{ "body": "OrganisationNameNumberViewModel findCandidateForFranceByCode(final String code) {\n try {\n SirenResult sirenResult = sirenService.getCompanyName(code);\n\n if (sirenResult != null) {\n return new OrganisationNameNumberViewModel(sirenResult.getCompanyName(), code...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_2
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void keyToChargeReference() throws Exception {\n\n // given\n ChargingLine line = new ChargingLine();\n // when\n line.setKod(\"123\");\n line.setKod2(\"4\");\n // then\n Assertions.assertThat(line.keyToChargeReference()).isEqualTo(\"SE123-...
{ "fields": [ { "declarator": "klientKod", "modifier": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private", "original_string": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private String klientKod;", "type": "String", "var_name": "klientKod" }, {...
{ "body": "String keyToChargeReference() {\n return \"SE\" + getKod() + \"-\" + getKod2();\n }", "class_method_signature": "ChargingLine.keyToChargeReference()", "constructor": false, "full_signature": " String keyToChargeReference()", "identifier": "keyToChargeReference", "invocations": [ "ge...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_3
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void discarded_or_applied() throws Exception {\n\n // given\n ChargingLine line = new ChargingLine();\n // then\n Assertions.assertThat(line.discardedOrAggregatedOrApplied()).isFalse();\n\n // and when\n line.setImportStatus(ImportStatus.DISCARDED...
{ "fields": [ { "declarator": "klientKod", "modifier": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private", "original_string": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private String klientKod;", "type": "String", "var_name": "klientKod" }, {...
{ "body": "boolean discardedOrAggregatedOrApplied() {\n if (getImportStatus() == ImportStatus.DISCARDED || getImportStatus() == ImportStatus.AGGREGATED || getApplied() != null) {\n return true;\n }\n return false;\n }", "class_method_signature": "ChargingLine.discardedOrAggregated...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_41
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void filterLegalFormsFromOrganisationName_works() throws Exception {\n // given\n ChamberOfCommerceCodeLookUpService service = new ChamberOfCommerceCodeLookUpService();\n\n // when\n final String legalForm_SA_without_occurrence_in_name_1 = \"SA ACME\";\n ...
{ "fields": [ { "declarator": "CONNECTION_WARNING = \"A connection to the external Siren service could not be made\"", "modifier": "private final static", "original_string": "private final static String CONNECTION_WARNING = \"A connection to the external Siren service could not be made\";", ...
{ "body": "String filterLegalFormsFromOrganisationName(final String name ) {\n return Arrays.stream(name.split(\" \"))\n .filter(element -> !LEGAL_FORMS.contains(element))\n .filter(element -> !LEGAL_FORMS.contains(element.replace(\".\", \"\")))\n .collect(Collector...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_16
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/dom/util/PeriodUtilTest.java", "identifier": "PeriodUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void coda_year_syntax() throws Exception {\n\n // given\n String period = \"2019/1\"; // as per Coda\n\n // then this produces garbage\n // really, should put a guard around this to prevent this from being accepted.\n Assertions.assertThat(PeriodUtil.yea...
{ "fields": [ { "declarator": "financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\")", "modifier": "public static", "original_string": "public static Pattern financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\");", "type": "Pattern", "var_name": "financialYearPattern" }, ...
{ "body": "public static LocalDateInterval yearFromPeriod(final String period){\n if (period == null) {\n return new LocalDateInterval(); // Interval with open start and end date\n }\n LocalDate startDate = null;\n LocalDate endDate = null;\n if (financialYearPattern.matc...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_36
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void doDefault2CalculateInvoicesForProperty_works_for_fra() {\n\n // given\n InvoiceServiceMenu menu = new InvoiceServiceMenu();\n menu.countryRepository = countryRepository;\n menu.countryServiceForCurrentUser = countryServiceForCurrentUser;\n Country f...
{ "fields": [ { "declarator": "leaseRepository", "modifier": "@javax.inject.Inject\n private", "original_string": "@javax.inject.Inject\n private LeaseRepository leaseRepository;", "type": "LeaseRepository", "var_name": "leaseRepository" }, { "declarator": "invoic...
{ "body": "public List<LeaseItemType> default2CalculateInvoicesForProperty() {\n return doDefault2CalculateInvoicesForProperty().selectedTypes();\n }", "class_method_signature": "InvoiceServiceMenu.default2CalculateInvoicesForProperty()", "constructor": false, "full_signature": "public List<LeaseItemT...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_20
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/dom/util/PeriodUtilTest.java", "identifier": "PeriodUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void financial_year_syntax_with_month_4() throws Exception {\n\n // given\n String period = \"F2019/4\"; // represents the 2018/2019 financial year\n\n // then\n Assertions.assertThat(PeriodUtil.yearFromPeriod(period).toString())\n .isEqualTo(\"2...
{ "fields": [ { "declarator": "financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\")", "modifier": "public static", "original_string": "public static Pattern financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\");", "type": "Pattern", "var_name": "financialYearPattern" }, ...
{ "body": "public static LocalDateInterval yearFromPeriod(final String period){\n if (period == null) {\n return new LocalDateInterval(); // Interval with open start and end date\n }\n LocalDate startDate = null;\n LocalDate endDate = null;\n if (financialYearPattern.matc...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_11
{ "fields": [ { "declarator": "locationLookupService", "modifier": "private", "original_string": "private LocationLookupService locationLookupService;", "type": "LocationLookupService", "var_name": "locationLookupService" } ], "file": "estatioapp/app/src/test/java/org/estatio...
{ "body": "@Ignore // this is ignored only because it's a dependency on an external dependency; it *does* work (or did, the last time we tried ... :-)\n @Test\n public void whenInvalid() {\n Location location = locationLookupService.lookup(\"$%$%^Y%^fgnsdlfk glfg\");\n assertThat(location, is(null...
{ "fields": [ { "declarator": "DEFAULT_VALUE = new Location(51.4777479, 0.0d)", "modifier": "private static final", "original_string": "private static final Location DEFAULT_VALUE = new Location(51.4777479, 0.0d);", "type": "Location", "var_name": "DEFAULT_VALUE" }, { "...
{ "body": "@Programmatic\n public Location lookup(final String description) {\n\n RequestConfig requestConfig = RequestConfig.custom()\n .setSocketTimeout(TIMEOUT_SECONDS * 1000)\n .setConnectTimeout(TIMEOUT_SECONDS * 1000)\n .build();\n\n CloseableHttpCli...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_4
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void apply_discarded_works() throws Exception {\n\n // given\n ChargingLine line = new ChargingLine();\n // when\n line.setApplied(new LocalDate());\n line.setImportStatus(ImportStatus.LEASE_ITEM_CREATED);\n // then\n Assertions.assertThat(...
{ "fields": [ { "declarator": "klientKod", "modifier": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private", "original_string": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private String klientKod;", "type": "String", "var_name": "klientKod" }, {...
{ "body": "@Action(semantics = SemanticsOf.NON_IDEMPOTENT)\n public ImportStatus apply() {\n if (!discardedOrAggregatedOrApplied()) {\n ImportStatus result = fastnetImportService.updateOrCreateItemAndTerm(this);\n if (result != null && getImportStatus() != ImportStatus.AGGREGATED) { //...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_8
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void handle_assigns_sdi_number_to_attached_pdf_generated_from_xml() {\n\n // given\n final Long sdId = Long.valueOf(12345678);\n final String expectedDocumentName = \"S12345678.pdf\";\n\n DocFlowZipService service = new DocFlowZipService();\n service.doc...
{ "fields": [ { "declarator": "PAPERCLIP_ROLE_NAME_GENERATED = \"generated from xml\"", "modifier": "public static final", "original_string": "public static final String PAPERCLIP_ROLE_NAME_GENERATED = \"generated from xml\";", "type": "String", "var_name": "PAPERCLIP_ROLE_NAME_GENER...
{ "body": "public DocFlowZip handle(\n final long sdId,\n final Clob xmlFileMetadatiIfAny,\n final Clob xmlFatturaElettronica,\n final Blob pdfFatturaElettronica,\n final Blob p7mFatturaElettronicaIfAny,\n final Blob pdfSupplierIfAny,\n fina...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_27
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/app/invoicedownload/IncomingInvoiceExportTest.java", "identifier": "IncomingInvoiceExportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getCodaElement6FromSellerReference() {\n\n // given\n String frenchSupplierRef = \"FR12345\";\n // when then\n Assertions.assertThat(IncomingInvoiceExport.getCodaElement6FromSellerReference(frenchSupplierRef)).isEqualTo(\"FRFO12345\");\n\n // given\...
{ "fields": [ { "declarator": "codaElement2", "modifier": "@MemberOrder(sequence = \"1\") @Nullable\n private final", "original_string": "@MemberOrder(sequence = \"1\") @Nullable\n private final String codaElement2;", "type": "String", "var_name": "codaElement2" }, { ...
{ "body": "public static String getCodaElement6FromSellerReference(final String sellerReference){\n if (sellerReference.startsWith(\"FR\")) {\n return \"FRFO\".concat(sellerReference.substring(2));\n }\n if (sellerReference.startsWith(\"BE\")){\n return \"BEFO\".concat(selle...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_31
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/imports/OrderProjectImportAdapterTest.java", "identifier": "OrderProjectImportAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void appendsZerosToProgressivoCentro() throws Exception {\n // given\n OrderProjectImportAdapter adapter = new OrderProjectImportAdapter();\n adapter.setProgressivoCentro(\"1\");\n assertThat(adapter.getProgressivoCentro()).isEqualTo(\"1\");\n\n // when\...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(OrderProjectImportAdapter.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(OrderProjectImportAdapter.class);", "type": "Logger", "var_name": "LOG" ...
{ "body": "public void correctProgressivoCentroIfNecessary() {\n if (getProgressivoCentro() != null && getProgressivoCentro().length() == 1)\n setProgressivoCentro(\"00\".concat(getProgressivoCentro()));\n\n if (getProgressivoCentro() != null && getProgressivoCentro().length() == 2)\n ...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_30
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/imports/OrderProjectImportAdapterTest.java", "identifier": "OrderProjectImportAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void deriveOrderNumber() {\n\n // given\n OrderProjectImportAdapter adapter = new OrderProjectImportAdapter();\n\n // when\n adapter.setNumero(2234);\n adapter.setCentro(\"CAR\");\n adapter.setProgressivoCentro(\"694\");\n adapter.setCommes...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(OrderProjectImportAdapter.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(OrderProjectImportAdapter.class);", "type": "Logger", "var_name": "LOG" ...
{ "body": "public String deriveOrderNumber() {\n if (getNumero() == null)\n return null;\n StringBuilder builder = new StringBuilder();\n builder.append(getNumero().toString());\n builder.append(\"/\");\n if (getCentro() != null)\n builder.append(getCentro());\...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_26
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/dom/util/PeriodUtilTest.java", "identifier": "PeriodUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void nine_months_financial_year_from_interval_works() throws Exception {\n\n // given\n LocalDateInterval localDateInterval;\n\n // when\n localDateInterval = LocalDateInterval.including(new LocalDate(2019,7,1), new LocalDate(2020,6,30));\n // then\n ...
{ "fields": [ { "declarator": "financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\")", "modifier": "public static", "original_string": "public static Pattern financialYearPattern = Pattern.compile(\"^F\\\\d{4}.*\");", "type": "Pattern", "var_name": "financialYearPattern" }, ...
{ "body": "public static String periodFromInterval(@NotNull final LocalDateInterval interval){\n if(interval.isInfinite()) {\n return null;\n }\n LocalDate endDate = interval.endDate();\n if (matchesCalendarYear(interval)){\n return String.valueOf(endDate.getYear());\...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_9
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/turnoveraggregate/dom/TurnoverAggregationTest.java", "identifier": "TurnoverAggregationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void calculationPeriod_works() {\n\n // given\n TurnoverAggregation aggregation = new TurnoverAggregation();\n final LocalDate aggregationDate = new LocalDate(2020, 1, 1);\n aggregation.setDate(aggregationDate);\n // when, then\n Assertions.assert...
{ "fields": [ { "declarator": "turnoverReportingConfig", "modifier": "@Getter @Setter\n @Column(name = \"turnoverReportingConfigId\", allowsNull = \"false\")\n private", "original_string": "@Getter @Setter\n @Column(name = \"turnoverReportingConfigId\", allowsNull = \"false\")\n priv...
{ "body": "@Programmatic\n public LocalDateInterval calculationPeriod(){\n return LocalDateInterval.including(getDate().minusMonths(23), getDate());\n }", "class_method_signature": "TurnoverAggregation.calculationPeriod()", "constructor": false, "full_signature": "@Programmatic public LocalDateInte...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_5
{ "fields": [ { "declarator": "context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES)", "modifier": "@Rule\n public", "original_string": "@Rule\n public JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);", ...
{ "body": "@Test\n public void append_import_log_works() throws Exception {\n\n // given\n ChargingLine line = new ChargingLine();\n line.clockService = mockClockService;\n line.setImportLog(\"first message\");\n\n // expect\n context.checking(new Expectations(){{\n ...
{ "fields": [ { "declarator": "klientKod", "modifier": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private", "original_string": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private String klientKod;", "type": "String", "var_name": "klientKod" }, {...
{ "body": "void appendImportLog(final String msg){\n final String prefix = clockService.nowAsLocalDateTime().toString(\"yyyy-MM-dd HH:mm:ss\") + \" \";\n String nwContent = prefix;\n if (getImportLog()!=null) {\n nwContent = nwContent.concat(msg).concat(\" \").concat(getImportLog());\n...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_10
{ "fields": [ { "declarator": "locationLookupService", "modifier": "private", "original_string": "private LocationLookupService locationLookupService;", "type": "LocationLookupService", "var_name": "locationLookupService" } ], "file": "estatioapp/app/src/test/java/org/estatio...
{ "body": "@Ignore // this is ignored only because it's a dependency on an external dependency; it *does* work (or did, the last time we tried ... :-)\n @Test\n public void whenValid() {\n Location location = locationLookupService.lookup(\"10 Downing Street,London,UK\");\n assertThat(location, is(...
{ "fields": [ { "declarator": "DEFAULT_VALUE = new Location(51.4777479, 0.0d)", "modifier": "private static final", "original_string": "private static final Location DEFAULT_VALUE = new Location(51.4777479, 0.0d);", "type": "Location", "var_name": "DEFAULT_VALUE" }, { "...
{ "body": "@Programmatic\n public Location lookup(final String description) {\n\n RequestConfig requestConfig = RequestConfig.custom()\n .setSocketTimeout(TIMEOUT_SECONDS * 1000)\n .setConnectTimeout(TIMEOUT_SECONDS * 1000)\n .build();\n\n CloseableHttpCli...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_29
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/capex/app/invoicedownload/IncomingInvoiceExportTest.java", "identifier": "IncomingInvoiceExportTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void deriveCodaElement1FromBuyer() throws Exception {\n // given\n Party buyer = new Organisation();\n\n // when 'null' case, should not happen\n // then\n Assertions.assertThat(IncomingInvoiceExport.deriveCodaElement1FromBuyer(null)).isNull();\n\n ...
{ "fields": [ { "declarator": "codaElement2", "modifier": "@MemberOrder(sequence = \"1\") @Nullable\n private final", "original_string": "@MemberOrder(sequence = \"1\") @Nullable\n private final String codaElement2;", "type": "String", "var_name": "codaElement2" }, { ...
{ "body": "public static String deriveCodaElement1FromBuyer(Party buyer) {\n // should not happen\n if (buyer==null) return null;\n // exception for EUROCOMMERCIAL PROPERTIES BELGIUM S.A. which has BE00 as reference in Estatio data and BE01EUR in Coda\n // this is ugly but since this expor...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...
11128472_6
{ "fields": [], "file": "estatioapp/app/src/test/java/org/estatio/module/fastnet/dom/RentRollLineTest.java", "identifier": "RentRollLineTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void keyToLeaseExternalReference_works_when_not_null() throws Exception {\n\n // given\n RentRollLine line = new RentRollLine();\n // when\n line.setKontraktNr(\"351234-5678-01\");\n // then\n Assertions.assertThat(line.keyToLeaseExternalReference...
{ "fields": [ { "declarator": "status", "modifier": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private", "original_string": "@Getter @Setter\n @Column(allowsNull = \"false\")\n private String status;", "type": "String", "var_name": "status" }, { "d...
{ "body": "String keyToLeaseExternalReference() {\n return getKontraktNr() != null ? getKontraktNr().substring(2) : null;\n }", "class_method_signature": "RentRollLine.keyToLeaseExternalReference()", "constructor": false, "full_signature": " String keyToLeaseExternalReference()", "identifier": "keyT...
{ "created": "7/2/2013 3:49:01 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 11128472, "size": null, "stargazer_count": null, "stars": 184, "updates": "2020-01-22T12:30:30+00:00", "url": "https://github.com/estatio/estatio" ...