Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 202 for shorterOf (0.64 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

         */
        public static boolean endsWith(CharSequence longer, CharSequence shorter) {
            if (longer instanceof String && shorter instanceof String) {
                return ((String) longer).endsWith((String) shorter);
            }
            int longerLength = longer.length();
            int shorterLength = shorter.length();
            if (longerLength < shorterLength) {
                return false;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. src/html/escape.go

    	copy(b[dst:dst1], b[src:src1])
    	return dst1, src1
    }
    
    var htmlEscaper = strings.NewReplacer(
    	`&`, "&amp;",
    	`'`, "&#39;", // "&#39;" is shorter than "&apos;" and apos was not in HTML until HTML5.
    	`<`, "&lt;",
    	`>`, "&gt;",
    	`"`, "&#34;", // "&#34;" is shorter than "&quot;".
    )
    
    // EscapeString escapes special characters like "<" to become "&lt;". It
    // escapes only five such characters: <, >, &, ' and ".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 13 07:00:18 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. test/float_lit3.go

    	float32(-max32 - ulp32/2),                 // ERROR "constant -3\.40282e\+38 overflows float32|cannot convert.*to type float32"
    
    	// If the compiler's internal floating point representation
    	// is shorter than 1024 bits, it cannot distinguish max64+ulp64/2-1 and max64+ulp64/2.
    	float64(max64 + ulp64/2 - two1024/two256), // ok
    	float64(max64 + ulp64/2 - 1),              // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 16:24:32 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  4. .github/PULL_REQUEST_TEMPLATE

        "This change modifies Go to ___________"
      + Lowercase verb after the colon
      + No trailing period
      + Keep the title as short as possible. ideally under 76 characters or shorter
    + No Markdown
    + The first PR comment (this one) is wrapped at 76 characters, unless it's
      really needed (ASCII art, table, or long link)
    + If there is a corresponding issue, add either `Fixes #1234` or `Updates #1234`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 02:07:46 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelPathSuggestionProviderTest.groovy

            then:
            suggestionsFor("tasks.fooba") == ["tasks.foobar", "task.afoobar", "tasks.boofar"]
        }
    
        def "suggests model paths with Levenshtein distance lower than half it's length for strings shorter than 6 characters"() {
            when:
            availablePaths = ["fo", "bor", "for", "of", "foob"]
    
            then:
            suggestionsFor("foo") == ["fo", "foob", "for"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. platforms/core-runtime/serialization/src/testFixtures/groovy/org/gradle/internal/serialize/SerializerSpec.groovy

            def bytes = toBytes(value, serializer)
            return fromBytes(bytes, serializer)
        }
    
        /**
         * Serializes and deserializes the given value, asserting that the generated byte sequence is shorter than it would be when default
         * Java serialization is used.
         */
        <T> T usesEfficientSerialization(T value, Serializer<T> serializer, Integer expectedLength = null) {
            def bytes = toBytes(value, serializer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. pkg/kubelet/util/util.go

    	const fqdnMaxLen = 64
    	if len(hostDomainName) > 0 && setHostnameAsFQDN != nil && *setHostnameAsFQDN {
    		fqdn := fmt.Sprintf("%s.%s", hostname, hostDomainName)
    		// FQDN has to be shorter than hostnameMaxLen characters.
    		if len(fqdn) > fqdnMaxLen {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 18:07:39 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/secretbox/secretbox.go

    func (t *secretboxTransformer) TransformFromStorage(ctx context.Context, data []byte, dataCtx value.Context) ([]byte, bool, error) {
    	if len(data) < (secretbox.Overhead + nonceSize) {
    		return nil, false, fmt.Errorf("the stored data was shorter than the required size")
    	}
    	var nonce [nonceSize]byte
    	copy(nonce[:], data[:nonceSize])
    	data = data[nonceSize:]
    	out := make([]byte, 0, len(data)-secretbox.Overhead)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 17 16:31:31 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. pkg/controller/certificates/signer/config/types.go

    	LegacyUnknownSignerConfiguration CSRSigningConfiguration
    
    	// clusterSigningDuration is the max length of duration signed certificates will be given.
    	// Individual CSRs may request shorter certs by setting spec.expirationSeconds.
    	ClusterSigningDuration metav1.Duration
    }
    
    // CSRSigningConfiguration holds information about a particular CSR signer
    type CSRSigningConfiguration struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 02 03:38:15 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_get_ambiguous_pkg.txt

    go get example.net/ambiguous/nested/pkg@v0.1.0
    go list -m all
    stdout '^example.net/ambiguous/nested v0.1.0$'
    ! stdout '^example.net/ambiguous '
    
    
    # From an initial state that already depends on the shorter path,
    # the same 'go get' command should (somewhat arbitrarily) keep the
    # existing path, since it is a valid interpretation of the command.
    
    cp go.mod.orig go.mod
    go mod edit -require=example.net/ambiguous@v0.1.0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 2.6K bytes
    - Viewed (0)
Back to top