id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
18830102_558
{ "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 testMultipleAcceptHeader() throws BatchException {\n String[] messageRaw = new String[] {\n \"Accept: application/atomsvc+xml;q=0.8, application/json;odata=verbose;q=0.5, */*;q=0.1\" + CRLF,\n \"Accept: text/plain;q=0.3\" + CRLF,\n \"Accept-Language:en-US,en;q=0...
{ "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 Header consumeHeaders(final List<Line> remainingMessage) throws BatchException {\n final int headerLineNumber = !remainingMessage.isEmpty() ? remainingMessage.get(0).getLineNumber() : 0;\n final Header headers = new Header(headerLineNumber);\n final Iterator<Line> iter = remainingMes...
{ "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_108
{ "fields": [ { "declarator": "edmProvider", "modifier": "private static", "original_string": "private static ODataJPAEdmProvider edmProvider;", "type": "ODataJPAEdmProvider", "var_name": "edmProvider" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/oling...
{ "body": "@Test\n public void testGetEntityContainerInfoWithBuffer() {\n HashMap<String, EntityContainerInfo> entityContainerInfos = new HashMap<String, EntityContainerInfo>();\n EntityContainerInfo entityContainer = new EntityContainerInfo();\n entityContainer.setName(\"salesorderprocessingContainer\");\n...
{ "fields": [ { "declarator": "oDataJPAContext", "modifier": "private", "original_string": "private ODataJPAContext oDataJPAContext;", "type": "ODataJPAContext", "var_name": "oDataJPAContext" }, { "declarator": "jpaEdmModel", "modifier": "private", "original...
{ "body": "@Override\n public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException {\n\n if (entityContainerInfos.containsKey(name)) {\n return entityContainerInfos.get(name);\n } else {\n\n if (schemas == null) {\n getSchemas();\n }\n List<EntityContai...
{ "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_364
{ "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 testMissingEntityType() throws Exception {\n final String xmlWithInvalidAssociation =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\"\n + Edm.NAMESPACE_EDMX_2007_06\n + \"\\\">\"\n + \"<edmx:DataS...
{ "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_734
{ "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(expected = EntityProviderException.class)\n public void invalidJson() throws EntityProviderException {\n InputStream in = StringHelper.encapsulate(JSON_ERROR_DOCUMENT_INVALID_JSON);\n try {\n jedc.readError(in);\n fail(\"Expected exception was not thrown\");\n } catch (EntityProvi...
{ "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_1000
{ "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 testInvalidEntitySet() throws XMLStreamException, EntityProviderException {\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 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_221
{ "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 testFunctionImportComplexTypeMany() {\n VARIANT = 10;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 1);\n\n FunctionImport functionImport = functionImportList...
{ "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_59
{ "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 testConvertTypeCharacter() {\n try {\n assertEquals(EdmSimpleTypeKind.String, JPATypeConverter.convertToEdmSimpleType(Character[].class, null));\n assertEquals(EdmSimpleTypeKind.String, JPATypeConverter.convertToEdmSimpleType(char[].class, null));\n assertEquals(EdmSi...
{ "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_919
{ "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 simplePropertyNullValueNotAllowed() throws Exception {\n JsonReader reader = prepareReader(\"{\\\"Age\\\":null}\");\n EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getEntityType(\"RefScenario\", \"Employee\").getPr...
{ "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_299
{ "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 getPropertyValueBoolean() throws ODataException {\n\n SimpleEntity data = new SimpleEntity();\n EdmProperty property = mockProperty(\"BooleanProperty\", true);\n\n Object value = ava.getPropertyValue(data, property);\n\n Assert.assertEquals(Boolean.class, value.getClass());...
{ "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_763
{ "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 readComplexPropertyWithInvalidTypeAttribute() throws Exception {\n String xml =\n \"<Location xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\"\"\n + \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" m:type=\\\"Invalid\\\"...
{ "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_333
{ "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 testMetadataDokumentWithWhitepaces() 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.NAME...
{ "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_626
{ "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 testPropertyWithNumber() throws Exception {\n\n EdmProvider edmProvider = mock(EdmProvider.class);\n EdmImplProv edmImplProv = new EdmImplProv(edmProvider);\n\n SimpleProperty propertySimple = new SimpleProperty().setName(\"Prop_1_Name\").setType(EdmSimpleTypeKind\n .St...
{ "fields": [ { "declarator": "PATTERN_VALID_NAME = Pattern.compile(\n \"\\\\A[_\\\\p{L}\\\\p{Nl}][_\\\\p{L}\\\\p{Nl}\\\\p{Nd}\\\\p{Mn}\\\\p{Mc}\\\\p{Pc}\\\\p{Cf}]{0,}\\\\Z\")", "modifier": "private static final", "original_string": "private static final Pattern PATTERN_VALID_NAME = Pattern...
{ "body": "@Override\n public String getName() throws EdmException {\n return name;\n }", "class_method_signature": "EdmNamedImplProv.getName()", "constructor": false, "full_signature": "@Override public String getName()", "identifier": "getName", "invocations": [], "modifiers": "@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_1057
{ "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 defaultSupportedContentTypesForBatch() throws Exception {\n List<String> types = service.getSupportedContentTypes(BatchProcessor.class);\n assertTrue(types.contains(ContentType.WILDCARD.toContentTypeString()));\n }", "class_method_signature": "ODataSingleProcessorServiceTest.d...
{ "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_276
{ "fields": [ { "declarator": "listsProcessor", "modifier": "private", "original_string": "private ListsProcessor listsProcessor;", "type": "ListsProcessor", "var_name": "listsProcessor" }, { "declarator": "mockedDataSource = Mockito.mock(DataSource.class)", "modi...
{ "body": "@Test\n public void testSkipAndSkiptoken() {\n String url1 = \"Rooms?$orderby=Seats%20desc&$skiptoken=12&$skip=000000&$top=200\";\n String result = listsProcessor.percentEncodeNextLink(url1);\n Assert.assertEquals(\"Rooms?$orderby=Seats%20desc&$top=200\", result);\n\n String url2 = \"Rooms?$or...
{ "fields": [ { "declarator": "SERVER_PAGING_SIZE = 100", "modifier": "private static final", "original_string": "private static final int SERVER_PAGING_SIZE = 100;", "type": "int", "var_name": "SERVER_PAGING_SIZE" } ], "file": "odata2-annotation-processor/annotation-processo...
{ "body": "String percentEncodeNextLink(final String link) {\n if (link == null) {\n return null;\n }\n\n return link.replaceAll(\"\\\\$skiptoken=.+?(?:&|$)\", \"\")\n .replaceAll(\"\\\\$skip=.+?(?:&|$)\", \"\")\n .replaceFirst(\"(?:\\\\?|&)$\", \"\"); // Remove potentially trailing \"?\" ...
{ "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_431
{ "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\n public void emptyFeed() throws Exception {\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Teams\");\n String content = \"{\\\"d\\\":{\\\"results\\\":[]}}\";\n InputStream contentBody = createContentAsStream(content);\n EntityStream entityS...
{ "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_22
{ "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 buildQueryGetEntitySetTestWithNoNormalizationWithSubstring() {\n EdmMapping mapping = (EdmMapping) mockNormalizedValueMapping();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) \n mockURIInfoForEntitySetWithBinaryFilterExpression(mapping, \"substring\"))...
{ "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_962
{ "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 ODATAJAVA_77_testBaseTypeKey() 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_...
{ "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_827
{ "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 readWithInlineContentEmployeeRoomEntry() throws Exception {\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream reqContent = createContentAsStream(EMPLOYEE_1_ROOM_XML);\n\n // execute\n XmlEntityConsume...
{ "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_124
{ "fields": [ { "declarator": "JPQLSelectSingleStatementBuilder", "modifier": "private", "original_string": "private JPQLSelectSingleStatementBuilder JPQLSelectSingleStatementBuilder;", "type": "JPQLSelectSingleStatementBuilder", "var_name": "JPQLSelectSingleStatementBuilder" } ...
{ "body": "@Test\n public void testBuildQueryWithSpecialChars() throws EdmException, ODataJPARuntimeException {\n EdmSimpleType edmType = EdmSimpleTypeKind.String.getEdmSimpleTypeInstance();\n JPQLSelectSingleContext JPQLSelectSingleContextImpl = createSelectContext(edmType);\n JPQLSelectSingleStatementBuil...
{ "fields": [ { "declarator": "jpqlStatement", "modifier": "", "original_string": "JPQLStatement jpqlStatement;", "type": "JPQLStatement", "var_name": "jpqlStatement" }, { "declarator": "context", "modifier": "private", "original_string": "private JPQLSelect...
{ "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": "JPQLSelectSingleStatementBuilder.build()", "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_574
{ "fields": [ { "declarator": "TEXT_COMBINED = \"Test\\r\" +\n \"Test2\\r\\n\" +\n \"Test3\\n\" +\n \"Test4\\r\" +\n \"\\r\" +\n \"\\r\\n\" +\n \"\\r\\n\" +\n \"Test5\\n\" +\n \"Test6\\r\\n\" +\n \"Test7\\n\" +\n \"\\n\"", "modifier": "private static f...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testFailBufferSizeNegative() throws IOException {\n BatchLineReader reader = create(TEXT_EMPTY, -1);\n reader.close();\n }", "class_method_signature": "BatchLineReaderTest.testFailBufferSizeNegative()", "constructor": false, "full...
{ "fields": [ { "declarator": "CR = '\\r'", "modifier": "private static final", "original_string": "private static final byte CR = '\\r';", "type": "byte", "var_name": "CR" }, { "declarator": "LF = '\\n'", "modifier": "private static final", "original_string...
{ "body": "public void close() throws IOException {\n reader.close();\n }", "class_method_signature": "BatchLineReader.close()", "constructor": false, "full_signature": "public void close()", "identifier": "close", "invocations": [ "close" ], "modifiers": "public", "parameters": "()", "retur...
{ "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_718
{ "fields": [ { "declarator": "reqMock", "modifier": "private", "original_string": "private HttpServletRequest reqMock;", "type": "HttpServletRequest", "var_name": "reqMock" }, { "declarator": "respMock", "modifier": "private", "original_string": "private Ht...
{ "body": "@Test\n public void handleRedirect() throws Exception {\n ODataServlet servlet = new ODataServlet();\n prepareServlet(servlet);\n prepareRequest(reqMock);\n servlet.service(reqMock, respMock);\n\n Mockito.verify(respMock).setStatus(HttpStatusCodes.TEMPORARY_REDIRECT.getStatusCode());\n M...
{ "fields": [ { "declarator": "HTTP_METHOD_OPTIONS = \"OPTIONS\"", "modifier": "private static final", "original_string": "private static final String HTTP_METHOD_OPTIONS = \"OPTIONS\";", "type": "String", "var_name": "HTTP_METHOD_OPTIONS" }, { "declarator": "HTTP_METHO...
{ "body": "protected void handleRedirect(final HttpServletRequest req, final HttpServletResponse resp,\n ODataServiceFactory serviceFactory) throws IOException {\n String method = req.getMethod();\n if (ODataHttpMethod.GET.name().equals(method) ||\n ODataHttpMethod.POST.nam...
{ "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_348
{ "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 testComplexTypeWithBaseType() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xml =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<edmx:DataSer...
{ "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_935
{ "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 deepComplexPropertyStandalone() throws Exception {\n final String complexPropertyJson =\n \"{\\\"d\\\":{\\\"Location\\\":{\\\"__metadata\\\":{\\\"type\\\":\\\"RefScenario.c_Location\\\"},\" +\n \"\\\"City\\\":{\\\"__metadata\\\":{\\\"type\\\":\\\"RefScenario.c_City...
{ "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_75
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/model/JPAEdmNameBuilderTest.java", "identifier": "JPAEdmNameBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n @Test\n public void testBuildJPAEdmComplexPropertyViewWithNoDefaultNaming() {\n JPAEdmComplexPropertyView complexPropertyView = EasyMock.createMock(JPAEdmComplexPropertyView.class);\n ComplexProperty complexProperty = new ComplexProperty();\n ...
{ "fields": [ { "declarator": "ENTITY_CONTAINER_SUFFIX = \"Container\"", "modifier": "private static final", "original_string": "private static final String ENTITY_CONTAINER_SUFFIX = \"Container\";", "type": "String", "var_name": "ENTITY_CONTAINER_SUFFIX" }, { "declarat...
{ "body": "public static FullQualifiedName build(final JPAEdmBaseView view, final String name) {\n FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name);\n return fqName;\n }", "class_method_signature": "JPAEdmNameBuilder.build(final JPAEdmBaseView view, final String name)", "constru...
{ "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_466
{ "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 validationCaseInsensitiveXmlEncodingUtf8() throws Exception {\n String room =\n \"<?xml version='1.0' encoding='uTf-8'?>\"\n +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \"xmlns:m=\\\"http://schemas.microsoft.com/ado/2007/08/d...
{ "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_489
{ "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 testReadEntryRequestNullMapping() throws Exception {\n XmlEntityDeserializer xec = new XmlEntityDeserializer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream conte...
{ "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_173
{ "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 testSearchComplexTypeString() {\n assertNotNull(objComplexType.searchEdmComplexType(\"java.lang.String\"));\n\n }", "class_method_signature": "JPAEdmComplexTypeTest.testSearchComplexTypeString()", "constructor": false, "full_signature": "@Test public void testSearchComplexTyp...
{ "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_870
{ "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 readPropertyWrongNamespace() throws Exception {\n String xml = \"<Age xmlns=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\">1</Age>\";\n InputStream content = createContentAsStream(xml);\n final EdmProperty property =\n (EdmProperty) ...
{ "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 Object readPropertyValue(final EdmProperty edmProperty, final InputStream content)\n throws EntityProviderException {\n return readPropertyValue(edmProperty, content, null);\n }", "class_method_signature": "XmlEntityConsumer.readPropertyValue(final EdmProperty edmProperty, final InputStre...
{ "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_470
{ "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 validationOfUnknownPropertyOwnNamespaceSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\" +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \" xmlns:m=\\\"http://schemas.microsoft.c...
{ "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_63
{ "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 testConvertTypeClob() {\n testCase = \"lob\";\n try {\n assertEquals(EdmSimpleTypeKind.String, JPATypeConverter.convertToEdmSimpleType(Clob.class,\n new JPASimpleAttribute()));\n } catch (ODataJPAModelException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG...
{ "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_923
{ "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 simplePropertyWithStringToLongMappingStandalone() throws Exception {\n String simplePropertyJson = \"{\\\"d\\\":{\\\"Age\\\":67}}\";\n JsonReader reader = prepareReader(simplePropertyJson);\n final EdmProperty edmProperty =\n (EdmProperty) MockFacade.getMockEdm().getEnt...
{ "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_889
{ "fields": [ { "declarator": "NAMESPACE = \"http://www.foo.bar/Data\"", "modifier": "private static final", "original_string": "private static final String NAMESPACE = \"http://www.foo.bar/Data\";", "type": "String", "var_name": "NAMESPACE" }, { "declarator": "PREFIX =...
{ "body": "@Test\n public void testNestedExtensions() throws IOException, EntityProviderException {\n AtomServiceDocumentConsumer svcDocumentParser = new AtomServiceDocumentConsumer();\n ServiceDocument svcDocument = svcDocumentParser.readServiceDokument(createStreamReader(\"/svcAtomExample.xml\"));\n asser...
{ "fields": [ { "declarator": "currentHandledStartTagName", "modifier": "private", "original_string": "private String currentHandledStartTagName;", "type": "String", "var_name": "currentHandledStartTagName" }, { "declarator": "DEFAULT_PREFIX = \"\"", "modifier": "...
{ "body": "public ServiceDocumentImpl readServiceDokument(final XMLStreamReader reader) throws EntityProviderException {\n AtomInfoImpl atomInfo = new AtomInfoImpl();\n ServiceDocumentImpl serviceDocument = new ServiceDocumentImpl();\n List<Workspace> workspaces = new ArrayList<Workspace>();\n List<Extens...
{ "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_866
{ "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 readStringPropertyValue() throws Exception {\n String xml = \"<EmployeeName xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">Max Mustermann</EmployeeName>\";\n InputStream content = createContentAsStream(xml);\n final EdmProperty property =\n (EdmProperty) MockFacade.get...
{ "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 Object readPropertyValue(final EdmProperty edmProperty, final InputStream content)\n throws EntityProviderException {\n return readPropertyValue(edmProperty, content, null);\n }", "class_method_signature": "XmlEntityConsumer.readPropertyValue(final EdmProperty edmProperty, final InputStre...
{ "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_165
{ "fields": [ { "declarator": "objJPAEdmAssociationSetTest", "modifier": "private", "original_string": "private JPAEdmAssociationSetTest objJPAEdmAssociationSetTest;", "type": "JPAEdmAssociationSetTest", "var_name": "objJPAEdmAssociationSetTest" }, { "declarator": "objJ...
{ "body": "@Test\n public void testGetEdmAssociation() {\n assertNotNull(objJPAEdmAssociationSet.getEdmAssociation());\n }", "class_method_signature": "JPAEdmAssociationSetTest.testGetEdmAssociation()", "constructor": false, "full_signature": "@Test public void testGetEdmAssociation()", "identifier": "te...
{ "fields": [ { "declarator": "schemaView", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "currentAssociationSet", "modifier": "private", "original_st...
{ "body": "@Override\n public Association getEdmAssociation() {\n return currentAssociation;\n }", "class_method_signature": "JPAEdmAssociationSet.getEdmAssociation()", "constructor": false, "full_signature": "@Override public Association getEdmAssociation()", "identifier": "getEdmAssociation", "invoca...
{ "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_535
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ContentNegotiatorTest.java", "identifier": "ContentNegotiatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void invalidContentNegotiatorCreationNullRequest() throws ODataException {\n UriInfoImpl uriInfo = Mockito.mock(UriInfoImpl.class);\n final ContentType contentType =\n new ContentNegotiator().doContentNegotiation(null, uriInfo, new Arr...
{ "fields": [ { "declarator": "URI_INFO_FORMAT_JSON = \"json\"", "modifier": "private static final", "original_string": "private static final String URI_INFO_FORMAT_JSON = \"json\";", "type": "String", "var_name": "URI_INFO_FORMAT_JSON" }, { "declarator": "URI_INFO_FORM...
{ "body": "public ContentType doContentNegotiation(final ODataRequest odataRequest, final UriInfoImpl uriInfo,\n final List<String> supportedContentTypes) throws ODataException {\n validateNotNull(odataRequest, uriInfo, supportedContentTypes);\n\n if (uriInfo.isCount()) {\n return ContentType.TEXT_PLA...
{ "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_759
{ "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": "@SuppressWarnings(\"unchecked\")\n @Test\n public void readComplexPropertyWithNamespace() throws Exception {\n String xml =\n \"<d:Location m:type=\\\"RefScenario.c_Location\\\" \" +\n \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\"\" +\n \" xmlns:d=\\\"\" + Edm...
{ "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_309
{ "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 setMappingValueNullMapping() throws Exception {\n\n SimpleEntity data = new SimpleEntity();\n data.myMappedProperty = \"mapped property value\";\n EdmMapping mapping = null;\n\n Object value = null;\n ava.setMappingValue(data, mapping, value);\n\n Assert.assertEquals(...
{ "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, V> void setMappingValue(final T data, final EdmMapping mapping, final V value) throws ODataException {\n if (mapping != null && mapping.getMediaResourceMimeTypeKey() != null) {\n setValue(data, getSetterMethodName(mapping.getMediaResourceMimeTypeKey()), value);\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_974
{ "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 testTwoSchemas() throws XMLStreamException, EntityProviderException {\n int i = 0;\n String schemasNs[] = { NAMESPACE, NAMESPACE2 };\n XmlMetadataConsumer parser = new XmlMetadataConsumer();\n XMLStreamReader reader = createStreamReader(xmlWithTwoSchemas);\n 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_34
{ "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 buildQueryWithTopSkipInline() {\n EdmMapping mapping = (EdmMapping) mockMapping();\n try {\n GetEntitySetUriInfo uriInfo = (GetEntitySetUriInfo) mockURIInfoWithTopSkipInline(mapping);\n builder.getCount(uriInfo);\n assertNotNull(uriInfo.getCustomQueryOptions().get(...
{ "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 void getCount(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n UriInfoImpl info = (UriInfoImpl)uriInfo;\n boolean count = info.isCount();\n info.setCount(true);\n try {\n ODataJPAQueryExtensio...
{ "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_427
{ "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(expected = EntityProviderException.class)\n public void readEmployeesFeedWithInlineCountNegative() throws Exception {\n // prepare\n String content = readFile(\"feed_employees_full.xml\").replace(\"<m:count>6</m:count>\", \"<m:count>-1</m:count>\");\n assertNotNull(content);\n\n EdmEntit...
{ "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_562
{ "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 headersWithSpecialNames() throws Exception {\n final Header header = BatchParserCommon.consumeHeaders(toLineList(new String[] {\n \"Test0123456789: 42\" + CRLF,\n \"a_b: c/d\" + CRLF,\n \"!#$%&'*+-.^_`|~: weird\" + CRLF }));\n assertNotNull(header);\n asse...
{ "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 Header consumeHeaders(final List<Line> remainingMessage) throws BatchException {\n final int headerLineNumber = !remainingMessage.isEmpty() ? remainingMessage.get(0).getLineNumber() : 0;\n final Header headers = new Header(headerLineNumber);\n final Iterator<Line> iter = remainingMes...
{ "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_132
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private ODataEntityParser parser;", "type": "ODataEntityParser", "var_name": "parser" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/OData...
{ "body": "@Test\n public void testParseLink() {\n parser = new ODataEntityParser(mock(\"JPATypeMock(2)\"));\n try {\n UriInfo uriInfo =\n parser.parseLink(EdmMockUtilV2.mockEdmEntitySet(JPATypeMock.ENTITY_NAME, false), mockURIContent(0),\n \"application/json\");\n assertNotNull...
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ODataJPAContext context;", "type": "ODataJPAContext", "var_name": "context" }, { "declarator": "edm", "modifier": "private", "original_string": "private Edm edm;", ...
{ "body": "public final UriInfo parseLink(final EdmEntitySet entitySet, final InputStream content, final String contentType)\n throws ODataJPARuntimeException {\n\n String uriString = null;\n UriInfo uri = null;\n try {\n uriString = EntityProvider.readLink(contentType, entitySet, content);\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_831
{ "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 readWithInlineContentRoomNullEmployeesEntry() throws Exception {\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Rooms\");\n InputStream reqContent = createContentAsStream(ROOM_1_NULL_EMPLOYEE_XML);\n\n // execute\n XmlEntityC...
{ "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_975
{ "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 testProperties() throws EntityProviderException, XMLStreamException {\n XmlMetadataConsumer parser = new XmlMetadataConsumer();\n XMLStreamReader reader = createStreamReader(xmlWithTwoSchemas);\n DataServices result = parser.readMetadata(reader, true);\n for (Schema schema ...
{ "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_35
{ "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 buildQueryWithTopSkipInlineWithListener() {\n try {\n GetEntitySetUriInfo uriInfo = (GetEntitySetUriInfo)mockURIInfoWithTopSkipInlineListener();\n builder.getCount(uriInfo);\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMes...
{ "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 void getCount(GetEntitySetUriInfo uriInfo) throws ODataJPARuntimeException {\n JPAQueryInfo queryInfo = new JPAQueryInfo();\n Query query = null;\n UriInfoImpl info = (UriInfoImpl)uriInfo;\n boolean count = info.isCount();\n info.setCount(true);\n try {\n ODataJPAQueryExtensio...
{ "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_426
{ "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 readEmployeesFeedWithInlineCountValid() throws Exception {\n // prepare\n String content = readFile(\"feed_employees_full.xml\");\n assertNotNull(content);\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n Inp...
{ "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_563
{ "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 headerWithWrongName() throws Exception {\n final Header header = BatchParserCommon.consumeHeaders(toLineList(new String[] {\n \"a,b: c/d\" + CRLF }));\n assertNotNull(header);\n assertNull(header.getHeader(\"a,b\"));\n }", "class_method_signature": "BatchParserCommon...
{ "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 Header consumeHeaders(final List<Line> remainingMessage) throws BatchException {\n final int headerLineNumber = !remainingMessage.isEmpty() ? remainingMessage.get(0).getLineNumber() : 0;\n final Header headers = new Header(headerLineNumber);\n final Iterator<Line> iter = remainingMes...
{ "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_133
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private ODataEntityParser parser;", "type": "ODataEntityParser", "var_name": "parser" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/OData...
{ "body": "@Test\n public void testParseLinkWithoutServiceRoot() {\n parser = new ODataEntityParser(mock(\"JPATypeMock(2)\"));\n try {\n UriInfo uriInfo =\n parser.parseLink(EdmMockUtilV2.mockEdmEntitySet(JPATypeMock.ENTITY_NAME, false), mockURIContent(1),\n \"application/json\");\n ...
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ODataJPAContext context;", "type": "ODataJPAContext", "var_name": "context" }, { "declarator": "edm", "modifier": "private", "original_string": "private Edm edm;", ...
{ "body": "public final UriInfo parseLink(final EdmEntitySet entitySet, final InputStream content, final String contentType)\n throws ODataJPARuntimeException {\n\n String uriString = null;\n UriInfo uri = null;\n try {\n uriString = EntityProvider.readLink(contentType, entitySet, content);\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_830
{ "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 readWithInlineContentEmployeeNullRoomEntrySpecialXmlFormat() throws Exception {\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n InputStream reqContent = createContentAsStream(EMPLOYEE_1_NULL_ROOM_XML, true);\n\n /...
{ "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_758
{ "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 @SuppressWarnings(\"unchecked\")\n public void readComplexPropertyWithMappings() throws Exception {\n String xml =\n \"<Location xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\"\"\n + \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" m:type=\\\"RefScenario.c_Location\\\">\"...
{ "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_308
{ "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 setMappingValueNullValue() throws Exception {\n\n SimpleEntity data = new SimpleEntity();\n data.myMappedProperty = \"mapped property value\";\n EdmMapping mapping = mockMapping(\"getMyMappedProperty\");\n\n Object value = null;\n ava.setMappingValue(data, mapping, value...
{ "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, V> void setMappingValue(final T data, final EdmMapping mapping, final V value) throws ODataException {\n if (mapping != null && mapping.getMediaResourceMimeTypeKey() != null) {\n setValue(data, getSetterMethodName(mapping.getMediaResourceMimeTypeKey()), value);\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_471
{ "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 validationOfUnknownPropertyDefaultNamespaceSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\"\n +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \"xmlns:m=\\\"http://schema...
{ "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_62
{ "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 testConvertTypeBlob() {\n testCase = \"lob\";\n try {\n assertEquals(EdmSimpleTypeKind.Binary, JPATypeConverter.convertToEdmSimpleType(Blob.class,\n new JPASimpleAttribute()));\n } catch (ODataJPAModelException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG...
{ "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_922
{ "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 simplePropertyWithEmptyMappingStandalone() throws Exception {\n String simplePropertyJson = \"{\\\"d\\\":{\\\"Age\\\":67}}\";\n JsonReader reader = prepareReader(simplePropertyJson);\n final EdmProperty edmProperty =\n (EdmProperty) MockFacade.getMockEdm().getEntityType...
{ "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_888
{ "fields": [ { "declarator": "NAMESPACE = \"http://www.foo.bar/Data\"", "modifier": "private static final", "original_string": "private static final String NAMESPACE = \"http://www.foo.bar/Data\";", "type": "String", "var_name": "NAMESPACE" }, { "declarator": "PREFIX =...
{ "body": "@Test\n public void testCategories() throws IOException, EntityProviderException {\n AtomServiceDocumentConsumer svcDocumentParser = new AtomServiceDocumentConsumer();\n ServiceDocument svcDocument = svcDocumentParser.readServiceDokument(createStreamReader(\"/svcAtomExample.xml\"));\n assertNotNu...
{ "fields": [ { "declarator": "currentHandledStartTagName", "modifier": "private", "original_string": "private String currentHandledStartTagName;", "type": "String", "var_name": "currentHandledStartTagName" }, { "declarator": "DEFAULT_PREFIX = \"\"", "modifier": "...
{ "body": "public ServiceDocumentImpl readServiceDokument(final XMLStreamReader reader) throws EntityProviderException {\n AtomInfoImpl atomInfo = new AtomInfoImpl();\n ServiceDocumentImpl serviceDocument = new ServiceDocumentImpl();\n List<Workspace> workspaces = new ArrayList<Workspace>();\n List<Extens...
{ "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_867
{ "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 readLargeStringPropertyValue() throws Exception {\n String name = StringHelper.generateData(77777);\n String xml = \"<EmployeeName xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">\" + name + \"</EmployeeName>\";\n InputStream content = createContentAsStream(xml);\n final Ed...
{ "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 Object readPropertyValue(final EdmProperty edmProperty, final InputStream content)\n throws EntityProviderException {\n return readPropertyValue(edmProperty, content, null);\n }", "class_method_signature": "XmlEntityConsumer.readPropertyValue(final EdmProperty edmProperty, final InputStre...
{ "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_164
{ "fields": [ { "declarator": "objJPAEdmAssociationSetTest", "modifier": "private", "original_string": "private JPAEdmAssociationSetTest objJPAEdmAssociationSetTest;", "type": "JPAEdmAssociationSetTest", "var_name": "objJPAEdmAssociationSetTest" }, { "declarator": "objJ...
{ "body": "@Test\n public void testGetEdmAssociationSet() {\n assertNotNull(objJPAEdmAssociationSet.getEdmAssociationSet());\n }", "class_method_signature": "JPAEdmAssociationSetTest.testGetEdmAssociationSet()", "constructor": false, "full_signature": "@Test public void testGetEdmAssociationSet()", "iden...
{ "fields": [ { "declarator": "schemaView", "modifier": "private", "original_string": "private JPAEdmSchemaView schemaView;", "type": "JPAEdmSchemaView", "var_name": "schemaView" }, { "declarator": "currentAssociationSet", "modifier": "private", "original_st...
{ "body": "@Override\n public AssociationSet getEdmAssociationSet() {\n return currentAssociationSet;\n }", "class_method_signature": "JPAEdmAssociationSet.getEdmAssociationSet()", "constructor": false, "full_signature": "@Override public AssociationSet getEdmAssociationSet()", "identifier": "getEdmAssoc...
{ "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_534
{ "fields": [], "file": "odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/ContentNegotiatorTest.java", "identifier": "ContentNegotiatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void invalidContentNegotiatorCreation() throws ODataException {\n final ContentType contentType = new ContentNegotiator().doContentNegotiation(null, null, null);\n assertNull(contentType);\n }", "class_method_signature": "ContentNegotiator...
{ "fields": [ { "declarator": "URI_INFO_FORMAT_JSON = \"json\"", "modifier": "private static final", "original_string": "private static final String URI_INFO_FORMAT_JSON = \"json\";", "type": "String", "var_name": "URI_INFO_FORMAT_JSON" }, { "declarator": "URI_INFO_FORM...
{ "body": "public ContentType doContentNegotiation(final ODataRequest odataRequest, final UriInfoImpl uriInfo,\n final List<String> supportedContentTypes) throws ODataException {\n validateNotNull(odataRequest, uriInfo, supportedContentTypes);\n\n if (uriInfo.isCount()) {\n return ContentType.TEXT_PLA...
{ "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_934
{ "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 complexPropertyStandalone() throws Exception {\n final String complexPropertyJson =\n \"{\\\"d\\\":{\\\"City\\\":{\\\"__metadata\\\":{\\\"type\\\":\\\"RefScenario.c_City\\\"},\" +\n \"\\\"PostalCode\\\":\\\"69124\\\",\\\"CityName\\\":\\\"Heidelberg\\\"}}}\";\n J...
{ "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_74
{ "fields": [], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/access/model/JPAEdmNameBuilderTest.java", "identifier": "JPAEdmNameBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n @Test\n public void testBuildJPAEdmComplexPropertyView() {\n JPAEdmComplexPropertyView complexPropertyView = EasyMock.createMock(JPAEdmComplexPropertyView.class);\n ComplexProperty complexProperty = new ComplexProperty();\n EasyMock.expect(com...
{ "fields": [ { "declarator": "ENTITY_CONTAINER_SUFFIX = \"Container\"", "modifier": "private static final", "original_string": "private static final String ENTITY_CONTAINER_SUFFIX = \"Container\";", "type": "String", "var_name": "ENTITY_CONTAINER_SUFFIX" }, { "declarat...
{ "body": "public static FullQualifiedName build(final JPAEdmBaseView view, final String name) {\n FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name);\n return fqName;\n }", "class_method_signature": "JPAEdmNameBuilder.build(final JPAEdmBaseView view, final String name)", "constru...
{ "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_467
{ "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 validationOfNamespacesSuccess() throws Exception {\n String roomWithValidNamespaces =\n \"<?xml version='1.0' encoding='UTF-8'?>\"\n +\n \"<entry xmlns=\\\"http://www.w3.org/2005/Atom\\\" \" +\n \"xmlns:m=\\\"http://schemas.microsoft.com/ado/2...
{ "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_488
{ "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 testReadEntryRequest() throws Exception {\n XmlEntityDeserializer xec = new XmlEntityDeserializer();\n\n EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet(\"Employees\");\n EntityStream stream = new En...
{ "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_172
{ "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 testGetEdmComplexType() {\n assertEquals(objComplexType.getEdmComplexType().getName(), \"String\");\n }", "class_method_signature": "JPAEdmComplexTypeTest.testGetEdmComplexType()", "constructor": false, "full_signature": "@Test public void testGetEdmComplexType()", "identif...
{ "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 getEdmComplexType() {\n return currentComplexType;\n }", "class_method_signature": "JPAEdmComplexType.getEdmComplexType()", "constructor": false, "full_signature": "@Override public ComplexType getEdmComplexType()", "identifier": "getEdmComplexType", "invocatio...
{ "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_871
{ "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 readPropertyWrongClosingNamespace() throws Exception {\n String xml =\n \"<d:Age xmlns:d=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\">1</m:Age>\";\n InputStream content = createContent...
{ "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 Object readPropertyValue(final EdmProperty edmProperty, final InputStream content)\n throws EntityProviderException {\n return readPropertyValue(edmProperty, content, null);\n }", "class_method_signature": "XmlEntityConsumer.readPropertyValue(final EdmProperty edmProperty, final InputStre...
{ "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_719
{ "fields": [ { "declarator": "reqMock", "modifier": "private", "original_string": "private HttpServletRequest reqMock;", "type": "HttpServletRequest", "var_name": "reqMock" }, { "declarator": "respMock", "modifier": "private", "original_string": "private Ht...
{ "body": "@Test\n public void handleRedirectWoServletPath() throws Exception {\n ODataServlet servlet = new ODataServlet();\n prepareServlet(servlet);\n prepareRequest(reqMock, \"/context-path\", null);\n servlet.service(reqMock, respMock);\n\n Mockito.verify(respMock).setStatus(HttpStatusCodes.TEMPO...
{ "fields": [ { "declarator": "HTTP_METHOD_OPTIONS = \"OPTIONS\"", "modifier": "private static final", "original_string": "private static final String HTTP_METHOD_OPTIONS = \"OPTIONS\";", "type": "String", "var_name": "HTTP_METHOD_OPTIONS" }, { "declarator": "HTTP_METHO...
{ "body": "@Override\n protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws IOException {\n // We have to create the Service Factory here because otherwise we do not have access to the error callback\n ODataServiceFactory serviceFactory = getServiceFactory(req);\n if(s...
{ "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_349
{ "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, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xml =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2...
{ "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_430
{ "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 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_23
{ "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 buildQueryGetEntitySetTestWithNormalizationWithtoLower() {\n EdmMapping mapping = (EdmMapping) mockNormalizedMapping();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) \n mockURIInfoForEntitySetWithBinaryFilterExpression(mapping, \"toLower\")));\n } c...
{ "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_963
{ "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 ODATAJAVA_77_testEntityTypeKey() 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.NAMESPAC...
{ "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_826
{ "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 readWithInlineContentIgnored() 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 reqContent...
{ "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_125
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private ODataEntityParser parser;", "type": "ODataEntityParser", "var_name": "parser" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/olingo/odata2/jpa/processor/core/OData...
{ "body": "@Test\n public void testParseURISegment() {\n\n try {\n parser = new ODataEntityParser(mock(\"JPATypeMock(2)\"));\n UriInfo uriInfo = parser.parseURISegment(0, 1);\n assertNotNull(uriInfo);\n } catch (ODataJPARuntimeException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1...
{ "fields": [ { "declarator": "context", "modifier": "private", "original_string": "private ODataJPAContext context;", "type": "ODataJPAContext", "var_name": "context" }, { "declarator": "edm", "modifier": "private", "original_string": "private Edm edm;", ...
{ "body": "public final UriInfo parseURISegment(final int segmentFromIndex, final int segmentToIndex)\n throws ODataJPARuntimeException {\n UriInfo uriInfo = null;\n if (segmentFromIndex == segmentToIndex || segmentFromIndex > segmentToIndex || segmentFromIndex < 0) {\n return uriInfo;\n }\n try...
{ "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_575
{ "fields": [ { "declarator": "TEXT_COMBINED = \"Test\\r\" +\n \"Test2\\r\\n\" +\n \"Test3\\n\" +\n \"Test4\\r\" +\n \"\\r\" +\n \"\\r\\n\" +\n \"\\r\\n\" +\n \"Test5\\n\" +\n \"Test6\\r\\n\" +\n \"Test7\\n\" +\n \"\\n\"", "modifier": "private static f...
{ "body": "@Test\n public void testToList() throws IOException {\n BatchLineReader reader = create(TEXT_COMBINED);\n List<Line> stringList = reader.toLineList();\n\n assertEquals(11, stringList.size());\n assertEquals(\"Test\\r\", stringList.get(0).toString());\n assertEquals(\"Test2\\r\\n\", stringLi...
{ "fields": [ { "declarator": "CR = '\\r'", "modifier": "private static final", "original_string": "private static final byte CR = '\\r';", "type": "byte", "var_name": "CR" }, { "declarator": "LF = '\\n'", "modifier": "private static final", "original_string...
{ "body": "public List<String> toList() throws IOException {\n final List<String> result = new ArrayList<String>();\n String currentLine = readLine();\n if(currentLine != null) {\n currentBoundary = currentLine.trim();\n result.add(currentLine);\n\n while ((currentLine = readLine()) != 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_298
{ "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 getPropertyValue() throws ODataException {\n\n SimpleEntity data = new SimpleEntity();\n data.name = \"A Name\";\n EdmProperty property = mockProperty(\"Name\");\n\n Object value = ava.getPropertyValue(data, property);\n\n Assert.assertEquals(String.class, value.getClass...
{ "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_762
{ "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 readComplexPropertyWithInvalidName() throws Exception {\n String xml =\n \"<Invalid xmlns=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\"\"\n + \" xmlns:m=\\\"\" + Edm.NAMESPACE_M_2007_08 + \"\\\" m:type=\\\"RefScenario.c_Locatio...
{ "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_332
{ "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 twoEdmxWithoutValidation() throws Exception {\n InputStream reader = createStreamReader(edmxRefFor1680364709); \n EdmDataServices result = ODataClient.newInstance().readMetadata(reader, true);\n assertNotNull(result);\n\n }", "class_method_signature": "XmlMetadataDeserializ...
{ "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_627
{ "fields": [ { "declarator": "edmFunctionImport", "modifier": "private static", "original_string": "private static EdmFunctionImportImplProv edmFunctionImport;", "type": "EdmFunctionImportImplProv", "var_name": "edmFunctionImport" }, { "declarator": "edmFunctionImportW...
{ "body": "@Test\n public void functionImport() throws Exception {\n assertEquals(\"foo\", edmFunctionImport.getName());\n assertEquals(\"GET\", edmFunctionImport.getHttpMethod());\n }", "class_method_signature": "EdmFunctionImportImplProvTest.functionImport()", "constructor": false, "full_signature": "...
{ "fields": [ { "declarator": "functionImport", "modifier": "private", "original_string": "private FunctionImport functionImport;", "type": "FunctionImport", "var_name": "functionImport" }, { "declarator": "edmEntityContainer", "modifier": "private", "origin...
{ "body": "@Override\n public String getHttpMethod() throws EdmException {\n return functionImport.getHttpMethod();\n }", "class_method_signature": "EdmFunctionImportImplProv.getHttpMethod()", "constructor": false, "full_signature": "@Override public String getHttpMethod()", "identifier": "getHttpMethod"...
{ "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_1056
{ "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 defaultSupportedContentTypesForFunctionImportValue() throws Exception {\n List<String> types = service.getSupportedContentTypes(FunctionImportValueProcessor.class);\n assertTrue(types.contains(ContentType.WILDCARD.toContentTypeString()));\n }", "class_method_signature": "OData...
{ "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_277
{ "fields": [ { "declarator": "listsProcessor", "modifier": "private", "original_string": "private ListsProcessor listsProcessor;", "type": "ListsProcessor", "var_name": "listsProcessor" }, { "declarator": "mockedDataSource = Mockito.mock(DataSource.class)", "modi...
{ "body": "@Test\n public void testSkipOnly() {\n String url = \"Rooms?$orderby=Seats%20desc&$skip=000000&$top=200\";\n String result = listsProcessor.percentEncodeNextLink(url);\n Assert.assertEquals(\"Rooms?$orderby=Seats%20desc&$top=200\", result);\n\n String url2 = \"Rooms?$orderby=Seats%20desc&$skip...
{ "fields": [ { "declarator": "SERVER_PAGING_SIZE = 100", "modifier": "private static final", "original_string": "private static final int SERVER_PAGING_SIZE = 100;", "type": "int", "var_name": "SERVER_PAGING_SIZE" } ], "file": "odata2-annotation-processor/annotation-processo...
{ "body": "String percentEncodeNextLink(final String link) {\n if (link == null) {\n return null;\n }\n\n return link.replaceAll(\"\\\\$skiptoken=.+?(?:&|$)\", \"\")\n .replaceAll(\"\\\\$skip=.+?(?:&|$)\", \"\")\n .replaceFirst(\"(?:\\\\?|&)$\", \"\"); // Remove potentially trailing \"?\" ...
{ "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_58
{ "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 testConvertToEdmSimpleType() {\n String str = \"entity\";\n byte[] byteArr = new byte[3];\n Long longObj = new Long(0);\n Short shortObj = new Short((short) 0);\n Integer integerObj = new Integer(0);\n Double doubleObj = new Double(0);\n Float floatObj = new Float(...
{ "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_918
{ "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 simplePropertyNull() throws Exception {\n JsonReader reader = prepareReader(\"{\\\"Name\\\":null}\");\n final EdmProperty property =\n (EdmProperty) MockFacade.getMockEdm().getEntityType(\"RefScenario\", \"Room\").getProperty(\"Name\");\n final Map<String, Object> resul...
{ "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_365
{ "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 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_735
{ "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(expected = EntityProviderException.class)\n public void invalidEmptyDocument() throws EntityProviderException {\n InputStream in = StringHelper.encapsulate(\"\");\n try {\n jedc.readError(in);\n fail(\"Expected exception was not thrown\");\n } catch (EntityProviderException e) {\n...
{ "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_1001
{ "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 testEntityTypeInOtherSchema() throws XMLStreamException, EntityProviderException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + Edm.NAMESPACE_EDMX_2007_06 + \"\\\">\"\n + \"<edmx:DataServices m:DataServiceVersion=\\\...
{ "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_220
{ "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 testFunctionImportComplexType() {\n VARIANT = 9;\n\n build();\n\n List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList();\n\n assertEquals(functionImportList.size(), 1);\n\n FunctionImport functionImport = functionImportList.get(...
{ "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_559
{ "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 testMultipleAcceptHeaderSameValue() throws BatchException {\n String[] messageRaw = new String[] {\n \"Accept: application/atomsvc+xml;q=0.8, application/json;odata=verbose;q=0.5, */*;q=0.1\" + CRLF,\n \"Accept: application/atomsvc+xml;q=0.8\" + CRLF,\n \"Accept...
{ "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 Header consumeHeaders(final List<Line> remainingMessage) throws BatchException {\n final int headerLineNumber = !remainingMessage.isEmpty() ? remainingMessage.get(0).getLineNumber() : 0;\n final Header headers = new Header(headerLineNumber);\n final Iterator<Line> iter = remainingMes...
{ "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_109
{ "fields": [ { "declarator": "edmProvider", "modifier": "private static", "original_string": "private static ODataJPAEdmProvider edmProvider;", "type": "ODataJPAEdmProvider", "var_name": "edmProvider" } ], "file": "odata2-jpa-processor/jpa-core/src/test/java/org/apache/oling...
{ "body": "@Test\n public void testGetEntityTypeWithBuffer() {\n HashMap<String, EntityType> entityTypes = new HashMap<String, EntityType>();\n org.apache.olingo.odata2.api.edm.provider.EntityType entity =\n new org.apache.olingo.odata2.api.edm.provider.EntityType();\n entity.setName(\"SalesOrderHead...
{ "fields": [ { "declarator": "oDataJPAContext", "modifier": "private", "original_string": "private ODataJPAContext oDataJPAContext;", "type": "ODataJPAContext", "var_name": "oDataJPAContext" }, { "declarator": "jpaEdmModel", "modifier": "private", "original...
{ "body": "@Override\n public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException {\n\n String strEdmFQName = null;\n\n if (edmFQName != null) {\n strEdmFQName = edmFQName.toString();\n if (entityTypes.containsKey(strEdmFQName)) {\n return entityTypes.get(strEdmFQ...
{ "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_723
{ "fields": [ { "declarator": "reqMock", "modifier": "private", "original_string": "private HttpServletRequest reqMock;", "type": "HttpServletRequest", "var_name": "reqMock" }, { "declarator": "respMock", "modifier": "private", "original_string": "private Ht...
{ "body": "@Test\n public void serviceInstance() throws Exception {\n ODataServlet servlet = new ODataServlet();\n prepareServlet(servlet);\n prepareRequest(reqMock, \"\", \"/servlet-path\");\n Mockito.when(reqMock.getPathInfo()).thenReturn(\"/request-path-info\");\n Mockito.when(reqMock.getRequestURI...
{ "fields": [ { "declarator": "HTTP_METHOD_OPTIONS = \"OPTIONS\"", "modifier": "private static final", "original_string": "private static final String HTTP_METHOD_OPTIONS = \"OPTIONS\";", "type": "String", "var_name": "HTTP_METHOD_OPTIONS" }, { "declarator": "HTTP_METHO...
{ "body": "@Override\n protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws IOException {\n // We have to create the Service Factory here because otherwise we do not have access to the error callback\n ODataServiceFactory serviceFactory = getServiceFactory(req);\n if(s...
{ "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_689
{ "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 testFormatParserInvalidParameterWithAllLws2() {\n ContentType.create(\"aaa/bbb;x=\\n \\ry;a= \\tbla \");\n }", "class_method_signature": "ContentTypeTest.testFormatParserInvalidParameterWithAllLws2()", "constructor": false, "full_si...
{ "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_373
{ "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 testEntityTypeInOtherSchema() throws XMLStreamException, \n EntityProviderException, EdmException, UnsupportedEncodingException {\n final String xmWithEntityContainer =\n \"<edmx:Edmx Version=\\\"1.0\\\" xmlns:edmx=\\\"\" + 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 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_236
{ "fields": [ { "declarator": "objJPAEdmPropertyTest", "modifier": "private", "original_string": "private JPAEdmPropertyTest objJPAEdmPropertyTest;", "type": "JPAEdmPropertyTest", "var_name": "objJPAEdmPropertyTest" }, { "declarator": "objJPAEdmProperty", "modifie...
{ "body": "@Test\n public void testGetSimpleProperty() {\n setUp();\n assertNotNull(objJPAEdmProperty.getEdmSimpleProperty());\n }", "class_method_signature": "JPAEdmPropertyTest.testGetSimpleProperty()", "constructor": false, "full_signature": "@Test public void testGetSimpleProperty()", "identifier"...
{ "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 SimpleProperty getEdmSimpleProperty() {\n return currentSimpleProperty;\n }", "class_method_signature": "JPAEdmProperty.getEdmSimpleProperty()", "constructor": false, "full_signature": "@Override public SimpleProperty getEdmSimpleProperty()", "identifier": "getEdmSimplePrope...
{ "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_1017
{ "fields": [ { "declarator": "edm", "modifier": "private", "original_string": "private Edm edm;", "type": "Edm", "var_name": "edm" }, { "declarator": "schemas", "modifier": "private", "original_string": "private List<Schema> schemas;", "type": "List<S...
{ "body": "@Test\n public void writeEmptyServiceDocument() throws Exception {\n ODataResponse response = new AtomEntityProvider().writeServiceDocument(edm, \"http://localhost\");\n String xmlString = verifyResponse(response);\n\n assertXpathExists(\"/a:service\", xmlString);\n assertXpathExists(\"/a:serv...
{ "fields": [ { "declarator": "DEFAULT_CHARSET = ContentType.CHARSET_UTF_8", "modifier": "private static final", "original_string": "private static final String DEFAULT_CHARSET = ContentType.CHARSET_UTF_8;", "type": "String", "var_name": "DEFAULT_CHARSET" }, { "declarat...
{ "body": "public void writeServiceDocument(final Writer writer) throws EntityProviderException {\n\n EdmServiceMetadata serviceMetadata = edm.getServiceMetadata();\n\n try {\n XMLStreamWriter xmlStreamWriter = XmlHelper.getXMLOutputFactory().createXMLStreamWriter(writer);\n\n xmlStreamWriter.writeSta...
{ "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_19
{ "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 buildQueryGetEntitySetTestWithNormalizationWithEndsWith() {\n EdmMapping mapping = (EdmMapping) mockNormalizedMapping();\n try {\n assertNotNull(builder.build((GetEntitySetUriInfo) mockURIInfoForEntitySet(mapping, \"endsWith\")));\n } catch (ODataException e) {\n fai...
{ "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_959
{ "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 testMetadataDokumentWithWhitepacesMultiline() 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=\\\"\" +...
{ "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_774
{ "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 collectionComplexType() throws Exception {\n final String xml = \"<d:AllLocations xmlns:d=\\\"\" + Edm.NAMESPACE_D_2007_08 + \"\\\">\"\n + \"<d:element><d:City><d:PostalCode>69124</d:PostalCode><d:CityName>Heidelberg</d:CityName></d:City>\"\n + \"<d:Country>Germany</d:...
{ "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_261
{ "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 setValueForPropertyNullInstance() throws Exception {\n annotationHelper.setValueForProperty(null, \"\", null);\n }", "class_method_signature": "AnnotationHelperTest.setValueForPropertyNullInstance()", "constructor": false, "full_signature": "@Test public void setValueForPrope...
{ "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 void setValueForProperty(final Object instance, final String propertyName, final Object propertyValue) {\n if (instance != null) {\n Field field = getFieldForPropertyName(propertyName, instance.getClass(), true);\n if (field != null) {\n setFieldValue(instance, field, propertyVal...
{ "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_1040
{ "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 writeText() throws Exception {\n final ODataResponse result = new ProviderFacadeImpl().writeText(\"test\");\n assertNull(\"BasicProvider should not set content header\", result.getContentHeader());\n assertEquals(\"test\", StringHelper.inputStreamToString((InputStream) result....
{ "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 ODataResponse writeText(final String value) throws EntityProviderException {\n return create().writeText(value);\n }", "class_method_signature": "ProviderFacadeImpl.writeText(final String value)", "constructor": false, "full_signature": "@Override public ODataResponse writeTex...
{ "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_631
{ "fields": [ { "declarator": "edmFunctionImport", "modifier": "private static", "original_string": "private static EdmFunctionImportImplProv edmFunctionImport;", "type": "EdmFunctionImportImplProv", "var_name": "edmFunctionImport" }, { "declarator": "edmFunctionImportW...
{ "body": "@Test\n public void nulllReturnType() throws Exception {\n assertNull(edmFunctionImportWithoutParameters.getReturnType());\n }", "class_method_signature": "EdmFunctionImportImplProvTest.nulllReturnType()", "constructor": false, "full_signature": "@Test public void nulllReturnType()", "identifi...
{ "fields": [ { "declarator": "functionImport", "modifier": "private", "original_string": "private FunctionImport functionImport;", "type": "FunctionImport", "var_name": "functionImport" }, { "declarator": "edmEntityContainer", "modifier": "private", "origin...
{ "body": "@Override\n public EdmTyped getReturnType() throws EdmException {\n if (edmReturnType == null) {\n final ReturnType returnType = functionImport.getReturnType();\n if (returnType != null) {\n edmReturnType =\n new EdmTypedImplProv(edm, functionImport.getName(), returnType.get...
{ "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_148
{ "fields": [ { "declarator": "objJPAEdmSchemaTest", "modifier": "private", "original_string": "private JPAEdmSchemaTest objJPAEdmSchemaTest;", "type": "JPAEdmSchemaTest", "var_name": "objJPAEdmSchemaTest" }, { "declarator": "objJPAEdmSchema", "modifier": "private...
{ "body": "@Test\n public void testGetJPAEdmAssociationView() {\n assertNull(objJPAEdmSchema.getJPAEdmAssociationView());\n }", "class_method_signature": "JPAEdmSchemaTest.testGetJPAEdmAssociationView()", "constructor": false, "full_signature": "@Test public void testGetJPAEdmAssociationView()", "identif...
{ "fields": [ { "declarator": "schema", "modifier": "private", "original_string": "private Schema schema;", "type": "Schema", "var_name": "schema" }, { "declarator": "complexTypeView", "modifier": "private", "original_string": "private JPAEdmComplexTypeView ...
{ "body": "@Override\n public final JPAEdmAssociationView getJPAEdmAssociationView() {\n return associationView;\n }", "class_method_signature": "JPAEdmSchema.getJPAEdmAssociationView()", "constructor": false, "full_signature": "@Override public final JPAEdmAssociationView getJPAEdmAssociationView()", "i...
{ "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_580
{ "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\n public void testValidateContentTypeMultipartMixedCaseInsensitiv() throws BatchException {\n List<String> contentTypeValues =\n Arrays.asList(new String[] { \"mulTiPart/MiXed; boundary=batch_32332_32323_fdsf\" });\n final Header headers = makeHeaders(HttpHeaders.CONTENT_TYPE, contentTy...
{ "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 validateContentType(final Header headers) throws BatchException {\n List<String> contentTypes = headers.getHeaders(HttpHeaders.CONTENT_TYPE);\n\n if (contentTypes.isEmpty()) {\n throw new BatchException(BatchException.MISSING_CONTENT_TYPE);\n }\n if (!headers.isHeaderMat...
{ "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_6
{ "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 buildGetEntityCountTest() {\n try {\n assertNotNull(builder.build((GetEntityCountUriInfo) mockURIInfoWithListener(false)));\n } catch (ODataException e) {\n fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART_2);\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" }