Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,693 for STR (0.02 sec)

  1. src/crypto/internal/boring/bcache/cache_test.go

    			break
    		}
    	}
    
    	// Check results.
    	for k, v := range m {
    		if cv := c.Get(k); cv != v {
    			t.Fatalf("c.Get(%v) = %v, want %v", str(k), str(cv), str(v))
    		}
    	}
    
    	c.Clear()
    	for k := range m {
    		if cv := c.Get(k); cv != nil {
    			t.Fatalf("after GC, c.Get(%v) = %v, want nil", str(k), str(cv))
    		}
    	}
    
    	// Check that registered cache is cleared at GC.
    	c = &registeredCache
    	for k, v := range m {
    		c.Put(k, v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. docs_src/body_multiple_params/tutorial004_an_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
        user: User,
        importance: Annotated[int, Body(gt=0)],
        q: str | None = None,
    ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 643 bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

         * is absent from Java 6.
         */
        public static String capitalize(String str) {
            if (str == null || str.length() == 0) {
                return str;
            }
            return Character.toTitleCase(str.charAt(0)) + str.substring(1);
        }
    
        /**
         * Escapes the toString() representation of {@code obj} for use in a literal string.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/encoding/gob/type_test.go

    	}
    	return t
    }
    
    // Sanity checks
    func TestBasic(t *testing.T) {
    	for _, tt := range basicTypes {
    		if tt.id.string() != tt.str {
    			t.Errorf("checkType: expected %q got %s", tt.str, tt.id.string())
    		}
    		if tt.id == 0 {
    			t.Errorf("id for %q is zero", tt.str)
    		}
    	}
    }
    
    // Reregister some basic types to check registration is idempotent.
    func TestReregistration(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. docs_src/body_multiple_params/tutorial004.py

    from fastapi import Body, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    class User(BaseModel):
        username: str
        full_name: Union[str, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 10 18:49:18 UTC 2023
    - 653 bytes
    - Viewed (0)
  6. docs_src/body_multiple_params/tutorial004_an.py

    from pydantic import BaseModel
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    class User(BaseModel):
        username: str
        full_name: Union[str, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 703 bytes
    - Viewed (0)
  7. docs_src/body_multiple_params/tutorial004_an_py39.py

    from fastapi import Body, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    class User(BaseModel):
        username: str
        full_name: Union[str, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 674 bytes
    - Viewed (0)
  8. src/regexp/syntax/parse_test.go

    	{`[abc]`, `cc{0x61-0x63}`},
    	{`[a-z]`, `cc{0x61-0x7a}`},
    	{`[a]`, `lit{a}`},
    	{`\-`, `lit{-}`},
    	{`-`, `lit{-}`},
    	{`\_`, `lit{_}`},
    	{`abc`, `str{abc}`},
    	{`abc|def`, `alt{str{abc}str{def}}`},
    	{`abc|def|ghi`, `alt{str{abc}str{def}str{ghi}}`},
    
    	// Posix and Perl extensions
    	{`[[:lower:]]`, `cc{0x61-0x7a}`},
    	{`[a-z]`, `cc{0x61-0x7a}`},
    	{`[^[:lower:]]`, `cc{0x0-0x60 0x7b-0x10ffff}`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

              TF::Conv2DOp::getOperationName().str(),
              TF::DepthwiseConv2dNativeOp::getOperationName().str(),
              TF::FusedBatchNormV3Op::getOperationName().str(),
              TF::GatherV2Op::getOperationName().str(),
              TF::MatMulOp::getOperationName().str(),
              TF::MaxPoolOp::getOperationName().str(),
              TF::MaximumOp::getOperationName().str(),
              TF::MeanOp::getOperationName().str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. test/fixedbugs/issue65417.go

    }
    
    func f[T byte](t T) {
    	const str = "a"
    	_ = str[unsafe.Sizeof(t)]
    }
    
    func g[T byte](t T) {
    	const str = "a"
    	_ = str[unsafe.Sizeof(t)+0]
    }
    
    func shouldPanic(str string, f func()) {
    	defer func() {
    		err := recover()
    		if err == nil {
    			panic("did not panic")
    		}
    		s := err.(error).Error()
    		if !strings.Contains(s, str) {
    			panic("got panic " + s + ", want " + str)
    		}
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 22:29:14 UTC 2024
    - 752 bytes
    - Viewed (0)
Back to top