Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 1,024 for sizeof (0.05 sec)

  1. docs_src/additional_status_codes/tutorial001_an_py39.py

    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
            item = items[item_id]
            item["name"] = name
            item["size"] = size
            return item
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 705 bytes
    - Viewed (0)
  2. docs_src/additional_status_codes/tutorial001_an.py

    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
            item = items[item_id]
            item["name"] = name
            item["size"] = size
            return item
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 734 bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        assertEquals(size, collection.size());
        if (size > 0) {
          assertFalse(collection.isEmpty());
        } else {
          assertTrue(collection.isEmpty());
        }
        assertEquals(size, Iterables.size(collection));
        assertEquals(size, Iterators.size(collection.iterator()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       *     size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      protected AbstractIndexedListIterator(int size, int position) {
        checkPositionIndex(position, size);
        this.size = size;
        this.position = position;
      }
    
      @Override
      public final boolean hasNext() {
        return position < size;
      }
    
      @Override
      @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/labeltype/CreateForm.java

        @CustomSize(maxKey = "form.admin.max.input.size")
        public String includedPaths;
    
        @CustomSize(maxKey = "form.admin.max.input.size")
        public String excludedPaths;
    
        @CustomSize(maxKey = "form.admin.max.input.size")
        public String permissions;
    
        @Size(max = 1000)
        public String virtualHost;
    
        @Min(value = 0)
        @Max(value = 2147483647)
        @ValidateTypeFailure
        public Integer sortOrder;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

        }
      }
    
      enum Topology {
        BALANCED {
          @Override
          Optional<BinaryNode> createTree(int size, Random rng) {
            if (size == 0) {
              return Optional.absent();
            } else {
              int leftChildSize = (size - 1) / 2;
              int rightChildSize = size - 1 - leftChildSize;
              return Optional.of(
                  new BinaryNode(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 26 19:18:53 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  7. cmd/bitrot.go

    		return bw.Sum(nil)
    	}
    	return nil
    }
    
    // Returns the size of the file with bitrot protection
    func bitrotShardFileSize(size int64, shardSize int64, algo BitrotAlgorithm) int64 {
    	if algo != HighwayHash256S {
    		return size
    	}
    	return ceilFrac(size, shardSize)*int64(algo.New().Size()) + size
    }
    
    // bitrotVerify a single stream of data.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    		wantValid:    true,
    		wantInverted: []sparseEntry{{0, 5000}},
    	}, {
    		in: []sparseEntry{{1, 0}}, size: 0,
    		wantValid: false,
    	}, {
    		in: []sparseEntry{{-1, 0}}, size: 100,
    		wantValid: false,
    	}, {
    		in: []sparseEntry{{0, -1}}, size: 100,
    		wantValid: false,
    	}, {
    		in: []sparseEntry{{0, 0}}, size: -100,
    		wantValid: false,
    	}, {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableList.java

      // The first `size` elements are non-null.
      @VisibleForTesting final transient @Nullable Object[] array;
      private final transient int size;
    
      RegularImmutableList(@Nullable Object[] array, int size) {
        this.array = array;
        this.size = size;
      }
    
      @Override
      public int size() {
        return size;
      }
    
      @Override
      boolean isPartialView() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    
      public void testSum() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        long sum = 0;
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
          sum += i;
        }
        assertEquals(ITERATIONS, map.size());
        assertEquals(sum, map.sum());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top