Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 481 for chicken (0.09 sec)

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

        assertEquals(ImmutableMap.of("cat", 3, "horse", 5), filtered);
    
        filtered.put("chicken", 7);
        assertEquals(ImmutableMap.of("cat", 3, "horse", 5, "chicken", 7), filtered);
    
        assertThrows(IllegalArgumentException.class, () -> filtered.put("cow", 7));
        assertEquals(ImmutableMap.of("cat", 3, "horse", 5, "chicken", 7), filtered);
      }
    
      public void testFilteredEntriesIllegalPutAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/bytes/example_test.go

    	// false
    	// true
    }
    
    func ExampleIndex() {
    	fmt.Println(bytes.Index([]byte("chicken"), []byte("ken")))
    	fmt.Println(bytes.Index([]byte("chicken"), []byte("dmr")))
    	// Output:
    	// 4
    	// -1
    }
    
    func ExampleIndexByte() {
    	fmt.Println(bytes.IndexByte([]byte("chicken"), byte('k')))
    	fmt.Println(bytes.IndexByte([]byte("chicken"), byte('g')))
    	// Output:
    	// 4
    	// -1
    }
    
    func ExampleIndexFunc() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertFalse(list.contains("dog"));
        assertEquals(-1, list.indexOf("dog"));
        assertEquals(-1, list.lastIndexOf("dog"));
        assertFalse(list.contains("chicken"));
        assertEquals(-1, list.indexOf("chicken"));
        assertEquals(-1, list.lastIndexOf("chicken"));
      }
    
      private static <E> Iterator<E> asIterator(E... elements) {
        return asList(elements).iterator();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  4. docs/en/docs/async.md

    But at the same time, functions defined with `async def` have to be "awaited". So, functions with `async def` can only be called inside of functions defined with `async def` too.
    
    So, about the egg and the chicken, how do you call the first `async` function?
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Aug 28 23:33:37 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/advanced-dependencies.md

    {!../../docs_src/dependencies/tutorial011.py!}
    ```
    
    &amp; πŸ‘ˆ 🌌 πŸ‘₯ πŸ’ͺ "πŸ”—" πŸ‘† πŸ”—, πŸ‘ˆ πŸ”œ βœ”οΈ `"bar"` πŸ”˜ ⚫️, πŸ”’ `checker.fixed_content`.
    
    ## βš™οΈ πŸ‘ πŸ”—
    
    ‴️, πŸ‘₯ πŸ’ͺ βš™οΈ πŸ‘‰ `checker` `Depends(checker)`, ↩️ `Depends(FixedContentQueryChecker)`, ↩️ πŸ”— πŸ‘, `checker`, 🚫 πŸŽ“ ⚫️.
    
    &amp; πŸ•β” ❎ πŸ”—, **FastAPI** πŸ”œ πŸ€™ πŸ‘‰ `checker` πŸ’–:
    
    ```Python
    checker(q="somequery")
    ```
    
    ...&amp; πŸšΆβ€β™€οΈ βš«οΈβ” πŸ‘ˆ πŸ“¨ πŸ’² πŸ”— πŸ‘† *➑ πŸ› οΈ πŸ”’* πŸ”’ `fixed_content_included`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/advanced-dependencies.md

    ## Use the instance as a dependency
    
    Then, we could use this `checker` in a `Depends(checker)`, instead of `Depends(FixedContentQueryChecker)`, because the dependency is the instance, `checker`, not the class itself.
    
    And when solving the dependency, **FastAPI** will call this `checker` like:
    
    ```Python
    checker(q="somequery")
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:10:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Implementations of {@code Futures.transform*}. */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings({
      // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
      "ShortCircuitBoolean",
      "nullness", // TODO(b/147136275): Remove once our checker understands & and |.
    })
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. cmd/dummy-data-generator_test.go

    		b, _ := io.ReadAll(r)
    		return string(b)
    	}
    	checkEq := func(a, b string) {
    		if a != b {
    			t.Fatalf("Unexpected equality failure")
    		}
    	}
    
    	checkEq(readAll(NewDummyDataGen(0, 0)), "")
    
    	checkEq(readAll(NewDummyDataGen(10, 0)), readAll(NewDummyDataGen(10, int64(len(alphabets)))))
    
    	checkEq(readAll(NewDummyDataGen(100, 0)), readAll(NewDummyDataGen(50, 0))+readAll(NewDummyDataGen(50, 50)))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

    import static java.lang.Math.min;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link UnicodeEscaper} that uses an array to quickly look up replacement characters for a given
     * code point. An additional safe range is provided that determines whether code points without
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       */
      protected void verify(List<E> elements) {}
    
      /** Executes the test. */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      public final void test() {
        try {
          recurse(0);
        } catch (Exception e) { // sneaky checked exception
          throw new RuntimeException(Arrays.toString(stimuli), e);
        }
      }
    
      private void recurse(int level) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top