Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for isExist (0.5 seconds)

  1. src/main/java/org/codelibs/core/io/ResourceUtil.java

         *            The resource path. Must not be {@literal null} or empty string.
         * @return {@literal true} if the resource exists
         * @see #getResourceNoException(String)
         */
        public static boolean isExist(final String path) {
            assertArgumentNotEmpty("path", path);
    
            return getResourceNoException(path) != null;
        }
    
        /**
         * Loads and returns a properties file from the context class loader.
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientRebuildTest.java

            for (final String[] call : testClient.addMappingCalls) {
                assertNotNull(call);
            }
            // The loadBulkData=true path triggers getResourcePath + ResourceUtil.isExist checks.
            // In test environment resource files don't exist, so insertBulkData won't be called,
            // but the overall flow should still succeed.
            assertTrue(testClient.calledMethods.contains("addMapping"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 28.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

                        final String dataPath =
                                getResourcePath(indexConfigPath, fessConfig.getFesenType(), "/" + configIndex + "/" + configType + ".bulk");
                        if (ResourceUtil.isExist(dataPath)) {
                            insertBulkData(fessConfig, indexName, dataPath, true);
                        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
  4. src/test/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriterTest.java

            runner.refresh();
    
            GetResponse getResponse =
                    runner.client().prepareGet().setIndex(suggester.getIndex()).setId(item.getId()).get(TimeValue.timeValueSeconds(30));
            assertTrue(getResponse.isExists());
        }
    
        @Test
        public void test_writeItemsWithUpdate() throws Exception {
            String[][] readings = new String[1][];
            readings[0] = new String[] { "test" };
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.3K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

    import importlib
    
    import pytest
    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    from inline_snapshot import Is, snapshot
    
    from ...utils import needs_py310
    
    UNTYPED_LIST_SCHEMA = {"type": "array", "items": {}}
    
    LIST_OF_STR_SCHEMA = {"type": "array", "items": {"type": "string"}}
    
    SET_OF_STR_SCHEMA = {"type": "array", "items": {"type": "string"}, "uniqueItems": True}
    
    
    @pytest.fixture(
        name="mod_name",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

    import importlib
    
    import pytest
    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial006_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

    import importlib
    
    import pytest
    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial004_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

    import importlib
    
    import pytest
    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial005_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  9. tensorflow/c/eager/c_api.cc

        return ret;
      }
      status->status =
          tensorflow::AttrTypeByName(*attr_types_, attr_name, &ret, is_list);
      return ret;
    }
    
    TF_AttrType TFE_OpNameGetAttrType(TFE_Context* ctx,
                                      const char* op_or_function_name,
                                      const char* attr_name, unsigned char* is_list,
                                      TF_Status* status) {
      TF_AttrType ret;
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Nov 07 05:55:21 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            try {
                final GetResponse getResponse =
                        client.prepareGet().setIndex(settingsIndexName).setId(settingsId).execute().actionGet(getSearchTimeout());
    
                if (!getResponse.isExists()) {
                    doCreate = true;
                }
            } catch (final IndexNotFoundException e) {
                doIndexCreate = true;
                doCreate = true;
            }
    
            if (doCreate) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
Back to Top