- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 4,007 for Sort (0.04 sec)
-
pkg/scheduler/internal/cache/debugger/comparer.go
} return compareStrings(actual, cached) } func compareStrings(actual, cached []string) (missed, redundant []string) { missed, redundant = []string{}, []string{} sort.Strings(actual) sort.Strings(cached) compare := func(i, j int) int { if i == len(actual) { return 1 } else if j == len(cached) { return -1 } return strings.Compare(actual[i], cached[j]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 05:26:32 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go
di.Groups = make([]string, len(groups)) copy(di.Groups, groups) sort.Strings(di.Groups) } if extra := u.GetExtra(); len(extra) > 0 { di.Extra = make(map[string][]string, len(extra)) for k, vs := range extra { vdupe := make([]string, len(vs)) copy(vdupe, vs) sort.Strings(vdupe) di.Extra[k] = vdupe } } serializableAttributes.User = di }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/internal/objfile/pe.go
} case ch&bss != 0: sym.Code = 'B' } sym.Addr += imageBase + uint64(sect.VirtualAddress) } syms = append(syms, sym) addrs = append(addrs, sym.Addr) } sort.Sort(uint64s(addrs)) for i := range syms { j := sort.Search(len(addrs), func(x int) bool { return addrs[x] > syms[i].Addr }) if j < len(addrs) { syms[i].Size = int64(addrs[j] - syms[i].Addr) } } return syms, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 20 00:56:30 UTC 2022 - 4.9K bytes - Viewed (0) -
pkg/config/schema/codegen/collections.go
} if r.StatusProtoPackage != "" { e.StatusType = statName } entries = append(entries, e) } sort.Slice(entries, func(i, j int) bool { return strings.Compare(entries[i].Resource.Identifier, entries[j].Resource.Identifier) < 0 }) // Single instance and sort names names := sets.New[string]() for _, r := range m.Resources { if r.ProtoPackage != "" { names.Insert(r.ProtoPackage)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 25 07:19:43 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/ConstructorComparatorTest.groovy
rhs.parameterTypes >> [String, Number] expect: comparator.compare(lhs, rhs) == -1 comparator.compare(rhs, lhs) == 1 } def "can sort a list of constructors"() { def first = Stub(ClassGenerator.GeneratedConstructor) first.parameterTypes >> [String] def second = Stub(ClassGenerator.GeneratedConstructor)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
pkg/test/framework/tools/featuresgen/cmd/root_test.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 cmd import ( "sort" "strings" "testing" "gopkg.in/yaml.v2" ) func TestCreateConstantString(t *testing.T) { s1 := createConstantString([]string{"lab-el1", "label2"})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 1.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
s.acc.sort(numas, s.acc.details.CPUsInNUMANodes) result = append(result, numas...) } return result } // If sockets are higher in the memory hierarchy than NUMA nodes, then just // sort the sockets directly, and return them. func (s *socketsFirst) sortAvailableSockets() []int { sockets := s.acc.details.Sockets().UnsortedList() s.acc.sort(sockets, s.acc.details.CPUsInSockets)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
src/net/lookup_windows_test.go
} if len(txt) == 0 { t.Fatalf("no results") } expected, err := nslookupTXT(server) if err != nil { t.Skipf("skipping failed nslookup %s test: %s", server, err) } slices.Sort(expected) slices.Sort(txt) if !reflect.DeepEqual(expected, txt) { t.Errorf("different results %s:\texp:%v\tgot:%v", server, toJson(expected), toJson(txt)) } }) } func TestLookupLocalPTR(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ConstructorComparator.java
import java.util.Comparator; /** * Sorts GeneratedConstructors based on the number of parameters. * * When two constructors have the same number of parameters, we settle on a stable sort by looking at the names of the * types of the parameters. * */ public class ConstructorComparator implements Comparator<ClassGenerator.GeneratedConstructor<?>> { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.8K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestScenarioDefinitionVerifier.groovy
File newFile = new File(args[1]) PerformanceTestScenarioDefinition oldJson = new ObjectMapper().readValue(oldFile, PerformanceTestScenarioDefinition).sort() PerformanceTestScenarioDefinition newJson = new ObjectMapper().readValue(newFile, PerformanceTestScenarioDefinition).sort() if (oldJson != newJson) { int size = Math.min(oldJson.performanceTests.size(), newJson.performanceTests.size())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.2K bytes - Viewed (0)