Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 1,467 for example2 (0.09 seconds)

  1. tests/test_tutorial/test_background_tasks/test_tutorial002.py

        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/foo@example.com?q=some-query")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Message sent"}
        with open("./log.txt") as f:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 996 bytes
    - Click Count (0)
  2. cmd/testdata/config/1.yaml

    certs-dir: '/home/user/.minio/certs/'
    pools: # Specify the nodes and drives with pools
      -
            - 'https://server-example-pool1:9000/mnt/disk{1...4}/'
            - 'https://server{1...2}-pool1:9000/mnt/disk{1...4}/'
            - 'https://server3-pool1:9000/mnt/disk{1...4}/'
            - 'https://server4-pool1:9000/mnt/disk{1...4}/'
      -
            - 'https://server-example-pool2:9000/mnt/disk{1...4}/'
            - 'https://server{1...2}-pool2:9000/mnt/disk{1...4}/'
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 881 bytes
    - Click Count (0)
  3. misc/go_android_exec/README

    C compiler from the Android NDK. For example,
    
    	CGO_ENABLED=1 \
    	GOOS=android \
    	GOARCH=arm64 \
    	CC_FOR_TARGET=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang \
    	./all.bash
    
    To run tests on the Android device, add the bin directory to PATH so the
    go tool can find the go_android_$GOARCH_exec wrapper generated by
    make.bash. For example, to run the go1 benchmarks
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Mon May 01 14:45:55 GMT 2023
    - 732 bytes
    - Click Count (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpAuthenticationTest.java

            assertTrue(auth.matches("ftp://hostname/path%20with%20spaces/resource.txt"));
    
            // Test with empty path
            auth.setServer("test.example.com");
            assertTrue(auth.matches("ftp://test.example.com/"));
            assertTrue(auth.matches("ftp://test.example.com:21/"));
        }
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Mar 15 06:52:00 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  5. tests/test_openapi_servers.py

            {
                "url": "http://staging.localhost.tiangolo.com:8000",
                "description": "Staging but actually localhost still",
            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    def foo():
        return {"message": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_app():
        response = client.get("/foo")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. dbflute_fess/dfprop/commonColumnMap.dfprop

    # commonColumnMap: (Default map:{})
    #
    # The definition of common column(contains auto set-up).
    # For example, the date you registered the record,
    # the user who updated the record and so on...
    # The column names are treated as case insensitive.
    #
    # The variable '$$AccessContext$$' means allcommon.AccessContext.
    #
    # Example:
    # map:{
    #     ; commonColumnMap = map:{
    #         ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Jul 04 22:46:31 GMT 2015
    - 1.9K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/curl/io/ContentCache.java

     * it returns a ByteArrayInputStream.
     *
     * <p>Example usage:
     * <pre>
     * {@code
     * // In-memory caching
     * byte[] data = "example data".getBytes();
     * try (ContentCache cache = new ContentCache(data)) {
     *     InputStream inputStream = cache.getInputStream();
     *     // Read from inputStream
     * }
     *
     * // File-based caching
     * File file = new File("example.txt");
     * try (ContentCache cache = new ContentCache(file)) {
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_cors/test_tutorial001.py

            "Access-Control-Request-Headers": "X-Example",
        }
        response = client.options("/", headers=headers)
        assert response.status_code == 200, response.text
        assert response.text == "OK"
        assert (
            response.headers["access-control-allow-origin"]
            == "https://localhost.tiangolo.com"
        )
        assert response.headers["access-control-allow-headers"] == "X-Example"
    
        # Test standard response
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  9. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataServiceTest.java

                accessResult.setRuleId("htmlRule");
                accessResult.setSessionId(sessionId);
                accessResult.setStatus(200);
                accessResult.setUrl("http://www.example.com/page" + i);
    
                dataService.store(accessResult);
            }
    
            // Test getAccessResultList with callback
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 20 08:40:57 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/handling-errors.md

    In this example, when the client requests an item by an ID that doesn't exist, raise an exception with a status code of `404`:
    
    {* ../../docs_src/handling_errors/tutorial001_py39.py hl[11] *}
    
    ### The resulting response { #the-resulting-response }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9K bytes
    - Click Count (0)
Back to Top