Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 646 for Floats (0.08 seconds)

  1. tests/test_path.py

                    "input": "True",
                }
            ]
        }
    
    
    def test_path_float_42():
        response = client.get("/path/float/42")
        assert response.status_code == 200
        assert response.json() == 42
    
    
    def test_path_float_42_5():
        response = client.get("/path/float/42.5")
        assert response.status_code == 200
        assert response.json() == 42.5
    
    
    def test_path_bool_foobar():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 20.5K bytes
    - Click Count (2)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        // The values here look like 111...11101...010 in binary, where the initial 111...1110 takes
        // up exactly as many bits as can be represented in the significand (24 for float, 53 for
        // double). That final 0 should be rounded up to 1 because the remaining bits make that number
        // slightly nearer.
        long floatConversionTest = 0xfffffe8000000002L;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  3. src/main/webapp/WEB-INF/view/admin/dict/protwords/admin_dict_protwords.jsp

                                <la:message key="labels.dict_protwords_title"/>
                            </h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><la:link href="/admin/dict">
                                    <la:message key="labels.dict_list_link"/>
                                </la:link></li>
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 13 05:54:52 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  4. tests/test_sub_callbacks.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: Optional[str] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  5. tests/test_validate_response.py

    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: Optional[float] = None
        owner_ids: Optional[list[int]] = None
    
    
    @app.get("/items/invalid", response_model=Item)
    def get_invalid():
        return {"name": "invalid", "price": "foo"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java

            // Use reflection to access protected method
            final java.lang.reflect.Method method =
                    CrawlerThread.class.getDeclaredMethod("storeChildUrl", String.class, String.class, float.class, int.class);
            method.setAccessible(true);
            method.invoke(crawlerThread, "http://example.com/child", "http://example.com/", 1.0f, 2);
    
            verify(urlQueueService, times(1)).offerAll(anyString(), any());
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/query/QueryFieldConfig.java

                final Pair<String, Float> pair = new Pair<>();
                final String[] values = s.split(":");
                if (values.length == 1) {
                    pair.setFirst(values[0].trim());
                    pair.setSecond(1.0f);
                } else if (values.length > 1) {
                    pair.setFirst(values[0]);
                    pair.setSecond(Float.parseFloat(values[1]));
                } else {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/base/MoreObjects.java

         *
         * <p>It is strongly encouraged to use {@link #add(String, float)} instead and give value a
         * readable name.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper addValue(float value) {
          return addUnconditionalHolder(String.valueOf(value));
        }
    
        /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

     * - Resource content validation
     * - InputStream null safety in try-with-resources
     */
    public class SuggesterResourceLoadingTest {
    
        /**
         * Test that getDefaultMappings correctly loads and returns mapping resource.
         */
        @Test
        public void testGetDefaultMappings_loadsCorrectly() throws Exception {
            // Load resource directly to verify it exists
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  10. tests/test_get_request_body.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Product(BaseModel):
        name: str
        description: str = None  # type: ignore
        price: float
    
    
    @app.get("/product")
    async def create_item(product: Product):
        return product
    
    
    client = TestClient(app)
    
    
    def test_get_with_body():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.7K bytes
    - Click Count (0)
Back to Top