id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
4546424_12
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateModules() {\n\t\tList<ModuleGroup> modules = new ArrayList<ModuleGroup>();\n\t\tModuleGroup module = new ModuleGroup();\n\t\tmodule.setId(\"testModule\");\n\t\tmodule.setName(\"log4j\");\n\t\tmodule.setGroupId(\"log4j\");\n\t\tmodule.setArtifactId(\"log4j\");\n\t\tmodules.add...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_MODULES)\n\tpublic Response createModules(List<ModuleGroup> modules) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.createModules(List<ModuleGroup> modules)\");\n\t }\n\t\t\n\t\ttry {\n\t\t\tmong...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_45
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateTechnology() {\n\t\tTechnology tech = new Technology();\n\t\ttech.setId(\"testTech\");\n\t\ttech.setName(\"PHP\");\n\t\tmongoOperation.save(TECHNOLOGIES_COLLECTION_NAME, tech);\n\t\tassertEquals(Response.status(Response.Status.OK).entity(tech).build().getStatus(), 200);\n\t}"...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID)\n\tpublic Response updateTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id , Technology technology) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"E...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_53
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetVideo() {\n\t\tString id = \"testvideo\";\n\t\tVideoInfo videoInfo = mongoOperation.findOne(VIDEOS_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), VideoInfo.class);\n\t\tassertNotNull(videoInfo);\n\t\t\n\t}", "class_method_signature": "AdminServiceTe...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_VIDEOS + REST_API_PATH_ID)\n\tpublic Response getVideo(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.getVideo(String id)\" + id);\n\t }\n\t\t\n\t\ttry {\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_28
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testDeleteServer() {\n\t\tString id = \"testServer\";\n\t\tmongoOperation.remove(SERVERS_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), Server.class);\n\t\tassertEquals(Response.status(Response.Status.OK).build().getStatus(), 200);\n\t}", "class_method_sig...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@DELETE\n\t@Path (REST_API_SERVERS + REST_API_PATH_ID)\n\tpublic Response deleteServer(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.deleteServer(String id)\" + id);\n\t }\n\t\t\n\t\ttry {\n\t\t\tmongoOperation.remo...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_6
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateSettings() {\n\t\tList<SettingsTemplate> settings = new ArrayList<SettingsTemplate>();\n\t\tSettingsTemplate setting = new SettingsTemplate();\n\t\tsetting.setId(\"server\");\n\t\tsetting.setType(\"tomcat\");\n\t\tsettings.add(setting);\n\t\tmongoOperation.insertList(SETTINGS...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_SETTINGS)\n\tpublic Response createSettings(List<SettingsTemplate> settings) {\n\t\tif (isDebugEnabled) {\n\t\t S_LOGGER.debug(\"Entered into ComponentService.createSettings(List<SettingsTemplate> settings)\");\n\t\t}\n\t\t\n\t\ttry {\n\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_69
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateRole() {\n\t\tRole role = new Role(\"support\", \"from phresco\");\n\t\trole.setId(\"testrole\");\n\t\tmongoOperation.save(ROLES_COLLECTION_NAME, role);\n\t\t\n\t}", "class_method_signature": "AdminServiceTest.testUpdateRole()", "constructor": false, "full_signature": "...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_ROLES + REST_API_PATH_ID)\n\tpublic Response updateRole(@PathParam(REST_API_PATH_PARAM_ID) String id , Role role) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService....
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_7
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindSettings() {\n\t\tList<SettingsTemplate> appTypeList = mongoOperation.getCollection(SETTINGS_COLLECTION_NAME , SettingsTemplate.class);\n\t\tassertNotNull(appTypeList);\n\t}", "class_method_signature": "ComponentServiceTest.testFindSettings()", "constructor": false, "full...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Path (REST_API_SETTINGS)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findSettings() {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.findSettings()\");\n\t }\n\t\t\n\t\ttry {\n\t\t\tList<SettingsTemplate> settingsList = mongoOperation.get...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_68
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetRole() {\n\t\tString id = \"testrole\";\n\t\tRole role = mongoOperation.findOne(ROLES_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), Role.class);\n\t\tassertNotNull(role);\n\t}", "class_method_signature": "AdminServiceTest.testGetRole()", "constru...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_ROLES + REST_API_PATH_ID)\n\tpublic Response getRole(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.Response getRole(String id)\" + id);\n\t }\n\t\t\n\t\t...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_29
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateDatabases() {\n\t\tList<Database> databases = new ArrayList<Database>();\n\t\tDatabase database = new Database();\n\t\tdatabase.setId(\"testDatabase\");\n\t\tdatabase.setName(\"mongo\");\n\t\tdatabase.setDescription(\"To save objects\");\n\t\tdatabases.add(database);\n\t\tmon...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_DATABASES)\n\tpublic Response createDatabases(List<Database> databases) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.createDatabases(List<Database> databases)\");\n\t }\n\t\t\n\t\ttry {\n\t\t\t...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_52
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateVideos() {\n\t\tList<VideoInfo> videolist = new ArrayList<VideoInfo>();\n\t\tVideoInfo info = new VideoInfo(\"About phresco \", \"intro about phresco\", null, null, null, null);\n\t\tinfo.setId(\"testvideo\");\n\t\tvideolist.add(info);\n\t\tmongoOperation.save(VIDEOS_COLLECTI...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_VIDEOS)\n\tpublic Response updateVideos(List<VideoInfo> videos) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.updateVideos(List<VideoInfo> videos)\");\n\t }\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_44
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetTechnology() {\n\t\tString id = \"testTech\";\n\t\tTechnology tech = mongoOperation.findOne(TECHNOLOGIES_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), Technology.class);\n\t\tassertNotNull(tech);\n\t}", "class_method_signature": "ComponentServiceTe...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID)\n\tpublic Response getTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.getTechnology(String id)\" + id);\n\t ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_13
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindModules() {\n\t\tList<ModuleGroup> moduleList = mongoOperation.getCollection(MODULES_COLLECTION_NAME , ModuleGroup.class);\n\t\tassertNotNull(moduleList);\n\t}", "class_method_signature": "ComponentServiceTest.testFindModules()", "constructor": false, "full_signature": "@...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Path (REST_API_MODULES)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findModules(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_TYPE) String type, \n\t @QueryParam(REST_QUERY_CUSTOMERID) String customerId) {\n\t if (isDebugEnabled) {\n\t S_LOG...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_64
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetDownloadInfo() {\n\t\tString id = \"testdownload\";\n\t\tDownloadInfo downloadInfo = mongoOperation.findOne(DOWNLOAD_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), DownloadInfo.class);\n\t\tassertNotNull(downloadInfo);\n\t}", "class_method_signature...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_DOWNLOADS + REST_API_PATH_ID)\n\tpublic Response getDownloadInfo(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.getDownloadInfo(String id)\" + id);\n\t }\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_33
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateDatabase() {\n\t\tDatabase database = new Database();\n\t\tdatabase.setId(\"testDatabase\");\n\t\tdatabase.setName(\"mongo\");\n\t\tdatabase.setDescription(\"To save objects\");\n\t\tmongoOperation.save(DATABASES_COLLECTION_NAME, database);\n\t\tassertEquals(Response.status(R...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_DATABASES + REST_API_PATH_ID)\n\tpublic Response updateDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id , Database database) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered in...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_25
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateServers() {\n\t\tList<Server> servers = new ArrayList<Server>();\n\t\tServer server = new Server();\n\t\tserver.setId(\"testServer\");\n\t\tserver.setName(\"Jboss\");\n\t\tserver.setDescription(\"For Deploying\");\n\t\tservers.add(server);\n\t\tfor(Server servers1:servers){\n...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_SERVERS)\n\tpublic Response updateServers(List<Server> servers) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.updateServers(List<Server> servers)\");\n\t ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_72
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindGlobalURL() {\n\t\tList<GlobalURL> urllist = mongoOperation.getCollection(GLOBALURL_COLLECTION_NAME , GlobalURL.class);\n\t\tassertNotNull(urllist);\n\t}", "class_method_signature": "AdminServiceTest.testFindGlobalURL()", "constructor": false, "full_signature": "@Test pub...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n\t@Path (REST_API_GLOBALURL)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findGlobalURL() {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.findGlobalURL()\");\n\t }\n\t\t\n\t\ttry {\n\t\t\tList<GlobalURL> globalList = mongoOperation.getCollection...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_48
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindCustomer() {\n\t\tList<Customer> customers = mongoOperation.getCollection(CUSTOMERS_COLLECTION_NAME , Customer.class);\n\t\tassertNotNull(customers);\n\t}", "class_method_signature": "AdminServiceTest.testFindCustomer()", "constructor": false, "full_signature": "@Test pub...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n @Path (REST_API_CUSTOMERS)\n @Produces (MediaType.APPLICATION_JSON)\n public Response findCustomer() {\n if (isDebugEnabled) {\n S_LOGGER.debug(\"Entered into AdminService.findCustomer()\");\n }\n \t\n \ttry {\n \t\tList<Customer> customerList = mongoOperat...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_14
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateModules() {\n\t\tList<ModuleGroup> modules = new ArrayList<ModuleGroup>();\n\t\tModuleGroup module = new ModuleGroup();\n\t\tmodule.setId(\"testModule\");\n\t\tmodule.setName(\"log4j4\");\n\t\tmodule.setGroupId(\"log4j4\");\n\t\tmodule.setArtifactId(\"log4j4\");\n\t\tmodules....
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_MODULES)\n\tpublic Response updateModules(List<ModuleGroup> modules) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.updateModules(List<ModuleGroup> modules)\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_43
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateTechnologies() {\n\t\tList<Technology> techs = new ArrayList<Technology>();\n\t\tTechnology tech = new Technology();\n\t\ttech.setId(\"testTech\");\n\t\ttech.setName(\"drupal\");\n\t\ttechs.add(tech);\n\t\tfor(Technology tech1:techs){\n\t\tmongoOperation.save(TECHNOLOGIES_COL...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_TECHNOLOGIES)\n\tpublic Response updateTechnologies(List<Technology> technologies) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.updateTechnologies(List<Tec...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_55
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testDeleteVideo() {\n\t\tString id = \"testvideo\";\n\t\tmongoOperation.remove(VIDEOS_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), VideoInfo.class);\n\t}", "class_method_signature": "AdminServiceTest.testDeleteVideo()", "constructor": false, "full_si...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@DELETE\n\t@Path(REST_API_VIDEOS + REST_API_PATH_ID)\n\tpublic Response deleteVideo(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.deleteVideo(String id)\" + id);\n\t }\n\t\t\n\t\ttry {\n\t\t\tmongoOperation.remove(VIDEO...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_79
{ "fields": [], "file": "plugins/javascript-maven-plugin/src/test/java/org/codehaus/mojo/javascript/ConfigurerTest.java", "identifier": "ConfigurerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void run_buildSpecifiedPlugins() {\n\t\t// Setup test mocking\n\t\tMavenProject project1 = mock(MavenProject.class);\n MavenProject project2 = mock(MavenProject.class);\n MavenProject project3 = mock(MavenProject.class);\n\t\tList<Plugin> pluginsBuild = new ArrayList<Plugin>()...
{ "fields": [ { "declarator": "htmlResourceDir", "modifier": "private", "original_string": "private String htmlResourceDir;", "type": "String", "var_name": "htmlResourceDir" }, { "declarator": "htmlResourceExcludes", "modifier": "private", "original_string":...
{ "body": "protected Set<Plugin> buildSpecifiedPlugins( MavenProject project )\n {\n Set<Plugin> plugins = new HashSet<Plugin>( project.getBuildPlugins().size() );\n MavenProject currentProject = project;\n while ( currentProject != null )\n {\n Build build = currentProject.g...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_38
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetWebService() {\n\t\tString id = \"testWS\";\n\t\tWebService webService = mongoOperation.findOne(WEBSERVICES_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), WebService.class);\n\t\tassertNotNull(webService);\n\t}", "class_method_signature": "Component...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_WEBSERVICES + REST_API_PATH_ID)\n\tpublic Response getWebService(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.getWebService(String id)\" + id);\n\t ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_80
{ "fields": [ { "declarator": "project", "modifier": "private", "original_string": "private MavenProject project;", "type": "MavenProject", "var_name": "project" }, { "declarator": "localRepository", "modifier": "private", "original_string": "private Artifac...
{ "body": "@Test\n public void testNoParentProject()\n {\n File wwwZipBase = mock( File.class );\n File wwwZipFile = mock( File.class );\n\n when( project.getParent() ).thenReturn( null );\n\n when( wwwZipBase.listFiles() ).thenReturn( new File[] { wwwZipFile } );\n when( wwwZ...
{ "fields": [ { "declarator": "localRepositoryPaths = new ArrayList<String>()", "modifier": "private final", "original_string": "private final List<String> localRepositoryPaths = new ArrayList<String>();", "type": "List<String>", "var_name": "localRepositoryPaths" } ], "file"...
{ "body": "public String findLocalRepository( String filePath )\n {\n String localRepositoryPathFound = null;\n for ( String localRepositoryPath : localRepositoryPaths )\n {\n if ( filePath.startsWith( localRepositoryPath ) )\n {\n localRepositoryPathFound ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_0
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateAppTypes() {\n\t\tList<ApplicationType> appTypes = new ArrayList<ApplicationType>();\n\t\tList<Database> dbs=new ArrayList<Database>();\n\t\tDatabase db=new Database();\n\t\tdb.setId(\"101\");\n\t\tdb.setName(\"mongodb\");\n\t\tdbs.add(db);\n\t\tList<Server> servers=new Array...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_APPTYPES)\n\tpublic Response createAppTypes(List<ApplicationType> appTypes) throws PhrescoException {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.createAppTypes(List<ApplicationType> appTypes)\");\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_18
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindPilots() {\n\t\tList<ProjectInfo> pilotsList = mongoOperation.getCollection(PILOTS_COLLECTION_NAME , ProjectInfo.class);\n\t\tassertNotNull(pilotsList);\n\t}", "class_method_signature": "ComponentServiceTest.testFindPilots()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Path (REST_API_PILOTS)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findPilots(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_CUSTOMERID) String customerId) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.findPilots()\"...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_59
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetUser() {\n\t\tString id = \"testUser\";\n\t\tUser user = mongoOperation.findOne(USERS_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), User.class);\n\t\tassertNotNull(user);\n\t}", "class_method_signature": "AdminServiceTest.testGetUser()", "constru...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_USERS + REST_API_PATH_ID)\n\tpublic Response getUser(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.getUser(String id)\" + id);\n\t }\n\t\t\n\t\ttry {\n\t...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_75
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/HomePageServiceTest.java", "identifier": "HomePageServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testGetHomePageVideo() throws PhrescoException {\n\t\tPhrescoServerFactory.initialize();\n\t\tGson gson = new Gson();\n\t\tRepositoryManager repoMgr = PhrescoServerFactory.getRepositoryManager();\n\t\tString videoInfoJSON = repoMgr.getArtifactAsString(repoMgr.getHomePageJsonFile());\n\...
{ "fields": [ { "declarator": "S_LOGGER = Logger.getLogger(HomePageService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER = Logger.getLogger(HomePageService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic List<VideoInfo> getHomePageVideo() throws PhrescoException,\n\t\t\tIOException {\n\t\tif (isDebugEnabled) {\n\t\t\tS_LOGGER.debug(\"Entering Method HomePageService.getHomePageVideo()\");\n\t\t}\n\t\tPhrescoServerFactory.initialize();\n\t\tGson gso...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_22
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testDeletePilot() {\n\t\tString id = \"testPilot\";\n\t\tmongoOperation.remove(PILOTS_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), ProjectInfo.class);\n\t\tassertEquals(Response.status(Response.Status.OK).build().getStatus(), 200);\n\t}", "class_method_s...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@DELETE\n\t@Path (REST_API_PILOTS + REST_API_PATH_ID)\n\tpublic Response deletePilot(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.deletePilot(String id)\" + id);\n\t }\n\t\t\n\t\ttry {\n\t\t\tmongoOperation.remove(...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_34
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testDeleteDatabase() {\n\t\tString id = \"testDatabase\";\n\t\tmongoOperation.remove(DATABASES_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), Database.class);\n\t\tassertEquals(Response.status(Response.Status.OK).build().getStatus(), 200);\n\t}", "class_me...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@DELETE\n\t@Path (REST_API_DATABASES + REST_API_PATH_ID)\n\tpublic Response deleteDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.deleteDatabase(String id)\" + id);\n\t }\n\t\t\n\t\ttry {\n\t\t\tmongoOperatio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_63
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindDownloadInfo() {\n\t\tList<DownloadInfo> downloadList = mongoOperation.getCollection(DOWNLOAD_COLLECTION_NAME , DownloadInfo.class);\n\t\tassertNotNull(downloadList);\n\t}", "class_method_signature": "AdminServiceTest.testFindDownloadInfo()", "constructor": false, "full_s...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@GET\n\t@Path (REST_API_DOWNLOADS)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findDownloadInfo() {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.findDownloadInfo()\");\n\t }\n\t\t\n\t\ttry {\n\t\t\tList<DownloadInfo> downloadList = mongoOperation.ge...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_62
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateDownloadInfo() {\n\t\tList<DownloadInfo> infos = new ArrayList<DownloadInfo>();\n\t\tDownloadInfo info = new DownloadInfo();\n\t\tinfo.setName(\"Eclipse\");\n\t\tinfo.setType(\"Editor\");\n\t\tinfo.setVersion(\"juno\");\n\t\tinfo.setId(\"testdownload\");\n\t\tinfos.add(info);...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_DOWNLOADS)\n\tpublic Response createDownloadInfo(List<DownloadInfo> downloadInfos) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.createDownloadInfo(List<DownloadInfo> downloadInfos)\");\n\t }\n\t\t\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_35
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateWebServices() {\n\t\tList<WebService> webServices = new ArrayList<WebService>();\n\t\tWebService webService = new WebService();\n\t\twebService.setId(\"testWS\");\n\t\twebService.setName(\"jersey\");\n\t\twebService.setDescription(\"For rest\");\n\t\twebServices.add(webServic...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_WEBSERVICES)\n\tpublic Response createWebServices(List<WebService> webServices) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.createWebServices(List<WebService> webServices)\");\n\t }\n\t\t\n\t\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_23
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testCreateServers() {\n\t\tList<Server> servers = new ArrayList<Server>();\n\t\tServer server = new Server();\n\t\tserver.setId(\"testServer\");\n\t\tserver.setName(\"Tomcat\");\n\t\tserver.setDescription(\"For Deploying\");\n\t\tservers.add(server);\n\t\tmongoOperation.insertList(SERV...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@POST\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_SERVERS)\n\tpublic Response createServers(List<Server> servers) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.createServers(List<Server> servers)\");\n\t }\n\t\t\n\t\ttry {\n\t\t\tmongoOperation...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_74
{ "fields": [ { "declarator": "SOFTWARE_REPO_PATH = \"/softwares/info/1.0/info-1.0.json\"", "modifier": "private static final", "original_string": "private static final String SOFTWARE_REPO_PATH = \"/softwares/info/1.0/info-1.0.json\";", "type": "String", "var_name": "SOFTWARE_REPO_P...
{ "body": "@Test\n\tpublic void testGetAvailableDownloads() throws PhrescoException {\n \tPhrescoServerFactory.initialize();\n \tRepositoryManager repoMgr = PhrescoServerFactory.getRepositoryManager();\n\t\tString downloadInfoJSON = repoMgr.getArtifactAsString(SOFTWARE_REPO_PATH);\n \tType type = new TypeTok...
{ "fields": [ { "declarator": "SOFTWARE_REPO_PATH = \"/softwares/info/1.0/info-1.0.json\"", "modifier": "private static final", "original_string": "private static final String SOFTWARE_REPO_PATH = \"/softwares/info/1.0/info-1.0.json\";", "type": "String", "var_name": "SOFTWARE_REPO_P...
{ "body": "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces({MediaType.APPLICATION_JSON})\n public List<DownloadInfo> getAvailableDownloads(DownloadPropertyInfo downloadPropertyInfo) throws PhrescoException, JSONException, FileNotFoundException {\n \tS_LOGGER.info(\"Retrieving downloads \");\n ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_58
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateUsers() {\n\t\tList<User> users = new ArrayList<User>();\n\t\tUser user = new User(\"phresco\", \"from phresco\");\n\t\tuser.setId(\"testUser\");\n\t\tusers.add(user);\n\t\tmongoOperation.save(USERS_COLLECTION_NAME, users);\n\t}", "class_method_signature": "AdminServiceTest...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_USERS)\n\tpublic Response updateUsers(List<User> users) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into AdminService.updateUsers(List<User> users)\");\n\t }\n\t\t\n\t\ttry ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_19
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdatePilots() {\n\t\tList<ProjectInfo> infos = new ArrayList<ProjectInfo>();\n\t\tProjectInfo info = new ProjectInfo();\n\t\tinfo.setId(\"testPilot\");\n\t\tinfo.setName(\"shoppingcart\");\n\t\tinfo.setVersion(\"2.0\");\n\t\tinfo.setGroupId(\"com.photon.phresco\");\n\t\tinfo.setAr...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_PILOTS)\n\tpublic Response updatePilots(List<ProjectInfo> pilots) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.updatePilots(List<ProjectInfo> pilots)\");\n...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_81
{ "fields": [ { "declarator": "project", "modifier": "private", "original_string": "private MavenProject project;", "type": "MavenProject", "var_name": "project" }, { "declarator": "localRepository", "modifier": "private", "original_string": "private Artifac...
{ "body": "@Test\n public void testWithParentProject()\n {\n MavenProject parentProject = mock( MavenProject.class );\n when( project.getParent() ).thenReturn( parentProject );\n List<String> modules = new ArrayList<String>( 1 );\n modules.add( artifactId );\n when( parentProj...
{ "fields": [ { "declarator": "localRepositoryPaths = new ArrayList<String>()", "modifier": "private final", "original_string": "private final List<String> localRepositoryPaths = new ArrayList<String>();", "type": "List<String>", "var_name": "localRepositoryPaths" } ], "file"...
{ "body": "public String findLocalRepository( String filePath )\n {\n String localRepositoryPathFound = null;\n for ( String localRepositoryPath : localRepositoryPaths )\n {\n if ( filePath.startsWith( localRepositoryPath ) )\n {\n localRepositoryPathFound ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_1
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindAppTypes() {\n\t\tList<ApplicationType> appTypeList = mongoOperation.getCollection(APPTYPES_COLLECTION_NAME , ApplicationType.class);\n\t\tassertNotNull(appTypeList);\n\t\t\n\t}", "class_method_signature": "ComponentServiceTest.testFindAppTypes()", "constructor": false, "...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Path (REST_API_APPTYPES)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findAppTypes(@QueryParam(REST_QUERY_CUSTOMERID) String customerId) throws PhrescoException {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.findAppTypes()\");\n\t }\n\t\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_39
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateWebService() {\n\t\tWebService webService = new WebService();\n\t\twebService.setId(\"testWS\");\n\t\twebService.setName(\"jersey\");\n\t\twebService.setDescription(\"For rest\");\n\t\tmongoOperation.save(WEBSERVICES_COLLECTION_NAME, webService);\n\t\tassertEquals(Response.st...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_WEBSERVICES + REST_API_PATH_ID)\n\tpublic Response updateWebService(@PathParam(REST_API_PATH_PARAM_ID) String id , WebService webService) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"En...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_78
{ "fields": [ { "declarator": "jsLintMojo", "modifier": "private", "original_string": "private JSLintMojo jsLintMojo;", "type": "JSLintMojo", "var_name": "jsLintMojo" } ], "file": "plugins/jslint-maven-plugin/src/test/java/org/codehaus/mojo/jslint/JSLintMojoTest.java", "ide...
{ "body": "@Test\n public void testExecutionWithFilesSkipped()\n throws URISyntaxException, IOException, MojoExecutionException\n {\n setUpMojoForExecution();\n\n File workFolder = jsLintMojo.getWorkFolder();\n workFolder.mkdirs();\n new File( workFolder, \"lastModified\" ).cr...
{ "fields": [ { "declarator": "sourceJsFolder", "modifier": "private", "original_string": "private File sourceJsFolder;", "type": "File", "var_name": "sourceJsFolder" }, { "declarator": "workFolder", "modifier": "private", "original_string": "private File wo...
{ "body": "@Override\n public File getWorkFolder()\n {\n return workFolder;\n }", "class_method_signature": "JSLintMojo.getWorkFolder()", "constructor": false, "full_signature": "@Override public File getWorkFolder()", "identifier": "getWorkFolder", "invocations": [], "modifiers": "@Overri...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_54
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/AdminServiceTest.java", "identifier": "AdminServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testUpdateVideo() {\n\t\tVideoInfo info = new VideoInfo(\"About phresco info\", \"intro about phresoc\", null, null, null, null);\n\t\tinfo.setId(\"testvideo\");\n\t\tmongoOperation.save(VIDEOS_COLLECTION_NAME, info);\n\t}", "class_method_signature": "AdminServiceTest.testUpdateVideo...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(AdminService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(AdminService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "declarato...
{ "body": "@PUT\n\t@Consumes (MediaType.APPLICATION_JSON)\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_VIDEOS + REST_API_PATH_ID)\n\tpublic Response updateVideo(@PathParam(REST_API_PATH_PARAM_ID) String id , VideoInfo videoInfo) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into A...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_42
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testFindTechnologies() {\n\t\tList<Technology> technologies = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class);\n\t\tassertNotNull(technologies);\n\t}", "class_method_signature": "ComponentServiceTest.testFindTechnologies()", "constructor": false, "fu...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Path (REST_API_TECHNOLOGIES)\n\t@Produces (MediaType.APPLICATION_JSON)\n\tpublic Response findTechnologies() {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.findTechnologies()\");\n\t }\n\t\t\n\t\ttry {\n\t\t\tList<Technology> techList = mongoOperation.g...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
4546424_15
{ "fields": [], "file": "service/phresco-service-web/src/test/java/com/photon/phresco/service/rest/api/ComponentServiceTest.java", "identifier": "ComponentServiceTest", "interfaces": "implements ServiceConstants", "superclass": "extends DbService" }
{ "body": "@Test\n\tpublic void testGetModule() {\n\t\tString id = \"testModule\";\n\t\tModuleGroup module = mongoOperation.findOne(MODULES_COLLECTION_NAME, new Query(Criteria.where(REST_API_PATH_PARAM_ID).is(id)), ModuleGroup.class);\n\t\tassertNotNull(module);\n\t}", "class_method_signature": "ComponentServiceTes...
{ "fields": [ { "declarator": "S_LOGGER= Logger.getLogger(ComponentService.class)", "modifier": "private static final", "original_string": "private static final Logger S_LOGGER= Logger.getLogger(ComponentService.class);", "type": "Logger", "var_name": "S_LOGGER" }, { "d...
{ "body": "@GET\n\t@Produces (MediaType.APPLICATION_JSON)\n\t@Path (REST_API_MODULES + REST_API_PATH_ID)\n\tpublic Response getModule(@PathParam(REST_API_PATH_PARAM_ID) String id) {\n\t if (isDebugEnabled) {\n\t S_LOGGER.debug(\"Entered into ComponentService.getModule(String id)\" + id);\n\t }\n\t\t\n\t\...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4546424, "size": 57831, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/photon-labs/phresco" }
1639726_1
{ "fields": [ { "declarator": "historyService = new EbmsMessageHistoryService()", "modifier": "", "original_string": "EbmsMessageHistoryService historyService = new EbmsMessageHistoryService();", "type": "EbmsMessageHistoryService", "var_name": "historyService" } ], "file": "...
{ "body": "@Test\n\tpublic void checkMessageStatus()throws Exception{\n\t\t\n\t\tMethod m = Class.forName(\"hk.hku.cecid.ebms.spa.service.EbmsMessageHistoryService\").\n\t\tgetDeclaredMethod(\"checkMessageStatus\", new Class[] {String.class});\n\t\tm.setAccessible(true);\n\t\t\n\t\tAssert.assertEquals(null, m.invoke(...
{ "fields": [ { "declarator": "MAX_NUMBER = 2147483647", "modifier": "public static", "original_string": "public static int MAX_NUMBER = 2147483647;", "type": "int", "var_name": "MAX_NUMBER" }, { "declarator": "NAMESPACE = \"http://service.ebms.edi.cecid.hku.hk/\"", ...
{ "body": "private String checkMessageStatus(String input)throws SOAPRequestException{\n\t\t if(input !=null &&\n\t\t\t\t !(input.equalsIgnoreCase(MessageClassifier.INTERNAL_STATUS_RECEIVED) ||\n\t\t\t\t input.equalsIgnoreCase(MessageClassifier.INTERNAL_STATUS_PENDING) ||\n\t\t\t\t input.equalsIgnoreCase(MessageC...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_0
{ "fields": [ { "declarator": "ep", "modifier": "protected", "original_string": "protected PayloadValidationExtensionPointHander ep;", "type": "PayloadValidationExtensionPointHander", "var_name": "ep" }, { "declarator": "mockValidatorComponent", "modifier": "prote...
{ "body": "@Test\n public void testRegisterExtensionPointWithContentType() throws Exception {\n \n Properties config = new Properties();\n config.setProperty(\"class\", \"org.jentrata.validation.extension.PayloadValidationExtensionPointHanderTest.MockValidator\");\n config.setProperty(\...
{ "fields": [], "file": "Plugins/jentrata.validation/src/main/java/org/jentrata/validation/extension/PayloadValidationExtensionPointHander.java", "identifier": "PayloadValidationExtensionPointHander", "interfaces": "", "methods": [ { "class_method_signature": "PayloadValidationExtensionPointHander.p...
{ "body": "private void register(String cpaId, Class<? extends Validator> handlerClass, Properties config) {\n String contentType = config.getProperty(\"contentType\");\n \n ValidatorComponent vc = getComponent();\n if(contentType == null) {\n vc.registerDefault(cpaId, handlerCl...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_11
{ "fields": [ { "declarator": "FIXTURE_LOADER = getClass().getClassLoader()", "modifier": "private", "original_string": "private ClassLoader FIXTURE_LOADER = getClass().getClassLoader();", "type": "ClassLoader", "var_name": "FIXTURE_LOADER" }, { "declarator": "mailSende...
{ "body": "@Test\n\tpublic void testCreatedMessage() throws Exception{\n\t\t SOAPMessage soapMessage = null;\n\t MimeMessage mimeMsg = null;\n\t MimeHeaders mimeHeaders = new MimeHeaders();\n\t \n\t InputStream contentStream = FIXTURE_LOADER.getResourceAsStream(\"mime_message_content.dat\...
{ "fields": [], "file": "Commons/src/main/java/hk/hku/cecid/piazza/commons/soap/SOAPMailSender.java", "identifier": "SOAPMailSender", "interfaces": "", "methods": [ { "class_method_signature": "SOAPMailSender.SOAPMailSender(String host)", "constructor": true, "full_signature": "public S...
{ "body": "public MimeMessage createMessage(String from, String to, String cc,\n String subject, SOAPMessage soapMessage) throws ConnectionException {\n return createMessage(from, to, cc, subject, soapMessage, createSession());\n }", "class_method_signature": "SOAPMailSender.createMessage(Strin...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_7
{ "fields": [], "file": "Plugins/CorvusEbMS/src/test/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAOTest.java", "identifier": "MessageDataSourceDAOTest", "interfaces": "", "superclass": "extends DAOTest<MessageDataSourceDAO>" }
{ "body": "@Test\n\tpublic void testFindNumberOFMessagesByHistory() throws DAOException {\t\t\n\t\t// Test Search Criteria one by one\n\t\tMessageDVO criteriaDVO;\n\t\tMessageDataSourceDAO dao = super.getTestingTarget();\n\t\tint result = -1;\n\t \n\t // Search by message_ID only\n\t\tcriteriaDVO = (Message...
{ "fields": [], "file": "Plugins/CorvusEbMS/src/main/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAO.java", "identifier": "MessageDataSourceDAO", "interfaces": "implements MessageDAO", "methods": [ { "class_method_signature": "MessageDataSourceDAO.createDVO()", "constructor": false, ...
{ "body": "public int findNumberOfMessagesByHistory(MessageDVO data)\n throws DAOException {\n try {\n \tList parameters = new ArrayList(); \t\n \tString sql = super.getFinder(\"find_number_of_message_by_history\");\n \t\n \tif (data.getMessageId() != null && !data...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_6
{ "fields": [], "file": "Plugins/CorvusEbMS/src/test/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAOTest.java", "identifier": "MessageDataSourceDAOTest", "interfaces": "", "superclass": "extends DAOTest<MessageDataSourceDAO>" }
{ "body": "@Test\n\tpublic void testFindMessagesByHistory() throws DAOException {\t\t\n\t\t// Test Search Criteria one by one\n\t\tMessageDVO criteriaDVO;\n\t\tMessageDataSourceDAO dao = super.getTestingTarget();\n\t\tList result = null;\n\t \n\t // Search by message_ID only\n\t\tcriteriaDVO = (MessageDVO)d...
{ "fields": [], "file": "Plugins/CorvusEbMS/src/main/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAO.java", "identifier": "MessageDataSourceDAO", "interfaces": "implements MessageDAO", "methods": [ { "class_method_signature": "MessageDataSourceDAO.createDVO()", "constructor": false, ...
{ "body": "public List findMessagesByHistory(MessageDVO data, int numberOfMessage,\n int offset) throws DAOException {\n \t \t\n \tList parameters = new ArrayList();\n \tboolean hasSearchCriteria = false;\n \tString sql = super.getFinder(\"find_message_by_history\");\n \t\n \tif (data.g...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_10
{ "fields": [ { "declarator": "FIXTURE_LOADER = getClass().getClassLoader()", "modifier": "private", "original_string": "private ClassLoader FIXTURE_LOADER = getClass().getClassLoader();", "type": "ClassLoader", "var_name": "FIXTURE_LOADER" }, { "declarator": "mailSende...
{ "body": "@Test\n\tpublic void testCreatedMessageLineMaxLimit(){\n SOAPMessage soapMessage = null;\n MimeMessage mimeMsg = null;\n MimeHeaders mimeHeaders = new MimeHeaders();\n \n InputStream contentStream = FIXTURE_LOADER.getResourceAsStream(\"mime_message_content.dat\");\t\t\n ...
{ "fields": [], "file": "Commons/src/main/java/hk/hku/cecid/piazza/commons/soap/SOAPMailSender.java", "identifier": "SOAPMailSender", "interfaces": "", "methods": [ { "class_method_signature": "SOAPMailSender.SOAPMailSender(String host)", "constructor": true, "full_signature": "public S...
{ "body": "public MimeMessage createMessage(String from, String to, String cc,\n String subject, SOAPMessage soapMessage) throws ConnectionException {\n return createMessage(from, to, cc, subject, soapMessage, createSession());\n }", "class_method_signature": "SOAPMailSender.createMessage(Strin...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_9
{ "fields": [ { "declarator": "instance", "modifier": "private", "original_string": "private MessageListenerJMSClient instance;", "type": "MessageListenerJMSClient", "var_name": "instance" }, { "declarator": "cf", "modifier": "private", "original_string": "p...
{ "body": "@Test\n\tpublic void testMessageReceived() throws SOAPException, JMSException {\n\t\t// instance receive message\n\t\t// now check the message sent to the queue by the instance\n\n\t\tEbxmlMessage requestMessage = spy(new EbxmlMessage());\n\t\t\n\t\tString messageBody = \"This is a test message\";\n\t\t\n\...
{ "fields": [ { "declarator": "connection", "modifier": "private", "original_string": "private Connection connection;", "type": "Connection", "var_name": "connection" }, { "declarator": "session", "modifier": "private", "original_string": "private Session se...
{ "body": "@Override\n\tpublic void messageReceived(EbxmlMessage requestMessage) {\n\t\ttry {\n\t\t\tinitialiseJMSConnection();\n\t\t\tsendMessageToQueue(requestMessage);\n\t\t\tcloseSession();\n\t\t} catch (JMSException e) {\n\t\t\tEbmsProcessor.core.log.error(e);\n\t\t\tconnection = null;\n\t\t}\n\t}", "class_met...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_5
{ "fields": [], "file": "Plugins/CorvusEbMS/src/test/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAOTest.java", "identifier": "MessageDataSourceDAOTest", "interfaces": "", "superclass": "extends DAOTest<MessageDataSourceDAO>" }
{ "body": "@Test\n\tpublic void testFindMessageByCpa() throws DAOException {\t\t\n MessageDVO dvo;\n List list;\n MessageDVO result;\n\n\t\tMessageDataSourceDAO dao = super.getTestingTarget();\n \n // test cpa_id, service & action and order (3,4,2,5,1)\n\t\tdvo = (MessageDVO)dao.cre...
{ "fields": [], "file": "Plugins/CorvusEbMS/src/main/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAO.java", "identifier": "MessageDataSourceDAO", "interfaces": "implements MessageDAO", "methods": [ { "class_method_signature": "MessageDataSourceDAO.createDVO()", "constructor": false, ...
{ "body": "public List findMessageByCpa(MessageDVO data, int numberOfMessage)\n throws DAOException {\n \tList parameters = new ArrayList();\n\n \tString sql = super.getFinder(\"find_message_by_cpa\");\n \tparameters.add(data.getCpaId());\n \tparameters.add(data.getService());\n \tparameters...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_4
{ "fields": [], "file": "Plugins/CorvusEbMS/src/test/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAOTest.java", "identifier": "MessageDataSourceDAOTest", "interfaces": "", "superclass": "extends DAOTest<MessageDataSourceDAO>" }
{ "body": "@Test\n\tpublic void testFindInboxReadyMaxSequenceNoByCpa() throws DAOException {\t\t\n\t\tMessageDataSourceDAO dao = super.getTestingTarget();\n MessageDVO dvo = (MessageDVO)dao.createDVO();\n dvo.setService(\"cecid:cecid\");\n dvo.setAction(\"order\");\n dvo.setConvId(\"convId...
{ "fields": [], "file": "Plugins/CorvusEbMS/src/main/java/hk/hku/cecid/ebms/spa/dao/MessageDataSourceDAO.java", "identifier": "MessageDataSourceDAO", "interfaces": "implements MessageDAO", "methods": [ { "class_method_signature": "MessageDataSourceDAO.createDVO()", "constructor": false, ...
{ "body": "public int findInboxReadyMaxSequenceNoByCpa(MessageDVO data)\n \tthrows DAOException {\n \tList l = super.find(\n \t\t\t\"find_inbox_ready_max_sequence_no_by_cpa\",\n \t\t\tnew Object[] { data.getCpaId(),\n\t data.getService(), data.getAction(), data.getConvId() });\n \tIterat...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_8
{ "fields": [], "file": "Plugins/CorvusEbMS/src/test/java/hk/hku/cecid/ebms/spa/dao/InboxDataSourceDAOTest.java", "identifier": "InboxDataSourceDAOTest", "interfaces": "", "superclass": "extends DAOTest<InboxDataSourceDAO>" }
{ "body": "@Test\n\tpublic void testFindInboxNextOrderNo() throws DAOException {\t\t\n\t\tInboxDataSourceDAO dao = super.getTestingTarget();\n\n\t\tlong orderNo;\n\t\torderNo = dao.findInboxNextOrderNo();\n\t\tAssert.assertEquals(1, orderNo);\t\t\n\n\t\tInboxDVO dvo = (InboxDVO)dao.createDVO();\n\t\tdvo.setMessageId(...
{ "fields": [], "file": "Plugins/CorvusEbMS/src/main/java/hk/hku/cecid/ebms/spa/dao/InboxDataSourceDAO.java", "identifier": "InboxDataSourceDAO", "interfaces": "implements InboxDAO", "methods": [ { "class_method_signature": "InboxDataSourceDAO.createDVO()", "constructor": false, "full_si...
{ "body": "public long findInboxNextOrderNo() throws DAOException {\n \ttry {\n \t\tList result = super.executeRawQuery(super.getFinder(\"find_inbox_next_order_no\"),\n \t\t\t\tnew Object[] {});\n \tList resultEntry = (List) result.get(0);\n \treturn ((Number) resultEntry.get(0)).longValue();\n...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_3
{ "fields": [ { "declarator": "mh = null", "modifier": "", "original_string": "EbmsMessageHandler mh = null;", "type": "EbmsMessageHandler", "var_name": "mh" }, { "declarator": "msh = null", "modifier": "", "original_string": "MessageServiceHandler msh = nul...
{ "body": "@Test\n public void testEbmsMessageHandlerValidMessage() throws Exception {\n Message msg = buildMessage(\"TestMessage\");\n \n doAnswer(new Answer<Object>() {\n public Object answer(InvocationOnMock invocation) throws Throwable {\n Object arg = invocation....
{ "fields": [], "file": "Plugins/CorvusEbMS/src/main/java/hk/hku/cecid/ebms/spa/handler/jms/EbmsMessageHandler.java", "identifier": "EbmsMessageHandler", "interfaces": "implements MessageHandler", "methods": [ { "class_method_signature": "EbmsMessageHandler.onMessage(Message message)", "constr...
{ "body": "public void onMessage(Message message) {\n \n log().debug(\"got message:\" + message.getSource().toString());\n try {\n EbmsRequest ebmsRequest = buildEbmsRequest(message);\n getMSH().processOutboundMessage(ebmsRequest, null);\n } catch (Exception e) {\n ...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
1639726_2
{ "fields": [ { "declarator": "historyService = new EbmsMessageHistoryService()", "modifier": "", "original_string": "EbmsMessageHistoryService historyService = new EbmsMessageHistoryService();", "type": "EbmsMessageHistoryService", "var_name": "historyService" } ], "file": "...
{ "body": "@Test\n\tpublic void checkMessageBox()throws Exception{\n\t\tMethod m = Class.forName(\"hk.hku.cecid.ebms.spa.service.EbmsMessageHistoryService\").\n\t\tgetDeclaredMethod(\"checkMessageBox\", new Class[] {String.class});\n\t\tm.setAccessible(true);\n\t\t\n\t\tAssert.assertEquals(null, m.invoke(historyServi...
{ "fields": [ { "declarator": "MAX_NUMBER = 2147483647", "modifier": "public static", "original_string": "public static int MAX_NUMBER = 2147483647;", "type": "int", "var_name": "MAX_NUMBER" }, { "declarator": "NAMESPACE = \"http://service.ebms.edi.cecid.hku.hk/\"", ...
{ "body": "private String checkMessageBox(String input)throws SOAPRequestException{\n\t\t if(input !=null &&\n\t\t\t\t !(input.equalsIgnoreCase(MessageClassifier.MESSAGE_BOX_INBOX) ||\n\t\t\t\t input.equalsIgnoreCase(MessageClassifier.MESSAGE_BOX_OUTBOX))){\n\t\t\t String errMsg = \"Wrong Message Box entered, you...
{ "created": null, "fork": null, "fork_count": 60, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1639726, "size": 1986, "stargazer_count": 20, "stars": null, "updates": null, "url": "https://github.com/jentrata/jentrata-msh" }
164305542_34
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleBoolean() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleBoolean.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleBoolean\");\n String valExpected =\n \"{\\\"title\\\":\\...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_22
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComplexExtEnum() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexExtEnum\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestComplexExtEnum.getDescriptor().getFile().toProto();\n ProtoDomain protoDomai...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_59
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void testComplexMap() throws IOException {\n JsonNode node = getJsonNode(\"testComplexMap\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestComplexEnum.getDescriptor()),\n new AvroToProtoSchema(node)...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_0
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEmpty() throws Exception {\n ProtoDomain domain = ProtoDomain.empty();\n Assert.assertEquals(0, domain.getFileNames().size());\n }", "class_method_signature": "ProtoDomainTest.testEmpty()", "constructor": false, "full_signature": "@Test public void testEmpty()", "ide...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public static ProtoDomain empty() {\n return new ProtoDomain();\n }", "class_method_signature": "ProtoDomain.empty()", "constructor": false, "full_signature": "public static ProtoDomain empty()", "identifier": "empty", "invocations": [], "modifiers": "public static", "parameters": "()", ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_18
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleBoolean() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testSingleBoolean\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestSingleBoolean.getDescriptor().getFile().toProto();\n ProtoDomain protoDomain =...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_38
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleString() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleString.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleString\");\n String valExpected =\n \"{\\\"title\\\":\\\"i...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_55
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleString() throws IOException {\n JsonNode node = getJsonNode(\"testSingleString\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestSingleString.getDescriptor()),\n new AvroToProtoSchema(node).get()...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_43
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleEnumNoField() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestExtEnum.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestExtEnum\");\n\n String valExpected =\n \"{\\\"title\\\":\\\"io.a...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_14
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleInt() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testSingleInt\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestSingleInt.getDescriptor().getFile().toProto();\n ProtoDomain protoDomain = ProtoDomain...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_15
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleLong() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testSingleLong\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestSingleLong.getDescriptor().getFile().toProto();\n ProtoDomain protoDomain = ProtoDom...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_42
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleTopEnum() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestComplexTopEnum.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestComplexTopEnum\");\n\n String valExpected =\n \"{\\\"title\\\...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_54
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleBytes() throws IOException {\n JsonNode node = getJsonNode(\"testSingleBytes\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestSingleBytes.getDescriptor()),\n new AvroToProtoSchema(node).get(),\n...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_39
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleUInt64() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleUInt64.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleUInt64\");\n String valExpected =\n \"{\\\"title\\\":\\\"i...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_19
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleBytes() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testSingleBytes\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestSingleBytes.getDescriptor().getFile().toProto();\n ProtoDomain protoDomain = Proto...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_1
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getFileOptionByName() throws IOException {\n ProtoDomain domain = TestSets.baseAddFileOption();\n Descriptors.FieldDescriptor fd =\n domain.getOptions().getFileOptionByName(\"test.v1.file_option_1\");\n Assert.assertEquals(\"test.v1.file_option_1\", fd.getFullName());\n...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public OptionsCatalog getOptions() {\n return optionsCatalog;\n }", "class_method_signature": "ProtoDomain.getOptions()", "constructor": false, "full_signature": "public OptionsCatalog getOptions()", "identifier": "getOptions", "invocations": [], "modifiers": "public", "parameters": "()",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_58
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDebeziumExample1() throws IOException {\n JsonNode node = getJsonNode(\"testDebeziumExample1\");\n ProtoDomain descriptor = new AvroToProtoSchema(node).get();\n System.out.println(descriptor);\n }", "class_method_signature": "AvroToProtoSchemaTest.testDebeziumExample1()...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_23
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComplexTopEnum() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexTopEnum\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestComplexTopEnum.getDescriptor().getFile().toProto();\n ProtoDomain protoDomai...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_35
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleFloat() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleFloat.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleFloat\");\n String valExpected =\n \"{\\\"title\\\":\\\"io.a...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_28
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testJumpMessage() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexJumpMessage\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestComplexJsonschema.Jump.getDescriptor().getFile().toProto();\n ProtoDomain p...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_53
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleDouble() throws IOException {\n JsonNode node = getJsonNode(\"testSingleDouble\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestSingleDouble.getDescriptor()),\n new AvroToProtoSchema(node).get()...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_45
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMultipleRepeated() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestMultipleRepeated.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestMultipleRepeated\");\n\n String valExpected =\n \"{\\\"d...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_12
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoLanguageFileWriterTest.java", "identifier": "ProtoLanguageFileWriterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extensionTest() throws Exception {\n DescriptorProtos.FileDescriptorProto.Builder fileDescriptorProtoBuilder =\n DescriptorProtos.FileDescriptorProto.newBuilder()\n .setName(\"test\")\n .setSyntax(\"proto3\")\n .addDependency(\"google/protobuf...
{ "fields": [ { "declarator": "fd", "modifier": "private", "original_string": "private Descriptors.FileDescriptor fd;", "type": "Descriptors.FileDescriptor", "var_name": "fd" }, { "declarator": "domain", "modifier": "private", "original_string": "private Pro...
{ "body": "public static void write(\n Descriptors.FileDescriptor fd, ProtoDomain PContainer, OutputStream outputStream) {\n PrintWriter printWriter = new PrintWriter(outputStream);\n new ProtoLanguageFileWriter(fd, PContainer).write(printWriter);\n printWriter.flush();\n }", "class_method_signature"...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_32
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleInt() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleInt.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleInt\");\n String valExpected =\n \"{\\\"title\\\":\\\"io.anemos....
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_24
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComplexArrayInt() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexArray\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestComplexArrayInt.getDescriptor().getFile().toProto();\n ProtoDomain protoDomai...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_6
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getServiceOptionByName() throws IOException {\n ProtoDomain domain = TestSets.baseAddFileOption();\n Descriptors.FieldDescriptor fd =\n domain.getOptions().getServiceOptionByName(\"test.v1.service_option_1\");\n Assert.assertEquals(\"test.v1.service_option_1\", fd.getFu...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public OptionsCatalog getOptions() {\n return optionsCatalog;\n }", "class_method_signature": "ProtoDomain.getOptions()", "constructor": false, "full_signature": "public OptionsCatalog getOptions()", "identifier": "getOptions", "invocations": [], "modifiers": "public", "parameters": "()",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_49
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleInt() throws IOException {\n JsonNode node = getJsonNode(\"testSingleInt\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestSingleInt.getDescriptor()),\n new AvroToProtoSchema(node).get(),\n ...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_48
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFullTypes() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestComplexJsonschema.Jump.getDescriptor()),\n \"acme.jumpgate.v1alpha1.Jump\");\n String valExpected =\n \"{\\\"definitions\\\":{\\\"acme.ju...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_7
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getMethodOptionByName() throws IOException {\n ProtoDomain domain = TestSets.baseAddFileOption();\n Descriptors.FieldDescriptor fd =\n domain.getOptions().getMethodOptionByName(\"test.v1.method_option_1\");\n Assert.assertEquals(\"test.v1.method_option_1\", fd.getFullNa...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public OptionsCatalog getOptions() {\n return optionsCatalog;\n }", "class_method_signature": "ProtoDomain.getOptions()", "constructor": false, "full_signature": "public OptionsCatalog getOptions()", "identifier": "getOptions", "invocations": [], "modifiers": "public", "parameters": "()",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_25
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComplexWrapperValues() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexWrapperValues\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestWrapperTypes.getDescriptor().getFile().toProto();\n ProtoDomain ...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_33
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleUInt() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleUInt.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleUInt\");\n String valExpected =\n \"{\\\"title\\\":\\\"io.anem...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_13
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleString() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testSingleString\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestSingleString.getDescriptor().getFile().toProto();\n ProtoDomain protoDomain = Pr...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_44
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleNested() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleNested.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleNested\");\n\n String valExpected =\n \"{\\\"definitions\\...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_52
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleFloat() throws IOException {\n JsonNode node = getJsonNode(\"testSingleFloat\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestSingleFloat.getDescriptor()),\n new AvroToProtoSchema(node).get(),\n...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_29
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRepeatedMessage() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testRepeatedMessage\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestMultipleRepeated.getDescriptor().getFile().toProto();\n ProtoDomain protoD...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_10
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void findEnumDescriptorsByOption() throws IOException {\n ProtoDomain domain = TestSets.baseMultipleOptions();\n Collection<Descriptors.EnumDescriptor> options =\n domain.findEnumDescriptorsByOption(\"test.v1.enum_option\");\n // TODO Add more sets with enums\n Assert.ass...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public Collection<Descriptors.EnumDescriptor> findEnumDescriptorsByOption(String optionName) {\n Descriptors.FieldDescriptor fieldDescriptor = optionsCatalog.getEnumOptionByName(optionName);\n return enumMap.values().stream()\n .filter(\n descriptor -> {\n DescriptorPro...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_47
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWrapperTypes() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestWrapperTypes.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestWrapperTypes\");\n String valExpected =\n \"{\\\"title\\\":\\\"i...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_51
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/AvroToProtoSchemaTest.java", "identifier": "AvroToProtoSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleLong() throws IOException {\n JsonNode node = getJsonNode(\"testSingleLong\");\n ValidationResults result = new ValidationResults();\n new ProtoDiff(\n getProtoDescriptor(TestSingleLong.getDescriptor()),\n new AvroToProtoSchema(node).get(),\n ...
{ "fields": [ { "declarator": "avroPrimitives = new ArrayList<>()", "modifier": "private static", "original_string": "private static List<String> avroPrimitives = new ArrayList<>();", "type": "List<String>", "var_name": "avroPrimitives" }, { "declarator": "avroReserved ...
{ "body": "public ProtoDomain get() {\n rootNamespace = root.path(\"namespace\").asText();\n\n protoMessageOf(root);\n\n Map<String, FileDescriptorProto.Builder> fileMap = new HashMap<>();\n\n messageMap.forEach(\n (fullName, message) -> {\n String packageName =\n fullName.sub...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_8
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void findFileDescriptorsByOption() throws IOException {\n ProtoDomain domain = TestSets.baseMultipleOptions();\n Collection<Descriptors.FileDescriptor> options =\n domain.findFileDescriptorsByOption(\"test.v1.file_option\");\n Assert.assertEquals(1, options.size());\n }", ...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public Collection<Descriptors.FileDescriptor> findFileDescriptorsByOption(String optionName) {\n Descriptors.FieldDescriptor fieldDescriptor = optionsCatalog.getFileOptionByName(optionName);\n return fileDescriptorMap.values().stream()\n .filter(\n descriptor -> {\n Des...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_4
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getEnumOptionByName() throws IOException {\n ProtoDomain domain = TestSets.baseAddFileOption();\n Descriptors.FieldDescriptor fd =\n domain.getOptions().getEnumOptionByName(\"test.v1.enum_option_1\");\n Assert.assertEquals(\"test.v1.enum_option_1\", fd.getFullName());\n...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public OptionsCatalog getOptions() {\n return optionsCatalog;\n }", "class_method_signature": "ProtoDomain.getOptions()", "constructor": false, "full_signature": "public OptionsCatalog getOptions()", "identifier": "getOptions", "invocations": [], "modifiers": "public", "parameters": "()",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_26
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComplexMap() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexMap\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestComplexMap.getDescriptor().getFile().toProto();\n ProtoDomain protoDomain = ProtoDom...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_30
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageWithOptions() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexWithOptions\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestComplexWithOptions.getDescriptor().getFile().toProto();\n final Desc...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_31
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToJsonSchemaTest.java", "identifier": "ProtoToJsonSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleLong() {\n final String jsonSingletype =\n ProtoToJsonSchema.convert(\n ProtoDomain.buildFrom(TestSingleLong.getDescriptor()),\n \"io.anemos.metastore.core.proto.TestSingleLong\");\n String valExpected =\n \"{\\\"title\\\":\\\"io.anem...
{ "fields": [ { "declarator": "enumMaps", "modifier": "private", "original_string": "private Map<String, ObjectNode> enumMaps;", "type": "Map<String, ObjectNode>", "var_name": "enumMaps" }, { "declarator": "nestedNodes", "modifier": "private", "original_stri...
{ "body": "public static String convert(ProtoDomain pContainer, String messageName)\n throws StatusRuntimeException {\n\n Descriptors.Descriptor descriptor = pContainer.getDescriptorByName(messageName);\n if (descriptor == null)\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescriptio...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_27
{ "fields": [], "file": "core/src/test/java/io/anemos/metastore/core/proto/ProtoToAvroSchemaTest.java", "identifier": "ProtoToAvroSchemaTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testComplexNestedMessage() throws IOException, StatusRuntimeException {\n String node = getJsonNode(\"testComplexNestedMessage\");\n\n final DescriptorProtos.FileDescriptorProto fileDescriptorProto =\n TestSingleNested.getDescriptor().getFile().toProto();\n ProtoDomain ...
{ "fields": [ { "declarator": "descriptor", "modifier": "", "original_string": "Descriptors.Descriptor descriptor;", "type": "Descriptors.Descriptor", "var_name": "descriptor" } ], "file": "core/src/main/java/io/anemos/metastore/core/proto/ProtoToAvroSchema.java", "identifi...
{ "body": "public static String convert(ProtoDomain pd, String messageName)\n throws IOException, StatusRuntimeException {\n Descriptors.Descriptor descriptor = pd.getDescriptorByName(messageName);\n if (descriptor == null) {\n throw Status.fromCode(Status.Code.NOT_FOUND)\n .withDescription(S...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_5
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getEnumValueOptionByName() throws IOException {\n ProtoDomain domain = TestSets.baseAddFileOption();\n Descriptors.FieldDescriptor fd =\n domain.getOptions().getEnumValueOptionByName(\"test.v1.enum_value_option_1\");\n Assert.assertEquals(\"test.v1.enum_value_option_1\"...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public OptionsCatalog getOptions() {\n return optionsCatalog;\n }", "class_method_signature": "ProtoDomain.getOptions()", "constructor": false, "full_signature": "public OptionsCatalog getOptions()", "identifier": "getOptions", "invocations": [], "modifiers": "public", "parameters": "()",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }
164305542_9
{ "fields": [], "file": "putils/src/test/java/io/anemos/metastore/putils/ProtoDomainTest.java", "identifier": "ProtoDomainTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void findDescriptorsByOption() throws IOException {\n ProtoDomain domain = TestSets.baseMultipleOptions();\n Collection<Descriptors.Descriptor> options =\n domain.findDescriptorsByOption(\"test.v1.message_option\");\n Assert.assertEquals(1, options.size());\n }", "class_m...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "public static final", "original_string": "public static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "fileDescriptorSet", "modifier": "priv...
{ "body": "public Collection<Descriptors.Descriptor> findDescriptorsByOption(String optionName) {\n Descriptors.FieldDescriptor fieldDescriptor = optionsCatalog.getMessageOptionByName(optionName);\n return descriptorMap.values().stream()\n .filter(\n descriptor -> {\n DescriptorPr...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 164305542, "size": 729, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/anemos-io/metastore" }