Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 138 for Flatten (0.43 sec)

  1. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/GccLinkerTest.groovy

                    "-o", outputFile.absolutePath,
                    testDir.file("one.o").absolutePath,
                    testDir.file("two.o").absolutePath,
                    "-arg1", "-arg2"].flatten()
    
            when:
            LinkerSpec spec = Mock(SharedLibraryLinkerSpec)
            spec.getSystemArgs() >> ['-sys1', '-sys2']
            spec.getArgs() >> ['-arg1', '-arg2']
            spec.getOutputFile() >> outputFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/io/multi.go

    	for len(mr.readers) > 0 {
    		// Optimization to flatten nested multiReaders (Issue 13558).
    		if len(mr.readers) == 1 {
    			if r, ok := mr.readers[0].(*multiReader); ok {
    				mr.readers = r.readers
    				continue
    			}
    		}
    		n, err = mr.readers[0].Read(p)
    		if err == EOF {
    			// Use eofReader instead of nil to avoid nil panic
    			// after performing flatten (Issue 18232).
    			mr.readers[0] = eofReader{} // permit earlier GC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/builder_example_test.go

    		// Provide input via a Reader.
    		// As an alternative, could call Path(false, "/path/to/file") to read from a file.
    		Stream(bytes.NewBufferString(exampleManifest), "input").
    		// Flatten items contained in List objects
    		Flatten().
    		// Accumulate as many items as possible
    		ContinueOnError()
    
    	// Run the builder
    	result := builder.Do()
    
    	if err := result.Err(); err != nil {
    		fmt.Println("builder error:", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go

    		}
    	}
    	return result
    }
    
    // Flatten takes an Aggregate, which may hold other Aggregates in arbitrary
    // nesting, and flattens them all into a single Aggregate, recursively.
    func Flatten(agg Aggregate) Aggregate {
    	result := []error{}
    	if agg == nil {
    		return nil
    	}
    	for _, err := range agg.Errors() {
    		if a, ok := err.(Aggregate); ok {
    			r := Flatten(a)
    			if r != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. pkg/ptr/pointer.go

    	}
    	return []T{*t}
    }
    
    // TypeName returns the name of the type
    func TypeName[T any]() string {
    	var empty T
    	return fmt.Sprintf("%T", empty)
    }
    
    // Flatten converts a double pointer to a single pointer by referencing if its non-nil
    func Flatten[T any](t **T) *T {
    	if t == nil {
    		return nil
    	}
    	return *t
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 07 14:56:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolver.java

            } catch (DependencyCollectionException e) {
                throw new DependencyResolverException("Unable to collect dependencies", e);
            }
        }
    
        @Override
        public List<Node> flatten(Session s, Node node, PathScope scope) throws DependencyResolverException {
            InternalSession session = InternalSession.from(s);
            DependencyNode root = cast(AbstractNode.class, node, "node").getDependencyNode();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/tasks/internal/VisualStudioSolutionFile.groovy

    EndProject"""
            }
            builder << """
    Global
    	GlobalSection(SolutionConfigurationPlatforms) = preSolution"""
            Set<String> configurationNames = Sets.newLinkedHashSet(projectConfigurations.values().flatten().collect({ it.name }).sort())
            configurationNames.each { String configurationName ->
                builder << """\n\t\t${configurationName} = ${configurationName}"""
            }
            builder << """
    	EndGlobalSection
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/precondition/PreconditionVerifier.groovy

        @Override
        Statement apply(@NotNull Statement base, @NotNull Description description) {
            List<Class<? extends TestPrecondition>> preconditions = description.annotations.findAll { it instanceof Requires }*.value().flatten()
            PredicatesFile.checkValidCombinations(preconditions, PredicatesFile.DEFAULT_ACCEPTED_COMBINATIONS)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/libtf/function.cc

    // TODO(b/190203981): Move to a separate nest-like library.
    void Flatten(const TaggedValue& value,
                 std::vector<AbstractTensorHandle*>* flat_args) {
      if (value.type() == TaggedValue::Type::TENSOR) {
        flat_args->emplace_back(value.tensor().get());
      } else if (value.type() == TaggedValue::Type::TUPLE) {
        for (const auto& t : value.tuple()) {
          Flatten(t, flat_args);
        }
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r55/ReservedProjectNamesCrossVersionSpec.groovy

                collectOutputs(builder)
                builder.run()
            }
    
            then:
            eclipseModels.collect {
                collectProjects(it)
            }.flatten().collect {
                it.name
            }.containsAll([
                'root', 'root-root-a', 'explicitName',
                'includedBuild1', 'includedBuild1-a', 'includedBuild1-includedBuild1-b', 'includedBuild1-c',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top