id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
27217073_58
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void cellCtlメソッドでnullを指定した場合にNullPointerExceptionをスローする() {\n EntitySetAccessor cellCtl = EsModel.cellCtl(null, \"TypeStringForTest\");\n assertNotNull(cellCtl);\n }", "class_method_signature": "EsModelTest.) {", "constructor": f...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EntitySetAccessor cellCtl(final Cell cell, final String type) {\n return cell(cell, type);\n }", "class_method_signature": "EsModel.cellCtl(final Cell cell, final String type)", "constructor": false, "full_signature": "public static EntitySetAccessor cellCtl(final Cell cell, f...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_78
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DcCoreException.class)\n public void ReadDeleteOnlyモード時にPROPPATCHメソッドが実行された場合は503が返却されること() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n Lis...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_9
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test\n public void ローテートされたADS書き込み失敗ログが物理削除モードで削除できること() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log.%d\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File file = new File(\"./\", fileName);\n RollingAdsWriteFailureLog rolling...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public synchronized void deleteRotatedLog() throws AdsWriteFailureLogException {\n closeRotatedFile();\n super.deleteRotatedLog(rotatedAdsWriteFailureLog);\n }", "class_method_signature": "RollingAdsWriteFailureLog.deleteRotatedLog()", "constructor": false, "full_signature": "public ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_81
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモードではない状態でPUTメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(false);\n List<PathSegment> pathSeg...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_39
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/BoxCacheTest.java", "identifier": "BoxCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void Memcachedへの接続に失敗した場合NULLを返すこと() throws Exception {\n String boxName = \"boxCacheTestBox\";\n\n // MemcachedClientのモックを作成(getしたときにMemchachedClientExceptionをthrowするモック)\n Constructor<MemcachedClient> c = MemcachedClient.class.g...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(BoxCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(BoxCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClient = MemcachedClient.ge...
{ "body": "public static Box get(String boxName, Cell cell) {\n if (!DcCoreConfig.isBoxCacheEnabled()) {\n return null;\n }\n\n @SuppressWarnings(\"rawtypes\")\n HashMap obj = null;\n try {\n obj = getMcdClient().get(cacheKey(boxName, cell), HashMap.class);\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_42
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void getメソッドでMemcachedからキャッシュを取得できた場合オブジェクトを返すこと() throws Exception {\n String nodeId = \"nodeId\";\n Map<String, Object> data = new HashMap<String, Object>();\n data.put(\"testKey\", \"testValue\");\n\n // MemcachedClientの...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "public static Map<String, Object> get(String nodeId) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return null;\n }\n try {\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> cache = getMcdClient().get(cacheKey(nodeId), Map.class);\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_15
{ "fields": [ { "declarator": "UNIT_USER_NAME = \"index_for_test\"", "modifier": "private static final", "original_string": "private static final String UNIT_USER_NAME = \"index_for_test\";", "type": "String", "var_name": "UNIT_USER_NAME" }, { "declarator": "UNIT_PREFIX...
{ "body": "@Test\n public void update処理にてAdsが例外を上げた場合でも正常に終了すること() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID);\n DavNode davNode = creat...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DavNodeAccessor.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DavNodeAccessor.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/com/fujit...
{ "body": "public DcIndexResponse update(String id, DavNode davNode) {\n return this.update(id, davNode, -1);\n }", "class_method_signature": "DavNodeAccessor.update(String id, DavNode davNode)", "constructor": false, "full_signature": "public DcIndexResponse update(String id, DavNode davNode)", "id...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_54
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void idxUserメソッドでオブジェクトが正常に取得できる() {\n EsIndex index = EsModel.idxUser(\"UriStringForTest\");\n assertNotNull(index);\n assertTrue(index.getName().endsWith(\"UriStringForTest\"));\n assertEquals(EsIndex.CATEGORY_USR, index.getCategory());\n }", "class_meth...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EsIndex idxUser(String userUri) {\n return esClient.idxUser(DcCoreConfig.getEsUnitPrefix(),\n userUri,\n Integer.valueOf(DcCoreConfig.getESRetryTimes()),\n Integer.valueOf(DcCoreConfig.getESRetryInterval()));\n }", "class_method_signatu...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_49
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isChangedメソッドでキャッシュ無効化時間が登録済みのキャッシュと同じ場合falseを返すこと() throws Exception {\n String nodeId = \"node_VVVVVVVVV1\";\n Map<String, Object> schemaToCache = new HashMap<String, Object>();\n schemaToCache.put(\"SchemaCacheTestKey001\", \"testValue\");\n Long now = ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_32
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void search処理でクエリにサイズを指定しなかった場合ドキュメントが全件取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n\n Map<String, String> data = new H...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcSearchResponse search(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_65
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/webcontainer/listener/RepairServiceLauncherTest.java", "identifier": "RepairServiceLauncherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ExecutorServiceの終了時に実行中のタスクが強制終了されないことを確認() throws InterruptedException {\n RepairServiceLauncher launcher = new RepairServiceLauncher();\n\n // 既存のタスクを中止。\n BlockingQueue<Runnable> queue = launcher.executor.getQueue();\n assertThat(queue.size(), is(1));\n...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(RepairServiceLauncher.class)", "modifier": "private static", "original_string": "private static Logger logger = LoggerFactory.getLogger(RepairServiceLauncher.class);", "type": "Logger", "var_name": "logger" }, { ...
{ "body": "public void shutdown() {\n if (null != executor && !executor.isTerminated()) {\n logger.info(\"Shutting down RepairAds scheduler.\");\n executor.shutdown();\n try {\n long awaitShutdownInSec = DcCoreConfig.getAdsRepairAwaitShutdownInSec();\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_73
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時にREPORTメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pathSegmen...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_2
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test\n public void ローテートされたADS書き込み失敗ログのファイル名書式が正しい場合に作成時刻が取得できること() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log.%d\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File file = new File(\"./\", fileName);\n try {\n if ...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public static long getCreatedTimeFromFileName(String pcsVersion, File rotatedAdsWriteFailureLog)\n throws AdsWriteFailureLogException {\n final String messageFormat = \"Illegal Rotated adsWriteFailureLog file name format. [%s]\";\n\n if (!rotatedAdsWriteFailureLog.isFile()) {\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_24
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void create処理が正常に終了する() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n DcIndexResponse response = dsa.create(\"id00001\", new Has...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "@SuppressWarnings(\"rawtypes\")\n public DcIndexResponse create(final Map data) {\n String id = DcUUID.randomUUID();\n return this.create(id, data);\n }", "class_method_signature": "DataSourceAccessor.create(final Map data)", "constructor": false, "full_signature": "@SuppressWarni...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_53
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void idxUserメソッドでnullを指定した場合にオブジェクトが正常に取得できる() {\n EsIndex index = EsModel.idxUser(null);\n assertNotNull(index);\n assertTrue(index.getName().endsWith(\"anon\"));\n assertEquals(EsIndex.CATEGORY_USR, index.getCategory());\n }", "class_method_signature": "...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EsIndex idxUser(String userUri) {\n return esClient.idxUser(DcCoreConfig.getEsUnitPrefix(),\n userUri,\n Integer.valueOf(DcCoreConfig.getESRetryTimes()),\n Integer.valueOf(DcCoreConfig.getESRetryInterval()));\n }", "class_method_signatu...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_12
{ "fields": [ { "declarator": "UNIT_USER_NAME = \"index_for_test\"", "modifier": "private static final", "original_string": "private static final String UNIT_USER_NAME = \"index_for_test\";", "type": "String", "var_name": "UNIT_USER_NAME" }, { "declarator": "UNIT_PREFIX...
{ "body": "@Test\n public void create処理が正常に終了する() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID);\n DavNode davNode = createTestDavNode();\n...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DavNodeAccessor.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DavNodeAccessor.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/com/fujit...
{ "body": "public DcIndexResponse create(final DavNode davNode) {\n String id = DcUUID.randomUUID();\n return this.create(id, davNode);\n }", "class_method_signature": "DavNodeAccessor.create(final DavNode davNode)", "constructor": false, "full_signature": "public DcIndexResponse create(final D...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_45
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void UserDataSchemaのキャッシュを無効にしている場合isChangedメソッドがfalseを返却すること() throws Exception {\n String nodeId = \"node_VVVVVVVVV1\";\n Map<String, Object> schemaToCache = new HashMap<String, Object>();\n schemaToCache.put(\"SchemaCacheTestKey001\", \"testValue\");\n Long ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_86
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時に__authに対するPOSTメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pa...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_69
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時にDELETEメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pathSegmen...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_28
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void search処理でクエリにサイズを指定した場合指定したサイズのドキュメントが取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new Has...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcSearchResponse search(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_29
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void search処理でクエリに実データ数以上のサイズを指定した場合実データと同じドキュメント数が取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\",...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcSearchResponse search(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_87
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時に__authzに対するPOSTメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> p...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_68
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時にGETメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pathSegment =...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_44
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void isChangedメソッドでMemcachedからキャッシュを取得できた場合falseを返すこと() throws Exception {\n String nodeId = \"nodeId\";\n Map<String, Object> data = new HashMap<String, Object>();\n data.put(\"testKey\", \"testValue\");\n\n // MemcachedCl...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_13
{ "fields": [ { "declarator": "UNIT_USER_NAME = \"index_for_test\"", "modifier": "private static final", "original_string": "private static final String UNIT_USER_NAME = \"index_for_test\";", "type": "String", "var_name": "UNIT_USER_NAME" }, { "declarator": "UNIT_PREFIX...
{ "body": "@Test\n public void create処理にてAdsが例外を上げた場合でも正常に終了すること() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID);\n DavNode davNode = creat...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DavNodeAccessor.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DavNodeAccessor.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/com/fujit...
{ "body": "public DcIndexResponse create(final DavNode davNode) {\n String id = DcUUID.randomUUID();\n return this.create(id, davNode);\n }", "class_method_signature": "DavNodeAccessor.create(final DavNode davNode)", "constructor": false, "full_signature": "public DcIndexResponse create(final D...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_52
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void idxAdminメソッドでオブジェクトが正常に取得できる() {\n EsIndex index = EsModel.idxAdmin();\n assertNotNull(index);\n assertEquals(EsIndex.CATEGORY_AD, index.getCategory());\n }", "class_method_signature": "EsModelTest.idxAdmin", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EsIndex idxAdmin() {\n return esClient.idxAdmin(DcCoreConfig.getEsUnitPrefix(),\n Integer.valueOf(DcCoreConfig.getESRetryTimes()),\n Integer.valueOf(DcCoreConfig.getESRetryInterval()));\n }", "class_method_signature": "EsModel.idxAdmin()", "construc...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_25
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void ID省略でcreate処理が正常に終了する() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n DcIndexResponse response = dsa.create(new HashMap<Obj...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "@SuppressWarnings(\"rawtypes\")\n public DcIndexResponse create(final Map data) {\n String id = DcUUID.randomUUID();\n return this.create(id, data);\n }", "class_method_signature": "DataSourceAccessor.create(final Map data)", "constructor": false, "full_signature": "@SuppressWarni...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_3
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test(expected = AdsWriteFailureLogException.class)\n public void ローテートされたADS書き込み失敗ログのファイル名書式が正しいがファイルが存在しない場合にエラーとなること() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log.%d\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File file = new Fi...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public static long getCreatedTimeFromFileName(String pcsVersion, File rotatedAdsWriteFailureLog)\n throws AdsWriteFailureLogException {\n final String messageFormat = \"Illegal Rotated adsWriteFailureLog file name format. [%s]\";\n\n if (!rotatedAdsWriteFailureLog.isFile()) {\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_72
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時にHEADメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pathSegment ...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_64
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/webcontainer/listener/RepairServiceLauncherTest.java", "identifier": "RepairServiceLauncherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void ExecutorServiceの起動_終了テスト() {\n RepairServiceLauncher launcher = new RepairServiceLauncher();\n assertThat(launcher.executor.getPoolSize(), is(1));\n assertThat(launcher.executor.getTaskCount(), is(1L));\n\n launcher.shutdown();\n assert...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(RepairServiceLauncher.class)", "modifier": "private static", "original_string": "private static Logger logger = LoggerFactory.getLogger(RepairServiceLauncher.class);", "type": "Logger", "var_name": "logger" }, { ...
{ "body": "public void shutdown() {\n if (null != executor && !executor.isTerminated()) {\n logger.info(\"Shutting down RepairAds scheduler.\");\n executor.shutdown();\n try {\n long awaitShutdownInSec = DcCoreConfig.getAdsRepairAwaitShutdownInSec();\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_33
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void count処理でクエリにnullを指定した場合全件数取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new HashMap<Object,...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public long count(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n requestQuery....
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_48
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isChangedメソッドでキャッシュ無効化時間が登録済みのキャッシュと異なる場合trueを返すこと() throws Exception {\n String nodeId = \"node_VVVVVVVVV1\";\n Map<String, Object> schemaToCache = new HashMap<String, Object>();\n schemaToCache.put(\"SchemaCacheTestKey001\", \"testValue\");\n Long now = ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_26
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void update処理が正常に終了する() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n DcIndexResponse response = dsa.update(\"id00001\", new Has...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "@SuppressWarnings({\"rawtypes\" })\n public DcIndexResponse update(final String id, final Map data, final long version) {\n try {\n return this.type.update(id, data, version);\n } catch (EsClientException.EsSchemaMismatchException e) {\n throw DcCoreException.OData.SC...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_0
{ "fields": [], "file": "common/src/test/java/com/fujitsu/dc/common/auth/token/RoleTest.java", "identifier": "RoleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRoleConstruct() throws MalformedURLException {\n String baseUrl = \"https://localhost:8080/dc1-core/testcell1/\";\n String roleUrl = \"__role/__/role1\";\n URL url = new URL(baseUrl + roleUrl);\n Role role = new Role(url);\n assertNotNull(role);...
{ "fields": [ { "declarator": "EDM_TYPE_NAME = \"Role\"", "modifier": "public static final", "original_string": "public static final String EDM_TYPE_NAME = \"Role\";", "type": "String", "var_name": "EDM_TYPE_NAME" }, { "declarator": "name", "modifier": "private", ...
{ "body": "public String getBaseUrl() {\n return baseUrl;\n }", "class_method_signature": "Role.getBaseUrl()", "constructor": false, "full_signature": "public String getBaseUrl()", "identifier": "getBaseUrl", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_71
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時にOPTIONSメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pathSegme...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_67
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DcCoreLog.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DcCoreLog.class);", "type": "Logger", "var_name": "log" }, { "declarator": "shelterdLogger", "modi...
{ "body": "@Test\n public void ログレベル設定を切り替えてDcCoreLogを生成する() {\n final String errorMsg = \"ERROR Message.\";\n final String warningMsg = \"WARNING Message.\";\n final String infoMsg = \"INFO Message.\";\n DcCoreLog.log = new TestLogger() {\n @Override\n public void...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DcCoreLog.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DcCoreLog.class);", "type": "Logger", "var_name": "log" }, { "declarator": "message", "modifier": ...
{ "body": "public void writeLog() {\n\n StackTraceElement[] ste = (new Throwable()).getStackTrace();\n String logInfo = String.format(\"[%s] - [%s#%s:%s] - %s\",\n this.code, ste[1].getClassName(), ste[1].getMethodName(), ste[1].getLineNumber(), this.message);\n switch (this.severi...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_88
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時に$batchに対するPOSTメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n try {\n\n ...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_30
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void search処理でクエリにサイズ0を指定した場合0件取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new HashMap<Object,...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcSearchResponse search(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_84
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモードではない状態でPROPPATCHメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(false);\n List<PathSegment> p...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_47
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isChangedメソッドで登録済みのキャッシュが存在しない場合trueを返すこと() throws Exception {\n String nodeId = \"node_VVVVVVVVV1\";\n Map<String, Object> schemaToCache = new HashMap<String, Object>();\n schemaToCache.put(\"SchemaCacheTestKey001\", \"testValue\");\n Long now = new Date(...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_10
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test\n public void ローテートされたADS書き込み失敗ログが論理削除モードで削除できること() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log.%d\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File srcFile = new File(\"./\", fileName);\n File dstFile = new File(\"./\"...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public synchronized void deleteRotatedLog() throws AdsWriteFailureLogException {\n closeRotatedFile();\n super.deleteRotatedLog(rotatedAdsWriteFailureLog);\n }", "class_method_signature": "RollingAdsWriteFailureLog.deleteRotatedLog()", "constructor": false, "full_signature": "public ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_51
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/CellCacheTest.java", "identifier": "CellCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void Memcachedからキャッシュを取得できた場合オブジェクトを返すこと() throws Exception {\n String cellName = \"cellCacheTestCell\";\n Map<String, Object> cell = new HashMap<String, Object>();\n // MemcachedClientのモックを作成(getしたときにMemchachedClientExceptionをthr...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(CellCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(CellCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClient = MemcachedClient....
{ "body": "public static Map<String, Object> get(String cellName) {\n if (!DcCoreConfig.isCellCacheEnabled()) {\n return null;\n }\n try {\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> cache = getMcdClient().get(cacheKey(cellName), Map.class);\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_50
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/CellCacheTest.java", "identifier": "CellCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void Memcachedへの接続に失敗した場合NULLを返すこと() throws Exception {\n String cellName = \"cellCacheTestCell\";\n // MemcachedClientのモックを作成(getしたときにMemchachedClientExceptionをthrowするモック)\n Constructor<MemcachedClient> c = MemcachedClient.class....
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(CellCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(CellCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClient = MemcachedClient....
{ "body": "public static Map<String, Object> get(String cellName) {\n if (!DcCoreConfig.isCellCacheEnabled()) {\n return null;\n }\n try {\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> cache = getMcdClient().get(cacheKey(cellName), Map.class);\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_11
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DcCoreExceptionMapper.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DcCoreExceptionMapper.class);", "type": "Logger", "var_name": "log" }, { "declarator": "shel...
{ "body": "@Test\n public void toResponseメソッドが() {\n DcCoreExceptionMapper mapper = new DcCoreExceptionMapper();\n DcCoreExceptionMapper.log = new TestLogger() {\n @Override\n public void error(String msg, Throwable t) {\n log.debug(msg);\n StackTra...
{ "fields": [ { "declarator": "ERROR_ID_ROOT = 100000", "modifier": "static final", "original_string": "static final int ERROR_ID_ROOT = 100000;", "type": "int", "var_name": "ERROR_ID_ROOT" }, { "declarator": "log = LoggerFactory.getLogger(DcCoreExceptionMapper.class)",...
{ "body": "@Override\n public Response toResponse(final Exception exception) {\n // DcCoreException ならば\n if (exception instanceof DcCoreException) {\n return this.handleDcCoreException((DcCoreException) exception);\n }\n // JaxRS例外 ならば\n if (exception instanceof WebAp...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_46
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isChangedメソッドですでに登録済みのキャッシュと変更が無い場合falseを返すこと() throws Exception {\n String nodeId = \"node_VVVVVVVVV1\";\n Map<String, Object> schemaToCache = new HashMap<String, Object>();\n schemaToCache.put(\"SchemaCacheTestKey001\", \"testValue\");\n Long now = new D...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static boolean isChanged(String nodeId, Map<String, Object> cache) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return false;\n }\n\n Map<String, Object> latestCache = null;\n try {\n latestCache = getMcdCli...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_85
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモードではない状態でACLメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(false);\n List<PathSegment> pathSeg...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_31
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void search処理でクエリにnullを指定した場合全件取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new HashMap<Object,...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcSearchResponse search(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_66
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DcCoreLog.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DcCoreLog.class);", "type": "Logger", "var_name": "log" }, { "declarator": "shelterdLogger", "modi...
{ "body": "@Test(expected = RuntimeException.class)\n public void 存在しないメッセージIDを指定すると実行時例外が発生すること() throws RuntimeException {\n DcCoreLog.create(\"UNKNOWN\");\n }", "class_method_signature": "DcCoreLogTest.)", "constructor": false, "full_signature": "@Test(expected = RuntimeException.class) public v...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DcCoreLog.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DcCoreLog.class);", "type": "Logger", "var_name": "log" }, { "declarator": "message", "modifier": ...
{ "body": "public static DcCoreLog create(String code) {\n // ログレベルの取得\n Severity severity = DcCoreMessageUtils.getSeverity(code);\n if (severity == null) {\n // 設定ファイルで省略されていたらウォーニング扱いとする。\n severity = Severity.WARN;\n }\n\n // ログメッセージの取得\n String messa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_70
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモード時にPROPFINDメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<PathSegment> pathSegm...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_1
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "writer",...
{ "body": "@Test\n @Ignore\n public void オープン済みのADS書き込み失敗ログファイルのOutputStreamが存在しない場合に再オープンでエラーとなること() {\n\n try {\n writer.openActiveFile();\n } catch (AdsWriteFailureLogException e) {\n fail(\"open failure test failed\");\n }\n\n File file = null;\n try ...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(AdsWriteFailureLogWriter.class)", "modifier": "static", "original_string": "static Logger logger = LoggerFactory.getLogger(AdsWriteFailureLogWriter.class);", "type": "Logger", "var_name": "logger" }, { "dec...
{ "body": "public synchronized void openActiveFile() throws AdsWriteFailureLogException {\n File file = new File(getBaseDir(), String.format(LOGNAME_FORMAT_ACTIVE, getPcsVersion(), createdTime));\n if (null != activeFileOutputStream) {\n String message = String.format(\"Acitve adsWriteFailure...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_27
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void search処理が正常に終了する() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new HashMap<Object, Object>());\n ...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcSearchResponse search(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_82
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモードではない状態でMERGEメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(false);\n List<PathSegment> pathS...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_41
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/UserDataSchemaCacheTest.java", "identifier": "UserDataSchemaCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void getメソッドでMemcachedへの接続に失敗した場合NULLを返すこと() throws Exception {\n String nodeId = \"nodeId\";\n\n // MemcachedClientのモックを作成(getしたときにMemchachedClientExceptionをthrowするモック)\n Constructor<MemcachedClient> c = MemcachedClient.class.get...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(UserDataSchemaCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(UserDataSchemaCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClien...
{ "body": "public static Map<String, Object> get(String nodeId) {\n if (!DcCoreConfig.isSchemaCacheEnabled()) {\n return null;\n }\n try {\n @SuppressWarnings(\"unchecked\")\n Map<String, Object> cache = getMcdClient().get(cacheKey(nodeId), Map.class);\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_16
{ "fields": [ { "declarator": "UNIT_USER_NAME = \"index_for_test\"", "modifier": "private static final", "original_string": "private static final String UNIT_USER_NAME = \"index_for_test\";", "type": "String", "var_name": "UNIT_USER_NAME" }, { "declarator": "UNIT_PREFIX...
{ "body": "@Test\n public void delete処理が正常に終了する() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID);\n DavNode davNode = createTestDavNode();\n...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DavNodeAccessor.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DavNodeAccessor.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/com/fujit...
{ "body": "public DcDeleteResponse delete(DavNode davNode) {\n return this.delete(davNode, -1);\n }", "class_method_signature": "DavNodeAccessor.delete(DavNode davNode)", "constructor": false, "full_signature": "public DcDeleteResponse delete(DavNode davNode)", "identifier": "delete", "invocations...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_57
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void unitCtlメソッドでオブジェクトが正常に取得できる() {\n EntitySetAccessor unitCtl = EsModel.unitCtl(\"TypeStringForTest\", \"TestCellID\");\n assertNotNull(unitCtl);\n assertEquals(\"TypeStringForTest\", unitCtl.getType());\n }", "class_method_signature": "EsModelTest.unitCtl", ...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EntitySetAccessor unitCtl(final String type, final String cellId) {\n if (\"Cell\".equals(type)) {\n return EsModel.cell();\n } else {\n return new ODataEntityAccessor(idxAdmin(), type, cellId);\n }\n }", "class_method_signature": "EsModel.unitC...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_20
{ "fields": [ { "declarator": "UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix()", "modifier": "private static final", "original_string": "private static final String UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix();", "type": "String", "var_name": "UNIT_PREFIX" }, { "declarator...
{ "body": "@Test\n public void update処理が正常に終了する() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID);\n LinkDocHandler docHandler = createTestL...
{ "fields": [], "file": "core/src/main/java/com/fujitsu/dc/core/model/impl/es/accessor/ODataLinkAccessor.java", "identifier": "ODataLinkAccessor", "interfaces": "", "methods": [ { "class_method_signature": "ODataLinkAccessor.ODataLinkAccessor(EsIndex index, String name, String routingId)", "co...
{ "body": "public DcIndexResponse update(String id, LinkDocHandler docHandler) {\n return this.update(id, docHandler, -1);\n }", "class_method_signature": "ODataLinkAccessor.update(String id, LinkDocHandler docHandler)", "constructor": false, "full_signature": "public DcIndexResponse update(String id,...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_6
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test(expected = AdsWriteFailureLogException.class)\n public void ローテートされたADS書き込み失敗ログのファイル名書式が正しくない場合にエラーとなること2() throws AdsWriteFailureLogException {\n final String fileName = String.format(\"adsWriteFailure_%s.log_%d\", PIO_VERSION_DUMMY, CREATED_TIME_DUMMY);\n File file = new File(\"./\...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public static long getCreatedTimeFromFileName(String pcsVersion, File rotatedAdsWriteFailureLog)\n throws AdsWriteFailureLogException {\n final String messageFormat = \"Illegal Rotated adsWriteFailureLog file name format. [%s]\";\n\n if (!rotatedAdsWriteFailureLog.isFile()) {\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_77
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DcCoreException.class)\n public void ReadDeleteOnlyモード時にMKCOLメソッドが実行された場合は503が返却されること() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<Pa...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_61
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void colメソッドでnullを指定した場合にNullPointerExceptionをスローする() {\n DavNodeAccessor col = EsModel.col(null);\n assertNotNull(col);\n }", "class_method_signature": "EsModelTest.) {", "constructor": false, "full_signature": "@Test(expected...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static DavNodeAccessor col(final Cell cell) {\n return new DavNodeAccessor(idxUser(cell.getOwner()), \"dav\", cell.getId());\n }", "class_method_signature": "EsModel.col(final Cell cell)", "constructor": false, "full_signature": "public static DavNodeAccessor col(final Cell cell)", ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_36
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void count処理でクエリに3件ヒットするクエリにサイズ2を指定した場合件数が3で取得できる() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n Map<String, Object> body = new...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public long count(final Map<String, Object> query) {\n Map<String, Object> requestQuery = null;\n if (query != null) {\n requestQuery = new HashMap<String, Object>(query);\n } else {\n requestQuery = new HashMap<String, Object>();\n }\n requestQuery....
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_37
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" } ], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/accessor/DataSourceAccessorTest.java",...
{ "body": "@Test\n public void delete処理が正常に終了する() {\n EsIndex index = esClient.idxAdmin(\"index_for_test\");\n assertNotNull(index);\n DataSourceAccessor dsa = new DataSourceAccessor(index, \"TypeForTest\", \"RoutingIdTest\");\n dsa.create(\"id00001\", new HashMap<Object, Object>());\n ...
{ "fields": [ { "declarator": "index", "modifier": "private", "original_string": "private EsIndex index;", "type": "EsIndex", "var_name": "index" }, { "declarator": "type", "modifier": "private", "original_string": "private EsType type;", "type": "EsTy...
{ "body": "public DcDeleteResponse delete(final String docId, final long version) {\n try {\n return this.type.delete(docId, version);\n } catch (EsClientException.EsIndexMissingException e) {\n DcCoreLog.Server.ES_INDEX_NOT_EXIST.params(this.index.getName()).writeLog();\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_60
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void cellCtlLinkメソッドでnullを指定した場合にNullPointerExceptionをスローする() {\n ODataLinkAccessor cellCtlLink = EsModel.cellCtlLink(null);\n assertNotNull(cellCtlLink);\n }", "class_method_signature": "EsModelTest.) {", "constructor": false, ...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static ODataLinkAccessor cellCtlLink(final Cell cell) {\n String userUri = cell.getOwner();\n return new ODataLinkAccessor(idxUser(userUri), TYPE_CTL_LINK, cell.getId());\n }", "class_method_signature": "EsModel.cellCtlLink(final Cell cell)", "constructor": false, "full_signat...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_76
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DcCoreException.class)\n public void ReadDeleteOnlyモード時にMERGEメソッドが実行された場合は503が返却されること() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(true);\n List<Pa...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_7
{ "fields": [ { "declarator": "PIO_VERSION_DUMMY = \"1.3.18-test\"", "modifier": "private static final", "original_string": "private static final String PIO_VERSION_DUMMY = \"1.3.18-test\";", "type": "String", "var_name": "PIO_VERSION_DUMMY" }, { "declarator": "CREATED_...
{ "body": "@Test(expected = AdsWriteFailureLogException.class)\n public void ローテートされたADS書き込み失敗ログがNULLの場合にログ削除がエラーとなること() throws AdsWriteFailureLogException {\n File file = null;\n RollingAdsWriteFailureLog rolling = new RollingAdsWriteFailureLog(file, null, PIO_VERSION_DUMMY, true);\n try {\n ...
{ "fields": [ { "declarator": "rotatedAdsWriteFailureLog", "modifier": "private", "original_string": "private File rotatedAdsWriteFailureLog;", "type": "File", "var_name": "rotatedAdsWriteFailureLog" }, { "declarator": "reader", "modifier": "private", "origi...
{ "body": "public synchronized void deleteRotatedLog() throws AdsWriteFailureLogException {\n closeRotatedFile();\n super.deleteRotatedLog(rotatedAdsWriteFailureLog);\n }", "class_method_signature": "RollingAdsWriteFailureLog.deleteRotatedLog()", "constructor": false, "full_signature": "public ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_21
{ "fields": [ { "declarator": "UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix()", "modifier": "private static final", "original_string": "private static final String UNIT_PREFIX = DcCoreConfig.getEsUnitPrefix();", "type": "String", "var_name": "UNIT_PREFIX" }, { "declarator...
{ "body": "@Test\n public void update処理にてAdsが例外を上げた場合でも正常に終了すること() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID);\n LinkDocHandler docHand...
{ "fields": [], "file": "core/src/main/java/com/fujitsu/dc/core/model/impl/es/accessor/ODataLinkAccessor.java", "identifier": "ODataLinkAccessor", "interfaces": "", "methods": [ { "class_method_signature": "ODataLinkAccessor.ODataLinkAccessor(EsIndex index, String name, String routingId)", "co...
{ "body": "public DcIndexResponse update(String id, LinkDocHandler docHandler) {\n return this.update(id, docHandler, -1);\n }", "class_method_signature": "ODataLinkAccessor.update(String id, LinkDocHandler docHandler)", "constructor": false, "full_signature": "public DcIndexResponse update(String id,...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_56
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/EsModelTest.java", "identifier": "EsModelTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void boxメソッドでnullを指定した場合にNullPointerExceptionをスローする() {\n EntitySetAccessor box = EsModel.box(null);\n assertNotNull(box);\n }", "class_method_signature": "EsModelTest.) {", "constructor": false, "full_signature": "@Test(expect...
{ "fields": [ { "declarator": "esClient", "modifier": "private static", "original_string": "private static EsClient esClient;", "type": "EsClient", "var_name": "esClient" }, { "declarator": "TYPE_CTL_LINK = \"link\"", "modifier": "public static final", "orig...
{ "body": "public static EntitySetAccessor box(final Cell cell) {\n return cell(cell, Box.EDM_TYPE_NAME);\n }", "class_method_signature": "EsModel.box(final Cell cell)", "constructor": false, "full_signature": "public static EntitySetAccessor box(final Cell cell)", "identifier": "box", "invocation...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_17
{ "fields": [ { "declarator": "UNIT_USER_NAME = \"index_for_test\"", "modifier": "private static final", "original_string": "private static final String UNIT_USER_NAME = \"index_for_test\";", "type": "String", "var_name": "UNIT_USER_NAME" }, { "declarator": "UNIT_PREFIX...
{ "body": "@Test\n public void delete処理にてAdsが例外を上げた場合でも正常に終了すること() {\n // 事前準備\n EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME);\n assertNotNull(index);\n DavNodeAccessor davNodeAccessor = new DavNodeAccessor(index, TYPE_NAME, ROUTING_ID);\n DavNode davNode = creat...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DavNodeAccessor.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(DavNodeAccessor.class);", "type": "Logger", "var_name": "log" } ], "file": "core/src/main/java/com/fujit...
{ "body": "public DcDeleteResponse delete(DavNode davNode) {\n return this.delete(davNode, -1);\n }", "class_method_signature": "DavNodeAccessor.delete(DavNode davNode)", "constructor": false, "full_signature": "public DcDeleteResponse delete(DavNode davNode)", "identifier": "delete", "invocations...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_40
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/model/impl/es/cache/BoxCacheTest.java", "identifier": "BoxCacheTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void Memcachedからキャッシュを取得できた場合オブジェクトを返すこと() throws Exception {\n String boxName = \"boxCacheTestBox\";\n Map<String, Object> box = new HashMap<String, Object>();\n box.put(\"name\", boxName);\n box.put(\"schema\", null);\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(BoxCache.class)", "modifier": "static", "original_string": "static Logger log = LoggerFactory.getLogger(BoxCache.class);", "type": "Logger", "var_name": "log" }, { "declarator": "mcdClient = MemcachedClient.ge...
{ "body": "public static Box get(String boxName, Cell cell) {\n if (!DcCoreConfig.isBoxCacheEnabled()) {\n return null;\n }\n\n @SuppressWarnings(\"rawtypes\")\n HashMap obj = null;\n try {\n obj = getMcdClient().get(cacheKey(boxName, cell), HashMap.class);\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
27217073_83
{ "fields": [], "file": "core/src/test/java/com/fujitsu/dc/core/DcReadDeleteModeManagerTest.java", "identifier": "DcReadDeleteModeManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ReadDeleteOnlyモードではない状態でMKCOLメソッドが実行された場合はDcCoreExceptionが発生しないこと() throws Exception {\n PowerMockito.spy(ReadDeleteModeLockManager.class);\n PowerMockito.when(ReadDeleteModeLockManager.class, \"isReadDeleteOnlyMode\").thenReturn(false);\n List<PathSegment> pathS...
{ "fields": [ { "declarator": "ACCEPT_METHODS = new HashSet<String>(\n Arrays.asList(\n HttpMethod.GET,\n HttpMethod.DELETE,\n HttpMethod.OPTIONS,\n HttpMethod.HEAD,\n com.fujitsu.dc.common.utils.DcCore...
{ "body": "public static void checkReadDeleteOnlyMode(String method, List<PathSegment> pathSegment) {\n // ReadDeleteOnlyモードでなければ処理を許可する\n if (!ReadDeleteModeLockManager.isReadDeleteOnlyMode()) {\n return;\n }\n\n // 認証処理はPOSTメソッドだが書き込みは行わないので例外として許可する\n if (isAuthPath(pa...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27217073, "size": 4497, "stargazer_count": 29, "stars": null, "updates": null, "url": "https://github.com/fujitsu-pio/io" }
195429957_0
{ "fields": [ { "declarator": "vertx", "modifier": "private", "original_string": "private Vertx vertx;", "type": "Vertx", "var_name": "vertx" }, { "declarator": "tracer", "modifier": "private", "original_string": "private MockTracer tracer;", "type": "...
{ "body": "@Test\n public void getSpan_should_retrieve_a_span_from_the_currentContext(TestContext ctx) {\n Span span = tracer.buildSpan(\"test\").start();\n vertx.runOnContext(ignored -> {\n assertNull(OpenTracingUtil.getSpan());\n Context context = Vertx.currentContext();\n context.putLocal(ACT...
{ "fields": [ { "declarator": "ACTIVE_SPAN = \"vertx.tracing.opentracing.span\"", "modifier": "static final", "original_string": "static final String ACTIVE_SPAN = \"vertx.tracing.opentracing.span\";", "type": "String", "var_name": "ACTIVE_SPAN" } ], "file": "vertx-opentracin...
{ "body": "public static Span getSpan() {\n Context c = Vertx.currentContext();\n return c == null ? null : c.getLocal(ACTIVE_SPAN);\n }", "class_method_signature": "OpenTracingUtil.getSpan()", "constructor": false, "full_signature": "public static Span getSpan()", "identifier": "getSpan", "invocatio...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 195429957, "size": 101, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/eclipse-vertx/vertx-tracing" }
212625733_4
{ "fields": [ { "declarator": "action = new CsvAction()", "modifier": "final", "original_string": "final CsvAction action = new CsvAction();", "type": "CsvAction", "var_name": "action" } ], "file": "inversion-api/src/test/java/io/inversion/action/misc/CsvActionTest.java", "...
{ "body": "@Test\n public void run_should_doNothing_when_notGetRequest() throws Exception {\n Response res = new Response();\n JSNode singleObject = new JSNode();\n singleObject.put(\"key1\", \"value1\");\n singleObject.put(\"key2\", \"value2\");\n res.withJson(singleO...
{ "fields": [], "file": "inversion-api/src/main/java/io/inversion/action/misc/CsvAction.java", "identifier": "CsvAction", "interfaces": "", "methods": [ { "class_method_signature": "CsvAction.run(Request req, Response res)", "constructor": false, "full_signature": "@Override public void ...
{ "body": "@Override\n public void run(Request req, Response res) throws ApiException {\n if (!\"GET\".equals(req.getMethod()) || 200 != res.getStatusCode() || res.getJson() == null || res.getText() != null) {\n return;\n }\n\n if (!\"csv\".equalsIgnoreCase(req.getUrl().getParam(\"f...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_26
{ "fields": [], "file": "inversion-spring-boot/src/test/java/io/inversion/spring/InversionServletConfigTest.java", "identifier": "InversionServletConfigTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void buildServletMapping_partialCommonPath() {\n Engine e = new Engine().withIncludeOn(null, \"/a/b/c\", \"/a/b/f\");\n assertEquals(\"/a/b/*\", InversionServletConfig.buildServletMapping(e));\n }", "class_method_signature": "InversionServletConfigTest.buildServletMappi...
{ "fields": [], "file": "inversion-spring-boot/src/main/java/io/inversion/spring/InversionServletConfig.java", "identifier": "InversionServletConfig", "interfaces": "", "methods": [ { "class_method_signature": "InversionServletConfig.createDefaultInversionServlet(Engine engine)", "constructor"...
{ "body": "public static String buildServletMapping(Engine engine) {\n List<String> parts = new ArrayList<>();\n boolean done = false;\n for (int i = 0; i < 100 && !done; i++) {\n String part = null;\n for (Path path : engine.getIncludePaths()) {\n if (p...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_30
{ "fields": [], "file": "inversion-jdbc/src/test/java/io/inversion/jdbc/TestSqlTokenizer.java", "identifier": "TestSqlTokenizer", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTokens() throws Exception {\n String[][] tests = new String[][]{//\n {//\n \"SELECT * FROM (SELECT *, 'Threatened' as 'Victim' FROM Entry WHERE threatened = true UNION SELECT *, 'Tortured' as 'Victim' FROM Entry WHERE tortured = true ...
{ "fields": [ { "declarator": "keywords = new HashSet(Utils.explode(\",\", \"insert,into,update,delete,select,from,where,group,order,limit\"))", "modifier": "static final", "original_string": "static final Set keywords = new HashSet(Utils.explode(\",\", \"insert,into,update,delete,select,from,wh...
{ "body": "public String next() {\n if (head >= chars.length)\n return null;\n\n doubleQuote = false;\n singleQuote = false;\n backQuote = false;\n\n escape = false;\n\n boolean done = false;\n int parens = 0;\n\n for (; head < chars.length && !...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_8
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/action/db/DbGetActionTest.java", "identifier": "DbGetActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testStripTerms1() {\n //arg format {resultMatchString, inputString, tostrip...)\n\n String[][] tests = {//\n {//\n \"http://asdf?AAA=BBB&notOffset=123&CCC=DDD\", // \n \"http://asdf?offset=5&AAA=BBB&offset = 5...
{ "fields": [ { "declarator": "maxRows = 100", "modifier": "protected", "original_string": "protected int maxRows = 100;", "type": "int", "var_name": "maxRows" } ], "file": "inversion-api/src/main/java/io/inversion/action/db/DbGetAction.java", "identifier": "DbGetAction", ...
{ "body": "public static String stripTerms(String url, String... tokens) {\n Url u = new Url(url);\n u.clearParams(tokens);\n return u.toString();\n }", "class_method_signature": "DbGetAction.stripTerms(String url, String... tokens)", "constructor": false, "full_signature": "public stati...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_10
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/PathTest.java", "identifier": "PathTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extract_regexDoesNotMatch_error() {\n boolean error = false;\n try {\n Map<String, String> params = new HashMap<>();\n Path rule = new Path(\"part1/{part2:[0-9a-zA-Z]{1,8}}/part3/*\");\n Path path = new ...
{ "fields": [ { "declarator": "parts = new ArrayList<>()", "modifier": "", "original_string": "List<String> parts = new ArrayList<>();", "type": "List<String>", "var_name": "parts" }, { "declarator": "lc = new ArrayList<>()", "modifier": "", "original_str...
{ "body": "public Path extract(Map params, Path toMatch) {\n return extract(params, toMatch, false);\n }", "class_method_signature": "Path.extract(Map params, Path toMatch)", "constructor": false, "full_signature": "public Path extract(Map params, Path toMatch)", "identifier": "extract", "invocati...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_11
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/PathTest.java", "identifier": "PathTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extract_pathDoesNotMatch_error() {\n boolean error = false;\n try {\n Map<String, String> params = new HashMap<>();\n Path rule = new Path(\"part1/part2/part3/*\");\n Path path = new Path(\"part1/part...
{ "fields": [ { "declarator": "parts = new ArrayList<>()", "modifier": "", "original_string": "List<String> parts = new ArrayList<>();", "type": "List<String>", "var_name": "parts" }, { "declarator": "lc = new ArrayList<>()", "modifier": "", "original_str...
{ "body": "public Path extract(Map params, Path toMatch) {\n return extract(params, toMatch, false);\n }", "class_method_signature": "Path.extract(Map params, Path toMatch)", "constructor": false, "full_signature": "public Path extract(Map params, Path toMatch)", "identifier": "extract", "invocati...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_9
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/JSArrayTest.java", "identifier": "JSArrayTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsEmpty() {\n assertTrue(new JSArray().isEmpty());\n assertFalse(new JSArray(\"a\", \"b\").isEmpty());\n\n JSArray a = new JSArray();\n a.add(\"1\");\n assertFalse(a.isEmpty());\n }", "class_method_signature": "JSArrayTest.testIsEmpty()", ...
{ "fields": [ { "declarator": "objects = new ArrayList<>()", "modifier": "protected", "original_string": "protected List objects = new ArrayList<>();", "type": "List", "var_name": "objects" } ], "file": "inversion-api/src/main/java/io/inversion/utils/JSArray.java", "identif...
{ "body": "@Override\n public boolean isEmpty() {\n return objects.isEmpty();\n }", "class_method_signature": "JSArray.isEmpty()", "constructor": false, "full_signature": "@Override public boolean isEmpty()", "identifier": "isEmpty", "invocations": [ "isEmpty" ], "modifiers": "@Override...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_31
{ "fields": [], "file": "inversion-jdbc/src/test/java/io/inversion/jdbc/TestSqlTokenizer.java", "identifier": "TestSqlTokenizer", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testClauses() throws Exception {\n String[][] tests = new String[][]{//\n {//\n \"select * from `order details` where \\\"id\\\" in (select * from some other table) and x >= 500\", //\n \"select * |from `order det...
{ "fields": [ { "declarator": "keywords = new HashSet(Utils.explode(\",\", \"insert,into,update,delete,select,from,where,group,order,limit\"))", "modifier": "static final", "original_string": "static final Set keywords = new HashSet(Utils.explode(\",\", \"insert,into,update,delete,select,from,wh...
{ "body": "public String nextClause() {\n String toReturn = null;\n\n String nextToken;\n while ((nextToken = next()) != null) {\n if (keywords.contains(nextToken.toLowerCase())) {\n if (clause.length() > 0) {\n toReturn = clause.toString();\n ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_27
{ "fields": [], "file": "inversion-spring-boot/src/test/java/io/inversion/spring/InversionServletConfigTest.java", "identifier": "InversionServletConfigTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void buildServletMapping_breakOnOptional() {\n Engine e = new Engine().withIncludeOn(null, \"/a/b/c\", \"/a/b/[c]\");\n assertEquals(\"/a/b/*\", InversionServletConfig.buildServletMapping(e));\n }", "class_method_signature": "InversionServletConfigTest.buildServletMappi...
{ "fields": [], "file": "inversion-spring-boot/src/main/java/io/inversion/spring/InversionServletConfig.java", "identifier": "InversionServletConfig", "interfaces": "", "methods": [ { "class_method_signature": "InversionServletConfig.createDefaultInversionServlet(Engine engine)", "constructor"...
{ "body": "public static String buildServletMapping(Engine engine) {\n List<String> parts = new ArrayList<>();\n boolean done = false;\n for (int i = 0; i < 100 && !done; i++) {\n String part = null;\n for (Path path : engine.getIncludePaths()) {\n if (p...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_5
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/action/db/DbPostActionTest.java", "identifier": "DbPostActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCollapses1() {\n JSNode parent = new JSNode();\n parent.put(\"name\", \"testing\");\n\n JSNode child1 = new JSNode();\n parent.put(\"child1\", child1);\n child1.put(\"href\", \"http://child1\");\n child1.put(\"name\", \"child1\");\n\n ...
{ "fields": [ { "declarator": "collapseAll = false", "modifier": "protected", "original_string": "protected boolean collapseAll = false;", "type": "boolean", "var_name": "collapseAll" }, { "declarator": "strictRest = false", "modifier": "protected", "ori...
{ "body": "public static void collapse(JSNode parent, boolean collapseAll, Set collapses, String path) {\n for (String key : parent.keySet()) {\n Object value = parent.get(key);\n\n if (collapseAll || collapses.contains(nextPath(path, key))) {\n if (value instanceof JSArray...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_16
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/UtilsTest.java", "identifier": "UtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void endsWith() {\n assertTrue(Utils.endsWith(\"\", \"\"));\n assertTrue(Utils.endsWith(\"asdf123\", \"123\"));\n assertFalse(Utils.endsWith(\"asdf123\", \"456\"));\n assertFalse(Utils.endsWith(\"9294\", \"92949294\"));\n assertTrue(Utils.endsWith(\"9294...
{ "fields": [ { "declarator": "NEW_LINE = System.getProperty(\"line.separator\")", "modifier": "static final", "original_string": "static final String NEW_LINE = System.getProperty(\"line.separator\");", "type": "String", "var_name": "NEW_LINE" ...
{ "body": "public static boolean endsWith(CharSequence seq, String end) {\n if (end == null)\n return false;\n\n int seqLen = seq.length();\n int endLen = end.length();\n\n if (seqLen < endLen)\n return false;\n\n for (int i = 1; i <= endLen; i++) {\n ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_2
{ "fields": [ { "declarator": "action = new CsvAction()", "modifier": "final", "original_string": "final CsvAction action = new CsvAction();", "type": "CsvAction", "var_name": "action" } ], "file": "inversion-api/src/test/java/io/inversion/action/misc/CsvActionTest.java", "...
{ "body": "@Test\n public void run_shouldReturnCsv_when_ArrayObject_in_response() throws Exception {\n Response res = new Response();\n JSNode singleObject = new JSNode();\n singleObject.put(\"key1\", \"value1\");\n singleObject.put(\"key2\", \"value2\");\n JSArray arr...
{ "fields": [], "file": "inversion-api/src/main/java/io/inversion/action/misc/CsvAction.java", "identifier": "CsvAction", "interfaces": "", "methods": [ { "class_method_signature": "CsvAction.run(Request req, Response res)", "constructor": false, "full_signature": "@Override public void ...
{ "body": "@Override\n public void run(Request req, Response res) throws ApiException {\n if (!\"GET\".equals(req.getMethod()) || 200 != res.getStatusCode() || res.getJson() == null || res.getText() != null) {\n return;\n }\n\n if (!\"csv\".equalsIgnoreCase(req.getUrl().getParam(\"f...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_20
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/CollectionTest.java", "identifier": "CollectionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void encodeStr_dontEncodeAlwaysSafeUrlCharsOtherThanTildeAndAmpersand() throws Exception {\n //encode these: % < > [ ] { } | \\ ^ ? / # + & = \n String source = \"asdf1234-._()'!*:,;\";\n String encoded = Collection.encodeStr(source);\n System.out.println(enco...
{ "fields": [ { "declarator": "aliases = new TreeSet<>(String.CASE_INSENSITIVE_ORDER)", "modifier": "protected final", "original_string": "protected final Set<String> aliases = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);", "type": "Set<String>", "var_name": "aliases" }, { ...
{ "body": "public static String encodeStr(String string) {\n //- . _ ~ ( ) ' ! * : @ , ;\n Pattern p = Pattern.compile(\"[^A-Za-z0-9\\\\-\\\\.\\\\_\\\\(\\\\)\\\\'\\\\!\\\\:\\\\,\\\\;\\\\*]\");\n\n Matcher m = p.matcher(string);\n StringBuffer sb = new StringBuffer();\n while (...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_21
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/rql/RqlParserTest.java", "identifier": "RqlParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test1() throws Exception {\n\n List<List> tests = new ArrayList<>();\n\n add(tests, \"eq(column,String)\", \"column=String\");\n add(tests, \"eq(column,string)\", \"column= string\");\n add(tests, \"eq(column,string)\", \"column= string \");\n ...
{ "fields": [], "file": "inversion-api/src/main/java/io/inversion/rql/RqlParser.java", "identifier": "RqlParser", "interfaces": "", "methods": [ { "class_method_signature": "RqlParser.RqlParser()", "constructor": true, "full_signature": "private RqlParser()", "identifier": "RqlPar...
{ "body": "public static Term parse(String paramName, String paramValue) {\n String termStr;\n if (Utils.empty(paramValue) && paramName.contains(\"(\")) {\n termStr = paramName;\n } else {\n if (Utils.empty(paramValue))\n paramValue = \"true\";\n\n ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_3
{ "fields": [ { "declarator": "action = new CsvAction()", "modifier": "final", "original_string": "final CsvAction action = new CsvAction();", "type": "CsvAction", "var_name": "action" } ], "file": "inversion-api/src/test/java/io/inversion/action/misc/CsvActionTest.java", "...
{ "body": "@Test\n public void run_shouldReturnCsv_when_InversionWrapper_in_response() throws Exception {\n Response res = new Response();\n JSNode singleObject = new JSNode();\n singleObject.put(\"key1\", \"value1\");\n singleObject.put(\"key2\", \"value2\");\n JSArra...
{ "fields": [], "file": "inversion-api/src/main/java/io/inversion/action/misc/CsvAction.java", "identifier": "CsvAction", "interfaces": "", "methods": [ { "class_method_signature": "CsvAction.run(Request req, Response res)", "constructor": false, "full_signature": "@Override public void ...
{ "body": "@Override\n public void run(Request req, Response res) throws ApiException {\n if (!\"GET\".equals(req.getMethod()) || 200 != res.getStatusCode() || res.getJson() == null || res.getText() != null) {\n return;\n }\n\n if (!\"csv\".equalsIgnoreCase(req.getUrl().getParam(\"f...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_17
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/JSNodeTest.java", "identifier": "JSNodeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void fromJsonPath() {\n assertEquals(\"**.book.[(@_length-1)]\", JSNode.fromJsonPath(\"$..book[(@.length-1)]\"));\n assertEquals(\"**.book.[0,1]\", JSNode.fromJsonPath(\"$..book[0,1]\"));\n assertEquals(\"book.0.asdf\", JSNode.fromJsonPath(\"book[0].asdf\"));\n assert...
{ "fields": [ { "declarator": "properties = new LinkedHashMap<>()", "modifier": "", "original_string": "LinkedHashMap<String, JSProperty> properties = new LinkedHashMap<>();", "type": "LinkedHashMap<String, JSProperty>", "var_name": "properties" } ], "file": "inversion-api/sr...
{ "body": "static String fromJsonPath(String jsonPath) {\n if (jsonPath.charAt(0) == '$')\n jsonPath = jsonPath.substring(1);\n\n jsonPath = jsonPath.replace(\"@.\", \"@_\"); //from jsonpath spec..switching to \"_\" to make parsing easier\n jsonPath = jsonPath.replaceAll(\"([a-zA-Z])\\...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_14
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/RestClientTest.java", "identifier": "RestClientTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void buildUrl_variable_replaced() {\n System.setProperty(\"theirService.url\", \"http://somehost/${tenant}/books/${something}/abcd\");\n\n Request req = new Request(\"GET\", \"http://myservice?tenant=12345\");\n RestClient client = new RestClient(\"theirService\...
{ "fields": [ { "declarator": "log = LogFactory.getLog(RestClient.class)", "modifier": "static final", "original_string": "static final Log log = LogFactory.getLog(RestClient.class);", "type": "Log", "var_name"...
{ "body": "String buildUrl(String callerSuppliedFullUrlOrRelativePath) {\n String url = callerSuppliedFullUrlOrRelativePath;\n\n if (url != null && (url.startsWith(\"http://\") || url.startsWith(\"https://\"))) {\n //do nothing, the caller passed in a full url\n } else {\n u...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_22
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/rql/RqlParserTest.java", "identifier": "RqlParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test2() throws Exception {\n Term t = RqlParser.parse(\"w(name,'BANANA KG (RESEAU')\");\n\n assertEquals(\"BANANA KG (RESEAU\", t.getTerm(1).getToken());\n\n t = RqlParser.parse(\"w(name,'BANANA KG (RESEAU)')\");\n assertEquals(\"BANANA KG (RESEAU)\", t.ge...
{ "fields": [], "file": "inversion-api/src/main/java/io/inversion/rql/RqlParser.java", "identifier": "RqlParser", "interfaces": "", "methods": [ { "class_method_signature": "RqlParser.RqlParser()", "constructor": true, "full_signature": "private RqlParser()", "identifier": "RqlPar...
{ "body": "public static Term parse(String paramName, String paramValue) {\n String termStr;\n if (Utils.empty(paramValue) && paramName.contains(\"(\")) {\n termStr = paramName;\n } else {\n if (Utils.empty(paramValue))\n paramValue = \"true\";\n\n ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_18
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/JSNodeTest.java", "identifier": "JSNodeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWith() {\n JSArray arr = new JSArray(1, 2, 3, 4);\n JSNode node = new JSNode().with(\"name\", \"value\", \"name2\", \"value2\", \"arr\", arr);\n assertEquals(\"value\", node.find(\"name\"));\n assertEquals(\"value2\", node.find(\"name2\"));\n ...
{ "fields": [ { "declarator": "properties = new LinkedHashMap<>()", "modifier": "", "original_string": "LinkedHashMap<String, JSProperty> properties = new LinkedHashMap<>();", "type": "LinkedHashMap<String, JSProperty>", "var_name": "properties" } ], "file": "inversion-api/sr...
{ "body": "public JSNode with(Object... nvPairs) {\n if (nvPairs == null || nvPairs.length == 0)\n return this;\n\n if (nvPairs.length % 2 != 0)\n throw new RuntimeException(\"You must supply an even number of arguments to JSNode.with()\");\n\n for (int i = 0; i < nvPairs.le...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_0
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/EngineTest.java", "identifier": "EngineTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPathVariables() {\n Api api1 = new Api(\"api1\").withEndpoint(\"*\", \"ep1/*\", new MockAction());\n Api api2 = new Api(\"api2\").withEndpoint(\"*\", \"ep2/*\", new MockAction());\n\n Engine e = new Engine(api1, api2);\n\n Request req;\n Respon...
{ "fields": [ { "declarator": "listeners = new ArrayList<>()", "modifier": "protected final transient", "original_string": "protected final transient List<EngineListener> listeners = new ArrayList<>();", "type": "List<EngineListener>", "var_name": "listeners" }, ...
{ "body": "public Response get(String url) {\n return service(\"GET\", url, null);\n }", "class_method_signature": "Engine.get(String url)", "constructor": false, "full_signature": "public Response get(String url)", "identifier": "get", "invocations": [ "service" ], "modifiers": "public", ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_1
{ "fields": [ { "declarator": "action = new CsvAction()", "modifier": "final", "original_string": "final CsvAction action = new CsvAction();", "type": "CsvAction", "var_name": "action" } ], "file": "inversion-api/src/test/java/io/inversion/action/misc/CsvActionTest.java", "...
{ "body": "@Test\n public void run_shouldReturnCsv_when_singleObject_in_response() throws Exception {\n Response res = new Response();\n JSNode singleObject = new JSNode();\n singleObject.put(\"key1\", \"value1\");\n singleObject.put(\"key2\", \"value2\");\n res.withJs...
{ "fields": [], "file": "inversion-api/src/main/java/io/inversion/action/misc/CsvAction.java", "identifier": "CsvAction", "interfaces": "", "methods": [ { "class_method_signature": "CsvAction.run(Request req, Response res)", "constructor": false, "full_signature": "@Override public void ...
{ "body": "@Override\n public void run(Request req, Response res) throws ApiException {\n if (!\"GET\".equals(req.getMethod()) || 200 != res.getStatusCode() || res.getJson() == null || res.getText() != null) {\n return;\n }\n\n if (!\"csv\".equalsIgnoreCase(req.getUrl().getParam(\"f...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_19
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/JSNodeTest.java", "identifier": "JSNodeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void diff_remove_element_from_array() {\n JSArray arr1 = new JSArray(\"one\", \"two\", \"three\");\n JSArray arr2 = new JSArray(\"one\", \"two\", \"three\", \"four\");\n\n JSArray patches = arr1.diff(arr2);\n }", "class_method_signature": "JSNodeTest.diff_remove_...
{ "fields": [ { "declarator": "properties = new LinkedHashMap<>()", "modifier": "", "original_string": "LinkedHashMap<String, JSProperty> properties = new LinkedHashMap<>();", "type": "LinkedHashMap<String, JSProperty>", "var_name": "properties" } ], "file": "inversion-api/sr...
{ "body": "public JSArray diff(JSNode source) {\n ObjectMapper mapper = new ObjectMapper();\n\n JsonNode patch;\n try {\n patch = JsonDiff.asJson(mapper.readValue(source.toString(), JsonNode.class), mapper.readValue(this.toString(), JsonNode.class));\n JSArray patchesArray =...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_23
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/rql/WhereTest.java", "identifier": "WhereTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isInvalidColumn() {\n Where where = new Where(new Query());\n assertFalse(where.isInvalidColumn(RqlParser.parse(\"function(column,1,2,3)\")));\n assertFalse(where.isInvalidColumn(RqlParser.parse(\"function(column_name,1,2,3)\")));\n assertTrue(where.isInva...
{ "fields": [ { "declarator": "existsFunctions = Utils.asSet(\"eq\", \"nn\", \"gt\", \"ge\", \"lt\", \"le\", \"like\", \"sw\", \"ew\", \"in\", \"w\")", "modifier": "final", "original_string": "final Set<String> existsFunctions = Utils.asSet(\"eq\", \"nn\", \"gt\", \"ge\", \"lt\", \...
{ "body": "protected boolean isInvalidColumn(Term t) {\n\n if (t.isLeaf() || !t.getTerm(0).isLeaf())\n return false;\n\n Collection collection = getParent().getCollection();\n String function = t.getToken();\n String column = t.getToken(0);\n\n //-- support ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_15
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/UtilsTest.java", "identifier": "UtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void containsToken() {\n assertFalse(Utils.containsToken(\"token\", \"asdfasdf\"));\n assertTrue(Utils.containsToken(\"token\", \"token\"));\n assertTrue(Utils.containsToken(\"token\", \"toKEN\"));\n assertTrue(Utils.containsToken(\"token\", \"(toKEN)\"));\n ...
{ "fields": [ { "declarator": "NEW_LINE = System.getProperty(\"line.separator\")", "modifier": "static final", "original_string": "static final String NEW_LINE = System.getProperty(\"line.separator\");", "type": "String", "var_name": "NEW_LINE" ...
{ "body": "public static boolean containsToken(String findThisToken, String inThisString) {\n findThisToken = findThisToken.toLowerCase();\n inThisString = inThisString.toLowerCase();\n //-- this replacement is done so that <code>findThisToken</code> can itself contain\n //-- special chars...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_24
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/rql/RqlTokenizerTest.java", "identifier": "RqlTokenizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test1() throws Throwable {\n List<List> tests = new ArrayList<>();\n\n add(tests, \"this is a test\", \"this is a test\");\n add(tests, \" this is a test \", \"this is a test\");\n add(tests, \" ' this is a test '\", \"' this is a test '\");\n ...
{ "fields": [ { "declarator": "chars", "modifier": "final", "original_string": "final char[] chars;", "type": "char[]", "var_name": "chars" }, { "declarator": "head = 0", "modifier": "", "original_string": "int head = 0;", "type": "int", "var_nam...
{ "body": "public List<String> asList() {\n List<String> list = new ArrayList<>();\n String next;\n while ((next = next()) != null)\n list.add(next);\n\n return list;\n }", "class_method_signature": "RqlTokenizer.asList()", "constructor": false, "full_signature": ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_6
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/action/db/DbPostActionTest.java", "identifier": "DbPostActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCollapses2() {\n JSNode parent = new JSNode();\n parent.put(\"name\", \"testing\");\n\n JSNode child1 = new JSNode();\n parent.put(\"child1\", child1);\n child1.put(\"href\", \"http://child1\");\n child1.put(\"name\", \"child1\");\n\n ...
{ "fields": [ { "declarator": "collapseAll = false", "modifier": "protected", "original_string": "protected boolean collapseAll = false;", "type": "boolean", "var_name": "collapseAll" }, { "declarator": "strictRest = false", "modifier": "protected", "ori...
{ "body": "public static void collapse(JSNode parent, boolean collapseAll, Set collapses, String path) {\n for (String key : parent.keySet()) {\n Object value = parent.get(key);\n\n if (collapseAll || collapses.contains(nextPath(path, key))) {\n if (value instanceof JSArray...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_28
{ "fields": [], "file": "inversion-spring-boot/src/test/java/io/inversion/spring/InversionServletConfigTest.java", "identifier": "InversionServletConfigTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void buildServletMapping_breakOnVariable() {\n Engine e = new Engine().withIncludeOn(null, \"/a/b/c\", \"/a/b/:c\");\n assertEquals(\"/a/b/*\", InversionServletConfig.buildServletMapping(e));\n }", "class_method_signature": "InversionServletConfigTest.buildServletMappin...
{ "fields": [], "file": "inversion-spring-boot/src/main/java/io/inversion/spring/InversionServletConfig.java", "identifier": "InversionServletConfig", "interfaces": "", "methods": [ { "class_method_signature": "InversionServletConfig.createDefaultInversionServlet(Engine engine)", "constructor"...
{ "body": "public static String buildServletMapping(Engine engine) {\n List<String> parts = new ArrayList<>();\n boolean done = false;\n for (int i = 0; i < 100 && !done; i++) {\n String part = null;\n for (Path path : engine.getIncludePaths()) {\n if (p...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_12
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/PathTest.java", "identifier": "PathTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extract_missingClosingBracketIsConsideredLiteralNotVariable() {\n Map<String, String> params = new HashMap<>();\n\n Path rule = new Path(\"part1/{part2/part3/*\");\n Path path = new Path(\"part1/val2/part3/part4\");\n\n boolean error = false;\n try ...
{ "fields": [ { "declarator": "parts = new ArrayList<>()", "modifier": "", "original_string": "List<String> parts = new ArrayList<>();", "type": "List<String>", "var_name": "parts" }, { "declarator": "lc = new ArrayList<>()", "modifier": "", "original_str...
{ "body": "public Path extract(Map params, Path toMatch) {\n return extract(params, toMatch, false);\n }", "class_method_signature": "Path.extract(Map params, Path toMatch)", "constructor": false, "full_signature": "public Path extract(Map params, Path toMatch)", "identifier": "extract", "invocati...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_13
{ "fields": [], "file": "inversion-api/src/test/java/io/inversion/utils/PathTest.java", "identifier": "PathTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void match() {\n assertTrue(new Path(\"[{^$}]\").matches(\"\"));\n\n assertTrue(new Path(\"*\").matches(\"/something/asdfas/\"));\n assertTrue(new Path(\"*\").matches(\"something/asdfas/\"));\n assertTrue(new Path(\"something/{collection:books|customers}\").mat...
{ "fields": [ { "declarator": "parts = new ArrayList<>()", "modifier": "", "original_string": "List<String> parts = new ArrayList<>();", "type": "List<String>", "var_name": "parts" }, { "declarator": "lc = new ArrayList<>()", "modifier": "", "original_str...
{ "body": "public boolean matches(String toMatch) {\n return matches(new Path(toMatch));\n }", "class_method_signature": "Path.matches(String toMatch)", "constructor": false, "full_signature": "public boolean matches(String toMatch)", "identifier": "matches", "invocations": [ "matches" ], ...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...
212625733_29
{ "fields": [], "file": "inversion-spring-boot/src/test/java/io/inversion/spring/InversionServletConfigTest.java", "identifier": "InversionServletConfigTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void buildServletMapping_breakOnRegex() {\n Engine e = new Engine().withIncludeOn(null, \"/a/b/c\", \"/a/b/{c}\");\n assertEquals(\"/a/b/*\", InversionServletConfig.buildServletMapping(e));\n }", "class_method_signature": "InversionServletConfigTest.buildServletMapping_...
{ "fields": [], "file": "inversion-spring-boot/src/main/java/io/inversion/spring/InversionServletConfig.java", "identifier": "InversionServletConfig", "interfaces": "", "methods": [ { "class_method_signature": "InversionServletConfig.createDefaultInversionServlet(Engine engine)", "constructor"...
{ "body": "public static String buildServletMapping(Engine engine) {\n List<String> parts = new ArrayList<>();\n boolean done = false;\n for (int i = 0; i < 100 && !done; i++) {\n String part = null;\n for (Path path : engine.getIncludePaths()) {\n if (p...
{ "created": "10/3/2019 4:24:47 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 212625733, "size": null, "stargazer_count": null, "stars": 19, "updates": "2020-01-18T04:00:20+00:00", "url": "https://github.com/inversion-api/in...