Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 384 for reduce (0.22 sec)

  1. maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

            return modelsByGa.getOrDefault(new GAKey(groupId, artifactId), Collections.emptySet()).stream()
                    .filter(m -> version == null || version.equals(getVersion(m)))
                    .reduce((a, b) -> {
                        throw new IllegalStateException(
                                "Multiple modules with key " + a.getGroupId() + ':' + a.getArtifactId());
                    })
                    .orElse(null);
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Predicate.java

     *
     * <p>This interface is now a legacy type. Use {@code java.util.function.Predicate} (or the
     * appropriate primitive specialization such as {@code IntPredicate}) instead whenever possible.
     * Otherwise, at least reduce <i>explicit</i> dependencies on this type by using lambda expressions
     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LongAdder.java

    /**
     * One or more variables that together maintain an initially zero {@code long} sum. When updates
     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
     * reduce contention. Method {@link #sum} (or, equivalently, {@link #longValue}) returns the current
     * total combined across the variables maintaining the sum.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
  4. manifests/charts/istiod-remote/templates/istiod-injector-configmap.yaml

        operator.istio.io/component: "Pilot"
        release: {{ .Release.Name }}
    data:
    {{/* Scope the values to just top level fields used in the template, to reduce the size. */}}
      values: |-
    {{ $vals := pick .Values "global" "istio_cni" "sidecarInjectorWebhook" "revision" -}}
    {{ $pilotVals := pick .Values.pilot "cni" -}}
    {{ $vals = set $vals "pilot" $pilotVals -}}
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Feb 21 03:10:21 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. cmd/erasure-metadata-utils_test.go

    		}
    	}
    }
    
    // Test for reduceErrs, reduceErr reduces collection
    // of errors into a single maximal error with in the list.
    func TestReduceErrs(t *testing.T) {
    	canceledErrs := make([]error, 0, 5)
    	for i := 0; i < 5; i++ {
    		canceledErrs = append(canceledErrs, fmt.Errorf("error %d: %w", i, context.Canceled))
    	}
    	// List all of all test cases to validate various cases of reduce errors.
    	testCases := []struct {
    		errs        []error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. docs/en/docs/history-design-future.md

    That way I could find the best ways to reduce code duplication as much as possible, to have completion everywhere, type and error checks, etc.
    
    All in a way that provided the best development experience for all the developers.
    
    ## Requirements
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Predicate.java

     *
     * <p>This interface is now a legacy type. Use {@code java.util.function.Predicate} (or the
     * appropriate primitive specialization such as {@code IntPredicate}) instead whenever possible.
     * Otherwise, at least reduce <i>explicit</i> dependencies on this type by using lambda expressions
     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/testing-database.md

    But the rest of the session code is more or less the same, we just copy it.
    
    ```Python hl_lines="8-13"
    {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!}
    ```
    
    !!! tip
        You could reduce duplication in that code by putting it in a function and using it from both `database.py` and `tests/test_sql_app.py`.
    
        For simplicity and to focus on the specific testing code, we are just copying it.
    
    ## Create the database
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LongAdder.java

    /**
     * One or more variables that together maintain an initially zero {@code long} sum. When updates
     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
     * reduce contention. Method {@link #sum} (or, equivalently, {@link #longValue}) returns the current
     * total combined across the variables maintaining the sum.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

            Set<ModelSource> sources = mappedSources.get(groupId + ":" + artifactId);
            if (sources == null) {
                return null;
            }
            return sources.stream()
                    .reduce((a, b) -> {
                        throw new IllegalStateException(String.format(
                                "No unique Source for %s:%s: %s and %s",
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top