Search Options

Results per page
Sort
Preferred Languages
Advance

Results 931 - 940 of 1,171 for constants (0.36 sec)

  1. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    例えば、<a href="https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files" class="external-link" target="_blank">ファイルを読み込むには`with`を使用することができます</a>:
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    その後の`open("./somefile.txt")`は「コンテキストマネージャ」と呼ばれるオブジェクトを作成します。
    
    `with`ブロックが終了すると、例外があったとしてもファイルを確かに閉じます。
    
    `yield`を依存関係を作成すると、**FastAPI** は内部的にそれをコンテキストマネージャに変換し、他の関連ツールと組み合わせます。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMap.java

            "Multiple entries with same " + conflictDescription + ": " + entry1 + " and " + entry2);
      }
    
      /**
       * A builder for creating immutable map instances, especially {@code public static final} maps
       * ("constant maps"). Example:
       *
       * {@snippet :
       * static final ImmutableMap<String, Integer> WORD_TO_INT =
       *     new ImmutableMap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .put("two", 2)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/cookie-param-models.md

    特定の(あまり一般的ではないかもしれない)ケースで、受け付けるクッキーを**制限**する必要があるかもしれません。
    
    あなたのAPIは独自の <abbr title="念のためですが、これはジョークです。クッキー同意とは関係ありませんが、APIでさえ不適切なクッキーを拒否できるとは愉快ですね。クッキーでも食べてください。🍪 (原文: This is a joke, just in case. It has nothing to do with cookie consents, but it's funny that even the API can now reject the poor cookies. Have a cookie. 🍪)">クッキー同意</abbr> を管理する能力を持っています。 🤪🍪
    
    Pydanticのモデルの Configuration を利用して、 `extra` フィールドを `forbid` とすることができます。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 28 14:21:27 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

                throw new ThemeException("Theme name is empty: " + artifact);
            }
            return themeName;
        }
    
        /**
         * Recursively deletes a directory and all its contents.
         * Does not throw exceptions, only logs warnings if deletion fails.
         *
         * @param dir the directory to delete
         */
        protected void closeQuietly(final Path dir) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

            "Multiple entries with same " + conflictDescription + ": " + entry1 + " and " + entry2);
      }
    
      /**
       * A builder for creating immutable map instances, especially {@code public static final} maps
       * ("constant maps"). Example:
       *
       * {@snippet :
       * static final ImmutableMap<String, Integer> WORD_TO_INT =
       *     new ImmutableMap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .put("two", 2)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Internamente, `open("./somefile.txt")` crea un objeto llamado "Context Manager".
    
    Cuando el bloque `with` termina, se asegura de cerrar el archivo, incluso si hubo excepciones.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

       * objects, and the array itself, can be null. That is for programmer convenience, when the
       * objects come from factory methods that are themselves {@code @Nullable}. In reality neither the
       * array nor its contents can be null, but it is not useful to force the use of {@code
       * requireNonNull} or the like just to assert that.
       *
       * <p>{@code EqualsTester} will always check that every object it is given returns false from
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. docs/contribute/concurrency.md

    We can't rely on application threads to read data from the socket. Application threads are transient: sometimes they're reading and writing and sometimes they're off doing application-layer things. But the socket is permanent, and it needs constant attention: we dispatch all incoming frames so the connection is good-to-go when the application layer needs it.
    
    So we have a dedicated thread for every socket that just reads frames and dispatches them.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            }
        }
    
        // Test constructor
        public void test_constructor() {
            CorsFilter filter = new CorsFilter();
            assertNotNull(filter);
        }
    
        // Test OPTIONS constant
        public void test_optionsConstant() {
            assertEquals("OPTIONS", CorsFilter.OPTIONS);
        }
    
        // Helper classes for testing
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            }
        }
    
        @Nested
        @DisplayName("Pipe Flags Tests")
        class PipeFlagsTests {
    
            @Test
            @DisplayName("Should have correct pipe flags constant")
            void testPipeFlags() {
                int expectedFlags = (0x2019F << 16) | SmbPipeResource.PIPE_TYPE_RDWR | SmbPipeResource.PIPE_TYPE_DCE_TRANSACT;
                assertEquals(expectedFlags, DcerpcPipeHandle.pipeFlags);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
Back to top