Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 147 for Flatten (0.54 sec)

  1. subprojects/core-api/src/main/java/org/gradle/util/CollectionUtils.java

        }
    
        /**
         * Recursively unpacks all the given things into a flat list.
         *
         * Nulls are not removed, they are left intact.
         *
         * @param things The things to flatten
         * @return A flattened list of the given things
         */
        public static List<?> flattenCollections(Object... things) {
            return flattenCollections(Object.class, things);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            }
    
            fun assertHasErrors(vararg errors: List<String>) {
                assertHasErrors(*errors.toList().flatten().toTypedArray())
            }
    
            fun assertHasErrors(vararg errorWithDetail: Pair<String, List<String>>) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/internal/operations/logging/LoggingBuildOperationProgressIntegTest.groovy

            succeeds 'build'
    
            then:
            def progressOutputEvents = operations.all(Pattern.compile('.*'))
                .collect { it.progress }
                .flatten()
                .with { it as List<BuildOperationRecord.Progress> }
                .findAll { OutputEvent.isAssignableFrom(it.detailsType) }
    
            // 11 tasks + "\n" + "BUILD SUCCESSFUL" + "2 actionable tasks: 2 executed"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/ResolveTestFixture.groovy

                visitNodes(this.root, result)
                return result.collect { it.artifacts }.flatten()
            }
    
            Set<String> getFiles() {
                Set<NodeBuilder> result = new LinkedHashSet()
                result.add(this.root)
                visitNodes(this.root, result)
                return result.collect { node -> node.files }.flatten()
            }
    
            private void visitNodes(NodeBuilder node, Set<NodeBuilder> result) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 37.8K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         */
        @Nonnull
        Node collectDependencies(@Nonnull DependencyCoordinate dependency);
    
        /**
         * Shortcut for {@code getService(DependencyResolver.class).flatten(...)}.
         *
         * @param node node for which to get a flattened list
         * @param scope build path scope (main compile, test compile, etc.) of desired nodes
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ResolveConfigurationRepositoriesBuildOperationIntegrationTest.groovy

            when:
            succeeds 'resolve'
    
            then:
            def ops = operations.all(ResolveConfigurationDependenciesBuildOperationType)
            ops.size() == 3
            ops.details.repositories.flatten().unique(false).size() == 1
        }
    
        def "repositories shared across projects are stable"() {
            setup:
            createDirs("child")
            settingsFile << """
                include 'child'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

        llvm::StringRef equation, RankedTensorType lhs_ty) {
      llvm::StringRef lhs;
      llvm::StringRef out;
      std::tie(lhs, out) = equation.split("->");
      if (lhs.empty() || out.empty()) return std::nullopt;
    
      // Try to flatten the "..." if possible.
      int lhs_named_label, rhs_named_label;
    
      // following rhs and rhs_ty variables are non-functional here only created to
      // comply with the existing API
      llvm::StringRef rhs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildOperationsIntegrationTest.groovy

            and:
            def buildFinished = operations.only(FinishRootBuildTreeBuildOperationType)
            buildFinished.progress.size() == 3
            buildFinished.progress.details.spans.text.flatten() ==~ ["buildA", "buildB", "buildC"].collect { "$message $it${getPlatformLineSeparator()}".toString() }
    
            where:
            description     | registration                                                          | message
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 13:43:40 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. hack/lib/util.sh

        name: local-up-cluster
    current-context: local-up-cluster
    EOF
    
        # flatten the kubeconfig files to make them self contained
        username=$(whoami)
        ${sudo} /usr/bin/env bash -e <<EOF
        $(kube::util::find-binary kubectl) --kubeconfig="${dest_dir}/${client_id}.kubeconfig" config view --minify --flatten > "/tmp/${client_id}.kubeconfig"
        mv -f "/tmp/${client_id}.kubeconfig" "${dest_dir}/${client_id}.kubeconfig"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. pkg/kube/krt/README.md

        }
        return res
    }) // Results in a Collection[Endpoint]
    ```
    
    As a rule of thumb, if your `Collection` type is a list, you most likely should be using a different type to flatten the list.
    An exception to this would be if the list represents an atomic set of items that are never queried independently;
    in these cases, however, it is probably best to wrap it in a struct.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top