Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for predictable (0.14 sec)

  1. src/cmd/compile/internal/test/switch_test.go

    			n += 7
    		case SI7:
    			n += 8
    		}
    	}
    	sink = n
    }
    
    // A simple random number generator used to make switches conditionally predictable.
    type rng uint64
    
    func newRNG() rng {
    	return 1
    }
    func (r rng) next(predictable bool) rng {
    	if predictable {
    		return r + 1
    	}
    	return rng(bits.RotateLeft64(uint64(r), 13) * 0x3c374d)
    }
    func (r rng) value() uint64 {
    	return uint64(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/.gitattributes

    # Treat all files in the repo as binary, with no git magic updating
    # line endings. This produces predictable results in different environments.
    #
    # Windows users contributing to Go will need to use a modern version
    # of git and editors capable of LF line endings.
    #
    # Windows .bat files are known to have multiple bugs when run with LF
    # endings. So if they are checked in with CRLF endings, there should
    # be a test like the one in test/winbatch.go in the go repository.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 545 bytes
    - Viewed (0)
  3. .gitattributes

    # Treat all files in the Go repo as binary, with no git magic updating
    # line endings. This produces predictable results in different environments.
    #
    # Windows users contributing to Go will need to use a modern version
    # of git and editors capable of LF line endings.
    #
    # Windows .bat files are known to have multiple bugs when run with LF
    # endings, and so they are checked in with CRLF endings, with a test
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 08 15:31:43 UTC 2020
    - 639 bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/RemappingScriptSource.java

    import org.gradle.groovy.scripts.DelegatingScriptSource;
    import org.gradle.groovy.scripts.ScriptSource;
    
    /**
     * When stored into the persistent store, we want the script to be created with a predictable class name: we don't want the path of the script
     * to be used in the generated class name because the same contents can be used for scripts found in different paths. Since we are storing
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 02 16:56:13 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/componentconfigs/utils.go

    // Error implements the standard Golang error interface for UnsupportedConfigVersionsErrorMap
    func (errs UnsupportedConfigVersionsErrorMap) Error() string {
    	// Make sure the error messages we print are predictable by sorting them by the group names involved
    	groups := make([]string, 0, len(errs))
    	for group := range errs {
    		groups = append(groups, group)
    	}
    	sort.Strings(groups)
    
    	msgs := make([]string, 1, 1+len(errs))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 18 08:48:29 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/LinkedHashMultiset.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multiset} implementation with predictable iteration order. Its iterator orders elements
     * according to when the first occurrence of the element was added. When the multiset contains
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/TimeFormatting.java

            // the duration passed on call sited is often a result of some math, what is not guarantees positive-values-only.
            // So let's make an output more predictable in accidental negative-values scenarios.
            if (duration < 0) {
                result.append("-");
                result.append(formatDurationVeryTerse(-duration));
                return result.toString();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/log/slog/example_custom_levels_test.go

    		// LevelInfo, which would drop Debug and Trace logs.
    		Level: LevelTrace,
    
    		ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
    			// Remove time from the output for predictable test output.
    			if a.Key == slog.TimeKey {
    				return slog.Attr{}
    			}
    
    			// Customize the name of the level key and the output string, including
    			// custom level values.
    			if a.Key == slog.LevelKey {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 17:06:26 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/LinkedHashMultiset.java

    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.util.LinkedHashMap;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multiset} implementation with predictable iteration order. Its iterator orders elements
     * according to when the first occurrence of the element was added. When the multiset contains
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. pkg/credentialprovider/keyring.go

    //   - registry endpoints may overlap, and when this happens we must find the
    //     most specific match for a given image
    //   - iterating a map does not yield predictable results
    type DockerKeyring interface {
    	Lookup(image string) ([]AuthConfig, bool)
    }
    
    // BasicDockerKeyring is a trivial map-backed implementation of DockerKeyring
    type BasicDockerKeyring struct {
    	index []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.2K bytes
    - Viewed (0)
Back to top