Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 3,672 for Sort (0.08 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/compact/compact.go

    package compact // import "golang.org/x/text/internal/language/compact"
    
    import (
    	"sort"
    	"strings"
    
    	"golang.org/x/text/internal/language"
    )
    
    // ID is an integer identifying a single tag.
    type ID uint16
    
    func getCoreIndex(t language.Tag) (id ID, ok bool) {
    	cci, ok := language.GetCompactCore(t)
    	if !ok {
    		return 0, false
    	}
    	i := sort.Search(len(coreTags), func(i int) bool {
    		return cci <= coreTags[i]
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_parallel.txt

    module fuzz_parallel
    
    go 1.17
    -- fuzz_parallel_test.go --
    package fuzz_parallel
    
    import (
    	"sort"
    	"sync"
    	"testing"
    )
    
    func FuzzSeed(f *testing.F) {
    	for _, v := range [][]byte{{'a'}, {'b'}, {'c'}} {
    		f.Add(v)
    	}
    
    	var mu sync.Mutex
    	var before, after []byte
    	f.Cleanup(func() {
    		sort.Slice(after, func(i, j int) bool { return after[i] < after[j] })
    		got := string(before) + string(after)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. pkg/ctrlz/topics/scopes.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package topics
    
    import (
    	"encoding/json"
    	"fmt"
    	"net/http"
    	"sort"
    
    	"github.com/gorilla/mux"
    
    	"istio.io/istio/pkg/ctrlz/fw"
    	"istio.io/istio/pkg/ctrlz/topics/assets"
    	"istio.io/istio/pkg/log"
    )
    
    type scopeTopic struct{}
    
    type scopeInfo struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/net/dnsclient.go

    				if i > 0 {
    					addrs[0], addrs[i] = addrs[i], addrs[0]
    				}
    				break
    			}
    		}
    		sum -= int(addrs[0].Weight)
    		addrs = addrs[1:]
    	}
    }
    
    // sort reorders SRV records as specified in RFC 2782.
    func (addrs byPriorityWeight) sort() {
    	slices.SortFunc(addrs, func(a, b *SRV) int {
    		if r := cmp.Compare(a.Priority, b.Priority); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Weight, b.Weight)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/schedule.go

    		for i, v := range order {
    			if v.Op == OpNilCheck {
    				if start == -1 {
    					start = i
    				}
    			} else {
    				if start != -1 {
    					sort.Sort(bySourcePos(order[start:i]))
    					start = -1
    				}
    			}
    		}
    		if start != -1 {
    			sort.Sort(bySourcePos(order[start:]))
    		}
    	}
    
    	return order
    }
    
    // isFlagOp reports if v is an OP with the flag type.
    func (v *Value) isFlagOp() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    // fmt.Sprintf doesn't mean you need to use the result of every
    // function that returns a formatted string: it may have other results
    // and effects.
    
    import (
    	_ "embed"
    	"go/ast"
    	"go/token"
    	"go/types"
    	"sort"
    	"strings"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/go/analysis/passes/inspect"
    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    	"golang.org/x/tools/go/ast/astutil"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. istioctl/pkg/util/configdump/cluster.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package configdump
    
    import (
    	"sort"
    
    	admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3"
    	cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
    
    	v3 "istio.io/istio/pilot/pkg/xds/v3"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  8. pkg/controller/podgc/gc_controller.go

    	if deleteCount == 0 {
    		return
    	}
    
    	logger.V(4).Info("Garbage collecting pods that are terminating on node tainted with node.kubernetes.io/out-of-service", "numPods", deleteCount)
    	// sort only when necessary
    	sort.Sort(byEvictionAndCreationTimestamp(terminatingPods))
    	var wait sync.WaitGroup
    	for i := 0; i < deleteCount; i++ {
    		wait.Add(1)
    		go func(pod *v1.Pod) {
    			defer wait.Done()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. pilot/test/xdstest/extract.go

    					resourceNames.Insert(s.GetName())
    				}
    			}
    		}
    	}
    	resourceNames.Delete("")
    	ls := resourceNames.UnsortedList()
    	sort.Sort(sort.Reverse(sort.StringSlice(ls)))
    	return ls
    }
    
    func ExtractListenerNames(ll []*listener.Listener) []string {
    	res := []string{}
    	for _, l := range ll {
    		res = append(res, l.Name)
    	}
    	return res
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  10. src/cmd/trace/goroutines.go

    		}
    
    		// Sort.
    		sortBy := r.FormValue("sortby")
    		if _, ok := validNonOverlappingStats[sortBy]; ok {
    			slices.SortFunc(goroutines, func(a, b goroutine) int {
    				return cmp.Compare(b.NonOverlappingStats[sortBy], a.NonOverlappingStats[sortBy])
    			})
    		} else {
    			// Sort by total time by default.
    			slices.SortFunc(goroutines, func(a, b goroutine) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top