Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 6961 - 6970 of 7,303 for recur2 (0.07 seconds)

  1. guava/src/com/google/common/graph/PredecessorsFunction.java

     *
     * {@snippet :
     * someGraphAlgorithm(startNode, MyNode::getParents);
     * }
     *
     * <p>If you have some other mechanism for returning the predecessors of a node, or one that doesn't
     * return a {@code Iterable<? extends N>}, then you can use a lambda to perform a more general
     * transformation:
     *
     * {@snippet :
     * someGraphAlgorithm(startNode, node -> ImmutableList.of(node.mother(), node.father()));
     * }
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

            val parallelizationMethod =
                when (testCoverage.os) {
                    Os.LINUX -> ParallelizationMethod.TestDistribution
                    else -> ParallelizationMethod.None
                }
    
            return FunctionalTest(
                model,
                testCoverage.getBucketUuid(model, bucketIndex),
                "${testCoverage.asName()} ($startInclusive <= gradle <$endExclusive)",
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Sep 24 08:38:33 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/netbios/NbtAddressTest.java

            assertNotNull(unwrapped);
            assertSame(nbtAddress, unwrapped);
    
            // Test unwrap for incompatible type - NbtAddress implements NetbiosAddress so it should return itself
            NetbiosAddress netbiosUnwrapped = nbtAddress.unwrap(NetbiosAddress.class);
            assertNotNull(netbiosUnwrapped);
            assertSame(nbtAddress, netbiosUnwrapped);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.4K bytes
    - Click Count (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TextExtractorEnhancedTest.java

        /**
         * Test extraction with special characters and control characters.
         */
        public void test_getText_withSpecialCharacters_handlesCorrectly() {
            final String specialContent = "Tab\there\nNewline\rCarriage return\0Null byte";
            final InputStream in = new ByteArrayInputStream(specialContent.getBytes());
    
            final ExtractData result = textExtractor.getText(in, null);
    
            assertNotNull(result);
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  5. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Test DefaultArtifactVersion.
     *
     */
    class DefaultArtifactVersionTest {
        private ArtifactVersion newArtifactVersion(String version) {
            return new DefaultArtifactVersion(version);
        }
    
        private void checkVersionParsing(
                String version, int major, int minor, int incremental, int buildnumber, String qualifier) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

        }
    
        @Override
        public void close() {
            if (closed.compareAndSet(false, true)) {
                updater.interrupt();
            }
        }
    
        public TransferListener getDelegate() {
            return delegate;
        }
    
        private void feedConsumer() {
            final ArrayList<Exchange> batch = new ArrayList<>(batchMaxSize);
            try {
                while (true) {
                    batch.clear();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Feb 06 11:28:05 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  7. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanCreatorTest.java

            BuildPlanExecutor builder = new BuildPlanExecutor(null, null, null, null, null, null, null, null, lifecycles);
            BuildPlanExecutor.BuildContext context = builder.new BuildContext();
            return context.calculateLifecycleMappings(projects, phase);
        }
    
        /*
        @Test
        void testPlugins() {
            DefaultLifecycleRegistry lifecycles =
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 28 15:21:19 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  8. docs/zh/docs/advanced/security/http-basic-auth.md

    {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *}
    
    这类似于:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Return some error
        ...
    ```
    
    但使用 `secrets.compare_digest()`,可以防御**时差攻击**,更加安全。
    
    ### 时差攻击
    
    什么是**时差攻击**?
    
    假设攻击者试图猜出用户名与密码。
    
    他们发送用户名为 `johndoe`,密码为 `love123`  的请求。
    
    然后,Python 代码执行如下操作:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 4.2K bytes
    - Click Count (0)
  9. build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts

        }
    }
    
    fun readCapabilities(source: File): List<CapabilitySpec> {
        JsonReader(source.reader(Charsets.UTF_8)).use { reader ->
            reader.strictness = Strictness.LENIENT
            return Gson().fromJson(reader)
        }
    }
    
    inline
    fun <reified T> Gson.fromJson(json: JsonReader): T = this.fromJson(json, object : TypeToken<T>() {}.type)
    
    
    abstract class CapabilityRule @Inject constructor(
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jul 18 11:32:19 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle

                .replaceAll('###', '.*?')
        }
    }
    
    static String writeFilterPreset(Project project) {
        def preset = project.providers.gradleProperty('bin.cmp.report.severity.filter').getOrElse('All levels')
        return """<input id="filter-preset" type="hidden" value="$preset" />"""
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 8.9K bytes
    - Click Count (0)
Back to Top