Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 5,260 for chunck (0.26 sec)

  1. src/math/rand/rand_test.go

    }
    
    func checkSampleSliceDistributions(t *testing.T, samples []float64, nslices int, expected *statsResults) {
    	t.Helper()
    	chunk := len(samples) / nslices
    	for i := 0; i < nslices; i++ {
    		low := i * chunk
    		var high int
    		if i == nslices-1 {
    			high = len(samples) - 1
    		} else {
    			high = (i + 1) * chunk
    		}
    		checkSampleDistribution(t, samples[low:high], expected)
    	}
    }
    
    //
    // Normal distribution tests
    //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/storagemigration/v1alpha1/generated.proto

      // Immutable.
      optional GroupVersionResource resource = 1;
    
      // The token used in the list options to get the next chunk of objects
      // to migrate. When the .status.conditions indicates the migration is
      // "Running", users can use this token to check the progress of the
      // migration.
      // +optional
      optional string continueToken = 2;
    }
    
    // Status of the storage version migration.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/storagemigration/v1alpha1/types_swagger_doc_generated.go

    	"continueToken": "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.",
    }
    
    func (StorageVersionMigrationSpec) SwaggerDoc() map[string]string {
    	return map_StorageVersionMigrationSpec
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/LineBufferTest.java

                  }
                });
    
        for (int chunk : CHUNK_SIZES) {
          chunk = Math.max(1, Math.min(chunk, input.length()));
          assertEquals(expectProcess, bufferHelper(input, chunk));
          assertEquals(expectRead, readUsingJava(input, chunk));
          assertEquals(expectRead, readUsingReader(input, chunk, true));
          assertEquals(expectRead, readUsingReader(input, chunk, false));
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/LineBufferTest.java

                  }
                });
    
        for (int chunk : CHUNK_SIZES) {
          chunk = Math.max(1, Math.min(chunk, input.length()));
          assertEquals(expectProcess, bufferHelper(input, chunk));
          assertEquals(expectRead, readUsingJava(input, chunk));
          assertEquals(expectRead, readUsingReader(input, chunk, true));
          assertEquals(expectRead, readUsingReader(input, chunk, false));
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  6. cmd/streaming-signature-v4_test.go

    		},
    		// Test - 2 no chunk extension, return same buffer.
    		{
    			[]byte("10000;"),
    			[]byte("10000;"),
    			nil,
    		},
    		// Test - 3 no chunk size, return error.
    		{
    			[]byte(";chunk-signature="),
    			nil,
    			nil,
    		},
    		// Test - 4 removes trailing slash.
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  7. src/strings/strings.go

    			chunkMax = len(s)
    		}
    	}
    
    	var b Builder
    	b.Grow(n)
    	b.WriteString(s)
    	for b.Len() < n {
    		chunk := n - b.Len()
    		if chunk > b.Len() {
    			chunk = b.Len()
    		}
    		if chunk > chunkMax {
    			chunk = chunkMax
    		}
    		b.WriteString(b.String()[:chunk])
    	}
    	return b.String()
    }
    
    // ToUpper returns s with all Unicode letters mapped to their upper case.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    			t.Error("second Set() returned true")
    		}
    	}()
    	goGetAndExpect(t, clock, counter, wr, gots, aval)
    	counter.Add(1) // account for unblocking the receive on doneCh
    	close(doneCh)
    	time.Sleep(time.Second) // give it a chance to misbehave
    	goGetAndExpect(t, clock, counter, wr, gots, aval)
    }
    func TestCountingWriteOnceCancel(t *testing.T) {
    	oldTime := time.Now()
    	cval := &oldTime
    	clock, counter := testeventclock.NewFake(oldTime, 0, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  9. src/runtime/memmove_ppc64x.s

    	BC	12, 6, checkbytes	// BEQ CR1, checkbytes
    	SRDCC	$3, DWORDS, OCTWORDS	// 64 byte chunks?
    	MOVD	$16, IDX16
    	BEQ	lt64gt8			// < 64 bytes
    
    	// Prepare for moves of 64 bytes at a time.
    
    forward64setup:
    	DCBTST	(TGT)			// prepare data cache
    	DCBT	(SRC)
    	MOVD	OCTWORDS, CTR		// Number of 64 byte chunks
    	MOVD	$32, IDX32
    	MOVD	$48, IDX48
    	PCALIGN	$16
    
    forward64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. src/internal/saferio/io.go

    		return nil, io.ErrUnexpectedEOF
    	}
    
    	if n < chunk {
    		buf := make([]byte, n)
    		_, err := io.ReadFull(r, buf)
    		if err != nil {
    			return nil, err
    		}
    		return buf, nil
    	}
    
    	var buf []byte
    	buf1 := make([]byte, chunk)
    	for n > 0 {
    		next := n
    		if next > chunk {
    			next = chunk
    		}
    		_, err := io.ReadFull(r, buf1[:next])
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top