Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 53 for Partition (0.33 seconds)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertTrue(partitions.hasNext());
        assertTrue(partitions.hasNext());
        assertEquals(ImmutableList.of(1), partitions.next());
        assertFalse(partitions.hasNext());
      }
    
      public void testPartition_singleton2() {
        Iterator<Integer> source = singletonIterator(1);
        Iterator<List<Integer>> partitions = Iterators.partition(source, 2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertTrue(partitions.hasNext());
        assertTrue(partitions.hasNext());
        assertEquals(ImmutableList.of(1), partitions.next());
        assertFalse(partitions.hasNext());
      }
    
      public void testPartition_singleton2() {
        Iterator<Integer> source = singletonIterator(1);
        Iterator<List<Integer>> partitions = Iterators.partition(source, 2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/FluentIterableTest.java

            () -> {
              FluentIterable<Integer> unused =
                  FluentIterable.<Integer>from(asList(1, 2)).append((List<Integer>) null);
            });
      }
    
      /*
       * Tests for partition(int size) method.
       */
    
      /*
       * Tests for partitionWithPadding(int size) method.
       */
    
      public void testFilter() {
        FluentIterable<String> filtered =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  4. generics.go

    					}
    
    					rnnColumn := clause.Column{Name: "gorm_preload_rnn"}
    					sql := "ROW_NUMBER() OVER (PARTITION BY ? ?)"
    					vars := []interface{}{partitionBy}
    					if orderBy, ok := q.db.Statement.Clauses["ORDER BY"]; ok {
    						vars = append(vars, orderBy)
    					} else {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 26K bytes
    - Click Count (0)
  5. scripts/mkdocs_hooks.py

            missing_translation_content = get_missing_translation_content(config.docs_dir)
            header = ""
            body = markdown
            if markdown.startswith("#"):
                header, _, body = markdown.partition("\n\n")
            return f"{header}\n\n{missing_translation_content}\n\n{body}"
    
        docs_dir_path = Path(config.docs_dir)
        en_docs_dir_path = docs_dir_path.parent.parent / "en/docs"
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

     */
    internal fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> {
      if (addresses.size < 2) {
        return addresses
      }
    
      val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
    
      return if (ipv6.isEmpty() || ipv4.isEmpty()) {
        addresses
      } else {
        interleave(ipv6, ipv4)
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Apr 24 15:15:15 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  7. fastapi/security/utils.py

    def get_authorization_scheme_param(
        authorization_header_value: str | None,
    ) -> tuple[str, str]:
        if not authorization_header_value:
            return "", ""
        scheme, _, param = authorization_header_value.partition(" ")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 261 bytes
    - Click Count (0)
  8. cmd/peer-rest-client.go

    	resp, err := getNetInfoRPC.Call(ctx, client.gridConn(), grid.NewMSS())
    	return resp.ValueOrZero(), err
    }
    
    // GetPartitions - fetch disk partition information for a remote node.
    func (client *peerRESTClient) GetPartitions(ctx context.Context) (info madmin.Partitions, err error) {
    	resp, err := getPartitionsRPC.Call(ctx, client.gridConn(), grid.NewMSS())
    	return resp.ValueOrZero(), err
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.1K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/math/StatsTesting.java

        checkArgument(partitionSize > 0);
        PairedStatsAccumulator accumulator = new PairedStatsAccumulator();
        List<List<Double>> xPartitions = Lists.partition(xValues, partitionSize);
        List<List<Double>> yPartitions = Lists.partition(yValues, partitionSize);
        for (int index = 0; index < xPartitions.size(); index++) {
          accumulator.addAll(createPairedStatsOf(xPartitions.get(index), yPartitions.get(index)));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 24K bytes
    - Click Count (0)
  10. cmd/peer-rest-server.go

    	info := madmin.GetNetInfo(globalLocalNodeName, globalInternodeInterface)
    	return madminNetInfo.NewJSONWith(&info), nil
    }
    
    // GetPartitionsHandler - returns disk partition information.
    func (s *peerRESTServer) GetPartitionsHandler(_ *grid.MSS) (*grid.JSON[madmin.Partitions], *grid.RemoteErr) {
    	info := madmin.GetPartitions(context.Background(), globalLocalNodeName)
    	return madminPartitions.NewJSONWith(&info), nil
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 53.6K bytes
    - Click Count (0)
Back to Top