Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1361 - 1370 of 4,419 for getC (0.02 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/common/RoundingBenchmark.java

        public void round(Blackhole bh) {
            Rounding.Prepared rounder = rounderBuilder.get();
            for (int i = 0; i < dates.length; i++) {
                bh.consume(rounder.round(dates[i]));
            }
        }
    
        @Benchmark
        public void nextRoundingValue(Blackhole bh) {
            Rounding.Prepared rounder = rounderBuilder.get();
            for (int i = 0; i < dates.length; i++) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 16:53:28 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial013_an_py310.py

    
    def get_user(user_id: int, session: Annotated[Session, Depends(get_session)]):
        user = session.get(User, user_id)
        if not user:
            raise HTTPException(status_code=403, detail="Not authorized")
    
    
    def generate_stream(query: str):
        for ch in query:
            yield ch
            time.sleep(0.1)
    
    
    @app.get("/generate", dependencies=[Depends(get_user)])
    def generate(query: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 937 bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/service/ElevateWordService.java

                        final String[] permissions = split(getValue(list, 2), ",").get(stream -> stream.map(permissionHelper::encode)
                                .filter(StringUtil::isNotBlank)
                                .distinct()
                                .toArray(n -> new String[n]));
                        final String[] labels = split(getValue(list, 3), ",")
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

         * Retrieves a specific document by ID.
         *
         * @param id the document ID to retrieve
         * @return JSON response containing the document
         */
        // GET /api/admin/searchlist/doc/{doc_id}
        @Execute
        public JsonResponse<ApiResult> get$doc(final String id) {
            return asJson(new ApiDocResponse().doc(searchEngineClient.getDocument(fessConfig.getIndexDocumentUpdateIndex(), builder -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/job/IndexExportJob.java

                }
    
                final Path resolved = Paths.get(exportPath, sanitized.toString()).normalize();
                final Path baseDir = Paths.get(exportPath).normalize();
                if (!resolved.startsWith(baseDir)) {
                    logger.warn("Path traversal detected: url={}, resolved={}", url, resolved);
                    return Paths.get(exportPath, "_invalid", hashString(url) + formatter.getFileExtension());
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

                  closed.set(true)
                  super.close()
                }
              }.buffer()
            }
          }
        assertThat(body.string()).isEqualTo("hello")
        assertThat(closed.get()).isTrue()
      }
    
      @Test
      fun readerEmpty() {
        val body = body("")
        assertThat(exhaust(body.charStream())).isEqualTo("")
      }
    
      @Test
      fun readerLooksLikeBomButTooShort() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            WitnessRegistration registration =
                    client.registerForNotifications("\\\\server\\share", serverAddress, listener).get(5, TimeUnit.SECONDS);
    
            assertEquals(1, client.getActiveRegistrationCount());
    
            // Unregister
            client.unregister(registration).get(5, TimeUnit.SECONDS);
    
            assertEquals(0, client.getActiveRegistrationCount());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  8. docs_src/path_operation_configuration/tutorial002_py310.py

        tags: set[str] = set()
    
    
    @app.post("/items/", tags=["items"])
    async def create_item(item: Item) -> Item:
        return item
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:07:26 GMT 2026
    - 524 bytes
    - Click Count (0)
  9. tests/test_tutorial/test_body_updates/test_tutorial001.py

    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/pathmap/ApiAdminPathmapAction.java

        /** Service for managing path mapping configurations */
        @Resource
        private PathMappingService pathMappingService;
    
        // GET /api/admin/pathmap
        // PUT /api/admin/pathmap
        /**
         * Returns list of path mapping settings.
         * Supports both GET and PUT requests for retrieving paginated path mapping configurations.
         *
         * @param body search parameters for filtering and pagination
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 7.8K bytes
    - Click Count (0)
Back to Top