- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 536 for qsort (0.03 sec)
-
src/syscall/getdirentries_test.go
name[i] = byte(dirent.Name[i]) } names2 = append(names2, string(name)) } } names = append(names, ".", "..") // Getdirentries returns these also slices.Sort(names) slices.Sort(names2) if strings.Join(names, ":") != strings.Join(names2, ":") { t.Errorf("names don't match\n names: %q\nnames2: %q", names, names2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/topology_hints_test.go
} if m.pendingAdmissionPod == nil { t.Errorf("The pendingAdmissionPod should point to the current pod after the call to GetTopologyHints()") } sort.SliceStable(hints, func(i, j int) bool { return hints[i].LessThan(hints[j]) }) sort.SliceStable(tc.expectedHints, func(i, j int) bool { return tc.expectedHints[i].LessThan(tc.expectedHints[j]) }) if !reflect.DeepEqual(tc.expectedHints, hints) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19K bytes - Viewed (0) -
platforms/core-runtime/build-profile/src/main/java/org/gradle/profile/BuildProfile.java
} /** * Get a list of the profiling containers for all projects * * @return list */ public List<ProjectProfile> getProjects() { return CollectionUtils.sort(projects.values(), Operation.slowestFirst()); } public CompositeOperation<Operation> getProjectConfiguration() { List<Operation> operations = new ArrayList<>();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:39 UTC 2024 - 9.3K bytes - Viewed (0) -
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) -
testing/architecture-test/build.gradle.kts
} val sortAcceptedApiChanges = tasks.register<gradlebuild.binarycompatibility.SortAcceptedApiChangesTask>("sortAcceptedApiChanges") { group = "verification" description = "Sort the accepted api changes file alphabetically" apiChangesDirectory = acceptedApiChangesDirectory } val ruleStoreDir = layout.projectDirectory.dir("src/changes/archunit-store") tasks {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 08:43:33 UTC 2024 - 4.2K bytes - Viewed (0) -
buildscripts/checkdeps.sh
PHYS_DIR=$(pwd -P) RESULT=$PHYS_DIR/$TARGET_FILE echo $RESULT } ## FIXME: ## In OSX, 'sort -V' option does not exist, hence ## we have our own version compare function. ## Once OSX has the option, below function is good enough. ## ## check_minimum_version() { ## versions=($(echo -e "$1\n$2" | sort -V)) ## return [ "$1" == "${versions[0]}" ] ## } ## check_minimum_version() {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 05:08:11 UTC 2024 - 3.4K bytes - Viewed (0) -
src/internal/coverage/cformat/format.go
pkgs = append(pkgs, importpath) } slices.Sort(pkgs) // Emit functions for each package, sorted by import path. for _, importpath := range pkgs { p := fm.pm[importpath] if len(p.unitTable) == 0 { continue } units := make([]extcu, 0, len(p.unitTable)) for u := range p.unitTable { units = append(units, u) } // Within a package, sort the units, then walk through the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt
return Gson().fromJson(jsonString, AcceptedApiChanges::class.java) } /** * Sorts the given list of [AcceptedApiChange]s by type and member. * <p> * This sort ought to remain consistent with the sort used by the [EnrichedReportRenderer]. */ @Suppress("KDocUnresolvedReference") protected
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.9K bytes - Viewed (0) -
internal/logger/logger.go
// unique set. data is expected to be pre-sorted, and the resulting set in // the range [0:size] will remain in sorted order. Uniq, following a // sort.Sort call, can be used to prepare arbitrary inputs for use as sets. func uniq(data sort.Interface) (size int) { p, l := 0, data.Len() if l <= 1 { return l } for i := 1; i < l; i++ { if !data.Less(p, i) { continue } p++
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 12.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go
if len(versions) == 0 { continue } resources := extractResources(&rule.Rule) if len(resources) == 0 { continue } // sort GVRs so that the loop below provides // consistent results. sort.Strings(groups) sort.Strings(versions) sort.Strings(resources) count := 0 for _, group := range groups { for _, version := range versions { for _, resource := range resources {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 15.3K bytes - Viewed (0)