Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 487 for Slice3 (0.12 sec)

  1. pkg/controller/endpointslicemirroring/metrics/cache.go

    	items map[endpointsliceutil.PortMapKey]EfficiencyInfo
    }
    
    // EfficiencyInfo stores the number of Endpoints and Slices for calculating
    // total numbers of desired endpoints and the efficiency of EndpointSlice
    // endpoints distribution.
    type EfficiencyInfo struct {
    	Endpoints int
    	Slices    int
    }
    
    // NewEndpointPortCache initializes and returns a new EndpointPortCache.
    func NewEndpointPortCache() *EndpointPortCache {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. src/internal/fmtsort/sort.go

    // that are valid map keys.
    package fmtsort
    
    import (
    	"cmp"
    	"reflect"
    	"slices"
    )
    
    // Note: Throughout this package we avoid calling reflect.Value.Interface as
    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. test/fixedbugs/issue5698.go

    // errorcheck
    
    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 5698: can define a key type with slices.
    
    package main
    
    type Key struct {
    	a int16 // the compiler was confused by the padding.
    	b []int
    }
    
    type Val struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 396 bytes
    - Viewed (0)
  4. src/internal/coverage/cformat/format.go

    type pstate struct {
    	// slice of unique functions
    	funcs []fnfile
    	// maps function to index in slice above (index acts as function ID)
    	funcTable map[fnfile]uint32
    
    	// A table storing coverage counts for each coverable unit.
    	unitTable map[extcu]uint32
    }
    
    // extcu encapsulates a coverable unit within some function.
    type extcu struct {
    	fnfid uint32 // index into p.funcs slice
    	coverage.CoverableUnit
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. pilot/pkg/xds/xds_test.go

    	"istio.io/istio/pilot/test/xds"
    	"istio.io/istio/pilot/test/xdstest"
    	"istio.io/istio/pkg/cluster"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/structpath"
    	"istio.io/istio/pkg/wellknown"
    )
    
    type SidecarTestConfig struct {
    	ImportedNamespaces []string
    	Resolution         string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. tensorflow/c/checkpoint_reader.h

    // other languages.
    //
    // The class currently only interacts with single-slice (i.e., non-partitioned)
    // variables.
    class CheckpointReader {
     public:
      CheckpointReader(const string& filename, TF_Status* status);
    
      bool HasTensor(const string& name) const;
      const string DebugString() const;
    
      // Returns a map from variable names to their shapes.  Slices of a partitioned
      // tensor are combined into a single entry.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. callbacks/create_test.go

    	s, err := schema.Parse(&user{}, schemaCache, schema.NamingStrategy{})
    	if err != nil {
    		t.Errorf("parse schema error: %v, is not expected", err)
    		return
    	}
    	dest := []*user{
    		{
    			ID:    1,
    			Name:  "alice",
    			Email: "email",
    			Age:   18,
    		},
    		{
    			ID:    2,
    			Name:  "bob",
    			Email: "email",
    			Age:   19,
    		},
    	}
    	stmt := &gorm.Statement{
    		DB: &gorm.DB{
    			Config: &gorm.Config{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 05:48:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/encoding/csv/fuzz_test.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package csv
    
    import (
    	"bytes"
    	"reflect"
    	"slices"
    	"strings"
    	"testing"
    )
    
    func FuzzRoundtrip(f *testing.F) {
    	f.Fuzz(func(t *testing.T, in []byte) {
    		buf := new(bytes.Buffer)
    
    		t.Logf("input = %q", in)
    		for _, tt := range []Reader{
    			{Comma: ','},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/util/workloadinstances/util.go

    // limitations under the License.
    
    package workloadinstances
    
    import (
    	"strings"
    
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/slices"
    )
    
    // FindInstance returns the first workload instance matching given predicate.
    func FindInstance(instances []*model.WorkloadInstance, predicate func(*model.WorkloadInstance) bool) *model.WorkloadInstance {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. src/log/slog/record.go

    		end := r.back[:len(r.back)+1][len(r.back)]
    		if !end.isEmpty() {
    			// Don't panic; copy and muddle through.
    			r.back = slices.Clip(r.back)
    			r.back = append(r.back, String("!BUG", "AddAttrs unsafely called on copy of Record made without using Record.Clone"))
    		}
    	}
    	ne := countEmptyGroups(attrs[i:])
    	r.back = slices.Grow(r.back, len(attrs[i:])-ne)
    	for _, a := range attrs[i:] {
    		if !a.Value.isEmptyGroup() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top