Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for id_map (0.14 sec)

  1. internal/logger/logonce.go

    // Holds a map of recently logged errors.
    type logOnceType struct {
    	IDMap map[string]onceErr
    	sync.Mutex
    }
    
    func (l *logOnceType) logOnceConsoleIf(ctx context.Context, subsystem string, err error, id string, errKind ...interface{}) {
    	if err == nil {
    		return
    	}
    
    	nerr := unwrapErrs(err)
    	l.Lock()
    	shouldLog := true
    	prev, ok := l.IDMap[id]
    	if !ok {
    		l.IDMap[id] = onceErr{
    			Err:   nerr,
    			Count: 1,
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. test/stress/maps.go

    func (intMapType) NewMap() Map {
    	return make(intMap)
    }
    
    var deadcafe = []byte("\xDE\xAD\xCA\xFE")
    
    type intMap map[int][]byte
    
    func (m intMap) AddItem() {
    	s0 := len(m)
    	for len(m) == s0 {
    		key := rand.Intn(s0 + 1)
    		m[key] = make([]byte, rand.Intn(64<<10))
    	}
    }
    
    func (m intMap) DelItem() {
    	for k := range m {
    		delete(m, k)
    		return
    	}
    }
    
    func (m intMap) GetItem() {
    	key := rand.Intn(len(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ScopeIdsFixture.groovy

        @Override
        void afterBuild() {
            Map<String, Map<String, String>> idsMap = idsFile.readLines()
                .collect { line -> new JsonSlurper().parse(new StringReader(line)) as Map<String, Map<String, String>> }
                .collectMany { it.entrySet() }
                .collectEntries { it }
            Map<String, ScopeIds> ids = [:]
            idsMap.each {
                ids[it.key] = new ScopeIds(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    func Stats() (*statsapi.RlimitStats, error) {
    	rlimit := &statsapi.RlimitStats{}
    
    	taskMax := int64(-1)
    	// Calculate the minimum of kernel.pid_max and kernel.threads-max as they both specify the
    	// system-wide limit on the number of tasks.
    	for _, file := range []string{"/proc/sys/kernel/pid_max", "/proc/sys/kernel/threads-max"} {
    		if content, err := os.ReadFile(file); err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc

              << "Malformed " << TF::kParallelExecAnnotation << " attribute";
          return failure();
        }
        if (id_pairs.empty()) continue;
    
        TF::ParallelIdsMap& ids_map = op_to_parallel_ids_map[island];
        for (const auto& [group_id, branch_id] : id_pairs)
          ids_map[group_id] = branch_id;
      }
      return success();
    }
    
    // Fills `op_to_parallel_ids_map` from parallel execution attributes in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 07:53:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. test/named.go

    	isInt(Int(0))
    	i = 10
    	asInt(*&i)
    	isInt(*&i)
    	asInt(23)
    	asInt(Int(f))
    	isInt(Int(f))
    
    	asMap(m)
    	isMap(m)
    	asMap(nil)
    	m = nil
    	asMap(make(Map))
    	isMap(make(Map))
    	asMap(*&m)
    	isMap(*&m)
    	asMap(Map(nil))
    	isMap(Map(nil))
    	asMap(Map{})
    	isMap(Map{})
    
    	asSlice(slice)
    	isSlice(slice)
    	asSlice(make(Slice, 5))
    	isSlice(make(Slice, 5))
    	asSlice([]byte{1, 2, 3})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java

                boolean isCollection = false;
                boolean isMap = false;
                boolean isProperties = false;
                if (!isArray) {
                    try {
                        // assuming Type is available in current ClassLoader
                        isCollection = Collection.class.isAssignableFrom(Class.forName(param.getType()));
                        isMap = Map.class.isAssignableFrom(Class.forName(param.getType()));
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 09 23:46:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. pkg/util/kernel/constants.go

    // (ref: https://github.com/torvalds/linux/commit/35dfb013149f74c2be1ff9c78f14e6a3cd1539d1)
    const IPVSConnReuseModeFixedKernelVersion = "5.9"
    
    // UserNamespacesSupportKernelVersion is the kernel version where idmap for tmpfs support was added
    // (ref: https://github.com/torvalds/linux/commit/05e6295f7b5e05f09e369a3eb2882ec5b40fff20)
    const UserNamespacesSupportKernelVersion = "6.3"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. test/typeparam/orderedmap.go

    // > 0 if the first is greater.
    func _New[K, V any](compare func(K, K) int) *_Map[K, V] {
    	return &_Map[K, V]{compare: compare}
    }
    
    // _NewOrdered returns a new map whose key is an ordered type.
    // This is like _New, but does not require providing a compare function.
    // The map compare function uses the obvious key ordering.
    func _NewOrdered[K Ordered, V any]() *_Map[K, V] {
    	return _New[K, V](func(k1, k2 K) int {
    		switch {
    		case k1 < k2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/json/json_test.go

    			Out:  `{"boolkey":true,"floatkey":1,"intkey":1,"nullkey":null}`, // gets alphabetized by Marshal
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("%d_map", i), func(t *testing.T) {
    			// decode the input as a map item
    			inputJSON := fmt.Sprintf(`{"data":%s}`, tc.In)
    			expectedJSON := fmt.Sprintf(`{"data":%s}`, tc.Out)
    			m := map[string]interface{}{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:02:09 UTC 2022
    - 9.3K bytes
    - Viewed (0)
Back to top