Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,679 for Sort (0.1 sec)

  1. src/cmd/nm/nm.go

    	"bufio"
    	"flag"
    	"fmt"
    	"log"
    	"os"
    	"sort"
    
    	"cmd/internal/objfile"
    	"cmd/internal/telemetry"
    )
    
    const helpText = `usage: go tool nm [options] file...
      -n
          an alias for -sort address (numeric),
          for compatibility with other nm commands
      -size
          print symbol size in decimal between address and type
      -sort {address,name,none,size}
          sort output in the given order (default name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/go/scanner/errors.go

    	}
    	return p[i].Msg < p[j].Msg
    }
    
    // Sort sorts an [ErrorList]. *[Error] entries are sorted by position,
    // other errors are sorted by error message, and before any *[Error]
    // entry.
    func (p ErrorList) Sort() {
    	sort.Sort(p)
    }
    
    // RemoveMultiples sorts an [ErrorList] and removes all but the first error per line.
    func (p *ErrorList) RemoveMultiples() {
    	sort.Sort(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. pkg/config/host/names_test.go

    		t.Run(fmt.Sprintf("%d", idx), func(t *testing.T) {
    			// Save a copy to report errors with
    			tmp := make(host.Names, len(tt.in))
    			copy(tmp, tt.in)
    
    			sort.Sort(tt.in)
    			if !reflect.DeepEqual(tt.in, tt.want) {
    				t.Fatalf("sort.Sort(%v) = %v, want %v", tmp, tt.in, tt.want)
    			}
    		})
    	}
    }
    
    func BenchmarkNamesSort(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 10:35:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/inst_test.go

    package test
    
    import (
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"regexp"
    	"testing"
    )
    
    // TestInst tests that only one instantiation of Sort is created, even though generic
    // Sort is used for multiple pointer types across two packages.
    func TestInst(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveGoRun(t)
    
    	// Build ptrsort.go, which uses package mysort.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/sort/sort_impl_go121.go

    // slices package to implement some `sort` functions faster. However, until
    // the bootstrap compiler uses Go 1.21 or later, we keep a fallback version
    // in sort_impl_120.go that retains the old implementation.
    
    package sort
    
    import "slices"
    
    func intsImpl(x []int)         { slices.Sort(x) }
    func float64sImpl(x []float64) { slices.Sort(x) }
    func stringsImpl(x []string)   { slices.Sort(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 13:00:18 UTC 2023
    - 876 bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestScenarioDefinition.groovy

        void writeTo(File file) {
            sort()
            new ObjectMapper().writerWithDefaultPrettyPrinter().writeValue(file, this)
            file.append('\n')
        }
    
        PerformanceTestScenarioDefinition sort() {
            // Sort all fields before writing to get a deterministic result
            Collections.sort(performanceTests, { a, b -> a.testId <=> b.testId })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/sort/sort_impl_120.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !go1.21
    
    package sort
    
    func intsImpl(x []int)         { Sort(IntSlice(x)) }
    func float64sImpl(x []float64) { Sort(Float64Slice(x)) }
    func stringsImpl(x []string)   { Sort(StringSlice(x)) }
    
    func intsAreSortedImpl(x []int) bool         { return IsSorted(IntSlice(x)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 13:00:18 UTC 2023
    - 602 bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/JvmInstallationMetadataComparatorTest.groovy

            given:
            def metadata = [
                jvmMetadata("6.0"),
                jvmMetadata("8.0"),
                jvmMetadata("11.0"),
                jvmMetadata("5.1")
            ]
    
            when:
            metadata.sort(new JvmInstallationMetadataComparator(getJavaHome()))
    
            then:
            assertOrder(metadata, "11.0", "8.0", "6.0", "5.1")
        }
    
        def "deterministically matches vendor over vendor-specific tool version"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/entity/FacetInfo.java

                sort = fessConfig.getQueryFacetFieldsSort();
            }
            if (StringUtil.isNotBlank(fessConfig.getQueryFacetFieldsMissing())) {
                missing = fessConfig.getQueryFacetFieldsMissing();
            }
        }
    
        public BucketOrder getBucketOrder() {
            if (StringUtil.isNotBlank(sort)) {
                final String[] values = sort.split("\\.");
                final boolean asc;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    					}
    				}
    			}
    
    			leases, err := fakeReconciler.ListLeases()
    			if err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    			// sort for comparison
    			sort.Strings(leases)
    			sort.Strings(test.expectLeases)
    			if !reflect.DeepEqual(leases, test.expectLeases) {
    				t.Errorf("expected %v got: %v", test.expectLeases, leases)
    			}
    
    			for _, server := range test.servers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top