Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 540 for fprintf (0.15 sec)

  1. internal/ringbuffer/ring_buffer_test.go

    	c := time.After(after)
    	cc := make(chan struct{})
    	go func() {
    		select {
    		case <-cc:
    			return
    		case <-c:
    			buf := make([]byte, 1<<20)
    			stacklen := runtime.Stack(buf, true)
    			fmt.Printf("=== Timeout, assuming deadlock ===\n*** goroutine dump...\n%s\n*** end\n", string(buf[:stacklen]))
    			os.Exit(2)
    		}
    	}()
    	return func() {
    		close(cc)
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. cmd/xl-storage-format_test.go

    				},
    				{
    					PartNumber: 2,
    					Algorithm:  HighwayHash256S,
    					Hash:       nil,
    				},
    			},
    		},
    	}
    	for _, size := range []int{1, 10, 1000, 100_000} {
    		b.Run(fmt.Sprint(size, "-versions"), func(b *testing.B) {
    			var xl xlMetaV2
    			ids := make([]string, size)
    			for i := 0; i < size; i++ {
    				fi.VersionID = mustGetUUID()
    				fi.DataDir = mustGetUUID()
    				ids[i] = fi.VersionID
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. cmd/endpoint_test.go

    		{"192.168.1.210:9000", Endpoint{}, -1, fmt.Errorf("invalid URL endpoint format: missing scheme http or https")},
    	}
    
    	for i, test := range testCases {
    		t.Run(fmt.Sprint("case-", i), func(t *testing.T) {
    			endpoint, err := NewEndpoint(test.arg)
    			if err == nil {
    				err = endpoint.UpdateIsLocal()
    			}
    
    			switch {
    			case test.expectedErr == nil:
    				if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Под капотом" open("./somefile.txt") создаёт объект называемый "контекстным менеджером".
    
    Когда блок `with` завершается, он обязательно закрывает файл, даже если были исключения.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

    // explicitly by running a TPUReplicatedOutput operation on the parallel device.
    //
    // TODO(allenl): There are some use-cases that are only supported by copying to
    // host at the moment (e.g. debug print on a tensor, .numpy(), etc.). We either
    // need to return something here or address these use-cases one by one.
    TFE_TensorHandle* CopyTensorFromParallelDevice(TFE_Context* context,
    Registered: Tue Oct 29 12:39:09 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. src/main/webapp/css/bootstrap.min.css

    -flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display...
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Wed Dec 25 08:05:52 UTC 2019
    - 155.8K bytes
    - Viewed (0)
  7. cmd/iam-object-store.go

    		return fmt.Errorf("unable to list IAM data: %w", err)
    	}
    	if took := time.Since(listStartTime); took > maxIAMLoadOpTime {
    		var s strings.Builder
    		for k, v := range listedConfigItems {
    			s.WriteString(fmt.Sprintf("    %s: %d items\n", k, len(v)))
    		}
    		logger.Info("listAllIAMConfigItems took %.2fs with contents:\n%s", took.Seconds(), s.String())
    	}
    
    	// Loads things in the same order as `LoadIAMCache()`
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  8. cmd/object-api-putobject_test.go

    		tmpMetaDir := path.Join(disk, minioMetaTmpBucket)
    		files, err := os.ReadDir(tmpMetaDir)
    		if err != nil {
    			// It's OK to have non-existing tmpMetaDir.
    			if osIsNotExist(err) {
    				continue
    			}
    
    			// Print the error
    			t.Errorf("%s", err)
    		}
    
    		var found bool
    		for _, fi := range files {
    			if fi.Name() == ".trash" {
    				continue
    			}
    			found = true
    			break
    		}
    
    		if found {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		if deploymentID != formats[i].ID {
    			return nil, fmt.Errorf("all pools must have same deployment ID - expected %s, got %s for pool(%s)", deploymentID, formats[i].ID, humanize.Ordinal(i+1))
    		}
    
    		bootstrapTrace(fmt.Sprintf("newErasureSets: initializing %s pool", humanize.Ordinal(i+1)), func() {
    			z.serverPools[i], err = newErasureSets(ctx, ep, storageDisks[i], formats[i], commonParityDrives, i)
    		})
    		if err != nil {
    			return nil, err
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg flag, var ErrHelp error
    pkg flag, var Usage func()
    pkg fmt, func Errorf(string, ...interface{}) error
    pkg fmt, func Fprint(io.Writer, ...interface{}) (int, error)
    pkg fmt, func Fprintf(io.Writer, string, ...interface{}) (int, error)
    pkg fmt, func Fprintln(io.Writer, ...interface{}) (int, error)
    pkg fmt, func Fscan(io.Reader, ...interface{}) (int, error)
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top