Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 3,634 for Sort (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/test/framework/components/echo/instances.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 echo
    
    import (
    	"errors"
    	"sort"
    
    	"github.com/hashicorp/go-multierror"
    
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/framework/components/cluster"
    )
    
    var _ Target = Instances{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 18:26:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/go/internal/gover/mod.go

    	if path == "toolchain" {
    		return Compare(maybeToolchainVersion(x), maybeToolchainVersion(y))
    	}
    	return semver.Compare(x, y)
    }
    
    // ModSort is like module.Sort but understands the "go" and "toolchain"
    // modules and their version ordering.
    func ModSort(list []module.Version) {
    	sort.Slice(list, func(i, j int) bool {
    		mi := list[i]
    		mj := list[j]
    		if mi.Path != mj.Path {
    			return mi.Path < mj.Path
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:18:46 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. hack/update-vendor.sh

      local require_json="${local_tmp_dir}/require.json"
      local replace_json="${local_tmp_dir}/replace.json"
      go mod edit -json \
          | jq -r ".Require // [] | sort | .[] | select(${require_filter})" \
          > "${require_json}"
      go mod edit -json \
          | jq -r ".Replace // [] | sort | .[] | select(${replace_filter})" \
          > "${replace_json}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:08 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	verifiedWorkloads := make([]*ZtunnelWorkload, 0, len(zDump.Workloads))
    	for _, wl := range zDump.Workloads {
    		if filter.Verify(wl) {
    			verifiedWorkloads = append(verifiedWorkloads, wl)
    		}
    	}
    
    	// Sort by name, node
    	sort.Slice(verifiedWorkloads, func(i, j int) bool {
    		in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name
    		jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name
    		if in != jn {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top