Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 313 for Flatten (0.22 sec)

  1. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy

            def byteArrayList = [[(byte) 1, (byte) 2, (byte) 3] as byte[], [(byte) 4] as byte[], [(byte) 5, (byte) 6] as byte[]]
            expect:
            StreamByteBuffer.of(byteArrayList).readAsByteArray() == (byteArrayList.flatten() as byte[])
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 13:06:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface DependencyResolverRequest {
    
        enum RequestType {
            COLLECT,
            FLATTEN,
            RESOLVE
        }
    
        @Nonnull
        Session getSession();
    
        @Nonnull
        RequestType getRequestType();
    
        @Nonnull
        Optional<Project> getProject();
    
        @Nonnull
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FileHierarchySet.java

                this.rootNode = new Node(path);
            }
    
            PrefixFileSet(Node rootNode) {
                this.rootNode = rootNode;
            }
    
            @VisibleForTesting
            List<String> flatten() {
                final List<String> prefixes = new ArrayList<String>();
                rootNode.visitHierarchy(0, new NodeVisitor() {
                    @Override
                    public void visitNode(int depth, Node node) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top