Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for i2 (0.06 sec)

  1. tests/test_infer_param_optionality.py

    
    @item_router.get("/")
    def get_items(user_id: Optional[str] = None):
        if user_id is None:
            return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}]
        else:
            return [{"item_id": "i2", "user_id": user_id}]
    
    
    @item_router.get("/{item_id}")
    def get_item(item_id: str, user_id: Optional[str] = None):
        if user_id is None:
            return {"item_id": item_id}
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

                Iterator<Exclusion> i1 = ce1.iterator();
                Iterator<Exclusion> i2 = ce2.iterator();
                while (i1.hasNext() && i2.hasNext()) {
                    if (!equals(i1.next(), i2.next())) {
                        return false;
                    }
                }
                return !i1.hasNext() && !i2.hasNext();
            }
            return false;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            List<Restriction> restrictions = new ArrayList<>(r1.size() + r2.size());
            Iterator<Restriction> i1 = r1.iterator();
            Iterator<Restriction> i2 = r2.iterator();
            Restriction res1 = i1.next();
            Restriction res2 = i2.next();
    
            boolean done = false;
            while (!done) {
                if (res1.getLowerBound() == null
                        || res2.getUpperBound() == null
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        // Test & Verify
        Iterator<String> i1 = Iterables.consumingIterable(list).iterator();
        Iterator<String> i2 = Iterables.consumingIterable(list).iterator();
    
        i1.next();
        assertThrows(ConcurrentModificationException.class, () -> i2.next());
      }
    
      public void testConsumingIterable_queue_iterator() {
        final List<Integer> items = ImmutableList.of(4, 8, 15, 16, 23, 42);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IteratorsTest.java

        // Test & Verify
        Iterator<String> i1 = Iterators.consumingIterator(list.iterator());
        Iterator<String> i2 = Iterators.consumingIterator(list.iterator());
    
        i1.next();
        assertThrows(ConcurrentModificationException.class, () -> i2.next());
      }
    
      public void testIndexOf_consumedData() {
        Iterator<String> iterator = Lists.newArrayList("manny", "mo", "jack").iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        // Test & Verify
        Iterator<String> i1 = Iterators.consumingIterator(list.iterator());
        Iterator<String> i2 = Iterators.consumingIterator(list.iterator());
    
        i1.next();
        assertThrows(ConcurrentModificationException.class, () -> i2.next());
      }
    
      public void testIndexOf_consumedData() {
        Iterator<String> iterator = Lists.newArrayList("manny", "mo", "jack").iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    a select with only <code>nil</code> channels and no default case blocks forever.
    </p>
    
    <pre>
    var a []int
    var c, c1, c2, c3, c4 chan int
    var i1, i2 int
    select {
    case i1 = &lt;-c1:
    	print("received ", i1, " from c1\n")
    case c2 &lt;- i2:
    	print("sent ", i2, " to c2\n")
    case i3, ok := (&lt;-c3):  // same as: i3, ok := &lt;-c3
    	if ok {
    		print("received ", i3, " from c3\n")
    	} else {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  8. cmd/testdata/undeleteable-object.tgz

    A·DoCÁ§slÂ0RÿŦEcAlgo £EcM £EcN §EcBSizeÒ §EcIndex ¦EcDistœ ¨CSumAlgo ¨PartNums‘ ©PartETagsÀ©PartSizes‘kªPartASizes‘k¤Sizek¥MTimeÓ ÉŸþ¥¹ °§MetaSys ¼x-minio-internal-inline-dataÄ true§MetaUsr‚¤etagÙ 10ead207166f316fb066¬content-type¸application/octet-stream¡v Î2’ÝZ ¤nullÄ2\^"¬³Ú83 û ¯ ¸€­<Öý³vŽÔ³;•©ŒA+ƃ¹· ñ€…æmɼߥšòÇ ó multisitea/data/disterasure/xl1/.minio.sys/buckets/.usage.json/xl.meta XL2 Æ u Ä$•Ä Ó É ŸBÏÀÄ ·Ö 5 Å Iƒ¤Type ¥V2ObjÞ ¢IDÄ ¤DDirÄ ç(3ÿ aL(± @Ò ¯9ï¦EcAlgo £EcM £EcN §EcBSizeÒ §EcIndex ¦EcDistœ...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 26 00:31:12 UTC 2024
    - 8.7M bytes
    - Viewed (0)
  9. doc/go_spec.html

    a select with only <code>nil</code> channels and no default case blocks forever.
    </p>
    
    <pre>
    var a []int
    var c, c1, c2, c3, c4 chan int
    var i1, i2 int
    select {
    case i1 = &lt;-c1:
    	print("received ", i1, " from c1\n")
    case c2 &lt;- i2:
    	print("sent ", i2, " to c2\n")
    case i3, ok := (&lt;-c3):  // same as: i3, ok := &lt;-c3
    	if ok {
    		print("received ", i3, " from c3\n")
    	} else {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top