id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
18830102_1007
{ "fields": [ { "declarator": "xmlStreamWriterFactory", "modifier": "private", "original_string": "private XMLOutputFactory xmlStreamWriterFactory;", "type": "XMLOutputFactory", "var_name": "xmlStreamWriterFactory" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/...
{ "body": "@Test\n public void writeValidMetadata2() throws Exception {\n List<Schema> schemas = new ArrayList<Schema>();\n\n List<AnnotationElement> childElements = new ArrayList<AnnotationElement>();\n childElements\n .add(new AnnotationElement().setName(\"schemaElementTest2\").setText(\"text2\").s...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/XmlMetadataProducer.java", "identifier": "XmlMetadataProducer", "interfaces": "", "methods": [ { "class_method_signature": "XmlMetadataProducer.writeMetadata(final DataServices metadata, final XMLS...
{ "body": "public static void writeMetadata(final DataServices metadata, final XMLStreamWriter xmlStreamWriter,\n Map<String, String> predefinedNamespaces) throws EntityProviderException {\n\n try {\n String edmxNamespace = Edm.NAMESPACE_EDMX_2007_06;\n String defaultNamespace = Edm.NAMESPACE_EDM_20...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_226
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testFunctionImportParamFacetsDefault() {\n VARIANT = 15;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 1);\n\n List<FunctionImportParameter> funcImpParamList ...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public List<FunctionImport> getConsistentFunctionImportList() {\n return consistentFunctionImportList;\n }", "class_method_signature": "JPAEdmFunctionImport.getConsistentFunctionImportList()", "constructor": false, "full_signature": "@Override public List<FunctionImport> getConsisten...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_676
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/commons/ContentTypeTest.java", "identifier": "ContentTypeTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testContentTypeCreationWildcardTypeSingleFormat() {\n ContentType.create(\"*/subtype\");\n }", "class_method_signature": "ContentTypeTest.testContentTypeCreationWildcardTypeSingleFormat()", "constructor": false, "full_signature": "@T...
{ "fields": [ { "declarator": "KNOWN_MIME_TYPES = new HashSet<String>()", "modifier": "private static final", "original_string": "private static final Set<String> KNOWN_MIME_TYPES = new HashSet<String>();", "type": "Set<String>", "var_name": "KNOWN_MIME_TYPES" }, { "dec...
{ "body": "public static ContentType create(final String type, final String subtype) {\n return new ContentType(type, subtype, mapToODataFormat(type, subtype), null);\n }", "class_method_signature": "ContentType.create(final String type, final String subtype)", "constructor": false, "full_signature": "publi...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_949
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test\n public void collectionSimpleWithMapping() throws Exception {\n final EntityPropertyInfo info = EntityInfoAggregator.create(\n MockFacade.getMockEdm().getDefaultEntityContainer().getFunctionImport(\"AllUsedRoomIds\"));\n EntityProviderReadProperties readProperties = mock(EntityProvider...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "public List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n final Object typeMapping = readProperties == null ? null :\n readProperties.getTypeMappings().get(propertyInfo.getNa...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_725
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/servlet/RestUtilTest.java", "identifier": "RestUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExtractAllQueryParameters() throws Exception {\n Map<String, List<String>> result = RestUtil.extractAllQueryParameters(\"some=value\", \"false\");\n Assert.assertEquals(\"value\", result.get(\"some\").get(0));\n\n result = RestUtil.extractAllQueryParameters(\"some=value&an...
{ "fields": [ { "declarator": "REG_EX_OPTIONAL_WHITESPACE = \"\\\\s*\"", "modifier": "private static final", "original_string": "private static final String REG_EX_OPTIONAL_WHITESPACE = \"\\\\s*\";", "type": "String", "var_name": "REG_EX_OPTIONAL_WHITESPACE" }, { "decla...
{ "body": "public static Map<String, List<String>> extractAllQueryParameters(final String queryString, String formEncoding) {\n Map<String, List<String>> allQueryParameterMap = new HashMap<String, List<String>>();\n if(Boolean.parseBoolean(formEncoding)){\n List<String> encoding = new ArrayList<String>();\...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_375
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testEntityType() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<edmx:Da...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_660
{ "fields": [ { "declarator": "edm", "modifier": "private", "original_string": "private ForEdmImplTest edm;", "type": "ForEdmImplTest", "var_name": "edm" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmImplTest.java", "identifier": "Ed...
{ "body": "@Test\n public void testAssociationCache() throws EdmException {\n assertEquals(edm.getAssociation(\"foo\", \"bar\"), edm.getAssociation(\"foo\", \"bar\"));\n assertNotSame(edm.getAssociation(\"foo\", \"bar\"), edm.getAssociation(\"bar\", \"foo\"));\n }", "class_method_signature": "EdmImplTest.te...
{ "fields": [ { "declarator": "edmEntityContainers", "modifier": "private", "original_string": "private Map<String, EdmEntityContainer> edmEntityContainers;", "type": "Map<String, EdmEntityContainer>", "var_name": "edmEntityContainers" }, { "declarator": "edmEntityTypes...
{ "body": "@Override\n public EdmAssociation getAssociation(final String namespaceOrAlias, final String name) throws EdmException {\n String finalNamespace = getNamespaceForAlias(namespaceOrAlias);\n FullQualifiedName fqName = new FullQualifiedName(finalNamespace, name);\n if (edmAssociations.containsKey(fq...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_230
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testNoFunctionImport() {\n VARIANT = 99;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 0);\n\n }", "class_method_signature": "JPAEdmFunctionImportTest.testNoF...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public List<FunctionImport> getConsistentFunctionImportList() {\n return consistentFunctionImportList;\n }", "class_method_signature": "JPAEdmFunctionImport.getConsistentFunctionImportList()", "constructor": false, "full_signature": "@Override public List<FunctionImport> getConsisten...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1011
{ "fields": [ { "declarator": "xmlStreamWriterFactory", "modifier": "private", "original_string": "private XMLOutputFactory xmlStreamWriterFactory;", "type": "XMLOutputFactory", "var_name": "xmlStreamWriterFactory" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/...
{ "body": "@Test\n public void writeValidMetadata6() throws Exception {\n\n List<Schema> schemas = new ArrayList<Schema>();\n\n List<AnnotationAttribute> attributesElement1 = new ArrayList<AnnotationAttribute>();\n attributesElement1.add(new AnnotationAttribute().setName(\"rel\").setText(\"self\").setPrefix...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/XmlMetadataProducer.java", "identifier": "XmlMetadataProducer", "interfaces": "", "methods": [ { "class_method_signature": "XmlMetadataProducer.writeMetadata(final DataServices metadata, final XMLS...
{ "body": "public static void writeMetadata(final DataServices metadata, final XMLStreamWriter xmlStreamWriter,\n Map<String, String> predefinedNamespaces) throws EntityProviderException {\n\n try {\n String edmxNamespace = Edm.NAMESPACE_EDMX_2007_06;\n String defaultNamespace = Edm.NAMESPACE_EDM_20...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_119
{ "fields": [ { "declarator": "context = null", "modifier": "", "original_string": "JPQLJoinSelectSingleContextView context = null;", "type": "JPQLJoinSelectSingleContextView", "var_name": "context" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/o...
{ "body": "@Test\n public void testBuild() throws Exception {\n setUp(getJoinClauseList());\n JPQLJoinSelectSingleStatementBuilder jpqlJoinSelectsingleStatementBuilder =\n new JPQLJoinSelectSingleStatementBuilder(context);\n try {\n JPQLStatement jpqlStatement = jpqlJoinSelectsingleStatementBuil...
{ "fields": [ { "declarator": "jpqlStatement", "modifier": "", "original_string": "JPQLStatement jpqlStatement;", "type": "JPQLStatement", "var_name": "jpqlStatement" }, { "declarator": "context", "modifier": "private", "original_string": "private JPQLJoinSe...
{ "body": "@Override\n public JPQLStatement build() throws ODataJPARuntimeException {\n jpqlStatement = createStatement(createJPQLQuery());\n this.context.setJPQLStatement(jpqlStatement.toString());\n return jpqlStatement;\n\n }", "class_method_signature": "JPQLJoinSelectSingleStatementBuilder.build()", ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_549
{ "fields": [ { "declarator": "POST = \"POST\"", "modifier": "private static final", "original_string": "private static final String POST = \"POST\";", "type": "String", "var_name": "POST" }, { "declarator": "GET = \"GET\"", "modifier": "private static final", ...
{ "body": "@Test\n public void testBatchChangeSetUtf8() throws IOException, BatchException {\n List<BatchPart> batch = new ArrayList<BatchPart>();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"content-type\", \"application/json; charset=utf-8\");\n BatchChangeSetPart requ...
{ "fields": [ { "declarator": "REG_EX_BOUNDARY =\n \"([a-zA-Z0-9_\\\\-\\\\.'\\\\+]{1,70})|\\\"([a-zA-Z0-9_\\\\-\\\\.'\\\\+\\\\s\\\\\" +\n \"(\\\\),/:=\\\\?]{1,69}[a-zA-Z0-9_\\\\-\\\\.'\\\\+\\\\(\\\\),/:=\\\\?])\\\"\"", "modifier": "private static final", "original_string": "private...
{ "body": "public InputStream writeBatchRequest(final List<BatchPart> batchParts, final String boundary) {\n if (boundary.matches(REG_EX_BOUNDARY)) {\n batchBoundary = boundary;\n } else {\n throw new IllegalArgumentException();\n }\n for (BatchPart batchPart : batchParts) {\n writer.append...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_288
{ "fields": [], "file": "odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationValueAccessTest.java", "identifier": "AnnotationValueAccessTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void setPropertyValueNull() throws ODataException {\n AnnotationValueAccess ava = new AnnotationValueAccess();\n SimpleEntity data = new SimpleEntity();\n data.name = \"A Name\";\n EdmProperty property = mockProperty(\"Name\");\n\n ava.setPropertyValue(data, property, null);\...
{ "fields": [ { "declarator": "annotationHelper = new AnnotationHelper()", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "oda...
{ "body": "@Override\n public <T, V> void setPropertyValue(final T data, final EdmProperty property, final V value) throws ODataException {\n if (data != null) {\n if (annotationHelper.isEdmAnnotated(data)) {\n annotationHelper.setValueForProperty(data, property.getName(), value);\n } else {\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_772
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void collectionSimpleTypeWrongMapping() throws Exception {\n final String xml = \"<AllUsedRoomIds xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">\"\n + \"<element>1</element></AllUsedRoomIds>\";\n new XmlPropertyConsumer().readCollecti...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public List<?> readCollection(XMLStreamReader reader, final EntityPropertyInfo info,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n final String collectionName = info.getName();\n final EntityTypeMapping typeMappings = EntityTypeMapping.create(\n prope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_267
{ "fields": [ { "declarator": "TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\"", "modifier": "private static final", "original_string": "private static final String TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\";", "type"...
{ "body": "@Test\n public void defaultContainerNameGeneration() throws ODataException {\n @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n AnnotationEdmProvider localAep =\n new AnnotationEdmProvider((Collection) Arrays.asList(GeneratedNamesTestClass.class));\n\n EntityContainerInfo containerInfo...
{ "fields": [ { "declarator": "ANNOTATION_HELPER = new AnnotationHelper()", "modifier": "private static final", "original_string": "private static final AnnotationHelper ANNOTATION_HELPER = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "ANNOTATION_HELPER" }, ...
{ "body": "@Override\n public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException {\n EntityContainer container = name2Container.get(name);\n if (container == null) {\n // use default container (if set)\n container = defaultContainer;\n }\n if (container != null)...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1046
{ "fields": [ { "declarator": "APPLICATION_XML = createConstant(ContentType.APPLICATION_XML)", "modifier": "private static final", "original_string": "private static final String APPLICATION_XML = createConstant(ContentType.APPLICATION_XML);", "type": "String", "var_name": "APPLICATI...
{ "body": "@Test\n public void defaultSupportedContentTypesForServiceDocument() throws Exception {\n List<String> types = service.getSupportedContentTypes(ServiceDocumentProcessor.class);\n assertTrue(types.contains(APPLICATION_ATOM_SVC));\n assertTrue(types.contains(APPLICATION_JSON));\n }", "class_meth...
{ "fields": [ { "declarator": "processor", "modifier": "private final", "original_string": "private final ODataSingleProcessor processor;", "type": "ODataSingleProcessor", "var_name": "processor" }, { "declarator": "edm", "modifier": "private final", "origin...
{ "body": "@Override\n public List<String> getSupportedContentTypes(final Class<? extends ODataProcessor> processorFeature)\n throws ODataException {\n List<String> result = new ArrayList<String>();\n\n if (processor instanceof CustomContentType) {\n result.addAll(((CustomContentType) processor).getC...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_637
{ "fields": [ { "declarator": "edmEntityContainer", "modifier": "private", "original_string": "private EdmEntityContainer edmEntityContainer;", "type": "EdmEntityContainer", "var_name": "edmEntityContainer" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/o...
{ "body": "@Test\n public void testEntityContainerNamespace() throws EdmException {\n assertEquals(\"Namespace\", edmEntityContainer.getNamespace());\n }", "class_method_signature": "EdmEntityContainerImplProvTest.testEntityContainerNamespace()", "constructor": false, "full_signature": "@Test public void t...
{ "fields": [ { "declarator": "edm", "modifier": "private", "original_string": "private EdmImplProv edm;", "type": "EdmImplProv", "var_name": "edm" }, { "declarator": "entityContainerHierachy", "modifier": "private", "original_string": "private List<EntityCo...
{ "body": "@Override\n public String getNamespace() throws EdmException{\n try {\n if (namespace == null) {\n List<Schema> schemas;\n schemas = edm.edmProvider.getSchemas();\n for (Schema schema : schemas) {\n List<EntityContainer> containers = schema.getEntityContainers();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_48
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParserTest.java", "identifier": "JPAEntityParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testparse2EdmPropertyListMap() {\n JPAEntityParser resultParser = new JPAEntityParser();\n Map<String, Object> edmEntity = new HashMap<String, Object>();\n edmEntity.put(\"SoId\", 1);\n DemoRelatedEntity relatedEntity = new DemoRelatedEntity(\"NewOrder\");\n demoItem jpa...
{ "fields": [ { "declarator": "MAX_SIZE = 10", "modifier": "private static", "original_string": "private static short MAX_SIZE = 10;", "type": "short", "var_name": "MAX_SIZE" }, { "declarator": "ACCESS_MODIFIER_GET = \"get\"", "modifier": "public static final", ...
{ "body": "public final HashMap<String, Object> parse2EdmNavigationValueMap(\n final Object jpaEntity, final List<EdmNavigationProperty> navigationPropertyList)\n throws ODataJPARuntimeException {\n Object result = null;\n String methodName = null;\n HashMap<String, Object> navigationMap = new Hash...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_908
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonFeedConsumerTest.java", "identifier": "JsonFeedConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void doubleCount() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"__count\\\":\\\"1\\\",\\\"_...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_566
{ "fields": [ { "declarator": "CRLF = \"\\r\\n\"", "modifier": "private static final", "original_string": "private static final String CRLF = \"\\r\\n\";", "type": "String", "var_name": "CRLF" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/bat...
{ "body": "@Test\n public void testRemoveEndingCRLFWithWS() {\n String line = \"Test\\r\\n \";\n assertEquals(\"Test\", BatchParserCommon.removeEndingCRLF(new Line(line,1)).toString());\n }", "class_method_signature": "BatchParserCommonTest.testRemoveEndingCRLFWithWS()", "constructor": false, ...
{ "fields": [ { "declarator": "PATTERN_LAST_CRLF = Pattern.compile(\"(.*)(\\r\\n){1}( *)\", Pattern.DOTALL)", "modifier": "private static final", "original_string": "private static final Pattern PATTERN_LAST_CRLF = Pattern.compile(\"(.*)(\\r\\n){1}( *)\", Pattern.DOTALL);", "type": "Patter...
{ "body": "public static Line removeEndingCRLF(final Line line) {\n Pattern pattern = PATTERN_LAST_CRLF;\n Matcher matcher = pattern.matcher(line.toString());\n\n if (matcher.matches()) {\n return new Line(matcher.group(1), line.getLineNumber());\n } else {\n return line;\n }\n }", "class_...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_136
{ "fields": [ { "declarator": "objJPAEdmEntityContainer", "modifier": "private", "original_string": "private JPAEdmEntityContainer objJPAEdmEntityContainer;", "type": "JPAEdmEntityContainer", "var_name": "objJPAEdmEntityContainer" }, { "declarator": "objJPAEdmEntityCont...
{ "body": "@Test\n public void testGetEdmEntityContainer() {\n assertNotNull(objJPAEdmEntityContainer.getEdmEntityContainer());\n assertTrue(objJPAEdmEntityContainer.getEdmEntityContainer().getEntitySets().size() > 0);\n }", "class_method_signature": "JPAEdmEntityContainerTest.testGetEdmEntityContainer()", ...
{ "fields": [ { "declarator": "entitySetView", "modifier": "private", "original_string": "private JPAEdmEntitySetView entitySetView;", "type": "JPAEdmEntitySetView", "var_name": "entitySetView" }, { "declarator": "schemaView", "modifier": "private", "origina...
{ "body": "@Override\n public EntityContainer getEdmEntityContainer() {\n return currentEntityContainer;\n }", "class_method_signature": "JPAEdmEntityContainer.getEdmEntityContainer()", "constructor": false, "full_signature": "@Override public EntityContainer getEdmEntityContainer()", "identifier": "getE...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_835
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test\n public void validationOfDifferentNamespacesPrefixSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \" xmlns:meta=\\\"http://schemas.microsoft....
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_30
{ "fields": [ { "declarator": "builder = null", "modifier": "", "original_string": "JPAQueryBuilder builder = null;", "type": "JPAQueryBuilder", "var_name": "builder" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/...
{ "body": "@Test\n public void buildQueryCountEntitySet() {\n EdmMapping mapping = (EdmMapping) mockMapping();\n try {\n assertNotNull(builder.build((GetEntitySetCountUriInfo) mockURIInfoForEntitySetCount(mapping)));\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 ...
{ "fields": [ { "declarator": "em = null", "modifier": "private", "original_string": "private EntityManager em = null;", "type": "EntityManager", "var_name": "em" }, { "declarator": "pageSize = 0", "modifier": "private", "original_string": "private int pageS...
{ "body": "public JPAQueryInfo build(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n try {\n ODataJPATombstoneEntityListener listener = getODataJPATombstoneEntityListener((UriInfo) uriInfo);\n if (listener != null...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_970
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testComplexTypeWithInvalidBaseType() throws XMLStreamException, EntityProviderException {\n final String xml =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<edmx:DataSe...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_423
{ "fields": [], "file": "odata2-lib/odata-client-core/src/test/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlFeedDeserializerTest.java", "identifier": "XmlFeedDeserializerTest", "interfaces": "", "superclass": "extends AbstractXmlDeserializerTest" }
{ "body": "@Test\n public void readLargeEmployeesFeed() throws Exception {\n InputStream file = getFileAsStream(\"LargeEmployeeFeed.xml\");\n assertNotNull(file);\n EntityStream es = new EntityStream();\n es.setContent(file);\n es.setReadProperties(DEFAULT_PROPERTIES);\n ODataClientImpl client = ne...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlFeedDeserializer.java", "identifier": "XmlFeedDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlFeedDeserializer.readFeed(final XMLStreamReader read...
{ "body": "public ODataDeltaFeed readFeed(final XMLStreamReader reader, final EntityInfoAggregator eia,\n final DeserializerProperties readProperties) throws EntityProviderException {\n try {\n // read xml tag\n reader.require(XMLStreamConstants.START_DOCUMENT, null, null);\n reader.nextTag();\...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_589
{ "fields": [ { "declarator": "CRLF = \"\\r\\n\"", "modifier": "private static final", "original_string": "private static final String CRLF = \"\\r\\n\";", "type": "String", "var_name": "CRLF" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/bat...
{ "body": "@Test\n public void testResponse() throws Exception {\n List<BatchResponsePart> parts = new ArrayList<BatchResponsePart>();\n ODataResponse response =\n ODataResponse.entity(\"Walter Winter\").status(HttpStatusCodes.OK).contentHeader(\"application/json\").build();\n List<ODataResponse> res...
{ "fields": [ { "declarator": "COLON = \":\"", "modifier": "private static final", "original_string": "private static final String COLON = \":\";", "type": "String", "var_name": "COLON" }, { "declarator": "SP = \" \"", "modifier": "private static final", "or...
{ "body": "public ODataResponse writeResponse(final List<BatchResponsePart> batchResponseParts) throws BatchException {\n String boundary = BatchHelper.generateBoundary(\"batch\");\n appendResponsePart(batchResponseParts, boundary);\n final Object batchResponseBody;\n int length = 0;\n if(writeEntityAs...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_618
{ "fields": [ { "declarator": "edmEntityType", "modifier": "private static", "original_string": "private static EdmEntityTypeImplProv edmEntityType;", "type": "EdmEntityTypeImplProv", "var_name": "edmEntityType" }, { "declarator": "edmEntityTypeWithBaseType", "mod...
{ "body": "@Test\n public void getKeyPropertiesNamesWithBaseType() throws Exception {\n List<String> keyProperties = edmEntityTypeWithBaseType.getKeyPropertyNames();\n assertNotNull(keyProperties);\n assertTrue(keyProperties.contains(\"Id\"));\n }", "class_method_signature": "EdmEntityTypeImplProvTest.ge...
{ "fields": [ { "declarator": "entityType", "modifier": "private", "original_string": "private EntityType entityType;", "type": "EntityType", "var_name": "entityType" }, { "declarator": "keyProperties", "modifier": "private", "original_string": "private Map<...
{ "body": "@Override\n public List<String> getKeyPropertyNames() throws EdmException {\n if (edmKeyPropertyNames == null) {\n if (edmBaseType != null) {\n return ((EdmEntityType) edmBaseType).getKeyPropertyNames();\n }\n\n edmKeyPropertyNames = new ArrayList<String>();\n\n if (entityTyp...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_248
{ "fields": [ { "declarator": "annotationHelper", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper;", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "odata2-annotation-processor/annotation-processor-core...
{ "body": "@Test\n public void keyMatchMapNegativeDifferentValueCount() throws ODataException {\n SimpleEntity firstInstance = new SimpleEntity(99l, \"Another Name\");\n Map<String, Object> keyName2Value = new HashMap<String, Object>();\n\n boolean result = annotationHelper.keyMatch(firstInstance, keyName2V...
{ "fields": [ { "declarator": "DEFAULT_CONTAINER_NAME = \"DefaultContainer\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_CONTAINER_NAME = \"DefaultContainer\";", "type": "String", "var_name": "DEFAULT_CONTAINER_NAME" } ], "file"...
{ "body": "public boolean keyMatch(final Object firstInstance, final Object secondInstance) {\n if (firstInstance == null || secondInstance == null) {\n return false;\n } else if (firstInstance.getClass() != secondInstance.getClass()) {\n return false;\n }\n\n Map<String, Object> firstKeyFields ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_862
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test\n public void readCustomizableFeedMappingsWithMergeSemantic() throws Exception {\n XmlEntityConsumer xec = new XmlEntityConsumer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getEntityContainer(\"Container2\").getEntitySet(\"Photos\");\n InputStream reqContent = createContentAsStr...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_88
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testMapJPARelationshipNegative() {\n // Wrong value to bring null\n assertNull(objJPAEdmMappingModelServiceTest.mapJPARelationship(ENTITY_TYPE_NAME_JPA, RELATIONSHIP_NAME_JPA_WRONG));\n }", "class_method_signature": "JPAEdmMappingModelServiceTest.testMapJPARelationshipNegative...
{ "fields": [ { "declarator": "mappingModelExists = true", "modifier": "", "original_string": "boolean mappingModelExists = true;", "type": "boolean", "var_name": "mappingModelExists" }, { "declarator": "mappingModel", "modifier": "private", "original_string...
{ "body": "@Override\n public String mapJPARelationship(final String jpaEntityTypeName, final String jpaRelationshipName) {\n JPAEntityTypeMapType jpaEntityTypeMap = searchJPAEntityTypeMapType(jpaEntityTypeName);\n if (jpaEntityTypeMap != null && jpaEntityTypeMap.getJPARelationships() != null) {\n for (JP...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_474
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void validationOfDoublePropertyDifferentTagHierachy() throws Exception {\n String room =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \" xmlns:m=\\\"http://schemas.microsoft.com/ado/2007/08/data...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_927
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void simplePropertInvalidName() throws Exception {\n String simplePropertyJson = \"{\\\"d\\\":{\\\"Invalid\\\":67}}\";\n JsonReader reader = prepareReader(simplePropertyJson);\n final EdmProperty edmProperty =\n (EdmProperty) MockFac...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "public Map<String, Object> readPropertyStandalone(JsonReader reader, final EdmProperty edmProperty,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readPropertyStandalone(reader, EntityInfoAggregator.create(edmProperty), readProperties);\n }", "clas...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_67
{ "fields": [ { "declarator": "testCase = \"datetime\"", "modifier": "private static", "original_string": "private static String testCase = \"datetime\";", "type": "String", "var_name": "testCase" }, { "declarator": "edmSimpleKindTypeString", "modifier": "private"...
{ "body": "@Test\n public void testConvertTypeTemporal() {\n testCase = \"datetime\";\n try {\n EdmSimpleTypeKind edmDateType = JPATypeConverter.convertToEdmSimpleType(Calendar.class, new JPASimpleAttribute());\n assertEquals(EdmSimpleTypeKind.DateTime, edmDateType);\n } catch (ODataJPAModelExcept...
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/model/JPATypeConverter.java", "identifier": "JPATypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "JPATypeConverter.convertToEdmSimpleType(final Class<?> j...
{ "body": "public static EdmSimpleTypeKind\n convertToEdmSimpleType(final Class<?> jpaType, final Attribute<?, ?> currentAttribute)\n throws ODataJPAModelException {\n if (jpaType.equals(String.class) || jpaType.equals(Character.class) || jpaType.equals(char.class)\n || jpaType.equals(char[].c...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_177
{ "fields": [ { "declarator": "objComplexType = null", "modifier": "private static", "original_string": "private static JPAEdmComplexType objComplexType = null;", "type": "JPAEdmComplexType", "var_name": "objComplexType" }, { "declarator": "localView = null", "mod...
{ "body": "@Test\n public void testSearchComplexTypeFullQualifiedNameNegative() {\n assertNull(objComplexType.searchEdmComplexType(new FullQualifiedName(\"salesorderprocessing\", \"lang.String\")));\n }", "class_method_signature": "JPAEdmComplexTypeTest.testSearchComplexTypeFullQualifiedNameNegative()", "con...
{ "fields": [ { "declarator": "schemaView", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "currentComplexType = null", "modifier": "private", "origina...
{ "body": "@Override\n public ComplexType searchEdmComplexType(final String embeddableTypeName) {\n return searchMap.get(embeddableTypeName);\n }", "class_method_signature": "JPAEdmComplexType.searchEdmComplexType(final String embeddableTypeName)", "constructor": false, "full_signature": "@Override public ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_874
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test\n public void RoomEntryWithInlineEmployeeInlineTeam() throws Exception {\n InputStream stream = getFileAsStream(\"Room_InlineEmployeesToTeam.xml\");\n assertNotNull(stream);\n FeedCallback callback = new FeedCallback();\n\n EntityProviderReadProperties readProperties = EntityProviderRead...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_71
{ "fields": [ { "declarator": "testCase = \"datetime\"", "modifier": "private static", "original_string": "private static String testCase = \"datetime\";", "type": "String", "var_name": "testCase" }, { "declarator": "edmSimpleKindTypeString", "modifier": "private"...
{ "body": "@Test\n public void testConvertPropertyWithXmlAdapter() {\n\t try {\n\t\t EdmSimpleTypeKind edmDateType =\n\t\t\t\t JPATypeConverter\n\t\t\t\t .convertToEdmSimpleType(EntityWithXmlAdapterOnProperty.class,\n\t\t\t\t\t\t new JPAAttributeWithXmlAdapterType());\n\t\t assertEquals(EdmSimpleTypeKind.String, ed...
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/model/JPATypeConverter.java", "identifier": "JPATypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "JPATypeConverter.convertToEdmSimpleType(final Class<?> j...
{ "body": "public static EdmSimpleTypeKind\n convertToEdmSimpleType(final Class<?> jpaType, final Attribute<?, ?> currentAttribute)\n throws ODataJPAModelException {\n if (jpaType.equals(String.class) || jpaType.equals(Character.class) || jpaType.equals(char.class)\n || jpaType.equals(char[].c...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_931
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumerTest.java", "identifier": "JsonPropertyConsumerTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test\n public void complexPropertyOnOpenReaderWithNoMetadata() throws Exception {\n final String complexPropertyJson = \"{\\\"PostalCode\\\":\\\"69124\\\",\\\"CityName\\\":\\\"Heidelberg\\\"}\";\n JsonReader reader = prepareReader(complexPropertyJson);\n final EdmProperty property =\n (Ed...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonPropertyConsumer.java", "identifier": "JsonPropertyConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyConsumer.readPropertyStandalone(JsonReader reader, final Ed...
{ "body": "protected Object readPropertyValue(final JsonReader reader, final EntityPropertyInfo entityPropertyInfo,\n final Object typeMapping, final EntityProviderReadProperties readProperties) throws EntityProviderException {\n try {\n return entityPropertyInfo.isComplex() ?\n readComplexPrope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_198
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraintRole = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraintRole objJPAEdmReferentialConstraintRole = null;", "type": "JPAEdmReferentialConstraintRole", "var_name": "objJPAEdmRe...
{ "body": "@Test\n public void testGetBuilder() {\n assertNotNull(objJPAEdmReferentialConstraintRole.getBuilder());\n }", "class_method_signature": "JPAEdmReferentialConstraintRoleTest.testGetBuilder()", "constructor": false, "full_signature": "@Test public void testGetBuilder()", "identifier": "testGetB...
{ "fields": [ { "declarator": "firstBuild = true", "modifier": "private", "original_string": "private boolean firstBuild = true;", "type": "boolean", "var_name": "firstBuild" }, { "declarator": "entityTypeView", "modifier": "private", "original_string": "pri...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmRefConstraintRoleBuilder();\n }\n\n return builder;\n }", "class_method_signature": "JPAEdmReferentialConstraintRole.getBuilder()", "constructor": false, "full_signature": "@Override public ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_462
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readWithInlineContentEmployeeRoomEntrySpecialXml() throws Exception {\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream reqContent = createContentAsStream(EMPLOYEE_1_ROOM_XML, true);\n EntityStream strea...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_659
{ "fields": [ { "declarator": "edm", "modifier": "private", "original_string": "private ForEdmImplTest edm;", "type": "ForEdmImplTest", "var_name": "edm" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmImplTest.java", "identifier": "Ed...
{ "body": "@Test\n public void testComplexTypeCache() throws EdmException {\n assertEquals(edm.getComplexType(\"foo\", \"bar\"), edm.getComplexType(\"foo\", \"bar\"));\n assertNotSame(edm.getComplexType(\"foo\", \"bar\"), edm.getComplexType(\"bar\", \"foo\"));\n }", "class_method_signature": "EdmImplTest.te...
{ "fields": [ { "declarator": "edmEntityContainers", "modifier": "private", "original_string": "private Map<String, EdmEntityContainer> edmEntityContainers;", "type": "Map<String, EdmEntityContainer>", "var_name": "edmEntityContainers" }, { "declarator": "edmEntityTypes...
{ "body": "@Override\n public EdmComplexType getComplexType(final String namespaceOrAlias, final String name) throws EdmException {\n String finalNamespace = getNamespaceForAlias(namespaceOrAlias);\n FullQualifiedName fqName = new FullQualifiedName(finalNamespace, name);\n if (edmComplexTypes.containsKey(fq...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_209
{ "fields": [ { "declarator": "objJPAEdmEntityTypeTest", "modifier": "private static", "original_string": "private static JPAEdmEntityTypeTest objJPAEdmEntityTypeTest;", "type": "JPAEdmEntityTypeTest", "var_name": "objJPAEdmEntityTypeTest" }, { "declarator": "objJPAEdmE...
{ "body": "@Test\n public void testGetConsistentEdmEntityTypes() {\n assertTrue(objJPAEdmEntityType.getConsistentEdmEntityTypes().size() > 0);\n }", "class_method_signature": "JPAEdmEntityTypeTest.testGetConsistentEdmEntityTypes()", "constructor": false, "full_signature": "@Test public void testGetConsiste...
{ "fields": [ { "declarator": "schemaView = null", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView = null;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "currentEdmEntityType = null", "modifier": "private"...
{ "body": "@Override\n public List<EntityType> getConsistentEdmEntityTypes() {\n return consistentEntityTypes;\n }", "class_method_signature": "JPAEdmEntityType.getConsistentEdmEntityTypes()", "constructor": false, "full_signature": "@Override public List<EntityType> getConsistentEdmEntityTypes()", "iden...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1028
{ "fields": [ { "declarator": "EMPLOYEE_1_XML =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" +\n \"<entry xmlns=\\\"\" + Edm.NAMESPACE_ATOM_2005 + \"\\\"\" +\n \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\"\" +\n \" xmlns:d=\\\"\" + Edm.NAMESPACE_D_2007_08 +...
{ "body": "@Test\n public void readMultipleEntityFunctionImport() throws Exception {\n final EdmFunctionImport functionImport = MockFacade.getMockEdm().getDefaultEntityContainer()\n .getFunctionImport(\"EmployeeSearch\");\n InputStream content = new ByteArrayInputStream(\n (\"{\\\"d\\\": {\"\n ...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/ProviderFacadeImpl.java", "identifier": "ProviderFacadeImpl", "interfaces": "implements EntityProviderInterface", "methods": [ { "class_method_signature": "ProviderFacadeImpl.create()", "constructor":...
{ "body": "@Override\n public Object readFunctionImport(final String contentType, final EdmFunctionImport functionImport,\n final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException {\n return create(contentType).readFunctionImport(functionImport, content, prope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_823
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test\n public void readWithDoubleInlineContent() throws Exception {\n // prepare\n String content = readFile(\"double_expanded_team.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream reqC...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_989
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testInvalidRole() throws XMLStreamException, EntityProviderException {\n final String xmlWithInvalidAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_120
{ "fields": [ { "declarator": "context = null", "modifier": "", "original_string": "JPQLJoinSelectSingleContextView context = null;", "type": "JPQLJoinSelectSingleContextView", "var_name": "context" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/o...
{ "body": "@Test\n public void testJoinClauseAsNull() throws Exception {\n setUp(null);\n JPQLJoinSelectSingleStatementBuilder jpqlJoinSelectsingleStatementBuilder =\n new JPQLJoinSelectSingleStatementBuilder(context);\n try {\n jpqlJoinSelectsingleStatementBuilder.build();\n fail(\"Should ...
{ "fields": [ { "declarator": "jpqlStatement", "modifier": "", "original_string": "JPQLStatement jpqlStatement;", "type": "JPQLStatement", "var_name": "jpqlStatement" }, { "declarator": "context", "modifier": "private", "original_string": "private JPQLJoinSe...
{ "body": "@Override\n public JPQLStatement build() throws ODataJPARuntimeException {\n jpqlStatement = createStatement(createJPQLQuery());\n this.context.setJPQLStatement(jpqlStatement.toString());\n return jpqlStatement;\n\n }", "class_method_signature": "JPQLJoinSelectSingleStatementBuilder.build()", ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_570
{ "fields": [ { "declarator": "CRLF = \"\\r\\n\"", "modifier": "private static final", "original_string": "private static final String CRLF = \"\\r\\n\";", "type": "String", "var_name": "CRLF" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/bat...
{ "body": "@Test\n public void testRemoveLastEndingCRLFWithWS() {\n String line = \"Test \\r\\n\";\n assertEquals(\"Test \", BatchParserCommon.removeEndingCRLF(new Line(line,1)).toString());\n }", "class_method_signature": "BatchParserCommonTest.testRemoveLastEndingCRLFWithWS()", "co...
{ "fields": [ { "declarator": "PATTERN_LAST_CRLF = Pattern.compile(\"(.*)(\\r\\n){1}( *)\", Pattern.DOTALL)", "modifier": "private static final", "original_string": "private static final Pattern PATTERN_LAST_CRLF = Pattern.compile(\"(.*)(\\r\\n){1}( *)\", Pattern.DOTALL);", "type": "Patter...
{ "body": "public static Line removeEndingCRLF(final Line line) {\n Pattern pattern = PATTERN_LAST_CRLF;\n Matcher matcher = pattern.matcher(line.toString());\n\n if (matcher.matches()) {\n return new Line(matcher.group(1), line.getLineNumber());\n } else {\n return line;\n }\n }", "class_...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_435
{ "fields": [], "file": "odata2-lib/odata-client-core/src/test/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonFeedDeserializerTest.java", "identifier": "JsonFeedDeserializerTest", "interfaces": "", "superclass": "extends AbstractDeserializerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void countButNoResults() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"__count\\\":\\\"1\\\"...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_966
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void test() throws XMLStreamException, EntityProviderException {\n int i = 0;\n XmlMetadataConsumer parser = new XmlMetadataConsumer();\n XMLStreamReader reader = createStreamReader(xml);\n DataServices result = parser.readMetadata(reader, true);\n assertEquals(\"2.0\", resul...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_26
{ "fields": [ { "declarator": "builder = null", "modifier": "", "original_string": "JPAQueryBuilder builder = null;", "type": "JPAQueryBuilder", "var_name": "builder" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/...
{ "body": "@Test\n public void buildQueryGetEntitySetTestWithNoNormalizationWithtoUpper() {\n EdmMapping mapping = (EdmMapping) mockNormalizedValueMapping();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) \n mockURIInfoForEntitySetWithBinaryFilterExpression(mapping, \"toUpper\")));\n...
{ "fields": [ { "declarator": "em = null", "modifier": "private", "original_string": "private EntityManager em = null;", "type": "EntityManager", "var_name": "em" }, { "declarator": "pageSize = 0", "modifier": "private", "original_string": "private int pageS...
{ "body": "public JPAQueryInfo build(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n try {\n ODataJPATombstoneEntityListener listener = getODataJPATombstoneEntityListener((UriInfo) uriInfo);\n if (listener != null...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_622
{ "fields": [ { "declarator": "edmAssociationSet", "modifier": "private static", "original_string": "private static EdmAssociationSet edmAssociationSet;", "type": "EdmAssociationSet", "var_name": "edmAssociationSet" }, { "declarator": "edmProvider", "modifier": "p...
{ "body": "@Test(expected = EdmException.class)\n public void testAssociationSetNoEntity() throws Exception {\n EdmAssociationSet associationSet = edmAssociationSet;\n associationSet.getEnd(\"end2Role\");\n }", "class_method_signature": "EdmAssociationSetImplProvTest.testAssociationSetNoEntity()", "constr...
{ "fields": [ { "declarator": "associationSet", "modifier": "private", "original_string": "private AssociationSet associationSet;", "type": "AssociationSet", "var_name": "associationSet" }, { "declarator": "edmEntityContainer", "modifier": "private", "origin...
{ "body": "@Override\n public EdmAssociationSetEnd getEnd(final String role) throws EdmException {\n AssociationSetEnd end;\n\n if (associationSet.getEnd1().getRole().equals(role)) {\n end = associationSet.getEnd1();\n } else if (associationSet.getEnd2().getRole().equals(role)) {\n end = associati...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_788
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonLinkConsumerTest.java", "identifier": "JsonLinkConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void linksWrongCountName() throws Exception {\n final String links = \"{\\\"count\\\":\\\"5\\\",\\\"results\\\":[]}\";\n JsonReader reader = new JsonReader(new InputStreamReader(createContentAsStream(links)));\n new JsonLinkConsumer().readL...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/JsonLinkConsumer.java", "identifier": "JsonLinkConsumer", "interfaces": "", "methods": [ { "class_method_signature": "JsonLinkConsumer.readLink(final JsonReader reader, final EdmEntitySet entitySet...
{ "body": "public List<String> readLinks(final JsonReader reader, final EdmEntitySet entitySet) throws EntityProviderException {\n List<String> links = null;\n int openedObjects = 0;\n\n try {\n String nextName;\n if (reader.peek() == JsonToken.BEGIN_ARRAY) {\n nextName = FormatJson.RESULTS;...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_272
{ "fields": [ { "declarator": "TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\"", "modifier": "private static final", "original_string": "private static final String TEST_MODEL_PACKAGE = \"org.apache.olingo.odata2.annotation.processor.core.model\";", "type"...
{ "body": "@Test\n public void entityTypeTeam() throws Exception {\n // validate team\n EntityType team = aep.getEntityType(new FullQualifiedName(ModelSharedConstants.NAMESPACE_1, \"Team\"));\n assertEquals(\"Team\", team.getName());\n assertEquals(\"Base\", team.getBaseType().getName());\n assertEqua...
{ "fields": [ { "declarator": "ANNOTATION_HELPER = new AnnotationHelper()", "modifier": "private static final", "original_string": "private static final AnnotationHelper ANNOTATION_HELPER = new AnnotationHelper();", "type": "AnnotationHelper", "var_name": "ANNOTATION_HELPER" }, ...
{ "body": "@Override\n public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException {\n Schema schema = namespace2Schema.get(edmFQName.getNamespace());\n if (schema != null) {\n List<EntityType> complexTypes = schema.getEntityTypes();\n for (EntityType complexType : comple...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1053
{ "fields": [ { "declarator": "APPLICATION_XML = createConstant(ContentType.APPLICATION_XML)", "modifier": "private static final", "original_string": "private static final String APPLICATION_XML = createConstant(ContentType.APPLICATION_XML);", "type": "String", "var_name": "APPLICATI...
{ "body": "@Test\n public void defaultSupportedContentTypesAndGifForEntityLink() throws Exception {\n String ctGif = ContentType.create(\"image\", \"gif\").toContentTypeString();\n when(((CustomContentType) processor).getCustomContentTypes(EntityLinkProcessor.class)).thenReturn(\n Arrays.asList(ctGif));...
{ "fields": [ { "declarator": "processor", "modifier": "private final", "original_string": "private final ODataSingleProcessor processor;", "type": "ODataSingleProcessor", "var_name": "processor" }, { "declarator": "edm", "modifier": "private final", "origin...
{ "body": "@Override\n public List<String> getSupportedContentTypes(final Class<? extends ODataProcessor> processorFeature)\n throws ODataException {\n List<String> result = new ArrayList<String>();\n\n if (processor instanceof CustomContentType) {\n result.addAll(((CustomContentType) processor).getC...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_767
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test\n public void complexPropertyNullValueNotAllowedButNotValidated() throws Exception {\n final String xml = \"<Location xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08\n + \"\\\" m:null=\\\"true\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" />\";\n EdmProperty property = (EdmProperty) Mock...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readProperty(reader, EntityInfoAggregator.create(property), readProperties);\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_337
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testMultiplebaseType() throws Exception {\n final String metadata = \"\"\n + \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \" <edmx:DataServices m:DataServiceVersion=\\\"2.0\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_0...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_858
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testReadEntryRequestInvalidMapping() throws Exception {\n XmlEntityConsumer xec = new XmlEntityConsumer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream cont...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_225
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testFunctionImportParamFacets() {\n VARIANT = 14;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 1);\n\n List<FunctionImportParameter> funcImpParamList = funct...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public List<FunctionImport> getConsistentFunctionImportList() {\n return consistentFunctionImportList;\n }", "class_method_signature": "JPAEdmFunctionImport.getConsistentFunctionImportList()", "constructor": false, "full_signature": "@Override public List<FunctionImport> getConsisten...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1004
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testAnnotations() throws XMLStreamException, EntityProviderException {\n final String xmlWithAnnotations =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\" xmlns:annoPrefix=\\\"http://annoNamespace\\\">\"\n ...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_675
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/commons/ContentTypeTest.java", "identifier": "ContentTypeTest", "interfaces": "", "superclass": "extends BaseTest" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testContentTypeCreationWildcardType() {\n ContentType.create(\"*\", \"subtype\");\n }", "class_method_signature": "ContentTypeTest.testContentTypeCreationWildcardType()", "constructor": false, "full_signature": "@Test(expected = Ille...
{ "fields": [ { "declarator": "KNOWN_MIME_TYPES = new HashSet<String>()", "modifier": "private static final", "original_string": "private static final Set<String> KNOWN_MIME_TYPES = new HashSet<String>();", "type": "Set<String>", "var_name": "KNOWN_MIME_TYPES" }, { "dec...
{ "body": "public static ContentType create(final String type, final String subtype) {\n return new ContentType(type, subtype, mapToODataFormat(type, subtype), null);\n }", "class_method_signature": "ContentType.create(final String type, final String subtype)", "constructor": false, "full_signature": "publi...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_360
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testInvalidBaseType() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmlWithInvalidBaseType =\n \"<Schema Namespace=\\\"\" + NAMESPACE + \"\\\" xmlns=\\\"\" + Edm.NA...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_730
{ "fields": [ { "declarator": "JSON_ERROR_DOCUMENT_SIMPLE = \"{\\\"error\\\":{\\\"code\\\":\\\"ErrorCode\\\",\" +\n \"\\\"message\\\":{\\\"lang\\\":\\\"en-US\\\",\\\"value\\\":\\\"Message\\\"}}}\"", "modifier": "private static final", "original_string": "private static final String JSON_ERR...
{ "body": "@Test\n public void innerError() throws Exception {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_INNER_ERROR);\n ODataErrorContext error = jedc.readError(in);\n\n assertEquals(\"Wrong content type\", \"application/json\", error.getContentType());\n assertEquals(\"Wrong messa...
{ "fields": [ { "declarator": "DEFAULT_CHARSET = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_CHARSET = \"UTF-8\";", "type": "String", "var_name": "DEFAULT_CHARSET" }, { "declarator": "AVAILABLE_LOCALES = new Ha...
{ "body": "public ODataErrorContext readError(final InputStream errorDocument) throws EntityProviderException {\n JsonReader reader = createJsonReader(errorDocument);\n try {\n return parseJson(reader);\n } catch (IOException e) {\n throw new EntityProviderException(\n EntityProviderExcept...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_419
{ "fields": [ { "declarator": "expectedEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedEx" } ], "file": "odata2-lib/...
{ "body": "@Test(expected = EntityProviderException.class)\n public void collectionWithoutClosing() throws Exception {\n final EntityPropertyInfo info = EntityInfoAggregator.create(\n MockFacade.getMockEdm().getDefaultEntityContainer().getFunctionImport(\"AllUsedRoomIds\"));\n new JsonPropertyDeserializ...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonPropertyDeserializer.java", "identifier": "JsonPropertyDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyDeserializer.readPropertyStandalo...
{ "body": "public List<?> readCollection(JsonReader reader, final EntityPropertyInfo propertyInfo,\n final DeserializerProperties readProperties) throws EntityProviderException {\n final Object typeMapping = null ;\n List<Object> result = new ArrayList<Object>();\n String name = null;\n boolean wr...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_399
{ "fields": [ { "declarator": "expectedEx = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedEx = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedEx" } ], "file": "odata2-lib/...
{ "body": "@Test\n public void deepComplexPropertyOnOpenReader() throws Exception {\n final String complexPropertyJson =\n \"{\\\"__metadata\\\":{\\\"type\\\":\\\"RefScenario.c_Location\\\"},\" +\n \"\\\"City\\\":{\\\"__metadata\\\":{\\\"type\\\":\\\"RefScenario.c_City\\\"},\\\"PostalCode\\\":\\...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonPropertyDeserializer.java", "identifier": "JsonPropertyDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "JsonPropertyDeserializer.readPropertyStandalo...
{ "body": "protected Object readPropertyValue(final JsonReader reader, final EntityPropertyInfo entityPropertyInfo,\n final Object typeMapping, final DeserializerProperties readProperties)\n throws EntityProviderException {\n try {\n return entityPropertyInfo.isComplex() ?\n readComplex...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1012
{ "fields": [ { "declarator": "xmlStreamWriterFactory", "modifier": "private", "original_string": "private XMLOutputFactory xmlStreamWriterFactory;", "type": "XMLOutputFactory", "var_name": "xmlStreamWriterFactory" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/...
{ "body": "@Test(expected = Exception.class)\n public void writeInvalidMetadata() throws Exception {\n disableLogging(this.getClass());\n List<Schema> schemas = new ArrayList<Schema>();\n\n List<AnnotationElement> annotationElements = new ArrayList<AnnotationElement>();\n annotationElements.add(new Annot...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/XmlMetadataProducer.java", "identifier": "XmlMetadataProducer", "interfaces": "", "methods": [ { "class_method_signature": "XmlMetadataProducer.writeMetadata(final DataServices metadata, final XMLS...
{ "body": "public static void writeMetadata(final DataServices metadata, final XMLStreamWriter xmlStreamWriter,\n Map<String, String> predefinedNamespaces) throws EntityProviderException {\n\n try {\n String edmxNamespace = Edm.NAMESPACE_EDMX_2007_06;\n String defaultNamespace = Edm.NAMESPACE_EDM_20...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_233
{ "fields": [ { "declarator": "objJPAEdmPropertyTest", "modifier": "private", "original_string": "private JPAEdmPropertyTest objJPAEdmPropertyTest;", "type": "JPAEdmPropertyTest", "var_name": "objJPAEdmPropertyTest" }, { "declarator": "objJPAEdmProperty", "modifie...
{ "body": "@Test\n public void testGetBuilderIdempotent() {\n setUp();\n JPAEdmBuilder builder1 = objJPAEdmProperty.getBuilder();\n JPAEdmBuilder builder2 = objJPAEdmProperty.getBuilder();\n\n assertEquals(builder1.hashCode(), builder2.hashCode());\n }", "class_method_signature": "JPAEdmPropertyTest.t...
{ "fields": [ { "declarator": "schemaView", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "entityTypeView", "modifier": "private", "original_string": ...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmPropertyBuilder();\n }\n\n return builder;\n }", "class_method_signature": "JPAEdmProperty.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBuilder getBuilder()...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_726
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/servlet/RestUtilTest.java", "identifier": "RestUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExtractAcceptHeaders() throws Exception {\n // NuGet 4.0 client under .NET\n List<String> result = RestUtil.extractAcceptHeaders(\"application/atom+xml, application/xml\");\n Assert.assertEquals(2, result.size());\n Assert.assertEquals(\"application/atom+xml\", result.g...
{ "fields": [ { "declarator": "REG_EX_OPTIONAL_WHITESPACE = \"\\\\s*\"", "modifier": "private static final", "original_string": "private static final String REG_EX_OPTIONAL_WHITESPACE = \"\\\\s*\";", "type": "String", "var_name": "REG_EX_OPTIONAL_WHITESPACE" }, { "decla...
{ "body": "public static List<String> extractAcceptHeaders(final String acceptHeader) {\n TreeSet<Accept> acceptTree = getAcceptTree();\n List<String> acceptHeaders = new ArrayList<String>();\n if (acceptHeader != null && !acceptHeader.isEmpty()) {\n List<String> list = Arrays.asList(acceptHeader.split(...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_376
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testMetadataRelatedEntitySet() throws XMLStreamException, \n EntityProviderException, EdmException, IOException {\n XmlMetadataDeserializer parser = new XmlMetadataDeserializer();\n String xml = readFile(\"metadataForRelatedEntity.xml\");\n InputStream reader = createStreamRe...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_819
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test\n public void readWithInlineContentAndCallback() throws Exception {\n // prepare\n String content = readFile(\"expanded_team.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream reqCon...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1045
{ "fields": [ { "declarator": "APPLICATION_XML = createConstant(ContentType.APPLICATION_XML)", "modifier": "private static final", "original_string": "private static final String APPLICATION_XML = createConstant(ContentType.APPLICATION_XML);", "type": "String", "var_name": "APPLICATI...
{ "body": "@Test\n public void defaultSupportedContentTypesForEntity() throws Exception {\n List<String> types = service.getSupportedContentTypes(EntityProcessor.class);\n List<ContentType> convertedTypes = ContentType.convert(types);\n assertTrue(convertedTypes.contains(appendCharset(ContentType.APPLICATIO...
{ "fields": [ { "declarator": "processor", "modifier": "private final", "original_string": "private final ODataSingleProcessor processor;", "type": "ODataSingleProcessor", "var_name": "processor" }, { "declarator": "edm", "modifier": "private final", "origin...
{ "body": "@Override\n public List<String> getSupportedContentTypes(final Class<? extends ODataProcessor> processorFeature)\n throws ODataException {\n List<String> result = new ArrayList<String>();\n\n if (processor instanceof CustomContentType) {\n result.addAll(((CustomContentType) processor).getC...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_264
{ "fields": [ { "declarator": "annotationHelper", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper;", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "odata2-annotation-processor/annotation-processor-core...
{ "body": "@Test\n public void extractComplexTypeFqn() {\n FullQualifiedName fqn = annotationHelper.extractComplexTypeFqn(Location.class);\n Assert.assertEquals(\"RefScenario\", fqn.getNamespace());\n Assert.assertEquals(\"c_Location\", fqn.getName());\n }", "class_method_signature": "AnnotationHelperTes...
{ "fields": [ { "declarator": "DEFAULT_CONTAINER_NAME = \"DefaultContainer\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_CONTAINER_NAME = \"DefaultContainer\";", "type": "String", "var_name": "DEFAULT_CONTAINER_NAME" } ], "file"...
{ "body": "public FullQualifiedName extractComplexTypeFqn(final Class<?> annotatedClass) {\n EdmComplexType type = annotatedClass.getAnnotation(EdmComplexType.class);\n if (type == null) {\n return null;\n }\n return extractComplexTypeFqn(type, annotatedClass);\n }", "class_method_signature": "Ann...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_634
{ "fields": [ { "declarator": "associationProv", "modifier": "private static", "original_string": "private static EdmAssociationImplProv associationProv;", "type": "EdmAssociationImplProv", "var_name": "associationProv" }, { "declarator": "edmProvider", "modifier"...
{ "body": "@Test\n public void testReferentialConstraintNull() throws EdmException {\n Association association = new Association().setName(\"association\");\n EdmAssociation edmAssociation = new EdmAssociationImplProv(null, association, \"ns\");\n assertNull(edmAssociation.getReferentialConstraint());\n }"...
{ "fields": [ { "declarator": "association", "modifier": "private", "original_string": "private Association association;", "type": "Association", "var_name": "association" }, { "declarator": "namespace", "modifier": "private", "original_string": "private Str...
{ "body": "@Override\n public EdmReferentialConstraint getReferentialConstraint() throws EdmException {\n if (referentialConstraint == null) {\n ReferentialConstraint refConstraint = association.getReferentialConstraint();\n if (refConstraint != null) {\n referentialConstraint = new EdmReferentia...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_771
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void collectionSimpleTypeWrong() throws Exception {\n final String xml = \"<AllUsedRoomIds xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">\"\n + \"<m:element xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" />\"\n + \"</AllUsedRoo...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public List<?> readCollection(XMLStreamReader reader, final EntityPropertyInfo info,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n final String collectionName = info.getName();\n final EntityTypeMapping typeMappings = EntityTypeMapping.create(\n prope...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_458
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readWithDoubleInlineContentAndResend() throws Exception {\n // prepare\n String content = readFile(\"double_expanded_team.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputSt...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_839
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityConsumerTest.class.getName());", "type": "Logger", "var_name": "LOG" ...
{ "body": "@Test\n public void validationOfDoublePropertyDifferentNamespace() throws Exception {\n String room =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \" xmlns:m=\\\"http://schemas.microsoft.com/ado/2007/08/datase...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlEntityConsumer.java", "identifier": "XmlEntityConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityConsumer.XmlEntityConsumer()", "constructor": true, "ful...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final InputStream content,\n final EntityProviderReadProperties properties) throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createS...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_993
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test(expected = EntityProviderException.class)\n public void testMissingType() throws Exception {\n final String xmlWithInvalidAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataService...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_585
{ "fields": [ { "declarator": "BASE64_ENCODING = \"BASE64\"", "modifier": "private static final", "original_string": "private static final String BASE64_ENCODING = \"BASE64\";", "type": "String", "var_name": "BASE64_ENCODING" } ], "file": "odata2-lib/odata-core/src/test/java/...
{ "body": "@Test(expected = BatchException.class)\n public void testValidateContentTransferEncodingMultipleValues() throws BatchException {\n List<String> contentTransferEncoding = Arrays.asList(new String[] { BatchHelper.BINARY_ENCODING, BASE64_ENCODING });\n final Header headers = makeHeaders(BatchHelper.HTT...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/batch/v2/BatchTransformatorCommon.java", "identifier": "BatchTransformatorCommon", "interfaces": "", "methods": [ { "class_method_signature": "BatchTransformatorCommon.validateContentType(final Header headers)...
{ "body": "public static void validateContentTransferEncoding(final Header headers, final boolean isChangeRequest)\n throws BatchException {\n final HeaderField contentTransferField = headers.getHeaderField(BatchHelper.HTTP_CONTENT_TRANSFER_ENCODING);\n\n if (contentTransferField != null) {\n final Li...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_3
{ "fields": [ { "declarator": "builder = null", "modifier": "", "original_string": "JPAQueryBuilder builder = null;", "type": "JPAQueryBuilder", "var_name": "builder" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/...
{ "body": "@Test\n public void buildDeleteEntityTestWithoutListener() {\n try {\n EdmMapping mapping = (EdmMapping) mockMapping();\n assertNotNull(builder.build((DeleteUriInfo) mockURIInfoForDeleteAndPut(mapping)));\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1...
{ "fields": [ { "declarator": "em = null", "modifier": "private", "original_string": "private EntityManager em = null;", "type": "EntityManager", "var_name": "em" }, { "declarator": "pageSize = 0", "modifier": "private", "original_string": "private int pageS...
{ "body": "public JPAQueryInfo build(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n try {\n ODataJPATombstoneEntityListener listener = getODataJPATombstoneEntityListener((UriInfo) uriInfo);\n if (listener != null...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_356
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testEntityContainer() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<ed...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public EdmDataServices readMetadata(final InputStream content, final boolean validate)//NOSONAR\n throws EntityProviderException, EdmException { \n try {\n initialize();\n EdmDataServices dataServices = new EdmDataServices();\n List<EdmSchema> schemas = new ArrayList<EdmSchema>();\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_643
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/provider/EdmxProviderTest.java", "identifier": "EdmxProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void annotationsAtSimpleProperty() throws Exception {\n Edm edm = createEdm();\n assertNotNull(edm);\n EdmProperty property = (EdmProperty) edm.getEntityType(\"Self\", \"Employee\").getProperty(\"EmployeeName\");\n assertNotNull(property);\n\n EdmAnnotations annotations = pro...
{ "fields": [ { "declarator": "dataServices", "modifier": "private", "original_string": "private DataServices dataServices;", "type": "DataServices", "var_name": "dataServices" } ], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmxPr...
{ "body": "@Override\n public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException {\n for (Schema schema : dataServices.getSchemas()) {\n if (schema.getNamespace().equals(edmFQName.getNamespace())) {\n for (EntityType entityType : schema.getEntityTypes()) {\n if ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_1032
{ "fields": [ { "declarator": "EMPLOYEE_1_XML =\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" +\n \"<entry xmlns=\\\"\" + Edm.NAMESPACE_ATOM_2005 + \"\\\"\" +\n \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\"\" +\n \" xmlns:d=\\\"\" + Edm.NAMESPACE_D_2007_08 +...
{ "body": "@Test\n public void readErrorDocumentXml() throws EntityProviderException {\n ProviderFacadeImpl providerFacade = new ProviderFacadeImpl();\n String errorDoc =\n \"<?xml version='1.0' encoding='UTF-8'?>\\n\" +\n \"<error xmlns=\\\"http://schemas.microsoft.com/ado/2007/08/dataservic...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/ProviderFacadeImpl.java", "identifier": "ProviderFacadeImpl", "interfaces": "implements EntityProviderInterface", "methods": [ { "class_method_signature": "ProviderFacadeImpl.create()", "constructor":...
{ "body": "@Override\n public ODataErrorContext readErrorDocument(final InputStream errorDocument, final String contentType)\n throws EntityProviderException {\n return create(contentType).readErrorDocument(errorDocument);\n }", "class_method_signature": "ProviderFacadeImpl.readErrorDocument(final InputSt...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_213
{ "fields": [ { "declarator": "METHOD_COUNT = 7", "modifier": "private static final", "original_string": "private static final int METHOD_COUNT = 7;", "type": "int", "var_name": "METHOD_COUNT" }, { "declarator": "VARIANT = 0", "modifier": "private static", "...
{ "body": "@Test\n public void testFunctionImportAllMethods() {\n VARIANT = 2;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(METHOD_COUNT, functionImportList.size());\n\n }", "class_method_signature": "JPAEdmFunction...
{ "fields": [ { "declarator": "consistentFunctionImportList = new ArrayList<FunctionImport>()", "modifier": "private", "original_string": "private List<FunctionImport> consistentFunctionImportList = new ArrayList<FunctionImport>();", "type": "List<FunctionImport>", "var_name": "consi...
{ "body": "@Override\n public List<FunctionImport> getConsistentFunctionImportList() {\n return consistentFunctionImportList;\n }", "class_method_signature": "JPAEdmFunctionImport.getConsistentFunctionImportList()", "constructor": false, "full_signature": "@Override public List<FunctionImport> getConsisten...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_497
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readIncompleteEntryMerge() throws Exception {\n XmlEntityDeserializer xec = new XmlEntityDeserializer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n InputStream reqContent = createContentAsStream(ROOM_1_XML);\n ...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_84
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testMapJPAEntitySetNegative() {\n assertNull(objJPAEdmMappingModelServiceTest.mapJPAEntitySet(ENTITY_TYPE_NAME_JPA_WRONG));// Wrong value to bring\n // null\n }", "class_method_signature":...
{ "fields": [ { "declarator": "mappingModelExists = true", "modifier": "", "original_string": "boolean mappingModelExists = true;", "type": "boolean", "var_name": "mappingModelExists" }, { "declarator": "mappingModel", "modifier": "private", "original_string...
{ "body": "@Override\n public String mapJPAEntitySet(final String jpaEntityTypeName) {\n JPAEntityTypeMapType jpaEntityTypeMap = searchJPAEntityTypeMapType(jpaEntityTypeName);\n if (jpaEntityTypeMap != null) {\n return jpaEntityTypeMap.getEDMEntitySet();\n } else {\n return null;\n }\n }", "...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_881
{ "fields": [ { "declarator": "SERVICE_ROOT = \"http://localhost:80/odata/\"", "modifier": "private static final", "original_string": "private static final String SERVICE_ROOT = \"http://localhost:80/odata/\";", "type": "String", "var_name": "SERVICE_ROOT" }, { "declara...
{ "body": "@Test\n public void withInlineCount() throws Exception {\n final String xml = \"<links xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">\"\n + \"<m:count xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\">4</m:count>\"\n + \"<uri>\" + SERVICE_ROOT + \"Employees('5')</uri>\"\n + \"</l...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlLinkConsumer.java", "identifier": "XmlLinkConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlLinkConsumer.readLink(final XMLStreamReader reader, final EdmEntitySet entityS...
{ "body": "public List<String> readLinks(final XMLStreamReader reader, final EdmEntitySet entitySet)\n throws EntityProviderException {\n try {\n List<String> links = new ArrayList<String>();\n reader.nextTag();\n reader.require(XMLStreamConstants.START_ELEMENT, Edm.NAMESPACE_D_2007_08, FormatX...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_182
{ "fields": [ { "declarator": "objJPAEdmReferentialConstraint = null", "modifier": "private static", "original_string": "private static JPAEdmReferentialConstraint objJPAEdmReferentialConstraint = null;", "type": "JPAEdmReferentialConstraint", "var_name": "objJPAEdmReferentialConstra...
{ "body": "@Test\n public void testGetBuilderIdempotent() {\n JPAEdmBuilder builder1 = objJPAEdmReferentialConstraint.getBuilder();\n JPAEdmBuilder builder2 = objJPAEdmReferentialConstraint.getBuilder();\n\n assertEquals(builder1.hashCode(), builder2.hashCode());\n }", "class_method_signature": "JPAEdmRe...
{ "fields": [ { "declarator": "builder = null", "modifier": "private", "original_string": "private JPAEdmRefConstraintBuilder builder = null;", "type": "JPAEdmRefConstraintBuilder", "var_name": "builder" }, { "declarator": "exists = false", "modifier": "private", ...
{ "body": "@Override\n public JPAEdmBuilder getBuilder() {\n if (builder == null) {\n builder = new JPAEdmRefConstraintBuilder();\n }\n\n return builder;\n }", "class_method_signature": "JPAEdmReferentialConstraint.getBuilder()", "constructor": false, "full_signature": "@Override public JPAEdmBu...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_478
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n public void readEntryLinks() throws Exception {\n // prepare\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream contentBody = createContentAsStream(EMPLOYEE_1_XML);\n\n EntityStream stream = new EntityStream();\n ...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_301
{ "fields": [ { "declarator": "ava", "modifier": "private final", "original_string": "private final BeanPropertyAccess ava;", "type": "BeanPropertyAccess", "var_name": "ava" } ], "file": "odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/od...
{ "body": "@Test\n public void getPropertyValueNullData() throws ODataException {\n\n SimpleEntity data = null;\n EdmProperty property = mockProperty(\"Name\");\n\n Object value = ava.getPropertyValue(data, property);\n\n Assert.assertNull(value);\n }", "class_method_signature": "BeanPropertyAccessTes...
{ "fields": [], "file": "odata2-annotation-processor/annotation-processor-core/src/main/java/org/apache/olingo/odata2/annotation/processor/core/datasource/BeanPropertyAccess.java", "identifier": "BeanPropertyAccess", "interfaces": "implements ValueAccess", "methods": [ { "class_method_signature": "B...
{ "body": "@Override\n public <T> Object getPropertyValue(final T data, final EdmProperty property) throws ODataException {\n return getValue(data, getGetterMethodName(property));\n }", "class_method_signature": "BeanPropertyAccess.getPropertyValue(final T data, final EdmProperty property)", "constructor": f...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_751
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void invalidNullAttribute() throws Exception {\n final String xml = \"<Age xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08\n + \"\\\" m:null=\\\"wrong\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" />\";\n XMLStreamReader reader = createR...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readProperty(reader, EntityInfoAggregator.create(property), readProperties);\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_244
{ "fields": [ { "declarator": "annotatedTestEntityInnerClasses = new ClassValidator() {\n @Override\n public boolean isClassValid(final Class<?> c) {\n return c.isAnnotationPresent(EdmEntityType.class)\n && c.getName().contains(ClassHelperTest.class.getSimpleName());\n }\n }", ...
{ "body": "@Test\n public void loadSingleEntityFromJar() throws ODataException {\n String packageToScan = AnnotatedEntity.class.getPackage().getName();\n\n //\n List<Class<?>> loadedClasses = ClassHelper.loadClasses(packageToScan, annotatedEntityClasses);\n\n //\n Assert.assertEquals(1, loadedClasses....
{ "fields": [ { "declarator": "JAR_FILE_ENDING = \"jar\"", "modifier": "private static final", "original_string": "private static final String JAR_FILE_ENDING = \"jar\";", "type": "String", "var_name": "JAR_FILE_ENDING" }, { "declarator": "JAR_RESOURCE_SEPARATOR = \"!\"...
{ "body": "public static List<Class<?>> loadClasses(final String packageToScan, final ClassValidator cv) {\n return loadClasses(packageToScan, CLASSFILE_FILTER, cv);\n }", "class_method_signature": "ClassHelper.loadClasses(final String packageToScan, final ClassValidator cv)", "constructor": false, "full_si...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_614
{ "fields": [ { "declarator": "edmEntityType", "modifier": "private static", "original_string": "private static EdmEntityTypeImplProv edmEntityType;", "type": "EdmEntityTypeImplProv", "var_name": "edmEntityType" }, { "declarator": "edmEntityTypeWithBaseType", "mod...
{ "body": "@Test\n public void getKeyProperties() throws Exception {\n List<EdmProperty> keyProperties = edmEntityType.getKeyProperties();\n assertNotNull(keyProperties);\n assertEquals(\"Id\", keyProperties.get(0).getName());\n }", "class_method_signature": "EdmEntityTypeImplProvTest.getKeyProperties()"...
{ "fields": [ { "declarator": "entityType", "modifier": "private", "original_string": "private EntityType entityType;", "type": "EntityType", "var_name": "entityType" }, { "declarator": "keyProperties", "modifier": "private", "original_string": "private Map<...
{ "body": "@Override\n public List<EdmProperty> getKeyProperties() throws EdmException {\n if (edmKeyProperties == null) {\n if (edmBaseType != null) {\n return ((EdmEntityType) edmBaseType).getKeyProperties();\n }\n\n if (keyProperties == null) {\n keyProperties = new HashMap<String,...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_878
{ "fields": [ { "declarator": "SERVICE_ROOT = \"http://localhost:80/odata/\"", "modifier": "private static final", "original_string": "private static final String SERVICE_ROOT = \"http://localhost:80/odata/\";", "type": "String", "var_name": "SERVICE_ROOT" }, { "declara...
{ "body": "@Test\n public void readLinks() throws Exception {\n XMLStreamReader reader = createReaderForTest(MANAGER_1_EMPLOYEES, true);\n final List<String> links = new XmlLinkConsumer().readLinks(reader, null);\n\n assertEquals(4, links.size());\n assertEquals(SERVICE_ROOT + \"Employees('1')\", links.g...
{ "fields": [], "file": "odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/consumer/XmlLinkConsumer.java", "identifier": "XmlLinkConsumer", "interfaces": "", "methods": [ { "class_method_signature": "XmlLinkConsumer.readLink(final XMLStreamReader reader, final EdmEntitySet entityS...
{ "body": "public List<String> readLinks(final XMLStreamReader reader, final EdmEntitySet entitySet)\n throws EntityProviderException {\n try {\n List<String> links = new ArrayList<String>();\n reader.nextTag();\n reader.require(XMLStreamConstants.START_ELEMENT, Edm.NAMESPACE_D_2007_08, FormatX...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_92
{ "fields": [ { "declarator": "objJPAEdmMappingModelServiceTest", "modifier": "private static", "original_string": "private static JPAEdmMappingModelServiceTest objJPAEdmMappingModelServiceTest;", "type": "JPAEdmMappingModelServiceTest", "var_name": "objJPAEdmMappingModelServiceTest"...
{ "body": "@Test\n public void testMapJPAEmbeddableTypeAttributeNegative() {\n assertNull(objJPAEdmMappingModelServiceTest.mapJPAEmbeddableTypeAttribute(EMBEDDABLE_TYPE_NAME_JPA_WRONG,\n EMBEDDABLE_ATTRIBUTE_NAME_JPA));\n }", "class_method_signature": "JPAEdmMappingModelServiceTest.testMapJPAEmbeddableT...
{ "fields": [ { "declarator": "mappingModelExists = true", "modifier": "", "original_string": "boolean mappingModelExists = true;", "type": "boolean", "var_name": "mappingModelExists" }, { "declarator": "mappingModel", "modifier": "private", "original_string...
{ "body": "@Override\n public String mapJPAEmbeddableTypeAttribute(final String jpaEmbeddableTypeName, final String jpaAttributeName) {\n JPAEmbeddableTypeMapType jpaEmbeddableType = searchJPAEmbeddableTypeMapType(jpaEmbeddableTypeName);\n if (jpaEmbeddableType != null && jpaEmbeddableType.getJPAAttributes() !...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_481
{ "fields": [ { "declarator": "LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(XmlEntityDeserializerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void testReadEntry() throws Exception {\n // prepare\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream contentBody = createContentAsStream(EMPLOYEE_1_XML);\n EntityStream ...
{ "fields": [], "file": "odata2-lib/odata-client-core/src/main/java/org/apache/olingo/odata2/client/core/ep/deserializer/XmlEntityDeserializer.java", "identifier": "XmlEntityDeserializer", "interfaces": "", "methods": [ { "class_method_signature": "XmlEntityDeserializer.XmlEntityDeserializer()", ...
{ "body": "public ODataEntry readEntry(final EdmEntitySet entitySet, final EntityStream entity)\n throws EntityProviderException {\n XMLStreamReader reader = null;\n EntityProviderException cachedException = null;\n\n try {\n reader = XmlHelper.createStreamReader(entity.getContent());\n Entity...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_194
{ "fields": [ { "declarator": "objAssociation = null", "modifier": "private", "original_string": "private JPAEdmAssociation objAssociation = null;", "type": "JPAEdmAssociation", "var_name": "objAssociation" }, { "declarator": "ASSOCIATION_NAME = \"SalesOrderHeader_Strin...
{ "body": "@Test\n public void testAddJPAEdmAssociationView() {\n\n class LocalJPAAssociationView extends JPAEdmTestModelView {\n @Override\n public AssociationEnd getEdmAssociationEnd1() {\n AssociationEnd associationEnd = new AssociationEnd();\n associationEnd.setType(new FullQualifiedNa...
{ "fields": [ { "declarator": "associationEndView", "modifier": "private", "original_string": "private JPAEdmAssociationEndView associationEndView;", "type": "JPAEdmAssociationEndView", "var_name": "associationEndView" }, { "declarator": "currentAssociation", "mod...
{ "body": "@Override\n public void addJPAEdmAssociationView(final JPAEdmAssociationView associationView,\n final JPAEdmAssociationEndView associationEndView) {\n if (associationView != null) {\n currentAssociation = associationView.getEdmAssociation();\n associationMap.put(currentAssociation.getNam...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_897
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/JsonFeedConsumerTest.java", "identifier": "JsonFeedConsumerTest", "interfaces": "", "superclass": "extends AbstractConsumerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void invalidDoubleClosingBrackets() throws Exception {\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n String content = \"{\\\"d\\\":{\\\"results\\\":[]}}}\";\n InputStream contentBo...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_747
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ep/consumer/XmlPropertyConsumerTest.java", "identifier": "XmlPropertyConsumerTest", "interfaces": "", "superclass": "extends AbstractXmlConsumerTest" }
{ "body": "@Test\n public void readStringPropertyEmpty() throws Exception {\n final String xml = \"<EmployeeName xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\" />\";\n XMLStreamReader reader = createReaderForTest(xml, true);\n final EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getE...
{ "fields": [ { "declarator": "TRUE = \"true\"", "modifier": "protected static final", "original_string": "protected static final String TRUE = \"true\";", "type": "String", "var_name": "TRUE" }, { "declarator": "FALSE = \"false\"", "modifier": "protected static f...
{ "body": "public Map<String, Object> readProperty(final XMLStreamReader reader, final EdmProperty property,\n final EntityProviderReadProperties readProperties) throws EntityProviderException {\n return readProperty(reader, EntityInfoAggregator.create(property), readProperties);\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_602
{ "fields": [ { "declarator": "edmAssociationSetEnd", "modifier": "private static", "original_string": "private static EdmAssociationSetEnd edmAssociationSetEnd;", "type": "EdmAssociationSetEnd", "var_name": "edmAssociationSetEnd" }, { "declarator": "edmProvider", ...
{ "body": "@Test\n public void getAnnotations() throws Exception {\n EdmAnnotatable annotatable = (EdmAnnotatable) edmAssociationSetEnd;\n EdmAnnotations annotations = annotatable.getAnnotations();\n assertNull(annotations.getAnnotationAttributes());\n assertNull(annotations.getAnnotationElements());\n ...
{ "fields": [ { "declarator": "entitySet", "modifier": "private", "original_string": "private EdmEntitySet entitySet;", "type": "EdmEntitySet", "var_name": "entitySet" }, { "declarator": "role", "modifier": "private", "original_string": "private String role;...
{ "body": "@Override\n public EdmAnnotations getAnnotations() throws EdmException {\n if (annotations == null) {\n annotations = new EdmAnnotationsImplProv(end.getAnnotationAttributes(), end.getAnnotationElements());\n }\n return annotations;\n }", "class_method_signature": "EdmAssociationSetEndImpl...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_252
{ "fields": [ { "declarator": "annotationHelper", "modifier": "private final", "original_string": "private final AnnotationHelper annotationHelper;", "type": "AnnotationHelper", "var_name": "annotationHelper" } ], "file": "odata2-annotation-processor/annotation-processor-core...
{ "body": "@Test\n public void keyMatchNegativeWithNull() throws ODataException {\n SimpleEntity firstInstance = new SimpleEntity();\n SimpleEntity secondInstance = new SimpleEntity(42l, \"A Name\");\n\n boolean result = annotationHelper.keyMatch(firstInstance, secondInstance);\n\n Assert.assertFalse(res...
{ "fields": [ { "declarator": "DEFAULT_CONTAINER_NAME = \"DefaultContainer\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_CONTAINER_NAME = \"DefaultContainer\";", "type": "String", "var_name": "DEFAULT_CONTAINER_NAME" } ], "file"...
{ "body": "public boolean keyMatch(final Object firstInstance, final Object secondInstance) {\n if (firstInstance == null || secondInstance == null) {\n return false;\n } else if (firstInstance.getClass() != secondInstance.getClass()) {\n return false;\n }\n\n Map<String, Object> firstKeyFields ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_985
{ "fields": [ { "declarator": "DEFAULT_VALUE = \"Photo\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_VALUE = \"Photo\";", "type": "String", "var_name": "DEFAULT_VALUE" }, { "declarator": "FC_TARGET_PATH = \"Содержание\";...
{ "body": "@Test\n public void testFunctionImportProperty() throws XMLStreamException, EntityProviderException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataServices...
{ "fields": [ { "declarator": "inscopeMap = new HashMap<String, Set<String>>()", "modifier": "private", "original_string": "private Map<String, Set<String>> inscopeMap = new HashMap<String, Set<String>>();", "type": "Map<String, Set<String>>", "var_name": "inscopeMap" }, { ...
{ "body": "public DataServices readMetadata(final XMLStreamReader reader, final boolean validate)\n throws EntityProviderException {\n try {\n initialize();\n DataServices dataServices = new DataServices();\n List<Schema> schemas = new ArrayList<Schema>();\n\n while (reader.hasNext()\n ...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_439
{ "fields": [], "file": "odata2-lib/odata-client-core/src/test/java/org/apache/olingo/odata2/client/core/ep/deserializer/JsonFeedDeserializerTest.java", "identifier": "JsonFeedDeserializerTest", "interfaces": "", "superclass": "extends AbstractDeserializerTest" }
{ "body": "@Test(expected = EntityProviderException.class)\n public void wrongNextType() throws Exception {\n final EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n InputStream contentBody = createContentAsStream(\"{\\\"d\\\":{\\\"results\\\":[],\\\"__next...
{ "fields": [ { "declarator": "reader", "modifier": "private", "original_string": "private JsonReader reader;", "type": "JsonReader", "var_name": "reader" }, { "declarator": "eia", "modifier": "private", "original_string": "private EntityInfoAggregator eia;"...
{ "body": "private void readFeed() throws IOException, EdmException, EntityProviderException {\n JsonToken peek = reader.peek();\n if (peek == JsonToken.BEGIN_ARRAY) {\n readArrayContent();\n } else {\n reader.beginObject();\n final String nextName = reader.nextName();\n if (FormatJson.D....
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }
18830102_593
{ "fields": [ { "declarator": "CRLF = \"\\r\\n\"", "modifier": "private static final", "original_string": "private static final String CRLF = \"\\r\\n\";", "type": "String", "var_name": "CRLF" } ], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/bat...
{ "body": "@Test\n public void testResponseUtf() throws Exception {\n List<BatchResponsePart> parts = new ArrayList<BatchResponsePart>();\n String charset = \"utf-8\";\n StringHelper.Stream stream = StringHelper.toStream(\"Wälter Winter\", charset);\n ODataResponse response =\n ODataResponse.entit...
{ "fields": [ { "declarator": "COLON = \":\"", "modifier": "private static final", "original_string": "private static final String COLON = \":\";", "type": "String", "var_name": "COLON" }, { "declarator": "SP = \" \"", "modifier": "private static final", "or...
{ "body": "public ODataResponse writeResponse(final List<BatchResponsePart> batchResponseParts) throws BatchException {\n String boundary = BatchHelper.generateBoundary(\"batch\");\n appendResponsePart(batchResponseParts, boundary);\n final Object batchResponseBody;\n int length = 0;\n if(writeEntityAs...
{ "created": null, "fork": null, "fork_count": 68, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 18830102, "size": 6647, "stargazer_count": 30, "stars": null, "updates": null, "url": "https://github.com/apache/olingo-odata2" }