Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,745 for sizeOf (0.22 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(fewerElements)));
      }
    
      public void testEquals_longerList() {
        Collection<E> moreElements = getSampleElements(getNumElements() + 1);
        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(moreElements)));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(fewerElements)));
      }
    
      public void testEquals_longerList() {
        Collection<E> moreElements = getSampleElements(getNumElements() + 1);
        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(moreElements)));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

      private static final int MIN_HASH_TABLE_SIZE = 4;
    
      private static final int BYTE_MAX_SIZE = 1 << Byte.SIZE; // 2^8 = 256
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
    
      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashing.java

      private static final int MIN_HASH_TABLE_SIZE = 4;
    
      private static final int BYTE_MAX_SIZE = 1 << Byte.SIZE; // 2^8 = 256
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
    
      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        // Split out all the specified sizes.
        Set<Feature<?>> sizesToTest = Helpers.<Feature<?>>copyToSet(CollectionSize.values());
        sizesToTest.retainAll(features);
        features.removeAll(sizesToTest);
    
        FeatureUtil.addImpliedFeatures(sizesToTest);
        sizesToTest.retainAll(
            Arrays.asList(CollectionSize.ZERO, CollectionSize.ONE, CollectionSize.SEVERAL));
    
        logger.fine("   Sizes: " + formatFeatureSet(sizesToTest));
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. cmd/encryption-v1_test.go

    	// Multipart object tests
    	var (
    		// make a multipart object-info given part sizes
    		mkMPObj = func(sizes []int64) ObjectInfo {
    			r := make([]ObjectPartInfo, len(sizes))
    			sum := int64(0)
    			for i, s := range sizes {
    				r[i].Number = i
    				r[i].Size = getEncSize(s)
    				sum += r[i].Size
    			}
    			return ObjectInfo{
    				Size:        sum,
    				UserDefined: udMap(true),
    				Parts:       r,
    			}
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  7. docs_src/request_files/tutorial002_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: list[bytes] = File()):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 786 bytes
    - Viewed (0)
  8. docs_src/request_files/tutorial003_py39.py

    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(
        files: list[bytes] = File(description="Multiple files as bytes"),
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
        files: list[UploadFile] = File(description="Multiple files as UploadFile"),
    ):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 888 bytes
    - Viewed (0)
  9. misc/cgo/gmp/pi.go

    			d = extractDigit()
    		}
    		eliminateDigit(d)
    		fmt.Printf("%c", d+'0')
    
    		if i++; i%50 == 0 {
    			fmt.Printf("\n")
    			if i >= 1000 {
    				break
    			}
    		}
    	}
    
    	fmt.Printf("\n%d calls; bit sizes: %d %d %d\n", runtime.NumCgoCall(), numer.Len(), accum.Len(), denom.Len())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java

          fail("emptyQueue.element() should throw");
        } catch (NoSuchElementException expected) {
        }
        expectUnchanged();
      }
    
      @CollectionSize.Require(ONE)
      public void testElement_size1() {
        assertEquals("size1Queue.element() should return first element", e0(), getQueue().element());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      @CollectionSize.Require(SEVERAL)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.3K bytes
    - Viewed (0)
Back to top