Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 683 for punt (0.03 sec)

  1. docs/es/docs/python-types.md

    ```Python hl_lines="2"
    {!../../docs_src/python_types/tutorial001.py!}
    ```
    
    ### Edítalo
    
    Es un programa muy simple.
    
    Ahora, imagina que lo estás escribiendo desde cero.
    
    En algún punto habrías comenzado con la definición de la función, tenías los parámetros listos...
    
    Pero, luego tienes que llamar "ese método que convierte la primera letra en una mayúscula".
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_bigger_applications/test_main.py

            }
        )
    
    
    def test_put_invalid_header(client: TestClient):
        response = client.put("/items/foo", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

            }
            final String template = replacement.substring(GROOVY_MATCHER.length());
            return (u, m) -> {
                final Map<String, Object> paramMap = new HashMap<>();
                paramMap.put("url", u);
                paramMap.put("matcher", m);
                final Object value =
                        ComponentUtil.getScriptEngineFactory().getScriptEngine(Constants.DEFAULT_SCRIPT).evaluate(template, paramMap);
                if (value == null) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py

        from docs_src.schema_extra_example.tutorial001_pv1 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_pydanticv1
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

                        if (values.length == 2) {
                            mimetypeMap.put(values[0], values[1]);
                        }
                    }));
            if (logger.isDebugEnabled()) {
                logger.debug("loaded filetype: {}", mimetypeMap);
            }
        }
    
        public void add(final String mimetype, final String filetype) {
            mimetypeMap.put(mimetype, filetype);
        }
    
        public String get(final String mimetype) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                if (queries != null && queries.length > 0) {
                    doc.put(HL_CACHE, replaceHighlightQueries(cache, queries));
                } else {
                    doc.put(HL_CACHE, cache);
                }
            } else {
                doc.put(fessConfig.getIndexFieldCache(), StringUtil.EMPTY);
                doc.put(HL_CACHE, StringUtil.EMPTY);
            }
    
            try {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an.py

    from docs_src.schema_extra_example.tutorial004_an import app
    
    client = TestClient(app)
    
    
    # Test required and embedded body parameters with no bodies sent
    def test_post_body_example():
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_updates/test_tutorial001.py

            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
            "price": 3,
            "tax": 10.5,
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_body_updates/test_tutorial001_py310.py

            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    @needs_py310
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
            "price": 3,
            "tax": 10.5,
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorTest.java

                    doc.put(ID_FIELD, Integer.toString(mainSize - i - 1));
                    doc.put("score", 1.0f / (i + 2));
                    builder.addDocument(doc);
                }
                for (int i = 100; i < inSize + 100; i++) {
                    Map<String, Object> doc = new HashMap<>();
                    doc.put(ID_FIELD, Integer.toString(i));
                    doc.put("score", 1.0f / (mainSize + i + 2));
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 25.6K bytes
    - Viewed (0)
Back to top