Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,796 for size0 (0.08 sec)

  1. docs_src/additional_status_codes/tutorial001_py310.py

    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: str | None = Body(default=None),
        size: int | None = Body(default=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
    - 646 bytes
    - Viewed (0)
  2. docs/en/docs/img/tutorial/bigger-applications/package.drawio

                    </mxCell>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

            assertEquals(2, itemList2.getPageSize());
    
            assertEquals(0, kuromojiFile.selectList(5, 5).size());
            assertEquals(0, kuromojiFile.selectList(-1, 5).size());
        }
    
        public void test_selectList2() {
            final PagingList<KuromojiItem> itemList = kuromojiFile.selectList(0, 5);
            for (int i = 0; i < itemList.size(); i++) {
                final KuromojiItem kuromojiItem = itemList.get(i);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. docs/debugging/xl-meta/main.go

    		offset := ei.V2Obj.EcBSize * blockNum
    		if offset >= m.size {
    			return nil, fmt.Errorf("block %d out of range. offset %d > size %d", blockNum, offset, m.size)
    		}
    		m.blockOffset = offset
    		m.blocks = (m.size + ei.V2Obj.EcBSize - 1) / ei.V2Obj.EcBSize
    		if m.blocks > 0 {
    			m.blocks--
    		}
    		if blockNum < m.blocks {
    			m.size = ei.V2Obj.EcBSize
    		} else {
    			m.size -= offset
    		}
    
    		b, err := os.ReadFile(file)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                    }
                    return deletedDocIdList.size();
                }
            };
            ComponentUtil.register(client, "searchEngineClient");
            final DocList docList = new DocList();
            assertEquals(0, indexingHelper.deleteOldDocuments(client, docList));
            assertEquals(0, docList.size());
            assertEquals(0, deletedDocIdList.size());
    
            docList.clear();
            deletedDocIdList.clear();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/http/ne.css

            padding: 2px;
            font-family: Verdana, sans-serif;
            font-size: 10pt;
        }
        body {
            font-family: Verdana, sans-serif;
            font-size: 10pt;
            background-color: #ffffff;
            margin-top: 0;
            margin-left: 5;
        }
        small {
            font-size: 8pt;
        }
        big {
            font-size: 14pt;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  7. cmd/erasure-decode.go

    				// Subsequent reads will reuse this buffer.
    				p.buf[bufIdx] = make([]byte, p.shardSize)
    			}
    			// For the last shard, the shardsize might be less than previous shard sizes.
    			// Hence the following statement ensures that the buffer size is reset to the right size.
    			p.buf[bufIdx] = p.buf[bufIdx][:p.shardSize]
    			n, err := rr.ReadAt(p.buf[bufIdx], p.offset)
    			if err != nil {
    				switch {
    				case errors.Is(err, errFileNotFound):
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/MojoDescriptorTest.java

            param1.setDefaultValue("value1");
            mojoDescriptor.addParameter(param1);
    
            assertEquals(1, mojoDescriptor.getParameters().size());
    
            assertEquals(
                    mojoDescriptor.getParameters().size(),
                    mojoDescriptor.getParameterMap().size());
    
            Parameter param2 = new Parameter();
            param2.setName("param2");
            param2.setDefaultValue("value2");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. internal/bpool/bpool_test.go

    	// Fill the pool beyond the capped pool size.
    	for i := uint64(0); i < size*2; i++ {
    		bp.Put(make([]byte, bp.w, bp.wcap))
    	}
    
    	b = bp.Get()
    	if len(b) != width {
    		t.Fatalf("bytepool length invalid: got %v want %v", len(b), width)
    	}
    	if cap(b) != capWidth {
    		t.Fatalf("bytepool length invalid: got %v want %v", cap(b), capWidth)
    	}
    
    	bp.Put(b)
    
    	// Check the size of the pool.
    	if uint64(len(bp.c)) != size {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(0);
        written += 1;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top