Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 810 for rint (0.63 seconds)

  1. guava-tests/test/com/google/common/math/MathTesting.java

        // Add small multiples of MIN_VALUE and MIN_NORMAL
        for (int scale = 1; scale <= 4; scale++) {
          for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
            fractionalBuilder.add(d * scale).add(-d * scale);
          }
        }
        for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) {
          for (int direction : new int[] {1, -1}) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  2. scripts/lint.sh

    Sofie Van Landeghem <******@****.***> 1774370372 +0100
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 24 16:39:32 GMT 2026
    - 142 bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/extra-models.md

    ```Python
    user_dict = user_in.model_dump()
    ```
    
    we now have a `dict` with the data in the variable `user_dict` (it's a `dict` instead of a Pydantic model object).
    
    And if we call:
    
    ```Python
    print(user_dict)
    ```
    
    we would get a Python `dict` with:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    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)
  4. scripts/translate.py

                continue
            missing_paths.append(p)
        print("Paths to skip:")
        for p in skipped_paths:
            print(f"  - {p}")
        print(f"Total paths to skip: {len(skipped_paths)}")
        print("Paths to process:")
        for p in missing_paths:
            print(f"  - {p}")
        print(f"Total paths to process: {len(missing_paths)}")
        for p in missing_paths:
            print(f"Translating: {p}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  5. scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc_expected.md

    ```python
    #Function declaration
    def hello_world():# Print greeting
        print("Hello, world!")  #Print greeting without space after hash
    ```
    
    ```console
    //Function declaration
    def hello_world():// Print greeting
        print("Hello, world!")  //Print greeting without space after slashes
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  6. tests/test_response_dependency.py

        assert resp.status_code == 200
        assert resp.json() == {"status": "ok"}
        assert resp.headers.get("X-Custom") == "modified"
    
    
    # Tests for Request type hint with Depends
    def test_request_with_depends_annotated():
        """Request type hint should work in dependency chain."""
        app = FastAPI()
    
        def extract_request_info(request: Request) -> dict:
            return {
                "path": request.url.path,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 18:23:16 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  7. scripts/add_latest_release_date.py

            if date_part:
                print(f"Latest release {version} already has a date: {date_part}")
                sys.exit(0)
    
            today = date.today().isoformat()
            lines[i] = f"## {version} ({today})\n"
            print(f"Added date: {version} ({today})")
    
            with open(RELEASE_NOTES_FILE, "w") as f:
                f.writelines(lines)
            sys.exit(0)
    
        print("No release header found")
        sys.exit(1)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:06:36 GMT 2026
    - 1023 bytes
    - Click Count (0)
  8. docs/ru/docs/advanced/advanced-python-types.md

    Например, вы можете объявить, что значение может быть `str` или `None`:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    В `typing` также есть сокращение, чтобы объявить, что значение может быть `None`, — `Optional`.
    
    Вот совет с моей очень субъективной точки зрения:
    
    - 🚨 Избегайте использования `Optional[SomeType]`
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 19:57:34 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  9. docs/ko/docs/advanced/advanced-python-types.md

    예를 들어, 어떤 값이 `str` 또는 `None`이 될 수 있다고 선언할 수 있습니다:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    `typing`에는 `None`이 될 수 있음을 선언하는 축약형으로 `Optional`도 있습니다.
    
    아주 개인적인 관점에서의 팁입니다:
    
    - 🚨 `Optional[SomeType]` 사용은 피하세요
    - 대신 ✨ **`Union[SomeType, None]`를 사용하세요** ✨.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

            activityHelper.print("aaa", OptionalThing.empty(), Map.of());
            assertEquals("action:AAA\tuser:-", localLogMsg.get());
    
            activityHelper.print("aaa bbb", createUser("testuser", new String[0]), Map.of("111", "222"));
            assertEquals("action:AAA BBB\tuser:testuser\t111:222", localLogMsg.get());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 24.3K bytes
    - Click Count (0)
Back to Top