Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,796 for size0 (0.03 sec)

  1. 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)
  2. cmd/xl-storage-format-v1_gen.go

    // EncodeMsg implements msgp.Encodable
    func (z *StatInfo) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 5
    	// write "Size"
    	err = en.Append(0x85, 0xa4, 0x53, 0x69, 0x7a, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Size)
    	if err != nil {
    		err = msgp.WrapError(err, "Size")
    		return
    	}
    	// write "ModTime"
    	err = en.Append(0xa7, 0x4d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

        }
    
        ensureCapacity(size + 1);
        keys[size] = key;
        values[size] = value;
    
        insertIntoTableKToV(size, keyHash);
        insertIntoTableVToK(size, valueHash);
    
        setSucceeds(lastInInsertionOrder, size);
        setSucceeds(size, ENDPOINT);
        size++;
        modCount++;
        return null;
      }
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java

              if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
              Headers responseHeaders = response.headers();
              for (int i = 0, size = responseHeaders.size(); i < size; i++) {
                System.out.println(responseHeaders.name(i) + ": " + responseHeaders.value(i));
              }
    
              System.out.println(responseBody.string());
            }
          }
        });
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

    import java.util.Set;
    
    /**
     * Test iteration speed at various size for {@link Set} instances.
     *
     * @author Christopher Swenson
     */
    public class SetIterationBenchmark {
      @Param({
        "3", "6", "11", "23", "45", "91", "181", "362", "724", "1448", "2896", "5793", "11585", "23170",
        "46341", "92682", "185364", "370728", "741455", "1482910", "2965821", "5931642"
      })
      private int size;
    
      // "" means no fixed seed
      @Param("1234")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

    import java.util.Set;
    
    /**
     * Test iteration speed at various size for {@link Set} instances.
     *
     * @author Christopher Swenson
     */
    public class SetIterationBenchmark {
      @Param({
        "3", "6", "11", "23", "45", "91", "181", "362", "724", "1448", "2896", "5793", "11585", "23170",
        "46341", "92682", "185364", "370728", "741455", "1482910", "2965821", "5931642"
      })
      private int size;
    
      // "" means no fixed seed
      @Param("1234")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  7. cmd/s3-zip-handlers.go

    		if err != nil {
    			return nil, ObjectInfo{}, err
    		}
    		if size > len(b) {
    			size = len(b)
    		}
    
    		// Calculate the object real size if encrypted
    		if _, ok := crypto.IsEncrypted(gr.ObjInfo.UserDefined); ok {
    			objSize, err = gr.ObjInfo.DecryptedSize()
    			if err != nil {
    				return nil, ObjectInfo{}, err
    			}
    		} else {
    			objSize = gr.ObjInfo.Size
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. cmd/data-usage-cache_test.go

    )
    
    func TestSizeHistogramToMap(t *testing.T) {
    	tests := []struct {
    		sizes []int64
    		want  map[string]uint64
    	}{
    		{
    			sizes: []int64{100, 1000, 72_000, 100_000},
    			want: map[string]uint64{
    				"LESS_THAN_1024_B":         2,
    				"BETWEEN_64_KB_AND_256_KB": 2,
    				"BETWEEN_1024B_AND_1_MB":   2,
    			},
    		},
    		{
    			sizes: []int64{100, 1000, 2000, 100_000, 13 * humanize.MiByte},
    			want: map[string]uint64{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:51:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_handling_errors/test_tutorial005.py

                    },
                    "Item": {
                        "title": "Item",
                        "required": ["title", "size"],
                        "type": "object",
                        "properties": {
                            "title": {"title": "Title", "type": "string"},
                            "size": {"title": "Size", "type": "integer"},
                        },
                    },
                    "ValidationError": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/FilteredEntryMultimap.java

      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
        return predicate;
      }
    
      @Override
      public int size() {
        return entries().size();
      }
    
      private boolean satisfies(@ParametricNullness K key, @ParametricNullness V value) {
        return predicate.apply(immutableEntry(key, value));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top