id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
36404681_1 | {
"fields": [],
"file": "api-impl/src/test/java/org/neo4j/tinkerpop/api/impl/Neo4jFactoryImplTest.java",
"identifier": "Neo4jFactoryImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateHighlyAvailableGraphDatabase() throws Exception {\n Path file = Files.createTempDirectory(\"tp-test-db\");\n String path = file.toAbsolutePath().toString();\n Map<String, String> config = new HashMap<>();\n config.put(\"ha.server_id\",\"1\");\n ... | {
"fields": [],
"file": "api-impl/src/main/java/org/neo4j/tinkerpop/api/impl/Neo4jFactoryImpl.java",
"identifier": "Neo4jFactoryImpl",
"interfaces": "implements Neo4jFactory",
"methods": [
{
"class_method_signature": "Neo4jFactoryImpl.newGraphDatabase(String path, Map<String, String> config)",
... | {
"body": "@Override\n public Neo4jGraphAPI newGraphDatabase(String path, Map<String, String> config) {\n try {\n if (path.startsWith(\"file:\")) {\n path = new URL(path).getPath();\n }\n GraphDatabaseBuilder builder = createGraphDatabaseFactory(config).newEmb... | {
"created": null,
"fork": null,
"fork_count": 13,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 36404681,
"size": 60,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/neo4j-contrib/neo4j-tinkerpop-api-impl"
} |
21910386_0 | {
"fields": [
{
"declarator": "prefix",
"modifier": "private",
"original_string": "private String prefix;",
"type": "String",
"var_name": "prefix"
},
{
"declarator": "words",
"modifier": "private",
"original_string": "private List<String> words;",
"typ... | {
"body": "@Test\n public void testUnion() throws Exception {\n // TODO: Implement\n }",
"class_method_signature": "AutoCompleteTest.testUnion()",
"constructor": false,
"full_signature": "@Test public void testUnion()",
"identifier": "testUnion",
"invocations": [],
"modifiers": "@Test public"... | {
"fields": [
{
"declarator": "prefix",
"modifier": "private final",
"original_string": "private final String prefix;",
"type": "String",
"var_name": "prefix"
},
{
"declarator": "possibilities",
"modifier": "private final",
"original_string": "private final ... | {
"body": "public AutoComplete union(AutoComplete other) {\n if (possibilities.isEmpty()) {\n return other;\n }\n if (other.possibilities.isEmpty()) {\n return this;\n }\n\n // TODO: Make sure this can't happen.\n if (!this.prefix.equals(other.prefix)) {... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 21910386,
"size": 1551,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/ykrasik/jaci"
} |
53510819_5 | {
"fields": [],
"file": "library/src/test/java/com/patloew/rxwear/BaseRxTest.java",
"identifier": "BaseRxTest",
"interfaces": "",
"superclass": "extends BaseOnSubscribeTest"
} | {
"body": "@Test\n public void createApiClient() {\n GoogleApiClient.Builder builder = Mockito.mock(GoogleApiClient.Builder.class);\n\n BaseRx<Object> baseRx = spy(new BaseRx<Object>(rxWear, null, null) { });\n\n doReturn(builder).when(baseRx).getApiClientBuilder();\n doReturn(apiClient... | {
"fields": [
{
"declarator": "ctx",
"modifier": "private final",
"original_string": "private final Context ctx;",
"type": "Context",
"var_name": "ctx"
},
{
"declarator": "services",
"modifier": "private final",
"original_string": "private final Api<? extend... | {
"body": "protected GoogleApiClient createApiClient(ApiClientConnectionCallbacks apiClientConnectionCallbacks) {\n\n GoogleApiClient.Builder apiClientBuilder = getApiClientBuilder();\n\n for (Api<? extends Api.ApiOptions.NotRequiredOptions> service : services) {\n apiClientBuilder.addApi(ser... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53510819,
"size": 202,
"stargazer_count": 164,
"stars": null,
"updates": null,
"url": "https://github.com/patloew/RxWear"
} |
53510819_4 | {
"fields": [],
"file": "library/src/test/java/com/patloew/rxwear/BaseRxTest.java",
"identifier": "BaseRxTest",
"interfaces": "",
"superclass": "extends BaseOnSubscribeTest"
} | {
"body": "@Test\n public void setupFitnessPendingResult_Timeout() {\n BaseRx<Object> baseRx = spy(new BaseRx<Object>(rxWear, TIMEOUT_TIME, TIMEOUT_TIMEUNIT) { });\n\n ResultCallback resultCallback = Mockito.mock(ResultCallback.class);\n\n baseRx.setupWearPendingResult(pendingResult, resultCal... | {
"fields": [
{
"declarator": "ctx",
"modifier": "private final",
"original_string": "private final Context ctx;",
"type": "Context",
"var_name": "ctx"
},
{
"declarator": "services",
"modifier": "private final",
"original_string": "private final Api<? extend... | {
"body": "protected final <T extends Result> void setupWearPendingResult(PendingResult<T> pendingResult, ResultCallback<? super T> resultCallback) {\n if(timeoutTime != null && timeoutUnit != null) {\n pendingResult.setResultCallback(resultCallback, timeoutTime, timeoutUnit);\n } else {\n ... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53510819,
"size": 202,
"stargazer_count": 164,
"stars": null,
"updates": null,
"url": "https://github.com/patloew/RxWear"
} |
53510819_3 | {
"fields": [],
"file": "library/src/test/java/com/patloew/rxwear/BaseRxTest.java",
"identifier": "BaseRxTest",
"interfaces": "",
"superclass": "extends BaseOnSubscribeTest"
} | {
"body": "@Test\n public void setupFitnessPendingResult_NoTimeout() {\n BaseRx<Object> baseRx = spy(new BaseRx<Object>(rxWear, null, null) { });\n\n ResultCallback resultCallback = Mockito.mock(ResultCallback.class);\n\n baseRx.setupWearPendingResult(pendingResult, resultCallback);\n\n ... | {
"fields": [
{
"declarator": "ctx",
"modifier": "private final",
"original_string": "private final Context ctx;",
"type": "Context",
"var_name": "ctx"
},
{
"declarator": "services",
"modifier": "private final",
"original_string": "private final Api<? extend... | {
"body": "protected final <T extends Result> void setupWearPendingResult(PendingResult<T> pendingResult, ResultCallback<? super T> resultCallback) {\n if(timeoutTime != null && timeoutUnit != null) {\n pendingResult.setResultCallback(resultCallback, timeoutTime, timeoutUnit);\n } else {\n ... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53510819,
"size": 202,
"stargazer_count": 164,
"stars": null,
"updates": null,
"url": "https://github.com/patloew/RxWear"
} |
53510819_2 | {
"fields": [],
"file": "library/src/test/java/com/patloew/rxwear/RxWearTest.java",
"identifier": "RxWearTest",
"interfaces": "",
"superclass": "extends BaseOnSubscribeTest"
} | {
"body": "@Test\n public void resetDefaultTimeout() {\n rxWear.setDefaultTimeout(TIMEOUT_TIME, TIMEOUT_TIMEUNIT);\n rxWear.resetDefaultTimeout();\n assertNull(rxWear.timeoutTime);\n assertNull(rxWear.timeoutUnit);\n }",
"class_method_signature": "RxWearTest.resetDefaultTimeout()",... | {
"fields": [
{
"declarator": "timeoutTime = null",
"modifier": "",
"original_string": "Long timeoutTime = null;",
"type": "Long",
"var_name": "timeoutTime"
},
{
"declarator": "timeoutUnit = null",
"modifier": "",
"original_string": "TimeUnit timeoutUnit = n... | {
"body": "public void resetDefaultTimeout() {\n timeoutTime = null;\n timeoutUnit = null;\n }",
"class_method_signature": "RxWear.resetDefaultTimeout()",
"constructor": false,
"full_signature": "public void resetDefaultTimeout()",
"identifier": "resetDefaultTimeout",
"invocations": [],
"... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53510819,
"size": 202,
"stargazer_count": 164,
"stars": null,
"updates": null,
"url": "https://github.com/patloew/RxWear"
} |
53510819_1 | {
"fields": [],
"file": "library/src/test/java/com/patloew/rxwear/RxWearTest.java",
"identifier": "RxWearTest",
"interfaces": "",
"superclass": "extends BaseOnSubscribeTest"
} | {
"body": "@Test(expected = IllegalArgumentException.class)\n public void setTimeout_TimeUnitMissing() {\n rxWear.setDefaultTimeout(TIMEOUT_TIME, null);\n assertNull(rxWear.timeoutTime);\n assertNull(rxWear.timeoutUnit);\n }",
"class_method_signature": "RxWearTest.setTimeout_TimeUnitMissi... | {
"fields": [
{
"declarator": "timeoutTime = null",
"modifier": "",
"original_string": "Long timeoutTime = null;",
"type": "Long",
"var_name": "timeoutTime"
},
{
"declarator": "timeoutUnit = null",
"modifier": "",
"original_string": "TimeUnit timeoutUnit = n... | {
"body": "public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) {\n if(timeUnit != null) {\n timeoutTime = time;\n timeoutUnit = timeUnit;\n } else {\n throw new IllegalArgumentException(\"timeUnit parameter must not be null\");\n }\n }",
"cla... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53510819,
"size": 202,
"stargazer_count": 164,
"stars": null,
"updates": null,
"url": "https://github.com/patloew/RxWear"
} |
53510819_0 | {
"fields": [],
"file": "library/src/test/java/com/patloew/rxwear/RxWearTest.java",
"identifier": "RxWearTest",
"interfaces": "",
"superclass": "extends BaseOnSubscribeTest"
} | {
"body": "@Test\n public void setTimeout() {\n rxWear.setDefaultTimeout(TIMEOUT_TIME, TIMEOUT_TIMEUNIT);\n assertEquals(TIMEOUT_TIME, (long) rxWear.timeoutTime);\n assertEquals(TIMEOUT_TIMEUNIT, rxWear.timeoutUnit);\n }",
"class_method_signature": "RxWearTest.setTimeout()",
"constructo... | {
"fields": [
{
"declarator": "timeoutTime = null",
"modifier": "",
"original_string": "Long timeoutTime = null;",
"type": "Long",
"var_name": "timeoutTime"
},
{
"declarator": "timeoutUnit = null",
"modifier": "",
"original_string": "TimeUnit timeoutUnit = n... | {
"body": "public void setDefaultTimeout(long time, @NonNull TimeUnit timeUnit) {\n if(timeUnit != null) {\n timeoutTime = time;\n timeoutUnit = timeUnit;\n } else {\n throw new IllegalArgumentException(\"timeUnit parameter must not be null\");\n }\n }",
"cla... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53510819,
"size": 202,
"stargazer_count": 164,
"stars": null,
"updates": null,
"url": "https://github.com/patloew/RxWear"
} |
21089070_4 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/util/ClouderaAPIUtilTest.java",
"identifier": "ClouderaAPIUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void TestExtractNavigatorURL()\n\n {\n assertEquals(\"http://domain:3333\", ClouderaAPIUtil.extractNavigatorURL(\"http://domain:3333/api/v1/\"));\n assertEquals(\"https://domain:3333\", ClouderaAPIUtil.extractNavigatorURL(\"https://domain:3333/api/v1/\"));\n assert... | {
"fields": [
{
"declarator": "FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" }",
"modifier": "public static final",
"original_string": "public static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" };",
... | {
"body": "public static String extractNavigatorURL(String navigatorUrl) {\n\n Pattern compile = Pattern.compile(\"((?:ht|f)tps?\\\\:\\\\/\\\\/[^:]*:[0-9]*)\");\n Matcher matcher = compile.matcher(navigatorUrl);\n if (matcher.find()) {\n return matcher.group(0);\n } else {\n ... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_10 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendInputOutputEntityTest.java",
"identifier": "TalendInputOutputEntityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddNextEntity() {\n TalendInputOutputEntity tioe = new TalendInputOutputEntity(\"job\", \"component1\");\n assertEquals(0, tioe.getPreviousEntitiesId().size());\n tioe.addPreviousEntity(\"component2\");\n assertEquals(1, tioe.getPreviousEntitiesId().si... | {
"fields": [
{
"declarator": "previousEntitiesId",
"modifier": "private",
"original_string": "private List<String> previousEntitiesId;",
"type": "List<String>",
"var_name": "previousEntitiesId"
},
{
"declarator": "nextEntitiesId",
"modifier": "private",
... | {
"body": "public void addNextEntity(String entityId) {\n this.nextEntitiesId.add(entityId);\n EndPointProxy endpointProxy = new EndPointProxy(entityId, SourceType.SDK, EntityType.OPERATION_EXECUTION);\n this.targetProxies.add(endpointProxy);\n }",
"class_method_signature": "TalendInputOutpu... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_8 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendOutputEntityTest.java",
"identifier": "TalendOutputEntityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddNextEntity() {\n TalendOutputEntity toe = new TalendOutputEntity(\"job\", \"component1\");\n assertEquals(0, toe.getPreviousEntitiesId().size());\n toe.addPreviousEntity(\"component2\");\n assertEquals(1, toe.getPreviousEntitiesId().size());\n ... | {
"fields": [
{
"declarator": "previousEntitiesId",
"modifier": "private",
"original_string": "private List<String> previousEntitiesId;",
"type": "List<String>",
"var_name": "previousEntitiesId"
},
{
"declarator": "nextEntitiesId",
"modifier": "private",
... | {
"body": "public void addNextEntity(String entityId) {\n this.nextEntitiesId.add(entityId);\n EndPointProxy endpointProxy = new EndPointProxy(entityId, SourceType.SDK, EntityType.OPERATION_EXECUTION);\n this.targetProxies.add(endpointProxy);\n }",
"class_method_signature": "TalendOutputEnti... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_11 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendInputOutputEntityTest.java",
"identifier": "TalendInputOutputEntityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConnectToEntity() {\n TalendInputOutputEntity tioe = new TalendInputOutputEntity(\"job\", \"component1\");\n assertEquals(0, tioe.getPreviousEntitiesId().size());\n tioe.connectToEntity(Arrays.asList(\"component2\", \"component3\"), Arrays.asList(\"component4... | {
"fields": [
{
"declarator": "previousEntitiesId",
"modifier": "private",
"original_string": "private List<String> previousEntitiesId;",
"type": "List<String>",
"var_name": "previousEntitiesId"
},
{
"declarator": "nextEntitiesId",
"modifier": "private",
... | {
"body": "@Override\n public void connectToEntity(List<String> inputs, List<String> outputs) {\n\n // File Input components should be linked with a dataset\n if (CollectionUtils.isEmpty(inputs) && ClouderaAPIUtil.isFileInputOutputComponent(this.getName())) {\n String id = GeneratorID.gene... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_9 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendOutputEntityTest.java",
"identifier": "TalendOutputEntityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConnectToEntity() {\n TalendOutputEntity toe = new TalendOutputEntity(\"job\", \"component1\");\n assertEquals(0, toe.getPreviousEntitiesId().size());\n assertEquals(0, toe.getNextEntitiesId().size());\n toe.connectToEntity(Arrays.asList(\"component2\"... | {
"fields": [
{
"declarator": "previousEntitiesId",
"modifier": "private",
"original_string": "private List<String> previousEntitiesId;",
"type": "List<String>",
"var_name": "previousEntitiesId"
},
{
"declarator": "nextEntitiesId",
"modifier": "private",
... | {
"body": "@Override\n public void connectToEntity(List<String> inputs, List<String> outputs) {\n for (String input : inputs) {\n // generate the id of the component to connect to\n String id = GeneratorID.generateNodeID(this.getJobId(), input);\n this.addPreviousEntity(id);... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_5 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/util/ClouderaFieldConvertorTest.java",
"identifier": "ClouderaFieldConvertorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConvertToTalendField() {\n assertNotNull(ClouderaFieldConvertor.convertToTalendField(null).size());\n assertEquals(0, ClouderaFieldConvertor.convertToTalendField(null).size());\n\n Map<String, String> schema = new HashMap<String, String>();\n schema.pu... | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/main/java/org/talend/lineage/cloudera/util/ClouderaFieldConvertor.java",
"identifier": "ClouderaFieldConvertor",
"interfaces": "",
"methods": [
{
"class_method_signature": "ClouderaFieldConvertor.convertToTalendField(Map<String, Str... | {
"body": "public static List<TalendField> convertToTalendField(Map<String, String> columns) {\n List<TalendField> talendFields = new ArrayList<TalendField>();\n if (MapUtils.isNotEmpty(columns)) {\n for (Entry<String, String> column : columns.entrySet()) {\n talendFields.add(n... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_2 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/util/ClouderaAPIUtilTest.java",
"identifier": "ClouderaAPIUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void TestRetrieveNavigatorNode() {\n List<NavigatorNode> navigatorNodes = new ArrayList<NavigatorNode>();\n Map<String, String> schema = new HashMap<String, String>();\n schema.put(\"id\", \"int\");\n NavigatorNode nav1 = new NavigatorNode(\"comp1\", schema, nu... | {
"fields": [
{
"declarator": "FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" }",
"modifier": "public static final",
"original_string": "public static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" };",
... | {
"body": "public static NavigatorNode retrieveNavigatorNode(String name, List<NavigatorNode> navigatorNodes) {\n for (NavigatorNode navigatorNode : navigatorNodes) {\n if (name.equals(navigatorNode.getName())) {\n return navigatorNode;\n }\n }\n return null;\... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_3 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/util/ClouderaAPIUtilTest.java",
"identifier": "ClouderaAPIUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void TestIsThisComponentContainsThisField() {\n List<NavigatorNode> navigatorNodes = new ArrayList<NavigatorNode>();\n Map<String, String> schema = new HashMap<String, String>();\n schema.put(\"id\", \"int\");\n NavigatorNode nav1 = new NavigatorNode(\"comp1\",... | {
"fields": [
{
"declarator": "FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" }",
"modifier": "public static final",
"original_string": "public static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" };",
... | {
"body": "public static Boolean isFieldinComponent(String componentName, String fieldName, List<NavigatorNode> navigatorNodes) {\n NavigatorNode outputNavigatorNode = ClouderaAPIUtil.retrieveNavigatorNode(componentName, navigatorNodes);\n return (outputNavigatorNode != null) && (outputNavigatorNode.get... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_0 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/util/ClouderaAPIUtilTest.java",
"identifier": "ClouderaAPIUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetDatasetName() {\n assertEquals(\"my\", ClouderaAPIUtil.getDatasetName(\"/my\"));\n assertEquals(\"path\", ClouderaAPIUtil.getDatasetName(\"/my/path\"));\n assertEquals(\"path\", ClouderaAPIUtil.getDatasetName(\"/my/path/\"));\n assertEquals(\"path\"... | {
"fields": [
{
"declarator": "FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" }",
"modifier": "public static final",
"original_string": "public static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" };",
... | {
"body": "public static String getDatasetName(String path) {\n if (StringUtils.isNotBlank(path)) {\n String[] separatedPath = path.split(\"/\");\n for (int i = separatedPath.length - 1; i >= 0; i--) {\n if (StringUtils.isNotBlank(separatedPath[i])) {\n r... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_1 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/util/ClouderaAPIUtilTest.java",
"identifier": "ClouderaAPIUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void TestClouderaAPIUtil() {\n for (String myAllowedPrefix : ClouderaAPIUtil.FILE_INPUT_OUTPUT_COMPONENT_PREFIXS) {\n assertTrue(ClouderaAPIUtil.isFileInputOutputComponent(myAllowedPrefix));\n assertTrue(ClouderaAPIUtil.isFileInputOutputComponent(myAllowedPref... | {
"fields": [
{
"declarator": "FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" }",
"modifier": "public static final",
"original_string": "public static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS = { \"tFile\", \"tHDFS\", \"tParquet\", \"tAvro\" };",
... | {
"body": "public static boolean isFileInputOutputComponent(String componentName) {\n for (String prefix : FILE_INPUT_OUTPUT_COMPONENT_PREFIXS) {\n if (componentName.toLowerCase().startsWith(prefix.toLowerCase())) {\n return true;\n }\n }\n return false;\n ... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_6 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendInputEntityTest.java",
"identifier": "TalendInputEntityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAddNextEntity() {\n TalendInputEntity tie = new TalendInputEntity(\"job\", \"component1\");\n assertEquals(0, tie.getNextEntitiesId().size());\n tie.addNextEntity(\"component4\");\n assertEquals(1, tie.getNextEntitiesId().size());\n assertEquals... | {
"fields": [
{
"declarator": "nextEntitiesId",
"modifier": "private",
"original_string": "private List<String> nextEntitiesId;",
"type": "List<String>",
"var_name": "nextEntitiesId"
},
{
"declarator": "previousEntitiesId",
"modifier": "private",
"ori... | {
"body": "public void addNextEntity(String entityId) {\n this.nextEntitiesId.add(entityId);\n EndPointProxy endpointProxy = new EndPointProxy(entityId, SourceType.SDK, EntityType.OPERATION_EXECUTION);\n this.targetProxies.add(endpointProxy);\n }",
"class_method_signature": "TalendInputEntit... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_12 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendFieldTest.java",
"identifier": "TalendFieldTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void test() {\n TalendField field = new TalendField();\n assertEquals(\"{\\\"name\\\":\\\"null\\\", \\\"dataType\\\":\\\"null\\\"}\", field.toString());\n assertEquals(SourceType.SDK, field.getSourceType());\n assertEquals(GeneratorID.CLOUDERA_NAVIGATOR_APPLICA... | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/main/java/org/talend/lineage/cloudera/entity/TalendField.java",
"identifier": "TalendField",
"interfaces": "",
"methods": [
{
"class_method_signature": "TalendField.TalendField()",
"constructor": true,
"full_signature": ... | {
"body": "@Override\n public String toString() {\n return \"{\\\"name\\\":\\\"\" + getName() + \"\\\", \\\"dataType\\\":\\\"\" + getDataType() + \"\\\"}\";\n }",
"class_method_signature": "TalendField.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"ide... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
21089070_7 | {
"fields": [],
"file": "main/components_lib/talend-lineage-api/src/test/java/org/talend/lineage/cloudera/entity/TalendInputEntityTest.java",
"identifier": "TalendInputEntityTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConnectToEntity() {\n TalendInputEntity tie = new TalendInputEntity(\"job\", \"component1\");\n assertEquals(0, tie.getNextEntitiesId().size());\n assertEquals(0, tie.getPreviousEntitiesId().size());\n tie.connectToEntity(Arrays.asList(\"component2\", ... | {
"fields": [
{
"declarator": "nextEntitiesId",
"modifier": "private",
"original_string": "private List<String> nextEntitiesId;",
"type": "List<String>",
"var_name": "nextEntitiesId"
},
{
"declarator": "previousEntitiesId",
"modifier": "private",
"ori... | {
"body": "@Override\n public void connectToEntity(List<String> inputs, List<String> outputs) {\n \t// set the input\n \tthis.addPreviousEntity(this.getEntityId());\n\n \tfor (String output : outputs) {\n \t\t// generate the id of the component to connect to\n \t\tString id = GeneratorID.generateNod... | {
"created": "6/22/2014 8:27:03 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 21089070,
"size": null,
"stargazer_count": null,
"stars": 68,
"updates": "2020-01-27T16:12:58+00:00",
"url": "https://github.com/Talend/tbd-studio... |
111433118_2 | {
"fields": [
{
"declarator": "contextRunner = new ApplicationContextRunner()\n\t\t\t.withConfiguration(AutoConfigurations.of(\n\t\t\t\t\tSpringSkillsAutoConfiguration.class, GoogleAssistantAutoConfiguration.class))",
"modifier": "private final",
"original_string": "private final ApplicationCont... | {
"body": "@Test\n\tpublic void shouldAutoConfigureAlexaBeans() {\n\t\tthis.contextRunner.withUserConfiguration(EmptyConfiguration.class)\n\t\t\t.run(\n\t\t\t\tcontext -> {\n\t\t\t\t\tSpeechRequestDispatcher dispatcher = context.getBean(SpeechRequestDispatcher.class);\n\n\t\t\t\t\tassertThat(context).hasSingleBean(We... | {
"fields": [],
"file": "spring-skills/spring-skills-autoconfig/src/main/java/spring/skills/autoconfig/GoogleAssistantAutoConfiguration.java",
"identifier": "GoogleAssistantAutoConfiguration",
"interfaces": "",
"methods": [
{
"class_method_signature": "GoogleAssistantAutoConfiguration.webhookControl... | {
"body": "@Bean\n\t@ConditionalOnMissingBean(WebhookController.class)\n\tpublic WebhookController webhookController(SpeechRequestDispatcher dispatcher) {\n\t\treturn new WebhookController(dispatcher);\n\t}",
"class_method_signature": "GoogleAssistantAutoConfiguration.webhookController(SpeechRequestDispatcher dispa... | {
"created": null,
"fork": null,
"fork_count": 6,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 111433118,
"size": 9206,
"stargazer_count": 12,
"stars": null,
"updates": null,
"url": "https://github.com/habuma/spring-skills"
} |
111433118_3 | {
"fields": [
{
"declarator": "contextRunner = new ApplicationContextRunner()\n\t\t\t.withConfiguration(AutoConfigurations.of(\n\t\t\t\t\tSpringSkillsAutoConfiguration.class, GoogleAssistantAutoConfiguration.class))",
"modifier": "private final",
"original_string": "private final ApplicationCont... | {
"body": "@Test\n\tpublic void shouldBackOffOnAutoConfiguredAlexaBeans() {\n\t\tthis.contextRunner.withUserConfiguration(GoogleConfiguration.class)\n\t\t\t.run(\n\t\t\t\tcontext -> {\n\t\t\t\t\tSpeechRequestDispatcher dispatcher = context.getBean(SpeechRequestDispatcher.class);\n\t\t\t\t\t\n\t\t\t\t\tassertThat(cont... | {
"fields": [],
"file": "spring-skills/spring-skills-autoconfig/src/main/java/spring/skills/autoconfig/GoogleAssistantAutoConfiguration.java",
"identifier": "GoogleAssistantAutoConfiguration",
"interfaces": "",
"methods": [
{
"class_method_signature": "GoogleAssistantAutoConfiguration.webhookControl... | {
"body": "@Bean\n\t@ConditionalOnMissingBean(WebhookController.class)\n\tpublic WebhookController webhookController(SpeechRequestDispatcher dispatcher) {\n\t\treturn new WebhookController(dispatcher);\n\t}",
"class_method_signature": "GoogleAssistantAutoConfiguration.webhookController(SpeechRequestDispatcher dispa... | {
"created": null,
"fork": null,
"fork_count": 6,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 111433118,
"size": 9206,
"stargazer_count": 12,
"stars": null,
"updates": null,
"url": "https://github.com/habuma/spring-skills"
} |
111433118_0 | {
"fields": [
{
"declarator": "contextRunner = new ApplicationContextRunner()\n\t\t\t.withConfiguration(AutoConfigurations.of(SpringSkillsAutoConfiguration.class))",
"modifier": "private final",
"original_string": "private final ApplicationContextRunner contextRunner = new ApplicationContextRunn... | {
"body": "@Test\n\tpublic void shouldAutoConfigureSpringSkills() {\n\t\tthis.contextRunner.withUserConfiguration(EmptyConfiguration.class)\n\t\t\t.run(\n\t\t\t\tcontext -> {\n\t\t\t\t\tassertThat(context).hasSingleBean(SpeechRequestDispatcher.class);\n\t\t\t\t\tassertThat(context.getBean(SpeechRequestDispatcher.clas... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(SpringSkillsAutoConfiguration.class.getName())",
"modifier": "private static",
"original_string": "private static Logger logger = Logger.getLogger(SpringSkillsAutoConfiguration.class.getName());",
"type": "Logger",
"var_name": ... | {
"body": "@Bean\n\t@ConditionalOnMissingBean(value=SpeechRequestDispatcher.class)\n\tpublic SpeechRequestDispatcher dispatcher() {\n\t\treturn new BeanNameSpeechRequestDispatcher( \n\t\t\t\t(request) -> {\n\t\t\t\t\tSpeech speech = new Speech();\n\t\t\t\t\tspeech.setSsml(\"<speak>I don't know what you're doing...</s... | {
"created": null,
"fork": null,
"fork_count": 6,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 111433118,
"size": 9206,
"stargazer_count": 12,
"stars": null,
"updates": null,
"url": "https://github.com/habuma/spring-skills"
} |
111433118_1 | {
"fields": [
{
"declarator": "contextRunner = new ApplicationContextRunner()\n\t\t\t.withConfiguration(AutoConfigurations.of(SpringSkillsAutoConfiguration.class))",
"modifier": "private final",
"original_string": "private final ApplicationContextRunner contextRunner = new ApplicationContextRunn... | {
"body": "@Test\n\tpublic void shouldBackoffOnSpeechRequestDispatcherConfiguration() {\n\t\tthis.contextRunner.withUserConfiguration(SpeechRequestDispatcherConfiguration.class)\n\t\t\t.run(\n\t\t\t\tcontext -> {\n\t\t\t\t\tassertThat(context).hasSingleBean(SpeechRequestDispatcher.class);\n\t\t\t\t\tassertThat(contex... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(SpringSkillsAutoConfiguration.class.getName())",
"modifier": "private static",
"original_string": "private static Logger logger = Logger.getLogger(SpringSkillsAutoConfiguration.class.getName());",
"type": "Logger",
"var_name": ... | {
"body": "@Bean\n\t@ConditionalOnMissingBean(value=SpeechRequestDispatcher.class)\n\tpublic SpeechRequestDispatcher dispatcher() {\n\t\treturn new BeanNameSpeechRequestDispatcher( \n\t\t\t\t(request) -> {\n\t\t\t\t\tSpeech speech = new Speech();\n\t\t\t\t\tspeech.setSsml(\"<speak>I don't know what you're doing...</s... | {
"created": null,
"fork": null,
"fork_count": 6,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 111433118,
"size": 9206,
"stargazer_count": 12,
"stars": null,
"updates": null,
"url": "https://github.com/habuma/spring-skills"
} |
223482145_0 | {
"fields": [],
"file": "aws/lambda-model-serving/src/test/java/com/examples/HandlerTest.java",
"identifier": "HandlerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void invokeTest() throws IOException {\n Context context = new MockContext();\n Handler handler = new Handler();\n\n Request request = new Request();\n request.setInputImageUrl(\"https://djl-ai.s3.amazonaws.com/resources/images/kitten.jpg\");\n Gson gson... | {
"fields": [
{
"declarator": "GSON = new GsonBuilder().setPrettyPrinting().create()",
"modifier": "private static final",
"original_string": "private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();",
"type": "Gson",
"var_name": "GSON"
}
],
"file": "a... | {
"body": "@Override\n public void handleRequest(InputStream is, OutputStream os, Context context) throws IOException {\n LambdaLogger logger = context.getLogger();\n String input = Utils.toString(is);\n try {\n Request request = GSON.fromJson(input, Request.class);\n Str... | {
"created": "11/22/2019 8:34:35 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 223482145,
"size": null,
"stargazer_count": null,
"stars": 24,
"updates": "2020-01-18T07:07:42+00:00",
"url": "https://github.com/aws-samples/djl... |
91496363_33 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupByJsonForARecordPassingNull_thenShouldGetTheRecord(TestContext context) throws Exception {\n publishTestRecord(record);\n lookupByJson(null, context.asyncAssertSuccess(record -> {\n context.assertEquals(SERVICE_NAME, record.get... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupByJson(JsonObject jsonFilter, Handler<AsyncResult<Record>> handler) {\n serviceDiscovery.getRecord(jsonFilter, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupByJson(JsonObject jsonFilter, Handler<AsyncResult<Record>> handler)",
"constructor": false,
... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_25 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/MongoServiceDiscoveryTest.java",
"identifier": "MongoServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataAndAskingForItsClientByJson_thenShouldGetTheClient(TestContext context) throws Exception {\n publishMongoDataSourceService(dataSourceConfiguration);\n vertxServiceDiscovery.mongo().getClient(jsonFilter, context.asyncAssertSuc... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<MongoClient>> handler) {\n MongoDataSource.getMongoClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "MongoServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<MongoC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_4 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsHttpClientByFilterWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration.metadata(metadata));\n getHttpClient(record -> record.getName().... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClient>> handler) {\n HttpEndpoint.getClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClie... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_13 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/RedisServiceDiscoveryTest.java",
"identifier": "RedisServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataSourceAndAskingForItsClient_thenShouldGetTheClient(TestContext context) throws Exception {\n publishRedisDataSourceService(dataSourceConfiguration);\n vertxServiceDiscovery.redis().getClient(filter(), context.asyncAssertSucce... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisClient>> handler) {\n RedisDataSource.getRedisClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "RedisServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_29 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForARecordUnmatchingPredicate_thenShouldGetNullRecord(TestContext context) throws Exception {\n publishTestRecord(record);\n lookup(r -> r.getName().equals(NOT_EXISTED_NAME), context.asyncAssertSuccess(context::assertNull));\n }",
"c... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookup(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler) {\n lookup(filter, false, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookup(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler)",
"constructor": false,
"full_... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_8 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsWebClientByFilterWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration.metadata(metadata));\n getWebClient(record -> record.getName().eq... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClient>> handler) {\n HttpEndpoint.getWebClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClien... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_9 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsWebClientByJson_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration);\n getWebClient(jsonFilter, context.asyncAssertSuccess(Assert::assertNotNull));\n ... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClient>> handler) {\n HttpEndpoint.getWebClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClien... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_28 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test(expected = InvalidFilterException.class)\n public void givenServiceDiscovery_whenLookupForARecordWithNullFilter_thenShouldThrowException() throws Exception {\n lookup(null, ar -> {\n });\n }",
"class_method_signature": "VertxServiceDiscoveryTest.givenServiceDiscovery_whenLookupF... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookup(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler) {\n lookup(filter, false, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookup(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler)",
"constructor": false,
"full_... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_12 | {
"fields": [
{
"declarator": "messageSourceConfiguration",
"modifier": "private",
"original_string": "private MessageSourceConfiguration messageSourceConfiguration;",
"type": "MessageSourceConfiguration",
"var_name": "messageSourceConfiguration"
}
],
"file": "domino-service-... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingMessageSourceAndAskingForItsConsumerByJson_thenShouldGetTheConsumer(TestContext context) throws Exception {\n publishMessageSourceService(messageSourceConfiguration);\n vertxServiceDiscovery.messageSource().getConsumer(new JsonObject(... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public <T> void getConsumer(Function<Record, Boolean> filter, Handler<AsyncResult<MessageConsumer<T>>> handler) {\n MessageSource.getConsumer(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "MessageSourceServiceDiscovery.getConsumer(Function<Record, Boolean> filter, Handler<... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_5 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsHttpClientByJson_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration);\n getHttpClient(jsonFilter, context.asyncAssertSuccess(Assert::assertNotNull));\n... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClient>> handler) {\n HttpEndpoint.getClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClie... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_24 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/MongoServiceDiscoveryTest.java",
"identifier": "MongoServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataSourceAndAskingForItsClient_thenShouldGetTheClient(TestContext context) throws Exception {\n publishMongoDataSourceService(dataSourceConfiguration);\n vertxServiceDiscovery.mongo().getClient(filter(), context.asyncAssertSucce... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<MongoClient>> handler) {\n MongoDataSource.getMongoClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "MongoServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<MongoC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_32 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForARecordIncludingOutOfService_thenShouldGetTheRecord(TestContext context) throws Exception {\n publishTestRecord(record.setStatus(Status.OUT_OF_SERVICE));\n lookupIncludeOutOfService(r -> r.getName().equals(SERVICE_NAME), context.asyncA... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler) {\n lookup(filter, true, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handle... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_42 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishServiceAndLookupForItsServiceReference_thenShouldGetTheReference(TestContext context) throws Exception {\n publishTestRecord(record, context.asyncAssertSuccess(record -> {\n assertNotNull(vertxServiceDiscovery.lookupForAReference(rec... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public ServiceReference lookupForAReference(Record record) {\n return serviceDiscovery.getReference(record);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupForAReference(Record record)",
"constructor": false,
"full_signature": "public ServiceReference lookupForAReference(Recor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_15 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/RedisServiceDiscoveryTest.java",
"identifier": "RedisServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataAndAskingForItsClientByJson_thenShouldGetTheClient(TestContext context) throws Exception {\n publishRedisDataSourceService(dataSourceConfiguration);\n vertxServiceDiscovery.redis().getClient(jsonFilter, context.asyncAssertSuc... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisClient>> handler) {\n RedisDataSource.getRedisClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "RedisServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_39 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForAllRecordsIncludingOutOfService_thenShouldGetAllRecordsIncludingOutOfService(TestContext context) throws Exception {\n publishTestRecord(record.setStatus(Status.OUT_OF_SERVICE));\n publishTestRecord(otherRecord);\n lookupAllIncl... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAllIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler) {\n lookupAll(filter, true, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAllIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_19 | {
"fields": [
{
"declarator": "eventBusConfiguration",
"modifier": "private",
"original_string": "private EventBusServiceConfiguration eventBusConfiguration;",
"type": "EventBusServiceConfiguration",
"var_name": "eventBusConfiguration"
}
],
"file": "domino-service-discovery/s... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishEventBusServiceAndAskingForItsServiceProxyByJson_thenShouldGetTheService(TestContext context) throws Exception {\n publishEventBusService(eventBusConfiguration);\n vertxServiceDiscovery.eventBus().getServiceProxy(jsonFilter, TestService.... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public <T> void getServiceProxy(Function<Record, Boolean> filter, Class<T> serviceClass, Handler<AsyncResult<T>> handler) {\n EventBusService.getServiceProxy(serviceDiscovery, filter, serviceClass, handler);\n }",
"class_method_signature": "EventBusServiceDiscovery.getServiceProxy(Function<Reco... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_35 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test(expected = InvalidFilterException.class)\n public void givenServiceDiscovery_whenLookupForAllRecordsPassingNullFilter_thenShouldThrowException() throws Exception {\n lookupAll(null, ar -> {\n });\n }",
"class_method_signature": "VertxServiceDiscoveryTest.givenServiceDiscovery_wh... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAll(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler) {\n lookupAll(filter, false, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAll(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler)",
"construc... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_23 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/JDBCServiceDiscoveryTest.java",
"identifier": "JDBCServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingMessageSourceAndAskingForItsClientByJsonWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishJDBCDataSourceService(dataSourceConfiguration.metadata(metadata));\n vertxServiceDiscovery.jdbc().getCli... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient>> handler) {\n JDBCDataSource.getJDBCClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "JDBCServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_2 | {
"fields": [
{
"declarator": "SSL_CONFIGURATION_KEY = \"ssl.enabled\"",
"modifier": "private static final",
"original_string": "private static final String SSL_CONFIGURATION_KEY = \"ssl.enabled\";",
"type": "String",
"var_name": "SSL_CONFIGURATION_KEY"
},
{
"declarator... | {
"body": "@Test\n public void givenSslEnabledInConfigurationWithJksPathAndPassword_whenConfiguringServer_thenHttpOptionSslShouldBeEnabledAndConfiguredWithThePathAndPassword()\n throws Exception {\n configuration.put(SSL_CONFIGURATION_KEY, TRUE);\n configureServer();\n assertThat(op... | {
"fields": [],
"file": "ssl-server-configurator/src/main/java/org/dominokit/domino/http/server/config/JksServerConfigurator.java",
"identifier": "JksServerConfigurator",
"interfaces": "implements HttpServerConfigurator",
"methods": [
{
"class_method_signature": "JksServerConfigurator.configureHttpS... | {
"body": "private String getPath(ServerConfiguration configuration) {\n return configuration.getString(ConfigKies.SSL_JKS_PATH);\n }",
"class_method_signature": "JksServerConfigurator.getPath(ServerConfiguration configuration)",
"constructor": false,
"full_signature": "private String getPath(ServerCo... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_3 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsHttpClientByFilter_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration);\n getHttpClient(record -> record.getName().equals(SERVICE_NAME), context.asyncA... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClient>> handler) {\n HttpEndpoint.getClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClie... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_22 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/JDBCServiceDiscoveryTest.java",
"identifier": "JDBCServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingMessageSourceAndAskingForItsClientByJson_thenShouldGetTheClient(TestContext context) throws Exception {\n publishJDBCDataSourceService(dataSourceConfiguration);\n vertxServiceDiscovery.jdbc().getClient(jsonFilter, context.asyncAssertS... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient>> handler) {\n JDBCDataSource.getJDBCClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "JDBCServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_34 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupByJsonForARecordWithAName_thenShouldGetARecordWithThatName(TestContext context) throws Exception {\n publishTestRecord(record);\n lookupByJson(jsonFilter, context.asyncAssertSuccess(record -> {\n context.assertEquals(SERVICE_NA... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupByJson(JsonObject jsonFilter, Handler<AsyncResult<Record>> handler) {\n serviceDiscovery.getRecord(jsonFilter, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupByJson(JsonObject jsonFilter, Handler<AsyncResult<Record>> handler)",
"constructor": false,
... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_18 | {
"fields": [
{
"declarator": "eventBusConfiguration",
"modifier": "private",
"original_string": "private EventBusServiceConfiguration eventBusConfiguration;",
"type": "EventBusServiceConfiguration",
"var_name": "eventBusConfiguration"
}
],
"file": "domino-service-discovery/s... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishEventBusServiceAndAskingForItsServiceProxy_thenShouldGetTheService(TestContext context) throws Exception {\n publishEventBusService(eventBusConfiguration);\n vertxServiceDiscovery.eventBus().getServiceProxy(record -> record.getName().equ... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public <T> void getServiceProxy(Function<Record, Boolean> filter, Class<T> serviceClass, Handler<AsyncResult<T>> handler) {\n EventBusService.getServiceProxy(serviceDiscovery, filter, serviceClass, handler);\n }",
"class_method_signature": "EventBusServiceDiscovery.getServiceProxy(Function<Reco... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_38 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test(expected = InvalidFilterException.class)\n public void givenServiceDiscovery_whenLookupForAllRecordsIncludingOutOfServicePassingNullFilter_thenShouldThrowException(TestContext context) throws Exception {\n lookupAllIncludeOutOfService(null, ar -> {\n });\n }",
"class_method_sign... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAllIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler) {\n lookupAll(filter, true, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAllIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_14 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/RedisServiceDiscoveryTest.java",
"identifier": "RedisServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataAndAskingForItsClientWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishRedisDataSourceService(dataSourceConfiguration.metadata(metadata));\n vertxServiceDiscovery.redis().getClient(filt... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisClient>> handler) {\n RedisDataSource.getRedisClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "RedisServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_43 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishServiceWithMetadataAndLookupForItsServiceReferencePassingConfiguration_thenShouldGetTheReferenceUponTheseConfigurations(TestContext context) throws Exception {\n publishTestRecord(record, context.asyncAssertSuccess(record -> {\n Serv... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public ServiceReference lookupForAReferenceWithConfiguration(Record record, JsonObject configuration) {\n return serviceDiscovery.getReferenceWithConfiguration(record, configuration);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupForAReferenceWithConfiguration(Record record, Json... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_17 | {
"fields": [
{
"declarator": "eventBusConfiguration",
"modifier": "private",
"original_string": "private EventBusServiceConfiguration eventBusConfiguration;",
"type": "EventBusServiceConfiguration",
"var_name": "eventBusConfiguration"
}
],
"file": "domino-service-discovery/s... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishEventBusServiceAndAskingForItsProxy_thenShouldGetTheService(TestContext context) throws Exception {\n publishEventBusService(eventBusConfiguration);\n vertxServiceDiscovery.eventBus().getProxy(TestService.class, context.asyncAssertSucces... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public <T> void getProxy(Class<T> serviceClass, Handler<AsyncResult<T>> handler) {\n EventBusService.getProxy(serviceDiscovery, serviceClass, handler);\n }",
"class_method_signature": "EventBusServiceDiscovery.getProxy(Class<T> serviceClass, Handler<AsyncResult<T>> handler)",
"constructor": f... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_40 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForAllRecordsByJsonPassingNull_thenShouldGetAllRecords(TestContext context) throws Exception {\n publishTestRecord(record);\n publishTestRecord(otherRecord);\n lookupAllByJson(null, context.asyncAssertSuccess(records -> {\n ... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAllByJson(JsonObject jsonFilter, Handler<AsyncResult<List<Record>>> handler) {\n serviceDiscovery.getRecords(jsonFilter, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAllByJson(JsonObject jsonFilter, Handler<AsyncResult<List<Record>>> handler)",
"con... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_0 | {
"fields": [
{
"declarator": "SSL_CONFIGURATION_KEY = \"ssl.enabled\"",
"modifier": "private static final",
"original_string": "private static final String SSL_CONFIGURATION_KEY = \"ssl.enabled\";",
"type": "String",
"var_name": "SSL_CONFIGURATION_KEY"
},
{
"declarator... | {
"body": "@Test\n public void givenSslEnabledInConfiguration_whenHttpsPortIsMissingInConfiguration_thenShouldUseDefaultHttpsPort()\n throws Exception {\n configuration.put(SSL_CONFIGURATION_KEY, TRUE);\n configuration.remove(HTTPS_PORT);\n configureServer();\n assertThat(opt... | {
"fields": [],
"file": "ssl-server-configurator/src/main/java/org/dominokit/domino/http/server/config/JksServerConfigurator.java",
"identifier": "JksServerConfigurator",
"interfaces": "implements HttpServerConfigurator",
"methods": [
{
"class_method_signature": "JksServerConfigurator.configureHttpS... | {
"body": "private int getPort(ServerConfiguration configuration) {\n return configuration.getInteger(ConfigKies.HTTPS_PORT, ConfigKies.DEFAULT_HTTPS_PORT);\n }",
"class_method_signature": "JksServerConfigurator.getPort(ServerConfiguration configuration)",
"constructor": false,
"full_signature": "priv... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_21 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/JDBCServiceDiscoveryTest.java",
"identifier": "JDBCServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingMessageSourceAndAskingForItsClientWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishJDBCDataSourceService(dataSourceConfiguration.metadata(metadata));\n vertxServiceDiscovery.jdbc().getClient(fi... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient>> handler) {\n JDBCDataSource.getJDBCClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "JDBCServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_37 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForAllRecordsWithMatchingPredicate_thenShouldGetAllRecordsMatching(TestContext context) throws Exception {\n publishTestRecord(record);\n publishTestRecord(otherRecord);\n lookupAll(record -> record.getName().contains(SERVICE_NAME)... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAll(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler) {\n lookupAll(filter, false, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAll(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler)",
"construc... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_36 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForAllRecordsWithUnmatchingPredicate_thenShouldNotGetAnyRecord(TestContext context) throws Exception {\n publishTestRecord(record);\n publishTestRecord(otherRecord);\n lookupAll(record -> record.getName().equals(NOT_EXISTED_NAME), ... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAll(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler) {\n lookupAll(filter, false, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAll(Function<Record, Boolean> filter, Handler<AsyncResult<List<Record>>> handler)",
"construc... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_20 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/JDBCServiceDiscoveryTest.java",
"identifier": "JDBCServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingMessageSourceAndAskingForItsClient_thenShouldGetTheClient(TestContext context) throws Exception {\n publishJDBCDataSourceService(dataSourceConfiguration);\n vertxServiceDiscovery.jdbc().getClient(filter(), context.asyncAssertSuccess()... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient>> handler) {\n JDBCDataSource.getJDBCClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "JDBCServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<JDBCClient... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_1 | {
"fields": [
{
"declarator": "SSL_CONFIGURATION_KEY = \"ssl.enabled\"",
"modifier": "private static final",
"original_string": "private static final String SSL_CONFIGURATION_KEY = \"ssl.enabled\";",
"type": "String",
"var_name": "SSL_CONFIGURATION_KEY"
},
{
"declarator... | {
"body": "@Test\n public void givenSslEnabledInConfiguration_whenHttpsPortIsSetInConfiguration_thenShouldUsePortFromConfiguration()\n throws Exception {\n configuration.put(SSL_CONFIGURATION_KEY, TRUE);\n configuration.put(HTTPS_PORT, DEFAULT_TEST_SSL_PORT);\n configureServer();\n ... | {
"fields": [],
"file": "ssl-server-configurator/src/main/java/org/dominokit/domino/http/server/config/JksServerConfigurator.java",
"identifier": "JksServerConfigurator",
"interfaces": "implements HttpServerConfigurator",
"methods": [
{
"class_method_signature": "JksServerConfigurator.configureHttpS... | {
"body": "private int getPort(ServerConfiguration configuration) {\n return configuration.getInteger(ConfigKies.HTTPS_PORT, ConfigKies.DEFAULT_HTTPS_PORT);\n }",
"class_method_signature": "JksServerConfigurator.getPort(ServerConfiguration configuration)",
"constructor": false,
"full_signature": "priv... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_41 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForAllRecordsWithNameByJson_thenShouldGetAllRecordsMatching(TestContext context) throws Exception {\n publishTestRecord(record.setMetadata(metadata));\n publishTestRecord(otherRecord.setMetadata(metadata));\n lookupAllByJson(metada... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupAllByJson(JsonObject jsonFilter, Handler<AsyncResult<List<Record>>> handler) {\n serviceDiscovery.getRecords(jsonFilter, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupAllByJson(JsonObject jsonFilter, Handler<AsyncResult<List<Record>>> handler)",
"con... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_16 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/RedisServiceDiscoveryTest.java",
"identifier": "RedisServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataAndAskingForItsClientByJsonWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishRedisDataSourceService(dataSourceConfiguration.metadata(metadata));\n vertxServiceDiscovery.redis().getClien... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisClient>> handler) {\n RedisDataSource.getRedisClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "RedisServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<RedisC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_6 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsHttpClientByJsonWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration.metadata(metadata));\n getHttpClient(jsonFilter, metadata, context... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClient>> handler) {\n HttpEndpoint.getClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getHttpClient(Function<Record, Boolean> filter, Handler<AsyncResult<HttpClie... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_27 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRecord_thenTheRecordShouldBePublished(TestContext context) throws Exception {\n vertxServiceDiscovery.publishRecord(record, context.asyncAssertSuccess());\n }",
"class_method_signature": "VertxServiceDiscoveryTest.givenServiceDiscovery_... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void publishRecord(Record record, Handler<AsyncResult<Record>> handler) {\n serviceDiscovery.publish(record, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.publishRecord(Record record, Handler<AsyncResult<Record>> handler)",
"constructor": false,
"full_signature": "... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_31 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test(expected = InvalidFilterException.class)\n public void givenServiceDiscovery_whenLookupForARecordIncludingOutOfServicePassingNullFilter_thenShouldThrowException(TestContext context) throws Exception {\n lookupIncludeOutOfService(null, ar -> {\n });\n }",
"class_method_signature"... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookupIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler) {\n lookup(filter, true, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookupIncludeOutOfService(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handle... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_11 | {
"fields": [
{
"declarator": "messageSourceConfiguration",
"modifier": "private",
"original_string": "private MessageSourceConfiguration messageSourceConfiguration;",
"type": "MessageSourceConfiguration",
"var_name": "messageSourceConfiguration"
}
],
"file": "domino-service-... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingMessageSourceAndAskingForItsConsumer_thenShouldGetTheConsumer(TestContext context) throws Exception {\n publishMessageSourceService(messageSourceConfiguration);\n vertxServiceDiscovery.messageSource().getConsumer(record -> record.getN... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public <T> void getConsumer(Function<Record, Boolean> filter, Handler<AsyncResult<MessageConsumer<T>>> handler) {\n MessageSource.getConsumer(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "MessageSourceServiceDiscovery.getConsumer(Function<Record, Boolean> filter, Handler<... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_10 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsWebClientByJsonWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration.metadata(metadata));\n getWebClient(jsonFilter, metadata, context.a... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClient>> handler) {\n HttpEndpoint.getWebClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClien... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_30 | {
"fields": [
{
"declarator": "NOT_EXISTED_NAME = \"not existed name\"",
"modifier": "private static final",
"original_string": "private static final String NOT_EXISTED_NAME = \"not existed name\";",
"type": "String",
"var_name": "NOT_EXISTED_NAME"
},
{
"declarator": "r... | {
"body": "@Test\n public void givenServiceDiscovery_whenLookupForARecordMatchingPredicate_thenShouldGetTheRecord(TestContext context) throws Exception {\n publishTestRecord(record);\n lookup(r -> r.getName().equals(SERVICE_NAME), context.asyncAssertSuccess(record -> {\n context.assertEqua... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private",
"original_string": "private ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/domino/servi... | {
"body": "public void lookup(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler) {\n lookup(filter, false, handler);\n }",
"class_method_signature": "VertxServiceDiscovery.lookup(Function<Record, Boolean> filter, Handler<AsyncResult<Record>> handler)",
"constructor": false,
"full_... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_26 | {
"fields": [],
"file": "domino-service-discovery/src/test/java/org/dominokit/domino/service/discovery/type/MongoServiceDiscoveryTest.java",
"identifier": "MongoServiceDiscoveryTest",
"interfaces": "",
"superclass": "extends DataSourceServiceDiscoveryTest"
} | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishingRedisDataAndAskingForItsClientByJsonWithConfiguration_thenShouldGetTheClient(TestContext context) throws Exception {\n publishMongoDataSourceService(dataSourceConfiguration.metadata(metadata));\n vertxServiceDiscovery.mongo().getClien... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getClient(Function<Record, Boolean> filter, Handler<AsyncResult<MongoClient>> handler) {\n MongoDataSource.getMongoClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "MongoServiceDiscovery.getClient(Function<Record, Boolean> filter, Handler<AsyncResult<MongoC... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
91496363_7 | {
"fields": [
{
"declarator": "SERVICE_ROOT = \"service root\"",
"modifier": "private static final",
"original_string": "private static final String SERVICE_ROOT = \"service root\";",
"type": "String",
"var_name": "SERVICE_ROOT"
},
{
"declarator": "SERVICE_PORT = 18080"... | {
"body": "@Test\n public void givenServiceDiscovery_whenPublishHttpServiceAndAskingForItsWebClientByFilter_thenShouldGetTheClient(TestContext context) throws Exception {\n publishHttpEndpoint(httpEndpointConfiguration);\n getWebClient(record -> record.getName().equals(SERVICE_NAME), context.asyncAss... | {
"fields": [
{
"declarator": "serviceDiscovery",
"modifier": "private final",
"original_string": "private final ServiceDiscovery serviceDiscovery;",
"type": "ServiceDiscovery",
"var_name": "serviceDiscovery"
}
],
"file": "domino-service-discovery/src/main/java/org/dominokit/... | {
"body": "public void getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClient>> handler) {\n HttpEndpoint.getWebClient(serviceDiscovery, filter, handler);\n }",
"class_method_signature": "HttpServiceDiscovery.getWebClient(Function<Record, Boolean> filter, Handler<AsyncResult<WebClien... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91496363,
"size": 4655,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/DominoKit/domino-mvp"
} |
53291241_5 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testHelpDefault() {\n // Test default is false\n assertFalse(VeraCliArgParser.DEFAULT_ARGS.isHelp());\n\n // Test empty String[] args doesn't change that\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJ... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean isHelp() {\n\t\treturn this.help;\n\t}",
"class_method_signature": "VeraCliArgParser.isHelp()",
"constructor": false,
"full_signature": "public boolean isHelp()",
"identifier": "isHelp",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"sig... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_9 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testLogPassedOption() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test option works\n jCommander.parse(new String[] { \"--passed\" });\n assertFalse(parser.logPassed() ==... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean logPassed() {\n\t\treturn this.passed;\n\t}",
"class_method_signature": "VeraCliArgParser.logPassed()",
"constructor": false,
"full_signature": "public boolean logPassed()",
"identifier": "logPassed",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "bo... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_8 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testLogPassedDefault() {\n // Test default is false\n assertFalse(VeraCliArgParser.DEFAULT_ARGS.logPassed());\n\n // Test empty String[] args doesn't change that\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = ini... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean logPassed() {\n\t\treturn this.passed;\n\t}",
"class_method_signature": "VeraCliArgParser.logPassed()",
"constructor": false,
"full_signature": "public boolean logPassed()",
"identifier": "logPassed",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "bo... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_4 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testListOption() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test option works\n jCommander.parse(new String[] { \"--list\" });\n assertFalse(parser.listProfiles() == Ver... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean listProfiles() {\n\t\treturn this.listProfiles;\n\t}",
"class_method_signature": "VeraCliArgParser.listProfiles()",
"constructor": false,
"full_signature": "public boolean listProfiles()",
"identifier": "listProfiles",
"invocations": [],
"modifiers": "public",
"parameters": "()... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_3 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testListFlag() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test flag works\n jCommander.parse(new String[] { \"-l\" });\n assertFalse(parser.listProfiles() == VeraCliArgP... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean listProfiles() {\n\t\treturn this.listProfiles;\n\t}",
"class_method_signature": "VeraCliArgParser.listProfiles()",
"constructor": false,
"full_signature": "public boolean listProfiles()",
"identifier": "listProfiles",
"invocations": [],
"modifiers": "public",
"parameters": "()... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_13 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testExtractOption() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test option works\n jCommander.parse(new String[] { \"--extract\" });\n assertFalse(parser.extractFeatures... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean extractFeatures() {\n\t\treturn this.features | this.isPolicy();\n\t}",
"class_method_signature": "VeraCliArgParser.extractFeatures()",
"constructor": false,
"full_signature": "public boolean extractFeatures()",
"identifier": "extractFeatures",
"invocations": [
"isPolicy"
],
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_12 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testExtractFlag() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test flag works\n jCommander.parse(new String[] { \"-x\" });\n assertFalse(parser.extractFeatures() == VeraC... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean extractFeatures() {\n\t\treturn this.features | this.isPolicy();\n\t}",
"class_method_signature": "VeraCliArgParser.extractFeatures()",
"constructor": false,
"full_signature": "public boolean extractFeatures()",
"identifier": "extractFeatures",
"invocations": [
"isPolicy"
],
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_2 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testListDefault() {\n // Test default is false\n assertFalse(VeraCliArgParser.DEFAULT_ARGS.listProfiles());\n\n // Test empty String[] args doesn't change that\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initi... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean listProfiles() {\n\t\treturn this.listProfiles;\n\t}",
"class_method_signature": "VeraCliArgParser.listProfiles()",
"constructor": false,
"full_signature": "public boolean listProfiles()",
"identifier": "listProfiles",
"invocations": [],
"modifiers": "public",
"parameters": "()... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_11 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testExtractDefault() {\n // Test default is false\n assertFalse(VeraCliArgParser.DEFAULT_ARGS.extractFeatures());\n\n // Test empty String[] args doesn't change that\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander =... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean extractFeatures() {\n\t\treturn this.features | this.isPolicy();\n\t}",
"class_method_signature": "VeraCliArgParser.extractFeatures()",
"constructor": false,
"full_signature": "public boolean extractFeatures()",
"identifier": "extractFeatures",
"invocations": [
"isPolicy"
],
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_1 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testVersionOption() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test option works\n jCommander.parse(new String[] { \"--version\" });\n assertFalse(parser.showVersion() =... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean showVersion() {\n\t\treturn this.showVersion;\n\t}",
"class_method_signature": "VeraCliArgParser.showVersion()",
"constructor": false,
"full_signature": "public boolean showVersion()",
"identifier": "showVersion",
"invocations": [],
"modifiers": "public",
"parameters": "()",
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_0 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testVersionDefault() {\n // Test default is false\n assertFalse(VeraCliArgParser.DEFAULT_ARGS.showVersion());\n\n // Test empty String[] args doesn't change that\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = ini... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean showVersion() {\n\t\treturn this.showVersion;\n\t}",
"class_method_signature": "VeraCliArgParser.showVersion()",
"constructor": false,
"full_signature": "public boolean showVersion()",
"identifier": "showVersion",
"invocations": [],
"modifiers": "public",
"parameters": "()",
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_10 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testLogPassedSuccessOption() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test option works\n jCommander.parse(new String[] { \"--success\" });\n assertFalse(parser.logPas... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean logPassed() {\n\t\treturn this.passed;\n\t}",
"class_method_signature": "VeraCliArgParser.logPassed()",
"constructor": false,
"full_signature": "public boolean logPassed()",
"identifier": "logPassed",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "bo... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_7 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testHelpOption() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test option works\n jCommander.parse(new String[] { \"--help\" });\n assertFalse(parser.isHelp() == VeraCliAr... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean isHelp() {\n\t\treturn this.help;\n\t}",
"class_method_signature": "VeraCliArgParser.isHelp()",
"constructor": false,
"full_signature": "public boolean isHelp()",
"identifier": "isHelp",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"sig... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
53291241_6 | {
"fields": [
{
"declarator": "APP_NAME = VeraCliArgParserTest.class.getName()",
"modifier": "private final static",
"original_string": "private final static String APP_NAME = VeraCliArgParserTest.class.getName();",
"type": "String",
"var_name": "APP_NAME"
}
],
"file": "gui/s... | {
"body": "@Test\n public final void testHelpFlag() {\n VeraCliArgParser parser = new VeraCliArgParser();\n JCommander jCommander = initialiseJCommander(parser);\n\n // Test flag works\n jCommander.parse(new String[] { \"-h\" });\n assertFalse(parser.isHelp() == VeraCliArgParser.... | {
"fields": [
{
"declarator": "DEFAULT_ARGS = new VeraCliArgParser()",
"modifier": "final static",
"original_string": "final static VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();",
"type": "VeraCliArgParser",
"var_name": "DEFAULT_ARGS"
},
{
"declarator": "FLAG_... | {
"body": "public boolean isHelp() {\n\t\treturn this.help;\n\t}",
"class_method_signature": "VeraCliArgParser.isHelp()",
"constructor": false,
"full_signature": "public boolean isHelp()",
"identifier": "isHelp",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"sig... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 53291241,
"size": 3783,
"stargazer_count": 19,
"stars": null,
"updates": null,
"url": "https://github.com/veraPDF/veraPDF-apps"
} |
34971364_2 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractSingleAppenderWithSimpleLayout() {\n Properties props = new Properties();\n props.setProperty(\"log4j.appender.foo\", \"com.fragstealers.Test\");\n props.setProperty(\"log4j.appender.foo.layout\", \"com.fragstealers.Layout\");\n\n Log4JModel m... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Appender> getAppenders() {\n if (appenders == null) {\n final Map<String, String> appenderEntries = filterKeys(log4jProperties,\n containsPattern(\"^log4j\\\\.appender\\\\.[^\\\\.]+\\\\s*$\"));\n\n appenders = FluentIterable.from(appender... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_3 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractSingleAppenderWithComplexLayout() {\n Properties props = new Properties();\n props.setProperty(\"log4j.appender.foo\", \"com.fragstealers.Test\");\n props.setProperty(\"log4j.appender.foo.layout\", \"com.fragstealers.Layout\");\n props.setProp... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Appender> getAppenders() {\n if (appenders == null) {\n final Map<String, String> appenderEntries = filterKeys(log4jProperties,\n containsPattern(\"^log4j\\\\.appender\\\\.[^\\\\.]+\\\\s*$\"));\n\n appenders = FluentIterable.from(appender... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_4 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractBasicLogger() {\n Properties props = new Properties();\n props.setProperty(\"log4j.logger.foo.bar.baz\", \"debug\");\n\n Log4JModel model = new Log4JModel(props);\n\n List<Logger> loggers = model.getLoggers();\n\n assertThat(loggers.siz... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Logger> getLoggers() {\n if (loggers == null) {\n final Map<String, String> loggerEntries = filterKeys(log4jProperties,\n startsWith(\"log4j.logger.\"));\n\n loggers = FluentIterable.from(loggerEntries.entrySet())\n .tr... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_5 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractBasicLoggerWithAppenderRefs() {\n Properties props = new Properties();\n props.setProperty(\"log4j.logger.foo.bar.baz\", \"debug , ap1 , ap2\");\n props.setProperty(\"log4j.appender.ap1\", \"foo\");\n props.setProperty(\"log4j.appender.ap2\", ... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Logger> getLoggers() {\n if (loggers == null) {\n final Map<String, String> loggerEntries = filterKeys(log4jProperties,\n startsWith(\"log4j.logger.\"));\n\n loggers = FluentIterable.from(loggerEntries.entrySet())\n .tr... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_6 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractBasicLoggerWithAdditivity() {\n Properties props = new Properties();\n props.setProperty(\"log4j.logger.foo.bar.baz\", \"debug\");\n props.setProperty(\"log4j.additivity.foo.bar.baz\", \"true\");\n\n Log4JModel model = new Log4JModel(props);\n... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Logger> getLoggers() {\n if (loggers == null) {\n final Map<String, String> loggerEntries = filterKeys(log4jProperties,\n startsWith(\"log4j.logger.\"));\n\n loggers = FluentIterable.from(loggerEntries.entrySet())\n .tr... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_7 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldDealWithLoggersNamedAsCategories() {\n Properties props = new Properties();\n props.setProperty(\"log4j.category.foo.bar.baz\", \"debug\");\n\n Log4JModel model = new Log4JModel(props);\n\n List<Logger> loggers = model.getLoggers();\n\n assert... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Logger> getLoggers() {\n if (loggers == null) {\n final Map<String, String> loggerEntries = filterKeys(log4jProperties,\n startsWith(\"log4j.logger.\"));\n\n loggers = FluentIterable.from(loggerEntries.entrySet())\n .tr... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_0 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractSingleSimpleAppender() {\n Properties props = new Properties();\n props.setProperty(\"log4j.appender.foo\", \"com.fragstealers.Test\");\n\n Log4JModel model = new Log4JModel(props);\n\n List<Appender> appenders = model.getAppenders();\n\n ... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Appender> getAppenders() {\n if (appenders == null) {\n final Map<String, String> appenderEntries = filterKeys(log4jProperties,\n containsPattern(\"^log4j\\\\.appender\\\\.[^\\\\.]+\\\\s*$\"));\n\n appenders = FluentIterable.from(appender... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
34971364_1 | {
"fields": [],
"file": "log4j-properties-converter-core/src/test/java/com/fragstealers/log4j/core/Log4JModelTest.java",
"identifier": "Log4JModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldExtractSingleAppenderWithParams() {\n Properties props = new Properties();\n props.setProperty(\"log4j.appender.foo\", \"com.fragstealers.Test\");\n props.setProperty(\"log4j.appender.foo.1\", \"x\");\n props.setProperty(\"log4j.appender.foo.2\", \"y... | {
"fields": [
{
"declarator": "log4jProperties",
"modifier": "private final",
"original_string": "private final ImmutableSortedMap<String, String> log4jProperties;",
"type": "ImmutableSortedMap<String, String>",
"var_name": "log4jProperties"
},
{
"declarator": "appender... | {
"body": "public ImmutableList<Appender> getAppenders() {\n if (appenders == null) {\n final Map<String, String> appenderEntries = filterKeys(log4jProperties,\n containsPattern(\"^log4j\\\\.appender\\\\.[^\\\\.]+\\\\s*$\"));\n\n appenders = FluentIterable.from(appender... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 34971364,
"size": 175,
"stargazer_count": 20,
"stars": null,
"updates": null,
"url": "https://github.com/jroyals/log4j-properties-converter"
} |
3249257_3 | {
"fields": [],
"file": "ag-player-es/src/test/java/com/sematext/ag/es/sink/BulkJSONDataESSinkTest.java",
"identifier": "BulkJSONDataESSinkTest",
"interfaces": "",
"superclass": "extends TestCase"
} | {
"body": "@Test\n public void testGetBulkData() throws Exception {\n BulkJSONDataESSink sink = new BulkJSONDataESSink();\n Map<String, String> properties = new HashMap<String, String>();\n properties.put(SimpleJSONDataESSink.ES_BASE_URL_KEY, \"http://localhost:9200\");\n properties.put(SimpleJSONDataESS... | {
"fields": [
{
"declarator": "ES_BATCH_SIZE_KEY = \"bulkJSONDataEsSink.batchSize\"",
"modifier": "public static final",
"original_string": "public static final String ES_BATCH_SIZE_KEY = \"bulkJSONDataEsSink.batchSize\";",
"type": "String",
"var_name": "ES_BATCH_SIZE_KEY"
},
... | {
"body": "protected String getBulkData(List<SimpleDataEvent> events) {\n StringBuilder builder = new StringBuilder();\n for (SimpleDataEvent event : events) {\n builder.append(JSONUtils.getElasticSearchBulkHeader(event, this.indexName, this.typeName));\n builder.append(\"\\n\");\n builder.append... | {
"created": null,
"fork": null,
"fork_count": 11,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 3249257,
"size": 439,
"stargazer_count": 32,
"stars": null,
"updates": null,
"url": "https://github.com/sematext/ActionGenerator"
} |
3249257_2 | {
"fields": [],
"file": "ag-player-es/src/test/java/com/sematext/ag/es/util/JSONUtilsTest.java",
"identifier": "JSONUtilsTest",
"interfaces": "",
"superclass": "extends TestCase"
} | {
"body": "@Test\n public void testGetElasticSearchBulkHeader() throws Exception {\n assertEquals(\"{\\\"index\\\":{\\\"_index\\\":\\\"test\\\",\\\"_type\\\":\\\"doc\\\",\\\"_id\\\":\\\"1\\\"}}\",\n JSONUtils.getElasticSearchBulkHeader(new SimpleDataEvent(\"1\"), \"test\", \"doc\"));\n }",
"class_method... | {
"fields": [],
"file": "ag-player-es/src/main/java/com/sematext/ag/es/util/JSONUtils.java",
"identifier": "JSONUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "JSONUtils.JSONUtils()",
"constructor": true,
"full_signature": "private JSONUtils()",
"identifier": "... | {
"body": "public static String getElasticSearchBulkHeader(SimpleDataEvent event, String index, String type) {\n StringBuilder builder = new StringBuilder();\n builder.append(\"{\\\"index\\\":{\\\"_index\\\":\\\"\");\n builder.append(index);\n builder.append(\"\\\",\\\"_type\\\":\\\"\");\n builder.appe... | {
"created": null,
"fork": null,
"fork_count": 11,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 3249257,
"size": 439,
"stargazer_count": 32,
"stars": null,
"updates": null,
"url": "https://github.com/sematext/ActionGenerator"
} |
3249257_1 | {
"fields": [],
"file": "ag-player-es/src/test/java/com/sematext/ag/es/util/JSONUtilsTest.java",
"identifier": "JSONUtilsTest",
"interfaces": "",
"superclass": "extends TestCase"
} | {
"body": "@Test\n public void testGetElasticSearchAddDocument() throws Exception {\n Map<String, String> pairs = new HashMap<String, String>();\n pairs.put(\"aaa\", \"val_aaa\");\n pairs.put(\"bb\", \"val_bb\");\n assertEquals(\"{\\\"aaa\\\":\\\"val_aaa\\\",\\\"bb\\\":\\\"val_bb\\\"}\", JSONUtils.getEla... | {
"fields": [],
"file": "ag-player-es/src/main/java/com/sematext/ag/es/util/JSONUtils.java",
"identifier": "JSONUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "JSONUtils.JSONUtils()",
"constructor": true,
"full_signature": "private JSONUtils()",
"identifier": "... | {
"body": "public static String getElasticSearchAddDocument(Map<String, String> values) {\n StringBuilder builder = new StringBuilder();\n builder.append(\"{\");\n boolean first = true;\n for (Map.Entry<String, String> pair : values.entrySet()) {\n if (!first) {\n builder.append(\",\");\n ... | {
"created": null,
"fork": null,
"fork_count": 11,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 3249257,
"size": 439,
"stargazer_count": 32,
"stars": null,
"updates": null,
"url": "https://github.com/sematext/ActionGenerator"
} |
3249257_0 | {
"fields": [],
"file": "ag-player-solr/src/test/java/com/sematext/ag/solr/util/XMLUtilsTest.java",
"identifier": "XMLUtilsTest",
"interfaces": "",
"superclass": "extends TestCase"
} | {
"body": "@Test\n public void testGetSolrAddDocument() throws Exception {\n Map<String, String> pairs = new HashMap<String, String>();\n pairs.put(\"aaa\", \"val_aaa\");\n pairs.put(\"bb\", \"val_bb\");\n assertEquals(\"<add><doc><field name=\\\"aaa\\\">val_aaa</field><field name=\\\"bb\\\">val_bb</fiel... | {
"fields": [],
"file": "ag-player-solr/src/main/java/com/sematext/ag/solr/util/XMLUtils.java",
"identifier": "XMLUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "XMLUtils.XMLUtils()",
"constructor": true,
"full_signature": "private XMLUtils()",
"identifier": "X... | {
"body": "public static String getSolrAddDocument(Map<String, String> values) {\n StringBuilder builder = new StringBuilder();\n builder.append(\"<add><doc>\");\n for (Map.Entry<String, String> pair : values.entrySet()) {\n XMLUtils.addSolrField(builder, pair);\n }\n builder.append(\"</doc></add>... | {
"created": null,
"fork": null,
"fork_count": 11,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 3249257,
"size": 439,
"stargazer_count": 32,
"stars": null,
"updates": null,
"url": "https://github.com/sematext/ActionGenerator"
} |
35204049_272 | {
"fields": [],
"file": "catalog/src/test/java/org/apache/atlas/catalog/TermResourceProviderTest.java",
"identifier": "TermResourceProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = InvalidPayloadException.class)\n public void testCreateResource_invalidRequest__noName() throws Exception {\n AtlasTypeSystem typeSystem = createStrictMock(AtlasTypeSystem.class);\n QueryFactory queryFactory = createStrictMock(QueryFactory.class);\n AtlasQ... | {
"fields": [
{
"declarator": "taxonomyResourceProvider",
"modifier": "private",
"original_string": "private ResourceProvider taxonomyResourceProvider;",
"type": "ResourceProvider",
"var_name": "taxonomyResourceProvider"
},
{
"declarator": "entityResourceProvider",
... | {
"body": "public void createResource(Request request)\n throws InvalidPayloadException, ResourceAlreadyExistsException, ResourceNotFoundException {\n\n TermPath termPath = (TermPath) request.getQueryProperties().remove(\"termPath\");\n String qualifiedTermName = termPath.getFullyQualifiedNa... | {
"created": null,
"fork": null,
"fork_count": 109,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 35204049,
"size": 34267,
"stargazer_count": 95,
"stars": null,
"updates": null,
"url": "https://github.com/apache/incubator-atlas"
} |
35204049_225 | {
"fields": [
{
"declarator": "CLASSTYPE_CUSTOMER = \"Customer\"",
"modifier": "private",
"original_string": "private String CLASSTYPE_CUSTOMER = \"Customer\";",
"type": "String",
"var_name": "CLASSTYPE_CUSTOMER"
},
{
"declarator": "STRUCTTYPE_ADDRESS = \"Address\"",
... | {
"body": "@Test(expectedExceptions = AtlasException.class)\n public void testPutTypeWithNullType() throws Exception {\n\n cache.put(null);\n fail(\"Null type should be not allowed in 'put'\");\n }",
"class_method_signature": "DefaultTypeCacheTest.testPutTypeWithNullType()",
"constructor": fal... | {
"fields": [
{
"declarator": "LOG = LoggerFactory.getLogger(DefaultTypeCache.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOG = LoggerFactory.getLogger(DefaultTypeCache.class);",
"type": "Logger",
"var_name": "LOG"
},
{
"... | {
"body": "@Override\n public void put(IDataType type) throws AtlasException {\n\n assertValidType(type);\n types_.put(type.getName(), type);\n }",
"class_method_signature": "DefaultTypeCache.put(IDataType type)",
"constructor": false,
"full_signature": "@Override public void put(IDataType t... | {
"created": null,
"fork": null,
"fork_count": 109,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 35204049,
"size": 34267,
"stargazer_count": 95,
"stars": null,
"updates": null,
"url": "https://github.com/apache/incubator-atlas"
} |
35204049_233 | {
"fields": [
{
"declarator": "CLASSTYPE_CUSTOMER = \"Customer\"",
"modifier": "private",
"original_string": "private String CLASSTYPE_CUSTOMER = \"Customer\";",
"type": "String",
"var_name": "CLASSTYPE_CUSTOMER"
},
{
"declarator": "STRUCTTYPE_ADDRESS = \"Address\"",
... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCacheRemoveByNullCategory() throws Exception {\n\n cache.remove(null, CLASSTYPE_CUSTOMER);\n fail(\"Null type should be not allowed in 'remove'\");\n }",
"class_method_signature": "DefaultTypeCacheTest.testCa... | {
"fields": [
{
"declarator": "LOG = LoggerFactory.getLogger(DefaultTypeCache.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOG = LoggerFactory.getLogger(DefaultTypeCache.class);",
"type": "Logger",
"var_name": "LOG"
},
{
"... | {
"body": "@Override\n public void remove(String typeName) throws AtlasException {\n\n types_.remove(typeName);\n }",
"class_method_signature": "DefaultTypeCache.remove(String typeName)",
"constructor": false,
"full_signature": "@Override public void remove(String typeName)",
"identifier": "remov... | {
"created": null,
"fork": null,
"fork_count": 109,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 35204049,
"size": 34267,
"stargazer_count": 95,
"stars": null,
"updates": null,
"url": "https://github.com/apache/incubator-atlas"
} |
35204049_49 | {
"fields": [],
"file": "webapp/src/test/java/org/apache/atlas/web/service/AtlasZookeeperSecurityPropertiesTest.java",
"identifier": "AtlasZookeeperSecurityPropertiesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void shouldThrowExceptionForNullAcl() {\n ACL acl = AtlasZookeeperSecurityProperties.parseAcl(null);\n fail(\"Should have thrown exception for null ACL string\");\n }",
"class_method_signature": "AtlasZookeeperSecurit... | {
"fields": [],
"file": "webapp/src/main/java/org/apache/atlas/web/service/AtlasZookeeperSecurityProperties.java",
"identifier": "AtlasZookeeperSecurityProperties",
"interfaces": "",
"methods": [
{
"class_method_signature": "AtlasZookeeperSecurityProperties.parseAcl(String aclString, ACL defaultAcl)... | {
"body": "public static ACL parseAcl(String aclString, ACL defaultAcl) {\n if (StringUtils.isEmpty(aclString)) {\n return defaultAcl;\n }\n return parseAcl(aclString);\n }",
"class_method_signature": "AtlasZookeeperSecurityProperties.parseAcl(String aclString, ACL defaultAcl)",
... | {
"created": null,
"fork": null,
"fork_count": 109,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 35204049,
"size": 34267,
"stargazer_count": 95,
"stars": null,
"updates": null,
"url": "https://github.com/apache/incubator-atlas"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.