Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 8,299 for Person (0.06 sec)

  1. container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt

          mockServerClient
            .`when`(
              request()
                .withPath("/person")
                .withQueryStringParameter("name", "peter"),
            ).respond(response().withBody("Peter the person!"))
    
          val client =
            OkHttpClient
              .Builder()
              .proxy(Proxy(SOCKS, InetSocketAddress(socks5Proxy.host, socks5Proxy.firstMappedPort)))
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 2.6K bytes
    - Viewed (0)
  2. tests/joins_table_test.go

    	person := Person{Name: "person", Addresses: []Address{address1, address2}}
    	DB.Create(&person)
    
    	var addresses1 []Address
    	if err := DB.Model(&person).Association("Addresses").Find(&addresses1); err != nil || len(addresses1) != 2 {
    		t.Fatalf("Failed to find address, got error %v, length: %v", err, len(addresses1))
    	}
    
    	if err := DB.Model(&person).Association("Addresses").Delete(&person.Addresses[0]); err != nil {
    Registered: 2025-05-25 09:35
    - Last Modified: 2020-09-10 13:46
    - 3.5K bytes
    - Viewed (1)
  3. tests/test_jsonable_encoder.py

    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    class Person:
        def __init__(self, name: str):
            self.name = name
    
    
    class Pet:
        def __init__(self, owner: Person, name: str):
            self.owner = owner
            self.name = name
    
    
    @dataclass
    class Item:
        name: str
        count: int
    
    
    class DictablePerson(Person):
        def __iter__(self):
    Registered: 2025-05-25 07:19
    - Last Modified: 2024-04-18 21:56
    - 9K bytes
    - Viewed (0)
  4. tests/test_read_with_orm_mode.py

            full_name: str
    
            model_config = {"from_attributes": True}
    
        app = FastAPI()
    
        @app.post("/people/", response_model=PersonRead)
        def create_person(person: PersonCreate) -> Any:
            db_person = Person.model_validate(person)
            return db_person
    
        client = TestClient(app)
    
        person_data = {"name": "Dive", "lastname": "Wilson"}
        response = client.post("/people/", json=person_data)
    Registered: 2025-05-25 07:19
    - Last Modified: 2023-07-07 17:12
    - 2.4K bytes
    - Viewed (0)
  5. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

                Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl()),
              ).execute()
    
          assertThat(response.body.string()).contains("Peter the person")
          assertThat(response.protocol).isEqualTo(Protocol.HTTP_1_1)
        }
      }
    
      @Test
      fun testUrlConnectionDirect() {
        testRequest {
          val url = URI(mockServer.endpoint + "/person?name=peter").toURL()
    
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 6.2K bytes
    - Viewed (0)
  6. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

            .`when`(
              request()
                .withPath("/person")
                .withQueryStringParameter("name", "peter"),
            ).respond(response().withBody("Peter the person!"))
    
          val response = client.newCall(Request((mockServer.endpoint + "/person?name=peter").toHttpUrl())).execute()
    
          assertThat(response.body.string()).contains("Peter the person")
        }
      }
    
      @Test
      fun testHttpsRequest() {
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 3.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Funnel.java

     *
     * {@snippet :
     * public enum PersonFunnel implements Funnel<Person> {
     *   INSTANCE;
     *   public void funnel(Person person, PrimitiveSink into) {
     *     into.putUnencodedChars(person.getFirstName())
     *         .putUnencodedChars(person.getLastName())
     *         .putInt(person.getAge());
     *   }
     * }
     * }
     *
     * @author Dimitris Andreou
     * @since 11.0
     */
    @Beta
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-03-17 20:26
    - 2.1K bytes
    - Viewed (0)
  8. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

            .`when`(
              request()
                .withPath("/person")
                .withQueryStringParameter("name", "peter"),
            ).respond(response().withBody("Peter the person!"))
    
          val results =
            (1..20).map {
              executor.submit {
                val response =
                  client.newCall(Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl())).execute()
    
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 3.7K bytes
    - Viewed (0)
  9. licenses/github.com/shopspring/decimal/LICENSE

    Copyright (c) 2015 Spring, Inc.
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    Registered: 2025-05-28 22:53
    - Last Modified: 2021-01-06 22:59
    - 2.2K bytes
    - Viewed (0)
  10. tests/scan_test.go

    func TestScanToEmbedded(t *testing.T) {
    	person1 := Person{Name: "person 1"}
    	person2 := Person{Name: "person 2"}
    	DB.Save(&person1).Save(&person2)
    
    	address1 := Address{Name: "address 1"}
    	address2 := Address{Name: "address 2"}
    	DB.Save(&address1).Save(&address2)
    
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address1.ID)})
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address2.ID)})
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-06-12 10:57
    - 10.9K bytes
    - Viewed (0)
Back to top