Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for str1 (0.17 sec)

  1. src/internal/fmtsort/sort_test.go

    // problematic types such as pointers. Note that it only does special handling
    // for the troublesome types used in the test cases; it is not a general
    // printer.
    func sprintKey(key reflect.Value) string {
    	switch str := key.Type().String(); str {
    	case "*int":
    		ptr := key.Interface().(*int)
    		for i := range ints {
    			if ptr == &ints[i] {
    				return fmt.Sprintf("PTR%d", i)
    			}
    		}
    		return "PTR???"
    	case "unsafe.Pointer":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

            return new AbstractIterator<E>() {
              final Iterator<? extends E> itr1 = set1.iterator();
              final Iterator<? extends E> itr2 = set2.iterator();
    
              @Override
              @CheckForNull
              protected E computeNext() {
                if (itr1.hasNext()) {
                  return itr1.next();
                }
                while (itr2.hasNext()) {
                  E e = itr2.next();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/elf_test.go

    		}
    		if s.Addr == 0 || s.Size == 0 {
    			continue
    		}
    		secs = append(secs, s)
    	}
    
    	secOverlaps := func(s1, s2 *elf.Section) bool {
    		st1 := s1.Addr
    		st2 := s2.Addr
    		en1 := s1.Addr + s1.Size
    		en2 := s2.Addr + s2.Size
    		return max(st1, st2) < min(en1, en2)
    	}
    
    	// Sort by address
    	sort.SliceStable(secs, func(i, j int) bool {
    		return secs[i].Addr < secs[j].Addr
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/encoding/json/encode_test.go

    	Bo bool `json:"bo,omitempty"`
    
    	Ur uint `json:"ur"`
    	Uo uint `json:"uo,omitempty"`
    
    	Str struct{} `json:"str"`
    	Sto struct{} `json:"sto,omitempty"`
    }
    
    func TestOmitEmpty(t *testing.T) {
    	var want = `{
     "sr": "",
     "omitempty": 0,
     "slr": null,
     "mr": {},
     "fr": 0,
     "br": false,
     "ur": 0,
     "str": {},
     "sto": {}
    }`
    	var o Optionals
    	o.Sw = "something"
    	o.Mr = map[string]any{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	c *string
    	d map[float64]float64
    }
    
    func TestDeepEqualComplexStruct(t *testing.T) {
    	m := make(map[float64]float64)
    	stra, strb := "hello", "hello"
    	a, b := new(_Complex), new(_Complex)
    	*a = _Complex{5, [3]*_Complex{a, b, a}, &stra, m}
    	*b = _Complex{5, [3]*_Complex{b, a, a}, &strb, m}
    	if !DeepEqual(a, b) {
    		t.Error("DeepEqual(complex same) = false, want true")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. docs/ko/docs/features.md

    여러분은 타입을 이용한 표준 파이썬을 다음과 같이 적을 수 있습니다:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # 변수를 str로 선언
    # 그 후 함수 안에서 편집기 지원을 받으세요
    def main(user_id: str):
        return user_id
    
    
    # Pydantic 모델
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    위의 코드는 다음과 같이 사용될 수 있습니다:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      // CHECK:      %[[bcast_mul2:.+]] = "mhlo.dynamic_broadcast_in_dim"(%[[mul2]], {{.*}}) <{broadcast_dimensions = dense<3> : tensor<1xi64>}> : (tensor<8xf32>, tensor<4xindex>) -> tensor<8x8x8x8xf32>
      // CHECK-NEXT: %[[mul3:.*]] = mhlo.multiply %[[grad]], %[[bcast_mul2]] : tensor<8x8x8x8xf32>
      // CHECK-NEXT: %[[scale_backprop:.*]] = mhlo.multiply %[[scr1]], %[[scr2]] : tensor<8xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set_utils_test.go

    			return true
    		}
    		refs[k] = false
    	}
    	return false
    }
    
    func TestOwnerRefsChanged(t *testing.T) {
    	toRefs := func(strs []string) []metav1.OwnerReference {
    		refs := []metav1.OwnerReference{}
    		for _, s := range strs {
    			pieces := strings.Split(s, "/")
    			refs = append(refs, metav1.OwnerReference{
    				APIVersion: pieces[0],
    				Kind:       pieces[1],
    				Name:       pieces[2],
    			})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    }
    
    func (sb *StructuredBindings) goString(indent int, field string) string {
    	var strb strings.Builder
    	fmt.Fprintf(&strb, "%*s%sStructuredBinding:", indent, "", field)
    	for _, b := range sb.Bindings {
    		strb.WriteByte('\n')
    		strb.WriteString(b.goString(indent+2, ""))
    	}
    	return strb.String()
    }
    
    // UnnamedType is an unnamed type, that just has an index.
    type UnnamedType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	NumUnit map[string][]string
    
    	locationIDX []uint64
    	labelX      []label
    }
    
    // label corresponds to Profile.Label
    type label struct {
    	keyX int64
    	// Exactly one of the two following values must be set
    	strX int64
    	numX int64 // Integer value for this label
    	// can be set if numX has value
    	unitX int64
    }
    
    // Mapping corresponds to Profile.Mapping
    type Mapping struct {
    	ID              uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top