Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 147 for Flatten (0.41 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/AbstractMavenModule.groovy

                                        }
                                    }
                                }
                            }
                        }
                    } else if (dependencies || !variants.dependencies.flatten().empty) {
                        dependencies {
                            dependencies.each { dep ->
                                dependency {
                                    groupId(dep.groupId)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  2. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

        return durationsPerTestProject
            .mapValues { (_, durations) -> durations.flatten().map { it.scenario } }
    }
    
    class EmptyTestProjectBucket(private val index: Int) : PerformanceTestBucket {
        override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

            val subprojectRoots = File("../platforms").listFiles(File::isDirectory).plus(File("../subprojects"))
            val subProjectFolders = subprojectRoots.map { it.listFiles(File::isDirectory).asList() }.flatten().filter { dir ->
                // filter out the directories that have only a `build` subdirectory - this usually happens after branch switching
                dir.listFiles { _: File, name: String -> name != "build" }!!.isNotEmpty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 10:00:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/initialization/exception/DefaultExceptionAnalyserTest.groovy

                return causes
            }
    
            @Override
            List<String> getResolutions() {
                return causes.collect { it instanceof ResolutionProvider ? ((ResolutionProvider) it).getResolutions() : null }.flatten() as List<String>
            }
        }
    
        @Contextual
        abstract static class TestException extends LocationAwareException {
            protected TestException(Throwable cause, ScriptSource source, Integer lineNumber) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. pkg/slices/slices_test.go

    			input: [][]int{{1, 2}, {}, {3, 4}},
    			want:  []int{1, 2, 3, 4},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := Flatten(tc.input)
    			if !reflect.DeepEqual(got, tc.want) {
    				t.Errorf("Flatten(%v) = %v; want %v", tc.input, got, tc.want)
    			}
    		})
    	}
    }
    
    // nolint: unused
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/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: Wed May 29 06:47:40 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/validation/validation.go

    			cc.PodMaxBackoffSeconds, "must be greater than or equal to PodInitialBackoffSeconds"))
    	}
    
    	errs = append(errs, validateExtenders(field.NewPath("extenders"), cc.Extenders)...)
    	return utilerrors.Flatten(utilerrors.NewAggregate(errs))
    }
    
    func validatePercentageOfNodesToScore(path *field.Path, percentageOfNodesToScore *int32) error {
    	if percentageOfNodesToScore != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top