Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 4,007 for Sort (0.04 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    	// Remove from oldest to newest (last to first).
    	numToKeep := len(containers) - toRemove
    	if numToKeep > 0 {
    		sort.Sort(byCreated(containers))
    	}
    	for i := len(containers) - 1; i >= numToKeep; i-- {
    		if containers[i].unknown {
    			// Containers in known state could be running, we should try
    			// to stop it before removal.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/PathTest.groovy

            expect:
            paths(['a', 'b', 'A', 'abc']).sort() == paths(['A', 'a', 'abc', 'b'])
            paths([':a', ':b', ':b:a', ':B:a', ':', ':B', ':a:a']).sort() == paths([':', ':a', ':a:a', ':B', ':B:a', ':b', ':b:a'])
            paths(['b', 'b:a', 'a', 'a:a']).sort() == paths(['a', 'a:a', 'b', 'b:a'])
            paths([':', ':a', 'a']).sort() == paths(['a', ':', ':a'])
        }
    
        def "counts segments"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 12:54:37 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/AddingConfigurationIntegrationTest.groovy

                    def files2 = configurations.conf2
                    doLast {
                        FileCollection sum = files1
                        sum += files2
                        assert sum.files.sort() == [ file1, file2 ]
                    }
                }
            """
    
            expect:
            succeeds "addConfigs"
        }
    
        def "can subtract configurations" () {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/capmanagers.go

    		if !fields.Applied() {
    			updaters = append(updaters, manager)
    		}
    	}
    	if len(updaters) <= f.maxUpdateManagers {
    		return managed, nil
    	}
    
    	// If we have more than the maximum, sort the update entries by time, oldest first.
    	sort.Slice(updaters, func(i, j int) bool {
    		iTime, jTime, iSeconds, jSeconds := managed.Times()[updaters[i]], managed.Times()[updaters[j]], int64(0), int64(0)
    		if iTime != nil {
    			iSeconds = iTime.Unix()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/config/cbean/bs/BsFileAuthenticationCB.java

                if (queryBuilder != null) {
                    builder.setQuery(queryBuilder);
                }
                _conditionQuery.getFieldSortBuilderList().forEach(sort -> {
                    builder.addSort(sort);
                });
            }
    
            if (_conditionAggregation != null) {
                _conditionAggregation.getAggregationBuilderList().forEach(builder::addAggregation);
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. src/maps/iter_test.go

    		var want []int
    		m := make(map[int]int)
    		for i := range size {
    			m[i] = i
    			want = append(want, i)
    		}
    
    		var got []int
    		for k := range Keys(m) {
    			got = append(got, k)
    		}
    		slices.Sort(got)
    		if !slices.Equal(got, want) {
    			t.Errorf("Keys(%v) = %v, want %v", m, got, want)
    		}
    	}
    }
    
    func TestValues(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var want []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. src/syscall/dirent_test.go

    		}
    		buf = buf[:n]
    		for len(buf) > 0 {
    			var consumed int
    			consumed, _, files2 = syscall.ParseDirent(buf, -1, files2)
    			buf = buf[consumed:]
    		}
    	}
    
    	// Check results
    	slices.Sort(files)
    	slices.Sort(files2)
    	if strings.Join(files, "|") != strings.Join(files2, "|") {
    		t.Errorf("bad file list: want\n%q\ngot\n%q", files, files2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. pkg/volume/util/nested_volumes.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"sort"
    	"strings"
    
    	v1 "k8s.io/api/core/v1"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    )
    
    // getNestedMountpoints returns a list of mountpoint directories that should be created
    // for the volume indicated by name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 12:19:17 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  9. cmd/net.go

    	host, port, err := net.SplitHostPort(addr)
    	if err != nil {
    		if !strings.Contains(err.Error(), "missing port in address") {
    			return "", "", err
    		}
    
    		host = addr
    
    		switch scheme {
    		case "https":
    			port = "443"
    		case "http":
    			port = "80"
    		default:
    			return "", "", errors.New("unable to guess port from scheme")
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/convert.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 kuberuntime
    
    import (
    	"sort"
    
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
    	"k8s.io/kubernetes/pkg/features"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 22:52:46 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top