Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for itor (0.04 sec)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Enumeration<Integer> enumer = enumerate(1, 2, 3);
        Iterator<Integer> iter = Iterators.forEnumeration(enumer);
    
        assertTrue(iter.hasNext());
        assertEquals(1, (int) iter.next());
        assertTrue(iter.hasNext());
        assertEquals(2, (int) iter.next());
        assertTrue(iter.hasNext());
        assertEquals(3, (int) iter.next());
        assertFalse(iter.hasNext());
      }
    
      public void testAsEnumerationEmpty() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

        if (visited.find(item.cluster) != visited.end()) continue;
        visited.insert(item.cluster);
    
        stack.push_back({item.cluster, true});
        const auto& iter = ancestors.find(item.cluster);
        if (iter != ancestors.end()) {
          for (const auto& ancestor : iter->second) {
            stack.push_back({ancestor, false});
          }
        }
      }
      CHECK(sorted->size() == clusters.size());
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
  3. pkg/proxy/iptables/proxier.go

    				"--dport", strconv.Itoa(svcInfo.Port()),
    				"-j", string(internalTrafficChain))
    		} else {
    			// No endpoints.
    			filterRules.Write(
    				"-A", string(kubeServicesChain),
    				"-m", "comment", "--comment", internalTrafficFilterComment,
    				"-m", protocol, "-p", protocol,
    				"-d", svcInfo.ClusterIP().String(),
    				"--dport", strconv.Itoa(svcInfo.Port()),
    				"-j", internalTrafficFilterTarget,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/proxier.go

    					protocol,
    					strconv.Itoa(svcInfo.Port()),
    				},
    				Value: []string{
    					fmt.Sprintf("goto %s", internalTrafficChain),
    				},
    			})
    		} else {
    			// No endpoints.
    			tx.Add(&knftables.Element{
    				Map: noEndpointServicesMap,
    				Key: []string{
    					svcInfo.ClusterIP().String(),
    					protocol,
    					strconv.Itoa(svcInfo.Port()),
    				},
    				Value: []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        Iterator<Entry<String, String>> iter = copy.entrySet().iterator();
        assertTrue(iter.hasNext());
        Entry<String, String> entry = iter.next();
        assertEquals("Hello", entry.getKey());
        assertEquals("World", entry.getValue());
        assertTrue(iter.hasNext());
    
        entry = iter.next();
        assertEquals("first", entry.getKey());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  6. plugin/pkg/admission/limitranger/admission_test.go

    			Image:     "foo:V" + strconv.Itoa(i),
    			Resources: resources,
    			Name:      "foo-" + strconv.Itoa(i),
    		})
    	}
    	return pod
    }
    
    func validPodInit(pod api.Pod, resources ...api.ResourceRequirements) api.Pod {
    	for i := 0; i < len(resources); i++ {
    		pod.Spec.InitContainers = append(pod.Spec.InitContainers, api.Container{
    			Image:     "foo:V" + strconv.Itoa(i),
    			Resources: resources[i],
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. pkg/kubelet/pod_workers_test.go

    				Pod:        newNamedPod(strconv.Itoa(j), "ns", strconv.Itoa(i), false),
    				UpdateType: kubetypes.SyncPodCreate,
    			})
    		}
    	}
    	drainWorkers(podWorkers, numPods)
    
    	if len(processed) != numPods {
    		t.Fatalf("Not all pods processed: %v", len(processed))
    	}
    	for i := 0; i < numPods; i++ {
    		uid := types.UID(strconv.Itoa(i))
    		events := processed[uid]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  8. src/runtime/mheap.go

    	iter := &span.specials
    	found := false
    	for {
    		s := *iter
    		if s == nil {
    			break
    		}
    		if offset == uintptr(s.offset) && kind == s.kind {
    			found = true
    			break
    		}
    		if offset < uintptr(s.offset) || (offset == uintptr(s.offset) && kind < s.kind) {
    			break
    		}
    		iter = &s.next
    	}
    	return iter, found
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

                    "removeAll(Collection)": { container.removeAll([b]) },
                    "retainAll(Collection)": { container.retainAll([b]) },
                    "iterator().remove()": { def iter = container.iterator(); iter.next(); iter.remove() },
                    "configureEach(Action)": { container.configureEach(Actions.doNothing()) }
                ]
            }
    
            return methods + [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/deadness_analysis.cc

          } else {
            // Otherwise, try moving nodes from ready_enters to `ready`.
            for (auto iter = ready_enters_per_frame.begin();
                 iter != ready_enters_per_frame.end(); ++iter) {
              absl::string_view frame_name = iter->first;
              const std::vector<Node*>& ready_enters = iter->second;
              if (ready_enters.size() == num_enters_for_frame[frame_name]) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
Back to top