id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
18644701_79 | {
"fields": [
{
"declarator": "PROJECT_ID = \"TEST_PROJ_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "USER_ID = \"TEST_USER_ID\""... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testTriggerNullProject() throws Exception {\n notificationService.triggerEvent(null, mock(ProjectEvent.class));\n }",
"class_method_signature": "NotificationServiceTest.testTriggerNullProject()",
"constructor": false,... | {
"fields": [],
"file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java",
"identifier": "NotificationService",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa... | {
"body": "public void triggerEvent(final Project project, final ProjectEvent event) {\n notNull(project, \"project\");\n notNull(event, \"event\");\n try {\n restTemplate.postForEntity(ProjectEvent.URI, event, Void.class, project.getId());\n } catch (GoodDataRestException | Res... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_257 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/notification/TimerEventTest.java",
"identifier": "TimerEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeserialization() throws Exception {\n final TimerEvent timerEvent = readObjectFromResource(\"/notification/timerEvent.json\", TimerEvent.class);\n\n assertThat(timerEvent.getCronExpression(), is(\"0 * * * * *\"));\n }",
"class_method_signature": "TimerEventTes... | {
"fields": [
{
"declarator": "cronExpression",
"modifier": "private final",
"original_string": "private final String cronExpression;",
"type": "String",
"var_name": "cronExpression"
}
],
"file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/notification/TimerEven... | {
"body": "public String getCronExpression() {\n return cronExpression;\n }",
"class_method_signature": "TimerEvent.getCronExpression()",
"constructor": false,
"full_signature": "public String getCronExpression()",
"identifier": "getCronExpression",
"invocations": [],
"modifiers": "public",
"p... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_168 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/gdc/LinkEntriesTest.java",
"identifier": "LinkEntriesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final LinkEntries linkEntries = readObjectFromResource(\"/gdc/linkEntries.json\", LinkEntries.class);\n\n assertThat(linkEntries.toString(), matchesPattern(LinkEntries.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"clas... | {
"fields": [
{
"declarator": "entries",
"modifier": "private final",
"original_string": "private final List<LinkEntry> entries;",
"type": "List<LinkEntry>",
"var_name": "entries"
}
],
"file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/gdc/LinkEntries.java",
... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "LinkEntries.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defau... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_187 | {
"fields": [
{
"declarator": "NAME = \"default\"",
"modifier": "private static final",
"original_string": "private static final String NAME = \"default\";",
"type": "String",
"var_name": "NAME"
},
{
"declarator": "DESCRIPTION = \"Default schema for new ADS instance\"",... | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final WarehouseSchema warehouseSchema = readObjectFromResource(\"/warehouse/schema.json\", WarehouseSchema.class);\n\n assertThat(warehouseSchema.toString(), matchesPattern(WarehouseSchema.class.getSimpleName() + \"\\\\[.*\\\\]\... | {
"fields": [
{
"declarator": "SELF_LINK = \"self\"",
"modifier": "private static final",
"original_string": "private static final String SELF_LINK = \"self\";",
"type": "String",
"var_name": "SELF_LINK"
},
{
"declarator": "INSTANCE_LINK = \"instance\"",
"modifier... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "WarehouseSchema.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"d... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_304 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationTypeTest.java",
"identifier": "ProjectValidationTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeserialize() throws Exception {\n final ProjectValidationType myValidationType = OBJECT_MAPPER.readValue(\"\\\"myValidationType\\\"\", ProjectValidationType.class);\n assertThat(myValidationType, notNullValue());\n assertThat(myValidationType.getValue(), is(... | {
"fields": [
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final String value;",
"type": "String",
"var_name": "value"
},
{
"declarator": "PDM_VS_DWH = new ProjectValidationType(\"pdm::pdm_vs_dwh\")",
"modifier": "public static... | {
"body": "@JsonValue\n public String getValue() {\n return value;\n }",
"class_method_signature": "ProjectValidationType.getValue()",
"constructor": false,
"full_signature": "@JsonValue public String getValue()",
"identifier": "getValue",
"invocations": [],
"modifiers": "@JsonValue public",
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_80 | {
"fields": [
{
"declarator": "PROJECT_ID = \"TEST_PROJ_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "USER_ID = \"TEST_USER_ID\""... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateChannelNullAccount() throws Exception {\n notificationService.createChannel(null, channel);\n }",
"class_method_signature": "NotificationServiceTest.testCreateChannelNullAccount()",
"constructor": false,
"... | {
"fields": [],
"file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java",
"identifier": "NotificationService",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa... | {
"body": "public Channel createChannel(final Account account, final Channel channel) {\n notNull(account, \"account\");\n notNull(channel, \"channel\");\n notEmpty(account.getId(), \"account.id\");\n\n try {\n return restTemplate.postForObject(Channel.URI, channel, Channel.clas... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_241 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java",
"identifier": "StatusTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsFailedOnNullCode() throws Exception {\n assertThat(new Status(null, \"\", \"\").isFailed(), is(false));\n }",
"class_method_signature": "StatusTest.testIsFailedOnNullCode()",
"constructor": false,
"full_signature": "@Test public void testIsFailedOnNullCode()",
... | {
"fields": [
{
"declarator": "code",
"modifier": "private final",
"original_string": "private final String code;",
"type": "String",
"var_name": "code"
},
{
"declarator": "detail",
"modifier": "private final",
"original_string": "private final String detail... | {
"body": "@JsonIgnore\n public boolean isFailed() {\n return ERROR.name().equalsIgnoreCase(code) || USER_ERROR.name().equalsIgnoreCase(code);\n }",
"class_method_signature": "Status.isFailed()",
"constructor": false,
"full_signature": "@JsonIgnore public boolean isFailed()",
"identifier": "isFai... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_38 | {
"fields": [
{
"declarator": "PROJECT_ID = \"PROJECT_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"",
... | {
"body": "@Test\n public void testListUserProcessesWithOneProcesses() throws IOException {\n when(restTemplate.getForObject(create(USER_PROCESS_URI), DataloadProcesses.class))\n .thenReturn(OBJECT_MAPPER.readValue(PROCESSES_JSON, DataloadProcesses.class));\n final Collection<DataloadP... | {
"fields": [
{
"declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);",
"type": "UriTemplate",
"var_name": "SCHEDULE_TEMPLATE"
},... | {
"body": "public Collection<DataloadProcess> listUserProcesses() {\n return listProcesses(USER_PROCESSES_TEMPLATE.expand(accountService.getCurrent().getId()));\n }",
"class_method_signature": "ProcessService.listUserProcesses()",
"constructor": false,
"full_signature": "public Collection<DataloadProc... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_216 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java",
"identifier": "Zendesk4ProcessExecutionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testShouldSerializeDownloadParams() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n execution.setDownloadParams(new DownloadParams(true, 5, 3600));\n assertThat(execution, jsonEquals(resource(\"connector/process-execution-zendesk4... | {
"fields": [
{
"declarator": "incremental",
"modifier": "private",
"original_string": "private Boolean incremental;",
"type": "Boolean",
"var_name": "incremental"
},
{
"declarator": "reload",
"modifier": "private",
"original_string": "private Boolean reload... | {
"body": "public void setDownloadParams(DownloadParams downloadParams) {\n this.downloadParams = downloadParams;\n }",
"class_method_signature": "Zendesk4ProcessExecution.setDownloadParams(DownloadParams downloadParams)",
"constructor": false,
"full_signature": "public void setDownloadParams(Download... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_144 | {
"fields": [
{
"declarator": "ACCOUNT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String ACCOUNT_ID = \"17\";",
"type": "String",
"var_name": "ACCOUNT_ID"
},
{
"declarator": "ID = \"11\"",
"modifier": "private static... | {
"body": "@Test(expectedExceptions = GoodDataRestException.class)\n public void testGetProjectByUriServerError() {\n when(restTemplate.getForObject(URI, Project.class)).thenThrow(new GoodDataRestException(500, \"\", \"\", \"\", \"\"));\n service.getProjectByUri(URI);\n }",
"class_method_signatu... | {
"fields": [
{
"declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);",
"type": "UriTemplate",
"var_name": "PROJECT_TEMPLATE"
},
... | {
"body": "public Project getProjectByUri(final String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, Project.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\n throw new... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_43 | {
"fields": [
{
"declarator": "service",
"modifier": "private",
"original_string": "private AuditEventService service;",
"type": "AuditEventService",
"var_name": "service"
}
],
"file": "gooddata-java/src/test/java/com/gooddata/sdk/service/auditevent/AuditEventServiceTest.java... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = \".*account.id.*\")\n public void shouldFailOnNullAccountIdButPage() throws Exception {\n service.listAuditEvents(mock(Account.class), new CustomPageRequest());\n }",
"class_method_signature": "Audit... | {
"fields": [
{
"declarator": "ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI);",
"type": "UriTemplate",
"var_name": "ADMIN_U... | {
"body": "public PageBrowser<AuditEvent> listAuditEvents(final String domainId) {\n return listAuditEvents(domainId, new AuditEventPageRequest());\n }",
"class_method_signature": "AuditEventService.listAuditEvents(final String domainId)",
"constructor": false,
"full_signature": "public PageBrowser<Au... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_282 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/NestedAttributeTest.java",
"identifier": "NestedAttributeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final NestedAttribute attribute = readObjectFromResource(\"/md/dimensionAttribute.json\", NestedAttribute.class);\n\n assertThat(attribute.toString(), matchesPattern(NestedAttribute.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n ... | {
"fields": [
{
"declarator": "serialVersionUID = -5733300152707435624L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = -5733300152707435624L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "con... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "NestedAttribute.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"d... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_113 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetObjByUriWithNoResponseFromAPI() {\n service.getObjByUri(URI, Obj.class);\n }",
"class_method_signature": "MetadataServiceTest.testGetObjByUriWithNoResponseFromAPI()",
"constructor": false,
"full_signature": "@Test(e... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_14 | {
"fields": [
{
"declarator": "PROJECT_ID = \"11\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"11\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "FLAG_NAME = \"flag1\"",
"modifier": "priv... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullFlagThenUpdateProjectFeatureFlagShouldThrow() throws Exception {\n service.updateProjectFeatureFlag(null);\n }",
"class_method_signature": "FeatureFlagServiceTest.whenNullFlagThenUpdateProjectFeatureFlagShouldTh... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_... | {
"body": "public ProjectFeatureFlag updateProjectFeatureFlag(final ProjectFeatureFlag flag) {\n notNull(flag, \"flag\");\n notEmpty(flag.getUri(), \"flag.uri\");\n\n try {\n restTemplate.put(flag.getUri(), flag);\n return getProjectFeatureFlag(flag.getUri());\n } cat... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_1 | {
"fields": [
{
"declarator": "PROJECT_ID = \"11\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"11\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "FLAG_NAME = \"flag1\"",
"modifier": "priv... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void whenEmptyResponseThenGetFeatureFlagsShouldThrow() throws Exception {\n when(restTemplate.getForObject(new URI(FEATURE_FLAGS_URI), FeatureFlags.class)).thenReturn(null);\n service.listFeatureFlags(project);\n }",
"class_... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_... | {
"body": "public FeatureFlags listFeatureFlags(final Project project) {\n notNull(project, \"project\");\n try {\n final FeatureFlags featureFlags = restTemplate\n .getForObject(AGGREGATED_FEATURE_FLAGS_TEMPLATE.expand(project.getId()), FeatureFlags.class);\n\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_105 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = GoodDataRestException.class)\n public void testGetObjsByUrisWithServerSideHTTPError() {\n final BulkGetUris request = new BulkGetUris(Collections.singletonList(\"\"));\n when(restTemplate.postForObject(BulkGet.URI, request, BulkGet.class, PROJECT_ID)).thenThrow(n... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public Collection<Obj> getObjsByUris(Project project, Collection<String> uris) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(uris, \"uris\");\n\n try {\n final BulkGet result = restTemplate.postForObject(BulkGet.URI, new Bulk... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_152 | {
"fields": [
{
"declarator": "ACCOUNT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String ACCOUNT_ID = \"17\";",
"type": "String",
"var_name": "ACCOUNT_ID"
},
{
"declarator": "ID = \"11\"",
"modifier": "private static... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testUpdateUserInProjectNullUser() {\n service.updateUserInProject(mock(Project.class), (User) null);\n }",
"class_method_signature": "ProjectServiceTest.testUpdateUserInProjectNullUser()",
"constructor": false,
"ful... | {
"fields": [
{
"declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);",
"type": "UriTemplate",
"var_name": "PROJECT_TEMPLATE"
},
... | {
"body": "public void updateUserInProject(final Project project, final User... users) {\n notNull(project, \"project\");\n notNull(users, \"users\");\n notEmpty(project.getId(), \"project.id\");\n\n doPostProjectUsersUpdate(project, users);\n }",
"class_method_signature": "ProjectSer... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_55 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = DatasetNotFoundException.class)\n public void testGetDatasetManifestWhenNotFound() {\n when(restTemplate.getForObject(DatasetManifest.URI, DatasetManifest.class, PROJECT_ID, DATASET_ID))\n .thenThrow(new GoodDataRestException(404, \"\", \"\", \"\", \"\"))... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public DatasetManifest getDatasetManifest(Project project, String datasetId) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notEmpty(datasetId, \"datasetId\");\n try {\n return restTemplate.getForObject(DatasetManifest.URI, DatasetMan... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_294 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/report/GridTest.java",
"identifier": "GridTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final Grid grid = readObjectFromResource(\"/md/report/grid.json\", Grid.class);\n\n assertThat(grid.toString(), matchesPattern(Grid.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_signature": "GridTest.testT... | {
"fields": [
{
"declarator": "serialVersionUID = -1274604506924273761L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = -1274604506924273761L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "col... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "Grid.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defaultToStr... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_22 | {
"fields": [
{
"declarator": "SOME_FILE = \"someFile.txt\"",
"modifier": "private static final",
"original_string": "private static final String SOME_FILE = \"someFile.txt\";",
"type": "String",
"var_name": "SOME_FILE"
},
{
"declarator": "SOME_FILE_PATH = Paths.get(\"a... | {
"body": "@Test\n public void shouldZipDirWithoutRoot() throws Exception {\n Path toZipDir = temporaryFolder.resolve(\"toZip\");\n toZipDir.toFile().mkdirs();\n File toZipFile = toZipDir.resolve(SOME_FILE_PATH).toFile();\n toZipFile.getParentFile().mkdirs();\n toZipFile.createNe... | {
"fields": [],
"file": "gooddata-java/src/main/java/com/gooddata/sdk/service/util/ZipHelper.java",
"identifier": "ZipHelper",
"interfaces": "",
"methods": [
{
"class_method_signature": "ZipHelper.zip(File file, OutputStream output)",
"constructor": false,
"full_signature": "public stati... | {
"body": "public static void zip(File file, OutputStream output) throws IOException {\n zip(file, output, false);\n }",
"class_method_signature": "ZipHelper.zip(File file, OutputStream output)",
"constructor": false,
"full_signature": "public static void zip(File file, OutputStream output)",
"ident... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_125 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = NonUniqueObjException.class)\n public void testGetObjUriMoreThanOneResult() {\n final Query queryResult = mock(Query.class);\n final Entry resultEntry1 = mock(Entry.class);\n final Entry resultEntry2 = mock(Entry.class);\n when(restTemplate.getForOb... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Queryable> String getObjUri(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } els... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_75 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test\n public void testGetLastUploadForDatasetMissingUri() throws Exception {\n mockDataSetInfo(DATASET_UPLOADS_URI, null);\n\n assertThat(service.getLastUploadForDataset(project, DATASET_ID), nullValue());\n }",
"class_method_signature": "DatasetServiceTest.testGetLastUploadForDatas... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public Upload getLastUploadForDataset(Project project, String datasetId) {\n final UploadsInfo.DataSet dataSet = getDataSetInfo(project, datasetId);\n\n if (isEmpty(dataSet.getLastUploadUri())) {\n return null;\n }\n\n try {\n return restTemplate.getForObje... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_172 | {
"fields": [
{
"declarator": "MAIL = \"fake@gooddata.com\"",
"modifier": "private static final",
"original_string": "private static final String MAIL = \"fake@gooddata.com\";",
"type": "String",
"var_name": "MAIL"
},
{
"declarator": "FIRST_NAME = \"Blah\"",
"modi... | {
"body": "@Test\n public void testSerialization() {\n final Account account = new Account(FIRST_NAME, LAST_NAME, null);\n account.setIpWhitelist(Arrays.asList(\"1.2.3.4/32\"));\n assertThat(account, jsonEquals(resource(\"account/account-input.json\")));\n }",
"class_method_signature": "A... | {
"fields": [
{
"declarator": "URI = \"/gdc/account/profile/{id}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/account/profile/{id}\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ACCOUNTS_URI = \"/gdc/ac... | {
"body": "public void setIpWhitelist(final List<String> ipWhitelist) {\n this.ipWhitelist = ipWhitelist;\n }",
"class_method_signature": "Account.setIpWhitelist(final List<String> ipWhitelist)",
"constructor": false,
"full_signature": "public void setIpWhitelist(final List<String> ipWhitelist)",
"i... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_308 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/model/ModelDiffTest.java",
"identifier": "ModelDiffTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetUpdateMaqlsReturnsBest() throws Exception {\n final ModelDiff diff = new ModelDiff(\n new UpdateScript(false, false, \"maql1\"),\n new UpdateScript(true, false, \"maql2\")\n );\n\n assertThat(diff.getUpdateMaql(), hasSize(1));... | {
"fields": [
{
"declarator": "updateScripts",
"modifier": "private final",
"original_string": "private final List<UpdateScript> updateScripts;",
"type": "List<UpdateScript>",
"var_name": "updateScripts"
}
],
"file": "gooddata-java-model/src/main/java/com/gooddata/sdk/model/p... | {
"body": "public List<String> getUpdateMaql() {\n if (updateScripts.isEmpty()) {\n return emptyList();\n }\n\n UpdateScript chosenScript;\n if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) {\n return unmodifiableList(chosenScript.getMaqlChunks());\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_63 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testLoadDatasetByIdWithNullId() {\n service.loadDataset(project, (String) null, stream);\n }",
"class_method_signature": "DatasetServiceTest.testLoadDatasetByIdWithNullId()",
"constructor": false,
"full_signature": ... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,\n final InputStream dataset) {\n notNull(project, \"project\");\n notNull(dataset, \"dataset\");\n notNull(manifest, \"manifest\");\n manifest.se... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_164 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/ProjectFeatureFlagTest.java",
"identifier": "ProjectFeatureFlagTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDefaultValue() throws Exception {\n final ProjectFeatureFlag flag = new ProjectFeatureFlag(\"test\");\n assertThat(flag.isEnabled(), is(true));\n }",
"class_method_signature": "ProjectFeatureFlagTest.testDefaultValue()",
"constructor": false,
"full_signatur... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAG_URI = ProjectFeatureFlags.PROJECT_FEATURE_FLAGS_URI + \"/{featureFlag}\"",
"modifier": "public static final",
"original_string": "public static final String PROJECT_FEATURE_FLAG_URI = ProjectFeatureFlags.PROJECT_FEATURE_FLAGS_URI + \"/{featureF... | {
"body": "@JsonProperty(\"value\")\n public boolean isEnabled() {\n return enabled;\n }",
"class_method_signature": "ProjectFeatureFlag.isEnabled()",
"constructor": false,
"full_signature": "@JsonProperty(\"value\") public boolean isEnabled()",
"identifier": "isEnabled",
"invocations": [],
"... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_34 | {
"fields": [
{
"declarator": "PROJECT_ID = \"PROJECT_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"",
... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetProcessByUriClientError() {\n when(restTemplate.getForObject(PROCESS_URI, DataloadProcess.class)).thenThrow(new RestClientException(\"\"));\n processService.getProcessByUri(PROCESS_URI);\n }",
"class_method_signa... | {
"fields": [
{
"declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);",
"type": "UriTemplate",
"var_name": "SCHEDULE_TEMPLATE"
},... | {
"body": "public DataloadProcess getProcessByUri(String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, DataloadProcess.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_133 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test\n public void testFindUrisBySummary() {\n final Query queryResult = mock(Query.class);\n final Entry resultEntry1 = mock(Entry.class);\n final Entry resultEntry2 = mock(Entry.class);\n final String summary = \"mySummary\";\n final String uri1 = \"uri1\";\n ... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Queryable> Collection<String> findUris(Project project,\n Class<T> cls,\n Restriction... restrictions) {\n final Collection<Entry> entries = find(project, cls, re... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_261 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/DatasetTest.java",
"identifier": "DatasetTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() {\n final Dataset dataset = new Dataset(\"Dataset\");\n\n assertThat(dataset.toString(), matchesPattern(Dataset.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_signature": "DatasetTest.testToStringFormat()",
"constructor": fal... | {
"fields": [
{
"declarator": "serialVersionUID = -6510493111358411706L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = -6510493111358411706L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "DAT... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "Dataset.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defaultTo... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_324 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/RolesTest.java",
"identifier": "RolesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final Roles roles = readObjectFromResource(\"/project/project-roles.json\", Roles.class);\n\n assertThat(roles.toString(), matchesPattern(Roles.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_signature": "Ro... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{projectId}/roles\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{projectId}/roles\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "roles",
... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "Roles.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defaultToSt... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_148 | {
"fields": [
{
"declarator": "ACCOUNT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String ACCOUNT_ID = \"17\";",
"type": "String",
"var_name": "ACCOUNT_ID"
},
{
"declarator": "ID = \"11\"",
"modifier": "private static... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testAddUserToProjectNullProject() {\n service.addUserToProject(null, mock(Account.class));\n }",
"class_method_signature": "ProjectServiceTest.testAddUserToProjectNullProject()",
"constructor": false,
"full_signatur... | {
"fields": [
{
"declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);",
"type": "UriTemplate",
"var_name": "PROJECT_TEMPLATE"
},
... | {
"body": "public User addUserToProject(final Project project, final Account account, final Role... userRoles) {\n notNull(project, \"project\");\n notNull(account, \"account\");\n notEmpty(account.getUri(), \"account.uri\");\n notNull(userRoles, \"userRoles\");\n validateRoleURIs(u... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_18 | {
"fields": [
{
"declarator": "PROJECT_ID = \"11\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"11\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "FLAG_NAME = \"flag1\"",
"modifier": "priv... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void whenClientErrorResponseThenDeleteProjectFeatureFlagShouldThrow() throws Exception {\n when(projectFeatureFlag.getUri()).thenReturn(PROJECT_FEATURE_FLAG_URI);\n doThrow(new RestClientException(\"\")).when(restTemplate).delete... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_... | {
"body": "public void deleteProjectFeatureFlag(final ProjectFeatureFlag flag) {\n notNull(flag, \"flag\");\n notEmpty(flag.getUri(), \"flag URI\");\n\n try {\n restTemplate.delete(flag.getUri());\n } catch (GoodDataException | RestClientException e) {\n throw new Goo... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_236 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/StatusTest.java",
"identifier": "StatusTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsFinishedOnNullCode() throws Exception {\n assertThat(new Status(null, \"\", \"\").isFinished(), is(false));\n }",
"class_method_signature": "StatusTest.testIsFinishedOnNullCode()",
"constructor": false,
"full_signature": "@Test public void testIsFinishedOnNullCo... | {
"fields": [
{
"declarator": "code",
"modifier": "private final",
"original_string": "private final String code;",
"type": "String",
"var_name": "code"
},
{
"declarator": "detail",
"modifier": "private final",
"original_string": "private final String detail... | {
"body": "@JsonIgnore\n public boolean isFinished() {\n return SYNCHRONIZED.name().equalsIgnoreCase(code) || isFailed();\n }",
"class_method_signature": "Status.isFinished()",
"constructor": false,
"full_signature": "@JsonIgnore public boolean isFinished()",
"identifier": "isFinished",
"invoca... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_220 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4ProcessExecutionTest.java",
"identifier": "Zendesk4ProcessExecutionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetDownloadParams() {\n final Zendesk4ProcessExecution execution = new Zendesk4ProcessExecution();\n final DownloadParams downloadParams = execution.getDownloadParams();\n assertThat(downloadParams, notNullValue());\n }",
"class_method_signature": "Zende... | {
"fields": [
{
"declarator": "incremental",
"modifier": "private",
"original_string": "private Boolean incremental;",
"type": "Boolean",
"var_name": "incremental"
},
{
"declarator": "reload",
"modifier": "private",
"original_string": "private Boolean reload... | {
"body": "@JsonIgnore\n public DownloadParams getDownloadParams() {\n if (downloadParams == null) {\n downloadParams = new DownloadParams();\n }\n return downloadParams;\n }",
"class_method_signature": "Zendesk4ProcessExecution.getDownloadParams()",
"constructor": false,
"... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_109 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = ObjNotFoundException.class)\n public void testGetObjByUriNotFound() {\n final GoodDataRestException restException = mock(GoodDataRestException.class);\n when(restException.getStatusCode()).thenReturn(HttpStatus.NOT_FOUND.value());\n when(restTemplate.getFo... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Obj> T getObjByUri(String uri, Class<T> cls) {\n notNull(uri, \"uri\");\n notNull(cls, \"cls\");\n try {\n final T result = restTemplate.getForObject(uri, cls);\n\n if (result != null) {\n return result;\n } else {\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_59 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testLoadDatasetWithNullManifest() {\n service.loadDataset(project, (DatasetManifest) null, stream);\n }",
"class_method_signature": "DatasetServiceTest.testLoadDatasetWithNullManifest()",
"constructor": false,
"full... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,\n final InputStream dataset) {\n notNull(project, \"project\");\n notNull(dataset, \"dataset\");\n notNull(manifest, \"manifest\");\n manifest.se... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_277 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/AttributeElementsTest.java",
"identifier": "AttributeElementsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldDeserialize() throws Exception {\n final AttributeElements elements = readObjectFromResource(\"/md/attributeElements.json\", AttributeElements.class);\n assertThat(elements, is(notNullValue()));\n\n final List<AttributeElement> elementsList = elements.getEl... | {
"fields": [
{
"declarator": "URI = Obj.OBJ_URI + \"/elements\"",
"modifier": "static final",
"original_string": "static final String URI = Obj.OBJ_URI + \"/elements\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "elements",
"modifier": "private fina... | {
"body": "public List<AttributeElement> getElements() {\n return elements;\n }",
"class_method_signature": "AttributeElements.getElements()",
"constructor": false,
"full_signature": "public List<AttributeElement> getElements()",
"identifier": "getElements",
"invocations": [],
"modifiers": "publ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_298 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/DataLoadingColumnTest.java",
"identifier": "DataLoadingColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final DataLoadingColumn column = readObjectFromResource(\"/md/dataLoadingColumn.json\", DataLoadingColumn.class);\n\n assertThat(column.toString(), matchesPattern(DataLoadingColumn.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n ... | {
"fields": [
{
"declarator": "serialVersionUID = -1280718594585386535L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = -1280718594585386535L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "INT... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "DataLoadingColumn.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_52 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetDatasetManifestWithNullProject() {\n service.getDatasetManifest(null, DATASET_ID);\n }",
"class_method_signature": "DatasetServiceTest.testGetDatasetManifestWithNullProject()",
"constructor": false,
"full_sig... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public DatasetManifest getDatasetManifest(Project project, String datasetId) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notEmpty(datasetId, \"datasetId\");\n try {\n return restTemplate.getForObject(DatasetManifest.URI, DatasetMan... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_293 | {
"fields": [
{
"declarator": "FORMAT = \"oneNumber\"",
"modifier": "public static final",
"original_string": "public static final String FORMAT = \"oneNumber\";",
"type": "String",
"var_name": "FORMAT"
}
],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md... | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final ReportDefinition def = readObjectFromResource(\"/md/report/oneNumberReportDefinition.json\", ReportDefinition.class);\n\n assertThat(def.toString(), matchesPattern(ReportDefinition.class.getSimpleName() + \"\\\\[.*\\\\]\")... | {
"fields": [
{
"declarator": "serialVersionUID = 9069611345896541468L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 9069611345896541468L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "EXPLA... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "ReportDefinition.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_155 | {
"fields": [
{
"declarator": "ACCOUNT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String ACCOUNT_ID = \"17\";",
"type": "String",
"var_name": "ACCOUNT_ID"
},
{
"declarator": "ID = \"11\"",
"modifier": "private static... | {
"body": "@Test\n public void testGetRoleByUri() {\n when(restTemplate.getForObject(ROLE_URI, Role.class)).thenReturn(role);\n\n final Role roleByUri = service.getRoleByUri(ROLE_URI);\n\n verify(role).setUri(ROLE_URI);\n assertThat(roleByUri, is(role));\n }",
"class_method_signatu... | {
"fields": [
{
"declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);",
"type": "UriTemplate",
"var_name": "PROJECT_TEMPLATE"
},
... | {
"body": "public Role getRoleByUri(String uri) {\n notEmpty(uri, \"uri\");\n try {\n final Role role = restTemplate.getForObject(uri, Role.class);\n notNullState(role, \"role\").setUri(uri);\n return role;\n } catch (GoodDataRestException e) {\n if (Ht... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_102 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetObjsByUrisNullUris() {\n service.getObjsByUris(project, null);\n }",
"class_method_signature": "MetadataServiceTest.testGetObjsByUrisNullUris()",
"constructor": false,
"full_signature": "@Test(expectedExcepti... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public Collection<Obj> getObjsByUris(Project project, Collection<String> uris) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(uris, \"uris\");\n\n try {\n final BulkGet result = restTemplate.postForObject(BulkGet.URI, new Bulk... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_6 | {
"fields": [
{
"declarator": "PROJECT_ID = \"11\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"11\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "FLAG_NAME = \"flag1\"",
"modifier": "priv... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullKeyThenCreateProjectFeatureFlagShouldThrow() throws Exception {\n service.createProjectFeatureFlag(project, null);\n }",
"class_method_signature": "FeatureFlagServiceTest.whenNullKeyThenCreateProjectFeatureFlagS... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_... | {
"body": "public ProjectFeatureFlag createProjectFeatureFlag(final Project project, final ProjectFeatureFlag flag) {\n notNull(project, \"project\");\n notNull(flag, \"flag\");\n\n final String featureFlagsUri = PROJECT_FEATURE_FLAGS_TEMPLATE.expand(project.getId()).toString();\n\n try {\... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_13 | {
"fields": [
{
"declarator": "PROJECT_ID = \"11\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"11\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "FLAG_NAME = \"flag1\"",
"modifier": "priv... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void whenClientErrorResponseThenGetProjectFeatureFlagShouldThrow() throws Exception {\n when(restTemplate.getForObject(PROJECT_FEATURE_FLAG_URI, ProjectFeatureFlag.class))\n .thenThrow(new RestClientException(\"\"));\n ... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_FLAG_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_FEATURE_FLAG_TEMPLATE = new UriTemplate(ProjectFeatureFlag.PROJECT_FEATURE_... | {
"body": "public ProjectFeatureFlag getProjectFeatureFlag(final Project project, final String featureFlagName) {\n notNull(project, \"project\");\n notEmpty(featureFlagName, \"featureFlagName\");\n\n try {\n final ProjectFeatureFlag flag = getProjectFeatureFlag(getProjectFeatureFlagUr... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_114 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetObjByIdNullProject() {\n service.getObjById(null, ID, Obj.class);\n }",
"class_method_signature": "MetadataServiceTest.testGetObjByIdNullProject()",
"constructor": false,
"full_signature": "@Test(expectedExce... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Obj> T getObjById(Project project, String id, Class<T> cls) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n notNull(id, \"id\");\n notNull(cls, \"cls\");\n return getObjByUri(OBJ_TEMPLATE.expand(project.getId(), id).toStr... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_44 | {
"fields": [
{
"declarator": "service",
"modifier": "private",
"original_string": "private AuditEventService service;",
"type": "AuditEventService",
"var_name": "service"
}
],
"file": "gooddata-java/src/test/java/com/gooddata/sdk/service/auditevent/AuditEventServiceTest.java... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = \".*page.*\")\n public void shouldFailOnNullPageButAccount() throws Exception {\n final Account account = mock(Account.class);\n when(account.getId()).thenReturn(\"123\");\n service.listAudi... | {
"fields": [
{
"declarator": "ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate ADMIN_URI_TEMPLATE = new UriTemplate(AuditEvent.ADMIN_URI);",
"type": "UriTemplate",
"var_name": "ADMIN_U... | {
"body": "public PageBrowser<AuditEvent> listAuditEvents(final String domainId) {\n return listAuditEvents(domainId, new AuditEventPageRequest());\n }",
"class_method_signature": "AuditEventService.listAuditEvents(final String domainId)",
"constructor": false,
"full_signature": "public PageBrowser<Au... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_285 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/RestrictionTest.java",
"identifier": "RestrictionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testTitle() {\n final Restriction id = Restriction.title(\"my title\");\n assertThat(id, is(notNullValue()));\n assertThat(id.getType(), is(Restriction.Type.TITLE));\n assertThat(id.getValue(), is(\"my title\"));\n }",
"class_method_signature": "Restr... | {
"fields": [
{
"declarator": "type",
"modifier": "private final",
"original_string": "private final Type type;",
"type": "Type",
"var_name": "type"
},
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final String value;",
... | {
"body": "public static Restriction title(String value) {\n return new Restriction(Type.TITLE, value);\n }",
"class_method_signature": "Restriction.title(String value)",
"constructor": false,
"full_signature": "public static Restriction title(String value)",
"identifier": "title",
"invocations": ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_143 | {
"fields": [
{
"declarator": "ACCOUNT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String ACCOUNT_ID = \"17\";",
"type": "String",
"var_name": "ACCOUNT_ID"
},
{
"declarator": "ID = \"11\"",
"modifier": "private static... | {
"body": "@Test(expectedExceptions = ProjectNotFoundException.class)\n public void testGetProjectByUriNotFound() {\n when(restTemplate.getForObject(URI, Project.class)).thenThrow(new GoodDataRestException(404, \"\", \"\", \"\", \"\"));\n service.getProjectByUri(URI);\n }",
"class_method_signatu... | {
"fields": [
{
"declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);",
"type": "UriTemplate",
"var_name": "PROJECT_TEMPLATE"
},
... | {
"body": "public Project getProjectByUri(final String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, Project.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\n throw new... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_211 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/DatasetManifestTest.java",
"identifier": "DatasetManifestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void shouldFailOnSetSourceNull() {\n final DatasetManifest manifest = new DatasetManifest(\"dataset.name\");\n manifest.setSource(null);\n }",
"class_method_signature": "DatasetManifestTest.shouldFailOnSetSourceNull()... | {
"fields": [
{
"declarator": "URI = \"/gdc/md/{projectId}/ldm/singleloadinterface/{dataSet}/manifest\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/md/{projectId}/ldm/singleloadinterface/{dataSet}/manifest\";",
"type": "String",
"v... | {
"body": "@JsonIgnore\n public void setSource(final InputStream source) {\n this.source = notNull(source, \"source\");\n }",
"class_method_signature": "DatasetManifest.setSource(final InputStream source)",
"constructor": false,
"full_signature": "@JsonIgnore public void setSource(final InputStream... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_138 | {
"fields": [
{
"declarator": "ACCOUNT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String ACCOUNT_ID = \"17\";",
"type": "String",
"var_name": "ACCOUNT_ID"
},
{
"declarator": "ID = \"11\"",
"modifier": "private static... | {
"body": "@Test\n public void testListProjects() throws Exception {\n doReturn(new Projects(singletonList(project), new Paging(\"\"))).when(restTemplate)\n .getForObject(new URI(LIST_PROJECTS_TEMPLATE.expand(ACCOUNT_ID) + \"?limit=100\"), Projects.class);\n final Collection<Project> r... | {
"fields": [
{
"declarator": "PROJECT_TEMPLATE = new UriTemplate(Project.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate PROJECT_TEMPLATE = new UriTemplate(Project.URI);",
"type": "UriTemplate",
"var_name": "PROJECT_TEMPLATE"
},
... | {
"body": "public PageBrowser<Project> listProjects() {\n final String userId = accountService.getCurrent().getId();\n return new PageBrowser<>(page -> listProjects(getProjectsUri(userId, page)));\n }",
"class_method_signature": "ProjectService.listProjects()",
"constructor": false,
"full_signa... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_87 | {
"fields": [
{
"declarator": "PROJECT_ID = \"TEST_PROJ_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "USER_ID = \"TEST_USER_ID\""... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testCreateSubscriptionEmptyAccountId() throws Exception {\n notificationService.createSubscription(project, mock(Account.class), subscription);\n }",
"class_method_signature": "NotificationServiceTest.testCreateSubscrip... | {
"fields": [],
"file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java",
"identifier": "NotificationService",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa... | {
"body": "public Subscription createSubscription(final Project project, final Account account, final Subscription subscription) {\n notNull(project, \"project\");\n notNull(account, \"account\");\n notNull(subscription, \"subscription\");\n notEmpty(project.getId(), \"project.id\");\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_303 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationsTest.java",
"identifier": "ProjectValidationsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeserialize() throws Exception {\n final ProjectValidations validations = readObjectFromResource(\"/project/project-validationAvail.json\",\n ProjectValidations.class);\n\n assertThat(validations, is(notNullValue()));\n assertThat(validations.g... | {
"fields": [
{
"declarator": "URI = \"/gdc/md/{projectId}/validate\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/md/{projectId}/validate\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "validations",
... | {
"body": "@JsonProperty(\"validateProject\")\n public Set<ProjectValidationType> getValidations() {\n return validations;\n }",
"class_method_signature": "ProjectValidations.getValidations()",
"constructor": false,
"full_signature": "@JsonProperty(\"validateProject\") public Set<ProjectValidationT... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_246 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4SettingsTest.java",
"identifier": "Zendesk4SettingsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = {IllegalArgumentException.class})\n public void testSetApiUrlWithNull() throws Exception {\n final Zendesk4Settings settings = new Zendesk4Settings(\"old url\");\n settings.setApiUrl(null);\n }",
"class_method_signature": "Zendesk4SettingsTest.testSetApiUrlW... | {
"fields": [
{
"declarator": "URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\"",
"modifier": "public static final",
"original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\";",
"type": "String",
... | {
"body": "public void setApiUrl(final String apiUrl) {\n this.apiUrl = notEmpty(apiUrl, \"apiUrl\");\n }",
"class_method_signature": "Zendesk4Settings.setApiUrl(final String apiUrl)",
"constructor": false,
"full_signature": "public void setApiUrl(final String apiUrl)",
"identifier": "setApiUrl",
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_68 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void testListDatasetLinksWithRestClientError() {\n when(restTemplate.getForObject(DatasetLinks.URI, Link.class, PROJECT_ID)).thenThrow(new RestClientException(\"\"));\n service.listDatasetLinks(project);\n }",
"class_method_... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public Collection<Link> listDatasetLinks(final Project project) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n try {\n final DatasetLinks result = restTemplate.getForObject(DatasetLinks.URI, DatasetLinks.class, project.getId());\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_180 | {
"fields": [
{
"declarator": "EXECUTABLE = \"Twitter/graph/twitter.grf\"",
"modifier": "private static final",
"original_string": "private static final String EXECUTABLE = \"Twitter/graph/twitter.grf\";",
"type": "String",
"var_name": "EXECUTABLE"
},
{
"declarator": "p... | {
"body": "@Test\n public void testSetTimezoneAnyString() {\n new Schedule(process, EXECUTABLE, \"0 0 * * *\").setTimezone(\"some nonsense garbage to prove a point\");\n }",
"class_method_signature": "ScheduleTest.testSetTimezoneAnyString()",
"constructor": false,
"full_signature": "@Test public vo... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\";",
"type": "String",
"var_name": "URI"
},
{... | {
"body": "public void setTimezone(final String timezone) {\n this.timezone = timezone;\n }",
"class_method_signature": "Schedule.setTimezone(final String timezone)",
"constructor": false,
"full_signature": "public void setTimezone(final String timezone)",
"identifier": "setTimezone",
"invocations... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_315 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/UserTest.java",
"identifier": "UserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final User user = readObjectFromResource(\"/project/project-user.json\", User.class);\n\n assertThat(user.toString(), matchesPattern(User.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_signature": "UserTest... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{projectId}/users/{userId}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{projectId}/users/{userId}\";",
"type": "String",
"var_name": "URI"
},
{
"declarat... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "User.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defaultToStr... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_91 | {
"fields": [
{
"declarator": "PROJECT_ID = \"TEST_PROJ_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"TEST_PROJ_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "USER_ID = \"TEST_USER_ID\""... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testRemoveSubscriptionEmptyUri() throws Exception {\n notificationService.removeSubscription(mock(Subscription.class));\n }",
"class_method_signature": "NotificationServiceTest.testRemoveSubscriptionEmptyUri()",
"cons... | {
"fields": [],
"file": "gooddata-java/src/main/java/com/gooddata/sdk/service/notification/NotificationService.java",
"identifier": "NotificationService",
"interfaces": "",
"methods": [
{
"class_method_signature": "NotificationService.NotificationService(final RestTemplate restTemplate, final GoodDa... | {
"body": "public void removeSubscription(final Subscription subscription) {\n notNull(subscription, \"subscription\");\n notNull(subscription.getMeta(), \"subscription.meta\");\n notEmpty(subscription.getMeta().getUri(), \"subscription.meta.uri\");\n\n try {\n restTemplate.dele... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_250 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/Zendesk4SettingsTest.java",
"identifier": "Zendesk4SettingsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() {\n final Zendesk4Settings settings = new Zendesk4Settings(\"old url\");\n\n assertThat(settings.toString(), matchesPattern(Zendesk4Settings.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_signature": "Zendesk4SettingsTest.testT... | {
"fields": [
{
"declarator": "URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\"",
"modifier": "public static final",
"original_string": "public static final String URL = \"/gdc/projects/{project}/connectors/zendesk4/integration/settings\";",
"type": "String",
... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "Zendesk4Settings.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_179 | {
"fields": [
{
"declarator": "EXECUTABLE = \"Twitter/graph/twitter.grf\"",
"modifier": "private static final",
"original_string": "private static final String EXECUTABLE = \"Twitter/graph/twitter.grf\";",
"type": "String",
"var_name": "EXECUTABLE"
},
{
"declarator": "p... | {
"body": "@Test(\n expectedExceptions = IllegalArgumentException.class,\n expectedExceptionsMessageRegExp = \".*cron can't be empty.*\"\n )\n public void testSetCron() {\n new Schedule(process, EXECUTABLE, \"0 0 * * *\").setCron(\"\");\n }",
"class_method_signature": "Schedule... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{projectId}/schedules/{scheduleId}\";",
"type": "String",
"var_name": "URI"
},
{... | {
"body": "public void setCron(final String cron) {\n this.cron = notEmpty(cron, \"cron\");\n }",
"class_method_signature": "Schedule.setCron(final String cron)",
"constructor": false,
"full_signature": "public void setCron(final String cron)",
"identifier": "setCron",
"invocations": [
"notEmp... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_196 | {
"fields": [
{
"declarator": "ROLE = \"admin\"",
"modifier": "public static final",
"original_string": "public static final String ROLE = \"admin\";",
"type": "String",
"var_name": "ROLE"
},
{
"declarator": "PROFILE = \"/gdc/account/profile/{profile-id}\"",
"modi... | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final WarehouseUser user = readObjectFromResource(\"/warehouse/user.json\", WarehouseUser.class);\n\n assertThat(user.toString(), matchesPattern(WarehouseUser.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_... | {
"fields": [
{
"declarator": "URI = WarehouseUsers.URI + \"/{userId}\"",
"modifier": "public static final",
"original_string": "public static final String URI = WarehouseUsers.URI + \"/{userId}\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "SELF_LINK = \"... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "WarehouseUser.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"def... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_207 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/UploadsInfoTest.java",
"identifier": "UploadsInfoTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void shouldDeserialize() throws Exception {\n final UploadsInfo uploadsInfo = readObjectFromResource(\"/dataset/uploads/data-sets.json\", UploadsInfo.class);\n\n assertThat(uploadsInfo, notNullValue());\n\n final UploadsInfo.DataSet dataset = uploadsInfo.getDataSet(\"... | {
"fields": [
{
"declarator": "URI = \"/gdc/md/{projectId}/data/sets\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/md/{projectId}/data/sets\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "datasets = new H... | {
"body": "public DataSet getDataSet(String datasetId) {\n notEmpty(datasetId, \"datasetId\");\n\n final DataSet dataSet = datasets.get(datasetId);\n if (dataSet != null) {\n return dataSet;\n } else {\n throw new DatasetNotFoundException(datasetId);\n }\n }... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_29 | {
"fields": [
{
"declarator": "PROJECT_ID = \"PROJECT_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"",
... | {
"body": "@Test\n public void testUpdateProcess() throws Exception {\n when(restTemplate.exchange(eq(create(PROCESS_URI)), any(HttpMethod.class), any(HttpEntity.class),\n eq(DataloadProcess.class))).thenReturn(new ResponseEntity<>(process, HttpStatus.OK));\n final DataloadProcess resu... | {
"fields": [
{
"declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);",
"type": "UriTemplate",
"var_name": "SCHEDULE_TEMPLATE"
},... | {
"body": "public DataloadProcess updateProcess(DataloadProcess process, File processData) {\n notNull(process, \"process\");\n notNull(process.getUri(), \"process.uri\");\n notNull(processData, \"processData\");\n isTrue(process.getPath() == null, \"Process path has to be null, use proces... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_159 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/FeatureFlagsTest.java",
"identifier": "FeatureFlagsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullNameThenIsEnabledShouldThrow() {\n final FeatureFlags flags = new FeatureFlags();\n flags.isEnabled(null);\n }",
"class_method_signature": "FeatureFlagsTest.whenNullNameThenIsEnabledShouldThrow()",
"con... | {
"fields": [
{
"declarator": "AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\"",
"modifier": "public static final",
"original_string": "public static final String AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\";",
"type"... | {
"body": "public boolean isEnabled(final String flagName) {\n notEmpty(flagName, \"flagName\");\n return findFlag(flagName).map(FeatureFlag::isEnabled).orElse(false);\n }",
"class_method_signature": "FeatureFlags.isEnabled(final String flagName)",
"constructor": false,
"full_signature": "publi... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_270 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/maintenance/PartialMdExportTokenTest.java",
"identifier": "PartialMdExportTokenTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() {\n final PartialMdExportToken partialMdExportToken = new PartialMdExportToken(\"TOKEN123\");\n\n assertThat(partialMdExportToken.toString(), matchesPattern(PartialMdExportToken.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
"class_method_si... | {
"fields": [
{
"declarator": "URI = \"/gdc/md/{projectId}/maintenance/partialmdimport\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/md/{projectId}/maintenance/partialmdimport\";",
"type": "String",
"var_name": "URI"
},
{
... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "PartialMdExportToken.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_227 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java",
"identifier": "IntegrationProcessStatusTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsFailedOnError() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(ERROR.name(), \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFailed(), is(true));\n }",
"class_method_signature":... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\";",
... | {
"body": "@JsonIgnore\n public boolean isFailed() {\n return status != null && status.isFailed();\n }",
"class_method_signature": "IntegrationProcessStatus.isFailed()",
"constructor": false,
"full_signature": "@JsonIgnore public boolean isFailed()",
"identifier": "isFailed",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_118 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testUsedByNullProject() {\n service.usedBy(null, URI, false, ReportDefinition.class);\n }",
"class_method_signature": "MetadataServiceTest.testUsedByNullProject()",
"constructor": false,
"full_signature": "@Test(exp... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "@SuppressWarnings(\"unchecked\")\n public Collection<Entry> usedBy(Project project, Obj obj, boolean nearest, Class<? extends Obj>... types) {\n notNull(obj, \"obj\");\n return usedBy(project, obj.getUri(), nearest, types);\n }",
"class_method_signature": "MetadataService.usedBy(Proje... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_231 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java",
"identifier": "IntegrationProcessStatusTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsFailedOnUnknownCode() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(\"unknown code\", \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFailed(), is(false));\n }",
"class_method_... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\";",
... | {
"body": "@JsonIgnore\n public boolean isFailed() {\n return status != null && status.isFailed();\n }",
"class_method_signature": "IntegrationProcessStatus.isFailed()",
"constructor": false,
"full_signature": "@JsonIgnore public boolean isFailed()",
"identifier": "isFailed",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_266 | {
"fields": [
{
"declarator": "FORM_OF = \"/gdc/md/PROJECT_ID/obj/DF_FORM_OF_ID\"",
"modifier": "private static final",
"original_string": "private static final String FORM_OF = \"/gdc/md/PROJECT_ID/obj/DF_FORM_OF_ID\";",
"type": "String",
"var_name": "FORM_OF"
},
{
"de... | {
"body": "@Test\n public void testToStringFormat() {\n final DisplayForm attrDF = new AttributeDisplayForm(TITLE, FORM_OF, EXPRESSION, DEFAULT,\n LDM_EXPRESSION, TYPE, ELEMENTS_LINK);\n\n assertThat(attrDF.toString(), matchesPattern(AttributeDisplayForm.class.getSimpleName() + \"\\\\[... | {
"fields": [
{
"declarator": "serialVersionUID = -7903851496647992573L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = -7903851496647992573L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "att... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "AttributeDisplayForm.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_48 | {
"fields": [
{
"declarator": "FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC)",
"modifier": "private static final",
"original_string": "private static final ZonedDateTime FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC);",
"type": "ZonedDateTime",
"var_name": "FRO... | {
"body": "@Test\n public void testCopy() {\n AuditEventPageRequest request = new AuditEventPageRequest();\n request.setFrom(FROM);\n request.setTo(TO);\n request.setLimit(LIMIT);\n request.setOffset(OFFSET);\n request.setType(EVENT_TYPE);\n\n AuditEventPageRequest ... | {
"fields": [
{
"declarator": "from",
"modifier": "private",
"original_string": "private ZonedDateTime from;",
"type": "ZonedDateTime",
"var_name": "from"
},
{
"declarator": "to",
"modifier": "private",
"original_string": "private ZonedDateTime to;",
"... | {
"body": "public static AuditEventPageRequest copy(final AuditEventPageRequest source) {\n notNull(source, \"source cannot be null\");\n\n final AuditEventPageRequest copy = new AuditEventPageRequest();\n BeanUtils.copyProperties(source, copy);\n\n return copy;\n }",
"class_method_si... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_323 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/RolesTest.java",
"identifier": "RolesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeserialization() throws Exception {\n final Roles roles = readObjectFromResource(\"/project/project-roles.json\", Roles.class);\n\n assertThat(roles, notNullValue());\n assertThat(roles.getRoles(), hasSize(2));\n assertThat(roles.getRoles(), hasItem(\... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{projectId}/roles\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{projectId}/roles\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "roles",
... | {
"body": "public Set<String> getRoles() {\n return roles;\n }",
"class_method_signature": "Roles.getRoles()",
"constructor": false,
"full_signature": "public Set<String> getRoles()",
"identifier": "getRoles",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "Set<Strin... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_289 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/RestrictionTest.java",
"identifier": "RestrictionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEquals() {\n EqualsVerifier.forClass(Restriction.class)\n .usingGetClass()\n .withNonnullFields(\"type\", \"value\")\n .verify();\n }",
"class_method_signature": "RestrictionTest.testEquals()",
"constructor": false,
"fu... | {
"fields": [
{
"declarator": "type",
"modifier": "private final",
"original_string": "private final Type type;",
"type": "Type",
"var_name": "type"
},
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final String value;",
... | {
"body": "@Override\n public boolean equals(final Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n final Restriction that = (Restriction) o;\n return type == that.type &&\n value.equals(that.value);\n }",
"clas... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_134 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test\n public void testGetAttributeElementsEmpty() {\n final DisplayForm attrDisplayForm = mock(AttributeDisplayForm.class);\n when(attrDisplayForm.getElementsUri()).thenReturn(\"elementsUri\");\n final Attribute attr = mock(Attribute.class);\n when(attr.getDefaultDisplayFor... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public List<AttributeElement> getAttributeElements(Attribute attribute) {\n notNull(attribute, \"attribute\");\n\n return getAttributeElements(attribute.getDefaultDisplayForm());\n }",
"class_method_signature": "MetadataService.getAttributeElements(Attribute attribute)",
"constructor":... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_33 | {
"fields": [
{
"declarator": "PROJECT_ID = \"PROJECT_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"",
... | {
"body": "@Test(expectedExceptions = GoodDataRestException.class)\n public void testGetProcessByUriServerError() {\n when(restTemplate.getForObject(PROCESS_URI, DataloadProcess.class))\n .thenThrow(new GoodDataRestException(500, \"\", \"\", \"\", \"\"));\n processService.getProcessByU... | {
"fields": [
{
"declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);",
"type": "UriTemplate",
"var_name": "SCHEDULE_TEMPLATE"
},... | {
"body": "public DataloadProcess getProcessByUri(String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, DataloadProcess.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_163 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/ProjectFeatureFlagsTest.java",
"identifier": "ProjectFeatureFlagsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void whenNullNameThenIsEnabledShouldThrow() throws Exception {\n final ProjectFeatureFlags flags = new ProjectFeatureFlags(\n singletonList(new ProjectFeatureFlag(\"enabledFlag\", true)));\n flags.isEnabled(... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAGS_URI = Project.URI + \"/projectFeatureFlags\"",
"modifier": "public static final",
"original_string": "public static final String PROJECT_FEATURE_FLAGS_URI = Project.URI + \"/projectFeatureFlags\";",
"type": "String",
"var_name": "P... | {
"body": "public boolean isEnabled(final String flagName) {\n notEmpty(flagName, \"flagName\");\n for (final ProjectFeatureFlag flag : items) {\n if (flagName.equalsIgnoreCase(flag.getName())) {\n return flag.isEnabled();\n }\n }\n return false;\n }... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_64 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testLoadDatasetByIdWithEmptyId() {\n service.loadDataset(project, \"\", stream);\n }",
"class_method_signature": "DatasetServiceTest.testLoadDatasetByIdWithEmptyId()",
"constructor": false,
"full_signature": "@Test(... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,\n final InputStream dataset) {\n notNull(project, \"project\");\n notNull(dataset, \"dataset\");\n notNull(manifest, \"manifest\");\n manifest.se... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_175 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataload/processes/ProcessExecutionDetailTest.java",
"identifier": "ProcessExecutionDetailTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final ProcessExecutionDetail executionDetail = readObjectFromResource(\"/dataload/processes/executionDetail.json\",\n ProcessExecutionDetail.class);\n\n assertThat(executionDetail.toString(), matchesPattern(Proces... | {
"fields": [
{
"declarator": "LOG_LINK = \"log\"",
"modifier": "private static final",
"original_string": "private static final String LOG_LINK = \"log\";",
"type": "String",
"var_name": "LOG_LINK"
},
{
"declarator": "SELF_LINK = \"self\"",
"modifier": "private s... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "ProcessExecutionDetail.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_319 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationResultSliElParamTest.java",
"identifier": "ProjectValidationResultSliElParamTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testAsMap() throws Exception {\n final ProjectValidationResultSliElParam param =\n new ProjectValidationResultSliElParam(asList(\"1\", \"3\", \"2\"), asList(\"1234\", \"9012\", \"5678\"));\n\n final Map<String, String> expectedMap = new HashMap<>(3);\n ... | {
"fields": [
{
"declarator": "ids",
"modifier": "private final",
"original_string": "private final List<String> ids;",
"type": "List<String>",
"var_name": "ids"
},
{
"declarator": "vals",
"modifier": "private final",
"original_string": "private final List<S... | {
"body": "public Map<String, String> asMap() {\n if (ids == null) {\n return null;\n }\n\n if (vals == null) {\n throw new IllegalStateException(\"Values not defined for IDs.\");\n }\n\n if (ids.size() != vals.size()) {\n throw new IllegalStateExcep... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_72 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void testListUploadsForDatasetRestClientError() throws Exception {\n mockDataSetInfo(DATASET_UPLOADS_URI, null);\n\n when(restTemplate.getForObject(DATASET_UPLOADS_URI, Uploads.class)).thenThrow(new RestClientException(\"\"));\n\... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public Collection<Upload> listUploadsForDataset(Project project, String datasetId) {\n final UploadsInfo.DataSet dataSet = getDataSetInfo(project, datasetId);\n\n if (isEmpty(dataSet.getUploadsUri())) {\n return emptyList();\n }\n\n try {\n final Uploads re... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_122 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetObjUriNullClass() {\n service.getObjUri(project, null, Restriction.identifier(\"\"));\n }",
"class_method_signature": "MetadataServiceTest.testGetObjUriNullClass()",
"constructor": false,
"full_signature": "@... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Queryable> String getObjUri(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } els... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_25 | {
"fields": [
{
"declarator": "outputStageService",
"modifier": "private",
"original_string": "private OutputStageService outputStageService;",
"type": "OutputStageService",
"var_name": "outputStageService"
}
],
"file": "gooddata-java/src/test/java/com/gooddata/sdk/service/da... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetOutputStageByNullProject() {\n outputStageService.getOutputStage(null);\n }",
"class_method_signature": "OutputStageServiceTest.testGetOutputStageByNullProject()",
"constructor": false,
"full_signature": "@Te... | {
"fields": [
{
"declarator": "OUTPUT_STAGE_TEMPLATE = new UriTemplate(OutputStage.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OUTPUT_STAGE_TEMPLATE = new UriTemplate(OutputStage.URI);",
"type": "UriTemplate",
"var_name": "OUTPUT_STAG... | {
"body": "public OutputStage getOutputStage(final Project project) {\n notNull(project, \"project\");\n notNull(project.getId(), \"project.id\");\n\n return getOutputStageByUri(OUTPUT_STAGE_TEMPLATE.expand(project.getId()).toString());\n }",
"class_method_signature": "OutputStageService.get... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_24 | {
"fields": [
{
"declarator": "outputStageService",
"modifier": "private",
"original_string": "private OutputStageService outputStageService;",
"type": "OutputStageService",
"var_name": "outputStageService"
}
],
"file": "gooddata-java/src/test/java/com/gooddata/sdk/service/da... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetOutputStageByNullUri() {\n outputStageService.getOutputStageByUri(null);\n }",
"class_method_signature": "OutputStageServiceTest.testGetOutputStageByNullUri()",
"constructor": false,
"full_signature": "@Test(... | {
"fields": [
{
"declarator": "OUTPUT_STAGE_TEMPLATE = new UriTemplate(OutputStage.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OUTPUT_STAGE_TEMPLATE = new UriTemplate(OutputStage.URI);",
"type": "UriTemplate",
"var_name": "OUTPUT_STAG... | {
"body": "public OutputStage getOutputStageByUri(final String uri) {\n notEmpty(uri, \"uri\");\n isTrue(OUTPUT_STAGE_TEMPLATE.matches(uri), \"uri does not match output stage pattern: \" + OUTPUT_STAGE_TEMPLATE.toString());\n try {\n return restTemplate.getForObject(uri, OutputStage.cl... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_123 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void testGetObjUriNoResponseFromAPI() {\n service.getObjUri(project, Queryable.class);\n }",
"class_method_signature": "MetadataServiceTest.testGetObjUriNoResponseFromAPI()",
"constructor": false,
"full_signature": "@Test(expec... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Queryable> String getObjUri(Project project, Class<T> cls, Restriction... restrictions) {\n final Collection<String> results = findUris(project, cls, restrictions);\n if (results == null || results.isEmpty()) {\n throw new ObjNotFoundException(cls);\n } els... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_318 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectValidationResultSliElParamTest.java",
"identifier": "ProjectValidationResultSliElParamTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = IllegalStateException.class)\n public void testAsMapNotEqualIdsVals() throws Exception {\n new ProjectValidationResultSliElParam(asList(\"2\", \"1\"), singletonList(\"1234\")).asMap();\n }",
"class_method_signature": "ProjectValidationResultSliElParamTest.testAsMap... | {
"fields": [
{
"declarator": "ids",
"modifier": "private final",
"original_string": "private final List<String> ids;",
"type": "List<String>",
"var_name": "ids"
},
{
"declarator": "vals",
"modifier": "private final",
"original_string": "private final List<S... | {
"body": "public Map<String, String> asMap() {\n if (ids == null) {\n return null;\n }\n\n if (vals == null) {\n throw new IllegalStateException(\"Values not defined for IDs.\");\n }\n\n if (ids.size() != vals.size()) {\n throw new IllegalStateExcep... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_73 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = GoodDataException.class)\n public void testListUploadsForDatasetEmptyResponse() throws Exception {\n mockDataSetInfo(DATASET_UPLOADS_URI, null);\n\n when(restTemplate.getForObject(DATASET_UPLOADS_URI, Uploads.class)).thenReturn(null);\n\n service.listUploa... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public Collection<Upload> listUploadsForDataset(Project project, String datasetId) {\n final UploadsInfo.DataSet dataSet = getDataSetInfo(project, datasetId);\n\n if (isEmpty(dataSet.getUploadsUri())) {\n return emptyList();\n }\n\n try {\n final Uploads re... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_174 | {
"fields": [
{
"declarator": "SCHEMA_URI = \"/gdc/datawarehouse/instances/instanceId/schemas/default\"",
"modifier": "private static final",
"original_string": "private static final String SCHEMA_URI = \"/gdc/datawarehouse/instances/instanceId/schemas/default\";",
"type": "String",
... | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final OutputStage outputStage = readObjectFromResource(\"/dataload/outputStage.json\", OutputStage.class);\n\n assertThat(outputStage.toString(), matchesPattern(OutputStage.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n }",
... | {
"fields": [
{
"declarator": "URI = \"/gdc/dataload/projects/{id}/outputStage\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/dataload/projects/{id}/outputStage\";",
"type": "String",
"var_name": "URI"
},
{
"declarator... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "OutputStage.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defau... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_65 | {
"fields": [
{
"declarator": "PROJECT_ID = \"17\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"17\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "DATASET_ID = \"11\"",
"modifier": "privat... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testLoadDatasetByIdWithNullInputStream() {\n service.loadDataset(project, DATASET_ID, null);\n }",
"class_method_signature": "DatasetServiceTest.testLoadDatasetByIdWithNullInputStream()",
"constructor": false,
"full... | {
"fields": [
{
"declarator": "UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate UPLOADS_INFO_TEMPLATE = new UriTemplate(UploadsInfo.URI);",
"type": "UriTemplate",
"var_name": "UPLOADS_INF... | {
"body": "public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,\n final InputStream dataset) {\n notNull(project, \"project\");\n notNull(dataset, \"dataset\");\n notNull(manifest, \"manifest\");\n manifest.se... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_162 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/ProjectFeatureFlagsTest.java",
"identifier": "ProjectFeatureFlagsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void isEnabledShouldReturnCorrectBoolean() throws Exception {\n final ProjectFeatureFlags flags = new ProjectFeatureFlags(asList(\n new ProjectFeatureFlag(\"enabledFlag\", true),\n new ProjectFeatureFlag(\"disabledFlag\", false)\n ));\n\n assertT... | {
"fields": [
{
"declarator": "PROJECT_FEATURE_FLAGS_URI = Project.URI + \"/projectFeatureFlags\"",
"modifier": "public static final",
"original_string": "public static final String PROJECT_FEATURE_FLAGS_URI = Project.URI + \"/projectFeatureFlags\";",
"type": "String",
"var_name": "P... | {
"body": "public boolean isEnabled(final String flagName) {\n notEmpty(flagName, \"flagName\");\n for (final ProjectFeatureFlag flag : items) {\n if (flagName.equalsIgnoreCase(flag.getName())) {\n return flag.isEnabled();\n }\n }\n return false;\n }... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_32 | {
"fields": [
{
"declarator": "PROJECT_ID = \"PROJECT_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"",
... | {
"body": "@Test(expectedExceptions = ProcessNotFoundException.class)\n public void testGetProcessByUriNotFound() {\n when(restTemplate.getForObject(PROCESS_URI, DataloadProcess.class)).thenThrow(\n new GoodDataRestException(404, \"\", \"\", \"\", \"\"));\n processService.getProcessByU... | {
"fields": [
{
"declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);",
"type": "UriTemplate",
"var_name": "SCHEDULE_TEMPLATE"
},... | {
"body": "public DataloadProcess getProcessByUri(String uri) {\n notEmpty(uri, \"uri\");\n try {\n return restTemplate.getForObject(uri, DataloadProcess.class);\n } catch (GoodDataRestException e) {\n if (HttpStatus.NOT_FOUND.value() == e.getStatusCode()) {\n ... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_135 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test\n public void testGetAttributeElements() {\n final DisplayForm attrDisplayForm = mock(AttributeDisplayForm.class);\n when(attrDisplayForm.getElementsUri()).thenReturn(\"elementsUri\");\n final Attribute attr = mock(Attribute.class);\n when(attr.getDefaultDisplayForm()).... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public List<AttributeElement> getAttributeElements(Attribute attribute) {\n notNull(attribute, \"attribute\");\n\n return getAttributeElements(attribute.getDefaultDisplayForm());\n }",
"class_method_signature": "MetadataService.getAttributeElements(Attribute attribute)",
"constructor":... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_267 | {
"fields": [
{
"declarator": "OBJ_ID = \"ENTRY_ID\"",
"modifier": "public static final",
"original_string": "public static final String OBJ_ID = \"ENTRY_ID\";",
"type": "String",
"var_name": "OBJ_ID"
},
{
"declarator": "URI = \"/gdc/md/PROJECT_ID/obj/\" + OBJ_ID",
... | {
"body": "@Test\n public void testToStringFormat() {\n final Entry entry = new Entry(URI, TITLE, SUMMARY, CATEGORY, AUTHOR, CONTRIBUTOR, DEPRECATED, IDENTIFIER, TAGS,\n CREATED, UPDATED, LOCKED, UNLISTED);\n\n assertThat(entry.toString(), matchesPattern(Entry.class.getSimpleName() + \... | {
"fields": [
{
"declarator": "uri",
"modifier": "private final",
"original_string": "private final String uri;",
"type": "String",
"var_name": "uri"
},
{
"declarator": "title",
"modifier": "private final",
"original_string": "private final String title;",
... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "Entry.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"defaultToSt... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_49 | {
"fields": [
{
"declarator": "FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC)",
"modifier": "private static final",
"original_string": "private static final ZonedDateTime FROM = ZonedDateTime.of(2019, 10, 28, 15, 30, 12, 0, UTC);",
"type": "ZonedDateTime",
"var_name": "FRO... | {
"body": "@Test(expectedExceptions = NullPointerException.class)\n public void testCopyNull() {\n AuditEventPageRequest.copy(null);\n }",
"class_method_signature": "AuditEventPageRequestTest.testCopyNull()",
"constructor": false,
"full_signature": "@Test(expectedExceptions = NullPointerException.c... | {
"fields": [
{
"declarator": "from",
"modifier": "private",
"original_string": "private ZonedDateTime from;",
"type": "ZonedDateTime",
"var_name": "from"
},
{
"declarator": "to",
"modifier": "private",
"original_string": "private ZonedDateTime to;",
"... | {
"body": "public static AuditEventPageRequest copy(final AuditEventPageRequest source) {\n notNull(source, \"source cannot be null\");\n\n final AuditEventPageRequest copy = new AuditEventPageRequest();\n BeanUtils.copyProperties(source, copy);\n\n return copy;\n }",
"class_method_si... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_322 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/project/ProjectTemplateTest.java",
"identifier": "ProjectTemplateTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() throws Exception {\n final ProjectTemplate template = readObjectFromResource(\"/project/project-template.json\", ProjectTemplate.class);\n\n assertThat(template.toString(), matchesPattern(ProjectTemplate.class.getSimpleName() + \"\\\\[.*\\\\]\"));\n... | {
"fields": [
{
"declarator": "URI = \"/gdc/md/{projectId}/templates\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/md/{projectId}/templates\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "url",
"mod... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "ProjectTemplate.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"d... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_288 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/RestrictionTest.java",
"identifier": "RestrictionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testSummaryWithNull() {\n Restriction.summary(null);\n }",
"class_method_signature": "RestrictionTest.testSummaryWithNull()",
"constructor": false,
"full_signature": "@Test(expectedExceptions = IllegalArgumentExcept... | {
"fields": [
{
"declarator": "type",
"modifier": "private final",
"original_string": "private final Type type;",
"type": "Type",
"var_name": "type"
},
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final String value;",
... | {
"body": "public static Restriction summary(String value) {\n return new Restriction(Type.SUMMARY, value);\n }",
"class_method_signature": "Restriction.summary(String value)",
"constructor": false,
"full_signature": "public static Restriction summary(String value)",
"identifier": "summary",
"invo... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_230 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java",
"identifier": "IntegrationProcessStatusTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsFailedOnNullCode() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(null, \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFailed(), is(false));\n }",
"class_method_signature": "In... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\";",
... | {
"body": "@JsonIgnore\n public boolean isFailed() {\n return status != null && status.isFailed();\n }",
"class_method_signature": "IntegrationProcessStatus.isFailed()",
"constructor": false,
"full_signature": "@JsonIgnore public boolean isFailed()",
"identifier": "isFailed",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_119 | {
"fields": [
{
"declarator": "URI = \"TEST_URI\"",
"modifier": "private static final",
"original_string": "private static final String URI = \"TEST_URI\";",
"type": "String",
"var_name": "URI"
},
{
"declarator": "ID = \"TEST_ID\"",
"modifier": "private static fin... | {
"body": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testFindIdentifierUrisNullProject() {\n service.findUris(null, Restriction.identifier(ID));\n }",
"class_method_signature": "MetadataServiceTest.testFindIdentifierUrisNullProject()",
"constructor": false,
"full_sign... | {
"fields": [
{
"declarator": "OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate OBJ_TEMPLATE = new UriTemplate(Obj.OBJ_URI);",
"type": "UriTemplate",
"var_name": "OBJ_TEMPLATE"
},
{
"dec... | {
"body": "public <T extends Queryable> Collection<String> findUris(Project project,\n Class<T> cls,\n Restriction... restrictions) {\n final Collection<Entry> entries = find(project, cls, re... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_226 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/connector/IntegrationProcessStatusTest.java",
"identifier": "IntegrationProcessStatusTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testIsFinishedOnUnknownCode() throws Exception {\n final IntegrationProcessStatus process = new IntegrationProcessStatus(new Status(\"unknown code\", \"\", \"\"), now(), now(), Collections.emptyMap());\n assertThat(process.isFinished(), is(false));\n }",
"class_met... | {
"fields": [
{
"declarator": "URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/projects/{project}/connectors/{connector}/integration/processes/{process}\";",
... | {
"body": "@JsonIgnore\n public boolean isFinished() {\n return status != null && status.isFinished();\n }",
"class_method_signature": "IntegrationProcessStatus.isFinished()",
"constructor": false,
"full_signature": "@JsonIgnore public boolean isFinished()",
"identifier": "isFinished",
"invocat... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_271 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/md/maintenance/PartialMdArtifactTest.java",
"identifier": "PartialMdArtifactTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFormat() {\n final PartialMdArtifact partialMdArtifact = new PartialMdArtifact(new UriResponse(\"/gdc/md/projectId/tasks/taskId/status\"), \"TOKEN123\");\n\n assertThat(partialMdArtifact.toString(), matchesPattern(PartialMdArtifact.class.getSimpleName() + \"... | {
"fields": [
{
"declarator": "status",
"modifier": "private final",
"original_string": "private final UriResponse status;",
"type": "UriResponse",
"var_name": "status"
},
{
"declarator": "token",
"modifier": "private final",
"original_string": "private fina... | {
"body": "@Override\n public String toString() {\n return GoodDataToStringBuilder.defaultToString(this);\n }",
"class_method_signature": "PartialMdArtifact.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_158 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/featureflag/FeatureFlagsTest.java",
"identifier": "FeatureFlagsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSerialize() {\n final FeatureFlags flags = new FeatureFlags();\n flags.addFlag(\"testFeature\", true);\n flags.addFlag(\"testFeature2\", false);\n\n assertThat(flags, jsonEquals(resource(\"featureflag/featureFlags.json\")));\n }",
"class_method_si... | {
"fields": [
{
"declarator": "AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\"",
"modifier": "public static final",
"original_string": "public static final String AGGREGATED_FEATURE_FLAGS_URI = \"/gdc/internal/projects/{projectId}/featureFlags\";",
"type"... | {
"body": "@JsonAnySetter\n public void addFlag(final String name, final boolean enabled) {\n notNull(name, \"name\");\n featureFlags.add(new FeatureFlag(name, enabled));\n }",
"class_method_signature": "FeatureFlags.addFlag(final String name, final boolean enabled)",
"constructor": false,
"... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_206 | {
"fields": [],
"file": "gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/PullTaskTest.java",
"identifier": "PullTaskTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeserialization() throws Exception {\n final PullTask task = readObjectFromResource(\"/dataset/pullTask.json\", PullTask.class);\n\n assertThat(task.getPollUri(), is(\"/gdc/md/PROJECT/tasks/task/ID/status\"));\n }",
"class_method_signature": "PullTaskTest.testD... | {
"fields": [
{
"declarator": "URI = \"/gdc/md/{projectId}/tasks/task/{taskId}\"",
"modifier": "public static final",
"original_string": "public static final String URI = \"/gdc/md/{projectId}/tasks/task/{taskId}\";",
"type": "String",
"var_name": "URI"
},
{
"declarator... | {
"body": "public String getPollUri() {\n return links.uri;\n }",
"class_method_signature": "PullTask.getPollUri()",
"constructor": false,
"full_signature": "public String getPollUri()",
"identifier": "getPollUri",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "Stri... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
18644701_28 | {
"fields": [
{
"declarator": "PROJECT_ID = \"PROJECT_ID\"",
"modifier": "private static final",
"original_string": "private static final String PROJECT_ID = \"PROJECT_ID\";",
"type": "String",
"var_name": "PROJECT_ID"
},
{
"declarator": "ACCOUNT_ID = \"ACCOUNT_ID\"",
... | {
"body": "@Test\n public void shouldDeployLargeProcessUsingWebDAV() throws Exception {\n\n final DataloadProcess process = new DataloadProcess(\"test\", ProcessType.GRAPH);\n\n when(dataStoreService.getUri(anyString())).thenReturn(create(\"URI\"));\n when(restTemplate.exchange(any(URI.class),... | {
"fields": [
{
"declarator": "SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI)",
"modifier": "public static final",
"original_string": "public static final UriTemplate SCHEDULE_TEMPLATE = new UriTemplate(Schedule.URI);",
"type": "UriTemplate",
"var_name": "SCHEDULE_TEMPLATE"
},... | {
"body": "public DataloadProcess createProcess(Project project, DataloadProcess process, File processData) {\n notNull(process, \"process\");\n notNull(processData, \"processData\");\n notNull(project, \"project\");\n isTrue(process.getPath() == null, \"Process path has to be null, use pr... | {
"created": "4/10/2014 5:09:41 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 18644701,
"size": null,
"stargazer_count": null,
"stars": 15,
"updates": "2020-01-16T11:56:32+00:00",
"url": "https://github.com/gooddata/gooddata... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.