Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 6161 - 6170 of 6,187 for New (0.04 seconds)

  1. cmd/erasure-decode_test.go

    	closeBitrotWriters(writers)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if n != length {
    		t.Errorf("erasureCreateFile returned %d, expected %d", n, length)
    	}
    
    	// To generate random offset/length.
    	r := rand.New(rand.NewSource(UTCNow().UnixNano()))
    
    	buf := &bytes.Buffer{}
    
    	// Verify erasure.Decode() for random offsets and lengths.
    	for range iterations {
    		offset := r.Int63n(length)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 21K bytes
    - Click Count (0)
  2. docs/fr/docs/tutorial/dependencies/dependencies-with-yield.md

        end
        dep ->> operation: Run dependency, e.g. DB session
        opt raise
            operation -->> dep: Raise Exception (e.g. HTTPException)
            opt handle
                dep -->> dep: Can catch exception, raise a new HTTPException, raise other exception
            end
            handler -->> client: HTTP error response
        end
    
        operation ->> client: Return response to client
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  3. helm-releases/minio-4.0.9.tgz

    the main command on exit exitCommand: "" ## List of users to be created after minio install ## users: ## Username, password and policy to be assigned to the user ## Default policies are [readonly|readwrite|writeonly|consoleAdmin|diagnostics] ## Add new policies as explained here https://docs.min.io/docs/minio-multi-user-quickstart-guide.html ## NOTE: this will fail if LDAP is enabled in your MinIO deployment ## make sure to disable this if you are using LDAP. - accessKey: console secretKey: console123...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Aug 03 06:10:44 GMT 2022
    - 18.6K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial014_an_py310.py ln[24:28] hl[28] *}
    
    如此一來,該 session 就會釋放資料庫連線,讓其他請求可以使用。
    
    如果你有不同的情境,需要從含有 `yield` 的相依中提早結束,請建立一個 [GitHub 討論問題](https://github.com/fastapi/fastapi/discussions/new?category=questions),描述你的具體情境,以及為何提早關閉含有 `yield` 的相依對你有幫助。
    
    如果有令人信服的案例需要在含有 `yield` 的相依中提前關閉,我會考慮加入一種新的選項,讓你可以選擇性啟用提前關閉。
    
    ### 含有 `yield` 與 `except` 的相依,技術細節 { #dependencies-with-yield-and-except-technical-details }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  5. statement.go

    			for destValue.Kind() == reflect.Ptr {
    				destValue = destValue.Elem()
    			}
    
    			if stmt.ReflectValue != destValue {
    				if !destValue.CanAddr() {
    					destValueCanAddr := reflect.New(destValue.Type())
    					destValueCanAddr.Elem().Set(destValue)
    					stmt.Dest = destValueCanAddr.Interface()
    					destValue = destValueCanAddr.Elem()
    				}
    
    				switch destValue.Kind() {
    				case reflect.Struct:
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Sep 12 04:33:27 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  6. cmd/api-router.go

    			http.MethodDelete,
    			http.MethodOptions,
    			http.MethodPatch,
    		},
    		AllowedHeaders:   commonS3Headers,
    		ExposedHeaders:   commonS3Headers,
    		AllowCredentials: true,
    	}
    	return cors.New(opts).Handler(handler)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:05:19 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  7. cmd/object-api-utils_test.go

    		b.ResetTimer()
    		b.ReportAllocs()
    		for b.Loop() {
    			concat(data...)
    		}
    	})
    }
    
    func BenchmarkConcatImplementation(b *testing.B) {
    	data := make([]string, 2)
    	rng := rand.New(rand.NewSource(0))
    	for i := range 2 {
    		var tmp [16]byte
    		rng.Read(tmp[:])
    		data[i] = hex.EncodeToString(tmp[:])
    	}
    	b.ResetTimer()
    	benchmark(b, data)
    }
    
    func BenchmarkPathJoinOld(b *testing.B) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  8. cmd/metacache-entries_test.go

    			r:            metadataResolutionParams{dirQuorum: 3, objQuorum: 3, strict: true},
    			wantSelected: &inputSerialized[9],
    			wantOk:       true,
    		},
    	}
    
    	for testID, tt := range tests {
    		rng := rand.New(rand.NewSource(0))
    		// Run for a number of times, shuffling the input to ensure that output is consistent.
    		for i := range 10 {
    			t.Run(fmt.Sprintf("test-%d-%s-run-%d", testID, tt.name, i), func(t *testing.T) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  9. internal/s3select/csv/reader_contrib_test.go

    		})
    	}
    }
    
    type errReader struct {
    	err error
    }
    
    func (e errReader) Read(p []byte) (n int, err error) {
    	return 0, e.err
    }
    
    func TestReadFailures(t *testing.T) {
    	customErr := errors.New("unable to read file :(")
    	cases := []struct {
    		file            string
    		recordDelimiter string
    		fieldDelimiter  string
    		sendErr         error
    		header          bool
    		wantColumns     []string
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 38.4K bytes
    - Click Count (0)
  10. api/go1.2.txt

    pkg log/syslog (freebsd-386-cgo), const LOG_WARNING Priority
    pkg log/syslog (freebsd-386-cgo), func Dial(string, string, Priority, string) (*Writer, error)
    pkg log/syslog (freebsd-386-cgo), func New(Priority, string) (*Writer, error)
    pkg log/syslog (freebsd-386-cgo), func NewLogger(Priority, int) (*log.Logger, error)
    pkg log/syslog (freebsd-386-cgo), method (*Writer) Alert(string) error
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Click Count (1)
Back to Top