Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 335 for Sort (0.05 sec)

  1. pkg/scheduler/framework/preemption/preemption_test.go

    				// Sort the values (inner victims) and the candidate itself (by its NominatedNodeName).
    				for i := range got {
    					victims := got[i].Victims().Pods
    					sort.Slice(victims, func(i, j int) bool {
    						return victims[i].Name < victims[j].Name
    					})
    				}
    				sort.Slice(got, func(i, j int) bool {
    					return got[i].Name() < got[j].Name()
    				})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       *
       * @since 23.1
       */
      public static void sort(byte[] array) {
        checkNotNull(array);
        sort(array, 0, array.length);
      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned bytes.
       *
       * @since 23.1
       */
      public static void sort(byte[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    func (m metaCacheEntries) less(i, j int) bool {
    	return m[i].name < m[j].name
    }
    
    // sort entries by name.
    // m is sorted and a sorted metadata object is returned.
    // Changes to m will also be reflected in the returned object.
    func (m metaCacheEntries) sort() metaCacheEntriesSorted {
    	if m.isSorted() {
    		return metaCacheEntriesSorted{o: m}
    	}
    	sort.Slice(m, m.less)
    	return metaCacheEntriesSorted{o: m}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 04:34:26 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/ClosedProjectSubstitutionCrossVersionSpec.groovy

            }
    
            then:
            def child2 = buildFinishedHandler.result.children.find { it.name == "child2" }
            child2.projectDependencies.isEmpty()
            child2.classpath.collect { it.file.name }.sort() == ['child1-1.0-tests.jar', 'child1-1.0.jar']
            // TODO: verify test-source usage after https://github.com/gradle/gradle/pull/9484 is merged
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/volume_manager.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package volumemanager
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"sort"
    	"strconv"
    	"strings"
    	"time"
    
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/klog/v2"
    	"k8s.io/mount-utils"
    
    	v1 "k8s.io/api/core/v1"
    	k8stypes "k8s.io/apimachinery/pkg/types"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. src/go/types/typeset.go

    	}
    	assert(!comp || terms.isAll()) // comparable invariant
    	return terms, comp
    }
    
    func sortMethods(list []*Func) {
    	sort.Sort(byUniqueMethodName(list))
    }
    
    func assertSortedMethods(list []*Func) {
    	if !debug {
    		panic("assertSortedMethods called outside debug mode")
    	}
    	if !sort.IsSorted(byUniqueMethodName(list)) {
    		panic("methods not sorted")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        }
      }
    
      public void testHeadSetInclusive() {
        String[] strings = NUMBER_NAMES.toArray(new String[0]);
        ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(strings);
        Arrays.sort(strings);
        for (int i = 0; i < strings.length; i++) {
          assertThat(set.headSet(strings[i], true))
              .containsExactlyElementsIn(sortedNumberNames(0, i + 1))
              .inOrder();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  8. tests/preload_test.go

    package tests_test
    
    import (
    	"context"
    	"encoding/json"
    	"regexp"
    	"sort"
    	"strconv"
    	"sync"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestPreloadWithAssociations(t *testing.T) {
    	user := *GetUser("preload_with_associations", Config{
    		Account:   true,
    		Pets:      2,
    		Toys:      3,
    		Company:   true,
    		Manager:   true,
    		Team:      4,
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typeset.go

    	}
    	assert(!comp || terms.isAll()) // comparable invariant
    	return terms, comp
    }
    
    func sortMethods(list []*Func) {
    	sort.Sort(byUniqueMethodName(list))
    }
    
    func assertSortedMethods(list []*Func) {
    	if !debug {
    		panic("assertSortedMethods called outside debug mode")
    	}
    	if !sort.IsSorted(byUniqueMethodName(list)) {
    		panic("methods not sorted")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. tests/scan_test.go

    package tests_test
    
    import (
    	"reflect"
    	"sort"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    type PersonAddressInfo struct {
    	Person  *Person  `gorm:"embedded"`
    	Address *Address `gorm:"embedded"`
    }
    
    func TestScan(t *testing.T) {
    	user1 := User{Name: "ScanUser1", Age: 1}
    	user2 := User{Name: "ScanUser2", Age: 10}
    	user3 := User{Name: "ScanUser3", Age: 20}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top