Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 673 for john (0.07 seconds)

  1. src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java

            final String jwtClaim = "{\"sub\":\"user123\",\"name\":\"John Doe\",\"email\":\"john@example.com\"}";
            final Map<String, Object> attributes = new HashMap<>();
    
            authenticator.parseJwtClaim(jwtClaim, attributes);
    
            assertEquals("user123", attributes.get("sub"));
            assertEquals("John Doe", attributes.get("name"));
            assertEquals("john@example.com", attributes.get("email"));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 11K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/extra-models.md

    Pydantic models have a `.model_dump()` method that returns a `dict` with the model's data.
    
    So, if we create a Pydantic object `user_in` like:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    and then we call:
    
    ```Python
    user_dict = user_in.model_dump()
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/app/service/UserServiceTest.java

        }
    
        @Test
        public void test_user_givenName() {
            final User user = new User();
            assertNull(user.getGivenName());
    
            user.setGivenName("John");
            assertEquals("John", user.getGivenName());
        }
    
        @Test
        public void test_user_surname() {
            final User user = new User();
            assertNull(user.getSurname());
    
            user.setSurname("Doe");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  4. docs_src/python_types/tutorial002_py310.py

    def get_full_name(first_name: str, last_name: str):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 172 bytes
    - Click Count (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

            model.setType("TYPE");
            DefaultToolchain toolchain = newDefaultToolchain(model);
    
            assertFalse(toolchain.matchesRequirements(Collections.singletonMap("name", "John Doe")));
            verify(logger).debug("Toolchain {} is missing required property: {}", toolchain, "name");
        }
    
        @Test
        void testNonMatchingRequirementProperty() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 11 12:33:57 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  6. docs_src/python_types/tutorial001_py310.py

    def get_full_name(first_name, last_name):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 162 bytes
    - Click Count (0)
  7. docs/zh-hant/docs/tutorial/extra-models.md

    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    接著呼叫:
    
    ```Python
    user_dict = user_in.model_dump()
    ```
    
    此時變數 `user_dict` 會是一個承載資料的 `dict`(也就是 `dict`,而非 Pydantic 模型物件)。
    
    若再呼叫:
    
    ```Python
    print(user_dict)
    ```
    
    我們會得到一個 Python `dict`:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  8. docs_src/security/tutorial003_py310.py

    from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
    from pydantic import BaseModel
    
    fake_users_db = {
        "johndoe": {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "******@****.***",
            "hashed_password": "fakehashedsecret",
            "disabled": False,
        },
        "alice": {
            "username": "alice",
            "full_name": "Alice Wonderson",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformerTest.java

            final Map<String, Object> metaDataMap = responseData.getMetaDataMap();
            metaDataMap.put("author", "John Doe");
            metaDataMap.put("keywords", new String[] { "java", "search" });
    
            assertNotNull(responseData.getMetaDataMap());
            assertEquals(2, responseData.getMetaDataMap().size());
            assertEquals("John Doe", responseData.getMetaDataMap().get("author"));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  10. docs_src/security/tutorial003_an_py310.py

    from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
    from pydantic import BaseModel
    
    fake_users_db = {
        "johndoe": {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "******@****.***",
            "hashed_password": "fakehashedsecret",
            "disabled": False,
        },
        "alice": {
            "username": "alice",
            "full_name": "Alice Wonderson",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.5K bytes
    - Click Count (0)
Back to Top