Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for foo (0.12 sec)

  1. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Comparator<Foo> natural = Ordering.natural();
        Comparator<Foo> reverse = Collections.reverseOrder(natural);
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(Comparators.min(a, b, reverse)).isSameInstanceAs(a);
        assertThat(Comparators.max(a, b, reverse)).isSameInstanceAs(a);
      }
    
      private static class Foo implements Comparable<Foo> {
        final Integer value;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Comparator<Foo> natural = Ordering.natural();
        Comparator<Foo> reverse = Collections.reverseOrder(natural);
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(Comparators.min(a, b, reverse)).isSameInstanceAs(a);
        assertThat(Comparators.max(a, b, reverse)).isSameInstanceAs(a);
      }
    
      private static class Foo implements Comparable<Foo> {
        final Integer value;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. tests/test_jsonable_encoder.py

        assert jsonable_encoder(model, exclude_defaults=True) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude_unset=True, exclude_defaults=True) == {
            "foo": "foo"
        }
        assert jsonable_encoder(model, include={"foo"}) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude={"bla"}) == {"foo": "foo", "bar": "bar"}
        assert jsonable_encoder(model, include={}) == {}
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/query-params.md

    ```
    
    En este caso, si vas a:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/query-params.md

    Nesse caso, se você for para:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. tests/main.py

        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/int/default")
    def get_query_type_int_default(query: int = 10):
        return f"foo bar {query}"
    
    
    @app.get("/query/param")
    def get_query_param(query=Query(default=None)):
        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/param-required")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/tr/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_query_params/test_tutorial005.py

    from docs_src.query_params.tutorial005 import app
    
    client = TestClient(app)
    
    
    def test_foo_needy_very():
        response = client.get("/items/foo?needy=very")
        assert response.status_code == 200
        assert response.json() == {"item_id": "foo", "needy": "very"}
    
    
    def test_foo_no_needy():
        response = client.get("/items/foo")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/query-params.md

    ```
    
    이 경우, 아래로 이동하면:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top