Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 36 for hi (0.11 seconds)

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

        EvictingQueue<String> queue = EvictingQueue.create(0);
        assertEquals(0, queue.size());
    
        assertTrue(queue.add("hi"));
        assertEquals(0, queue.size());
    
        assertTrue(queue.offer("hi"));
        assertEquals(0, queue.size());
    
        assertFalse(queue.remove("hi"));
        assertEquals(0, queue.size());
    
        assertThrows(NoSuchElementException.class, () -> queue.element());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        char c = 0;
        for (int hi = 0; hi < 256; hi++) {
          for (int lo = 0; lo < 256; lo++) {
            char result = Chars.fromByteArray(new byte[] {(byte) hi, (byte) lo});
            assertWithMessage(
                    String.format(
                        Locale.ROOT,
                        "hi=%s, lo=%s, expected=%s, result=%s",
                        hi,
                        lo,
                        (int) c,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 26K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/primitives/CharsTest.java

        char c = 0;
        for (int hi = 0; hi < 256; hi++) {
          for (int lo = 0; lo < 256; lo++) {
            char result = Chars.fromByteArray(new byte[] {(byte) hi, (byte) lo});
            assertWithMessage(
                    String.format(
                        Locale.ROOT,
                        "hi=%s, lo=%s, expected=%s, result=%s",
                        hi,
                        lo,
                        (int) c,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 26K bytes
    - Click Count (0)
  4. src/cmd/asm/internal/asm/parse.go

    			// Parse the upper and lower bounds.
    			lo := p.registerNumber(tok.String())
    			hi := lo
    			if p.peek() == '-' {
    				p.next()
    				hi = p.registerNumber(p.next().String())
    			}
    			if hi < lo {
    				lo, hi = hi, lo
    			}
    			// Check there are no duplicates in the register list.
    			for i := 0; lo <= hi && i < maxReg; i++ {
    				if bits&(1<<lo) != 0 {
    					p.errorf("register R%d already in list", lo)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Feb 17 19:57:47 GMT 2026
    - 37.3K bytes
    - Click Count (0)
  5. src/main/resources/esclient.xml

    		</postConstruct>
    		<postConstruct name="addConfigFile">
    			<arg>"fess"</arg>
    			<arg>"gl/protwords.txt"</arg>
    		</postConstruct>
    		<postConstruct name="addConfigFile">
    			<arg>"fess"</arg>
    			<arg>"hi/protwords.txt"</arg>
    		</postConstruct>
    		<postConstruct name="addConfigFile">
    			<arg>"fess"</arg>
    			<arg>"hu/protwords.txt"</arg>
    		</postConstruct>
    		<postConstruct name="addConfigFile">
    			<arg>"fess"</arg>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/advanced-python-types.md

    For example, you could declare that something could be a `str` or `None`:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    `typing` also has a shortcut to declare that something could be `None`, with `Optional`.
    
    Here's a tip from my very **subjective** point of view:
    
    * 🚨 Avoid using `Optional[SomeType]`
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 2K bytes
    - Click Count (0)
  7. src/bytes/bytes.go

    		for hi := len(s) - 1; hi >= 0; hi-- {
    			c := s[hi]
    			if c >= utf8.RuneSelf {
    				return TrimFunc(s[:hi+1], unicode.IsSpace)
    			}
    			if asciiSpace[c] == 0 {
    				// At this point, s[:hi+1] starts and ends with ASCII
    				// non-space bytes, so we're done. Non-ASCII cases have
    				// already been handled above.
    				return s[:hi+1]
    			}
    		}
    	}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 12 17:56:55 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  8. docs/ko/docs/advanced/advanced-python-types.md

    예를 들어, 어떤 값이 `str` 또는 `None`이 될 수 있다고 선언할 수 있습니다:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    `typing`에는 `None`이 될 수 있음을 선언하는 축약형으로 `Optional`도 있습니다.
    
    아주 개인적인 관점에서의 팁입니다:
    
    - 🚨 `Optional[SomeType]` 사용은 피하세요
    - 대신 ✨ **`Union[SomeType, None]`를 사용하세요** ✨.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/advanced-python-types.md

    如果你的程式碼因某些原因無法使用 `|`,例如不是在型別註記中,而是在像 `response_model=` 之類的參數位置,那麼你可以用 `typing` 中的 `Union` 來取代豎線(`|`)。
    
    例如,你可以宣告某個值可以是 `str` 或 `None`:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    在 `typing` 中也有用 `Optional` 宣告某個值可以是 `None` 的速記法。
    
    以下是我個人(非常主觀)的建議:
    
    * 🚨 避免使用 `Optional[SomeType]`
    * 改為 ✨ 使用 `Union[SomeType, None]` ✨。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      }
    
      // Tests from RFC2022: https://tools.ietf.org/html/rfc2202
    
      public void testRfc2202_hmacSha1_case1() {
        byte[] key = fillByteArray(20, 0x0b);
        String data = "Hi There";
    
        checkSha1("b617318655057264e28bc0b6fb378c8ef146be00", key, data);
      }
    
      public void testRfc2202_hmacSha1_case2() {
        byte[] key = "Jefe".getBytes(UTF_8);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 14.2K bytes
    - Click Count (0)
Back to Top