Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 699 for takeIf (0.05 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/TestLogHandler.kt

            } finally {
              afterEach(null)
            }
          }
        }
    
      fun takeAll(): List<String> {
        val list = mutableListOf<String>()
        logs.drainTo(list)
        return list
      }
    
      fun take(): String =
        logs.poll(10, TimeUnit.SECONDS)
          ?: throw AssertionError("Timed out waiting for log message.")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/advanced-python-types.md

    I think `Union[SomeType, None]` is more explicit about what it means.
    
    It's just about the words and names. But those words can affect how you and your teammates think about the code.
    
    As an example, let's take this function:
    
    ```python
    from typing import Optional
    
    
    def say_hi(name: Optional[str]):
        print(f"Hey {name}!")
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/SigningDigest.java

        /**
         * Performs MAC signing of the SMB.  This is done as follows.
         * The signature field of the SMB is overwritted with the sequence number;
         * The MD5 digest of the MAC signing key + the entire SMB is taken;
         * The first 8 bytes of this are placed in the signature field.
         *
         * @param data The data.
         * @param offset The starting offset at which the SMB header begins.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. MODULE.bazel

        "internal_configure_extension",
    )
    use_repo(pybind11_internal_configure, "pybind11")
    
    python = use_extension("@rules_python//python/extensions:python.bzl", "python")
    python.defaults(
        # The environment variable takes precedence if set.
        python_version = "3.11",
        python_version_env = "HERMETIC_PYTHON_VERSION",
    )
    python.toolchain(python_version = "3.10")
    python.toolchain(python_version = "3.11")
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Apr 02 01:32:13 GMT 2026
    - 11K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            wrongTag.addAttribute("target", "_blank");
            assertFalse(tag.matches(wrongTag));
        }
    
        @Test
        public void test_matches_complexCombinations() {
            // Test tag with both id and css (id takes precedence)
            PrunedTag tagWithIdAndCss = new PrunedTag("div");
            tagWithIdAndCss.setId("main");
            tagWithIdAndCss.setCss("container");
    
            MockNode nodeWithBothIdAndClass = new MockNode("div");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.1K bytes
    - Click Count (0)
  6. SECURITY.md

       Please inform us in your report email whether MinIO should mention your contribution w.r.t. fixing
       the security issue. By default MinIO will **not** publish this information to protect your privacy.
    
    This process can take some time, especially when coordination is required with maintainers of other projects.
    Every effort will be made to handle the bug in as timely a manner as possible, however it's important that we
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Feb 12 00:51:25 GMT 2022
    - 2.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelperTest.java

                public String getCrawlerDocumentMimetypeExtensionOverrides() {
                    return ".txt=application/custom-text";
                }
            });
    
            mimeTypeHelper.init();
    
            // Override takes priority over both content and filename detection
            try (InputStream is = new ByteArrayInputStream("plain text content".getBytes(StandardCharsets.UTF_8))) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 24 09:06:33 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * object behaves appropriately when its thread is interrupted.
       *
       * <p>For example, to return the value of {@code target.someMethod()}, but substitute {@code
       * DEFAULT_VALUE} if this method call takes over 50 ms, you can use this code:
       *
       * <pre>
       *   TimeLimiter limiter = . . .;
       *   TargetType proxy = limiter.newProxy(
       *       target, TargetType.class, 50, TimeUnit.MILLISECONDS);
       *   try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  9. architecture/standards/0007-java-pre-requisite.md

    In addition, some of these discussions included proposals for having a single Java version supported by the Gradle Launcher and Daemon.
    However, this would limit the ability of the Gradle ecosystem plugin authors to take advantage of new Java features and improvements.
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/testing-dependencies.md

    An example could be that you have an external authentication provider that you need to call.
    
    You send it a token and it returns an authenticated user.
    
    This provider might be charging you per request, and calling it might take some extra time than if you had a fixed mock user for tests.
    
    You probably want to test the external provider once, but not necessarily call it for every test that runs.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.4K bytes
    - Click Count (0)
Back to Top