Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 114 for trimDead (0.35 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/events/YesNoQuestionPromptEvent.java

            return builder.toString();
        }
    
        @Override
        public PromptResult<Boolean> convert(String text) {
            String trimmed = text.trim();
            if (YES_NO_CHOICES.contains(trimmed)) {
                return PromptResult.response(BooleanUtils.toBoolean(trimmed));
            }
            return PromptResult.newPrompt("Please enter 'yes' or 'no': ");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/strconv/ftoaryu.go

    		// the "round-up" logic hides the problem.
    		if l == c+1 && c < u {
    			c++
    			cdigit = 0
    			cup = false
    		}
    		trimmed++
    		// Remember trimmed digits of c
    		c0 = c0 && cNextDigit == 0
    		cNextDigit = int(cdigit)
    		lower, central, upper = l, c, u
    	}
    	// should we round up?
    	if trimmed > 0 {
    		cup = cNextDigit > 5 ||
    			(cNextDigit == 5 && !c0) ||
    			(cNextDigit == 5 && c0 && central&1 == 1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/events/IntQuestionPromptEvent.java

        @Override
        public PromptResult<Integer> convert(String text) {
            if (text.isEmpty()) {
                return PromptResult.response(defaultValue);
            }
            String trimmed = text.trim();
            try {
                int result = Integer.parseInt(trimmed);
                if (result >= minValue) {
                    return PromptResult.response(result);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        val headers =
          Headers.Builder()
            .add("foo: bar")
            .add(" foo: baz") // Name leading whitespace is trimmed.
            .add("foo : bak") // Name trailing whitespace is trimmed.
            .add("\tkey\t:\tvalue\t") // '\t' also counts as whitespace
            .add("ping:  pong  ") // Value whitespace is trimmed.
            .add("kit:kat") // Space after colon is not required.
            .build()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/goroot_executable_trimpath.txt

    mkdir $WORK/new/bin
    mkdir $WORK/new/bin/${GOOS}_${GOARCH}
    
    # In this test, we are specifically checking the logic for deriving
    # the value of GOROOT from os.Executable when runtime.GOROOT is
    # trimmed away.
    
    # $GOROOT/bin/go is whatever the user has already installed
    # (using make.bash or similar). We can't make assumptions about what
    # options it may have been built with, such as -trimpath or not.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/build_pgo.txt

    # check that the build ID is different
    go list -export -json=BuildID -pgo=prof triv.go
    ! cmp stdout list.out
    
    # build with trimpath, buildinfo path should be trimmed
    go build -x -pgo=prof -trimpath -o triv.exe triv.go
    
    # check that path is trimmed
    go version -m triv.exe
    stdout 'build\s+-pgo=prof'
    
    -- prof --
    -- triv.go --
    package main
    func main() {}
    -- overwrite.go --
    package main
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/Specs.java

    import java.util.Collection;
    import java.util.List;
    
    /**
     * This interface is copied and trimmed from org.gradle.api.specs.Spec because older versions of Tooling API have issues with
     * the original due to different versions of classes loaded.
     *
     */
    interface Spec<T> {
        boolean isSatisfiedBy(T element);
    }
    
    /**
     * This class is copied and trimmed from org.gradle.api.specs.Specs because older versions of Tooling API have issues with
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/html/template/template_test.go

    				t.Fatalf("Cannot render template: %v", err)
    			}
    			trimmed := bytes.TrimSuffix(bytes.TrimPrefix(buf.Bytes(), []byte(prefix)), []byte(suffix))
    			var got string
    			if err := json.Unmarshal(trimmed, &got); err != nil {
    				t.Fatalf("Cannot parse JS string %q as JSON: %v", trimmed[1:len(trimmed)-1], err)
    			}
    			if got != tt.in {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/openapi/openapi.go

    	if len(parts) >= 1 && parts[0] == "api" {
    		parts = append([]string{"apis", "core"}, parts[1:]...)
    	}
    	if len(parts) >= 2 && parts[0] == "apis" {
    		trimmed := strings.TrimSuffix(parts[1], ".k8s.io")
    		prefix = prefix + ToValidOperationID(trimmed, prefix != "")
    		tag := ToValidOperationID(trimmed, false)
    		if len(parts) > 2 {
    			prefix = prefix + ToValidOperationID(parts[2], prefix != "")
    			tag = tag + "_" + ToValidOperationID(parts[2], false)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. src/go/doc/testdata/examples/iota.go

    	d = 4
    )
    
    const (
    	e = iota
    	f
    )
    
    // The example refers to only one of the constants in the iota group, but we
    // must keep all of them because of the iota. The second group of constants can
    // be trimmed. The third has an iota, but is unused, so it can be eliminated.
    
    func Example() {
    	_ = b
    	_ = d
    }
    
    // Need two examples to hit the playExample function.
    
    func Example2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 23:13:45 UTC 2022
    - 596 bytes
    - Viewed (0)
Back to top