Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 129 for livable (0.08 sec)

  1. src/cmd/gofmt/rewrite.go

    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"os"
    	"reflect"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    func initRewrite() {
    	if *rewriteRule == "" {
    		rewrite = nil // disable any previous rewrite
    		return
    	}
    	f := strings.Split(*rewriteRule, "->")
    	if len(f) != 2 {
    		fmt.Fprintf(os.Stderr, "rewrite rule must be of the form 'pattern -> replacement'\n")
    		os.Exit(2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. src/sync/pool_test.go

    //
    //go:build !race
    
    package sync_test
    
    import (
    	"runtime"
    	"runtime/debug"
    	"slices"
    	. "sync"
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    func TestPool(t *testing.T) {
    	// disable GC so we can control when it happens.
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	var p Pool
    	if p.Get() != nil {
    		t.Fatal("expected empty")
    	}
    
    	// Make sure that the goroutine doesn't migrate to another P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/internal/godebug/godebug.go

    // which is used for generating and checking various documentation.
    // If the name is not listed in that table, New will succeed but calling Value
    // on the returned Setting will panic.
    // To disable that panic for access to an undocumented setting,
    // prefix the name with a #, as in godebug.New("#gofsystrace").
    // The # is a signal to New but not part of the key used in $GODEBUG.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/cmd/pprof/readlineui.go

    // The upstream pprof command implements the same functionality
    // using the github.com/chzyer/readline package.
    type readlineUI struct {
    	term *term.Terminal
    }
    
    func newReadlineUI() driver.UI {
    	// disable readline UI in dumb terminal. (golang.org/issue/26254)
    	if v := strings.ToLower(os.Getenv("TERM")); v == "" || v == "dumb" {
    		return nil
    	}
    	// test if we can use term.ReadLine
    	// that assumes operation in the raw mode.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/fake_kuberuntime_manager.go

    		kubeRuntimeManager,
    		flowcontrol.NewBackOff(time.Second, 300*time.Second),
    		false,
    		utilpointer.Int32Ptr(0), // No limit on max parallel image pulls,
    		0,                       // Disable image pull throttling by setting QPS to 0,
    		0,
    		&fakePodPullingTimeRecorder{},
    	)
    	kubeRuntimeManager.runner = lifecycle.NewHandlerRunner(
    		&fakeHTTP{},
    		kubeRuntimeManager,
    		kubeRuntimeManager,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/options/admission_test.go

    	options.GenericAdmission.EnablePlugins = []string{"NodeRestriction"}
    	if len(options.Validate()) == 0 {
    		t.Errorf("Expect error, but got none")
    	}
    
    	// 2. Both `--admission-control` and `--disable-admission-plugins` are specified
    	options = NewAdmissionOptions()
    	options.PluginNames = []string{"ServiceAccount"}
    	options.GenericAdmission.DisablePlugins = []string{"NodeRestriction"}
    	if len(options.Validate()) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 01:51:35 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  7. pkg/security/apparmor/validate.go

    // Note, this is intentionally only check the host at kubelet startup and never re-evaluates the host
    // as the expectation is that the kubelet restart will be needed to enable or disable AppArmor support.
    func (v *validator) ValidateHost() error {
    	return v.validateHostErr
    }
    
    // validateHost verifies that the host and runtime is capable of enforcing AppArmor profiles.
    func validateHost() error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. pilot/pkg/features/tuning.go

    		"If set to a non-zero value, enables mutex profiling a rate of 1/MUTEX_PROFILE_FRACTION events."+
    			" For example, '1000' will record 0.1% of events. "+
    			"Set to 0 to disable entirely.").Get()
    
    	StatusUpdateInterval = env.Register(
    		"PILOT_STATUS_UPDATE_INTERVAL",
    		500*time.Millisecond,
    		"Interval to update the XDS distribution status.",
    	).Get()
    
    	StatusQPS = env.Register(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 04:22:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/net/tcpsockopt_windows.go

    	// zero will knock off any existing values of keep-alive.
    	// Unfortunately, Windows doesn't support retrieving current keep-alive
    	// settings in any form programmatically, which disable us to first retrieve
    	// the current keep-alive settings, then set it without unwanted corruption.
    	switch {
    	case idle < 0 && interval >= 0:
    		// Given that we can't set KeepAliveInterval alone, and this code path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/internal/poll/fd.go

    // internally and are not intended to be used outside the standard libraries,
    // Therefore, we make those APIs use internal types like poll.FD or poll.String
    // in their function signatures to disable the usability of these APIs from
    // external codebase.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top