Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 256 for extractKey (0.3 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    	}
    	mergeKeyRight, ok := typedRight[mergeKey]
    	if !ok {
    		return false, mergepatch.ErrNoMergeKey(typedRight, mergeKey)
    	}
    	return mergeKeyLeft == mergeKeyRight, nil
    }
    
    // extractKey trims the prefix and return the original key
    func extractKey(s, prefix string) (string, error) {
    	substrings := strings.SplitN(s, "/", 2)
    	if len(substrings) <= 1 || substrings[0] != prefix {
    		switch prefix {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/test/groovy/org/gradle/internal/normalization/java/ApiClassExtractorTest.groovy

                }
            '''
    
            when:
            def clazz = api.classes.A
            def extracted = api.extractAndLoadApiClassFrom(clazz)
    
            then:
            clazz.clazz.getDeclaredMethod('foo').modifiers == Modifier.PUBLIC
            hasMethod(extracted, 'foo')
    
            when:
            def o = createInstance(extracted)
            o.foo()
    
            then:
            def e = thrown(Exception)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

            waiting.releaseAll()
            // wait for the first extracter to start extracting
            firstExtracter.waitForAllPendingCalls()
    
            // If we've made it here successfully, then no concurrent extracts have been seen
            def secondExtracter = server.expectAndBlock("extract")
            // release the first extracter so it can finish
            firstExtracter.releaseAll()
            // wait for the next one
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. docs/debugging/inspect/decrypt-v2.go

    	sr.ReturnNonDecryptable(true)
    
    	// Debug corrupted streams.
    	if false {
    		sr.SkipEncrypted(true)
    		return sr.DebugStream(os.Stdout)
    	}
    	extracted := false
    	for {
    		stream, err := sr.NextStream()
    		if err != nil {
    			if err == io.EOF {
    				if extracted {
    					return nil
    				}
    				return errors.New("no data found on stream")
    			}
    			if errors.Is(err, estream.ErrNoKey) {
    				if stream.Name == "inspect.zip" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 21:22:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ClassFileExtractionManager.java

        /**
         * Retrieve the file that contains the extracted class file.
         *
         * <p>
         * This method will extract the class file if it is
         * not extracted yet. Extracted class files are deleted on exit of the Gradle process. The same class is only
         * extracted once.
         * </p>
         *
         * @param className Name of the class to extract.
         * @return File that contains the extracted class file.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

        // An outside compiled op can be extracted if its operands are not from
        // other ops in the cluster that cannot be extracted.
    
        // Check if the side effecting op right before this side effecting op, if
        // it is side effecting, can be head extracted. Because of op ordering due
        // to side effects, if this is not true, this op cannot be head extracted.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleCachingIntegrationTest.groovy

                def initialSize = ruleCache.size()
                gradle.buildFinished { println "### extracted new rules: \${ruleCache.size() > initialSize}" }
            """
        }
    
        boolean getNewRulesExtracted() {
            def match = output =~ /.*### extracted new rules: (true|false).*/
            match[0][1] == "true"
        }
    
        def "rules extracted from core plugins are reused across builds"() {
            given:
            buildFile << '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/CompileOperation.java

     * The exposed transformer typically gathers the data while transforming.
     * <p>
     * As these objects are stateful, they can only be used for a single compile operation.
     *
     * @param <T> the type of data extracted by this operation
     */
    public interface CompileOperation<T> {
    
        /**
         * A unique id for this operations.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 01 11:44:55 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/DecompressionCoordinator.java

     */
    
    package org.gradle.api.internal.file.archive;
    
    import java.io.Closeable;
    import java.io.File;
    
    /**
     * A coordinator that can be used to manage access to decompressed data extracted from archive files like zip and tars.
     *
     * <p>
     * For a given build tree, only a single process is allowed write access to extract archives at a time.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:15:04 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/importC.go

    package importC
    
    import "C"
    import _ /* ERROR `cannot rename import "C"` */ "C"
    import foo /* ERROR `cannot rename import "C"` */ "C"
    import . /* ERROR `cannot rename import "C"` */ "C"
    
    // Test cases extracted from issue #22090.
    
    import "unsafe"
    
    const _ C.int = 0xff // no error due to invalid constant type
    
    type T struct {
    	Name    string
    	Ordinal int
    }
    
    func _(args []T) {
    	var s string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top