Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 39 (0.17 sec)

  1. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

      public void testHtmlEscaper() throws Exception {
        assertEquals("xxx", htmlEscaper().escape("xxx"));
        assertEquals(""test"", htmlEscaper().escape("\"test\""));
        assertEquals("'test'", htmlEscaper().escape("\'test'"));
        assertEquals("test & test & test", htmlEscaper().escape("test & test & test"));
        assertEquals("test &lt;&lt; 1", htmlEscaper().escape("test << 1"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheStatsTest.java

        assertEquals(new CacheStats(0, 0, 0, 0, 0, 0), one.minus(two));
      }
    
      public void testPlus() {
        CacheStats one = new CacheStats(11, 13, 15, 13, 11, 9);
        CacheStats two = new CacheStats(53, 47, 41, 39, 37, 35);
    
        CacheStats sum = two.plus(one);
        assertEquals(124, sum.requestCount());
        assertEquals(64, sum.hitCount());
        assertEquals(64.0 / 124, sum.hitRate());
        assertEquals(60, sum.missCount());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun Jun 30 14:58:49 GMT 2019
    - 4.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheStatsTest.java

        assertEquals(new CacheStats(0, 0, 0, 0, 0, 0), one.minus(two));
      }
    
      public void testPlus() {
        CacheStats one = new CacheStats(11, 13, 15, 13, 11, 9);
        CacheStats two = new CacheStats(53, 47, 41, 39, 37, 35);
    
        CacheStats sum = two.plus(one);
        assertEquals(124, sum.requestCount());
        assertEquals(64, sum.hitCount());
        assertEquals(64.0 / 124, sum.hitRate());
        assertEquals(60, sum.missCount());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 30 14:58:49 GMT 2019
    - 4.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/html/HtmlEscapers.java

      private static final Escaper HTML_ESCAPER =
          Escapers.builder()
              .addEscape('"', "&quot;")
              // Note: "&apos;" is not defined in HTML 4.01.
              .addEscape('\'', "&#39;")
              .addEscape('&', "&amp;")
              .addEscape('<', "&lt;")
              .addEscape('>', "&gt;")
              .build();
    
      private HtmlEscapers() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 14 22:08:54 GMT 2021
    - 3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/html/HtmlEscapersTest.java

      public void testHtmlEscaper() throws Exception {
        assertEquals("xxx", htmlEscaper().escape("xxx"));
        assertEquals("&quot;test&quot;", htmlEscaper().escape("\"test\""));
        assertEquals("&#39;test&#39;", htmlEscaper().escape("\'test'"));
        assertEquals("test &amp; test &amp; test", htmlEscaper().escape("test & test & test"));
        assertEquals("test &lt;&lt; 1", htmlEscaper().escape("test << 1"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Fingerprint2011.java

        weakHashLength32WithSeeds(bytes, offset + length - 64, length, y, v);
        weakHashLength32WithSeeds(bytes, offset + length - 32, length * K1, K0, w);
        z += shiftMix(v[1]) * K1;
        x = rotateRight(z + x, 39) * K1;
        y = rotateRight(y, 33) * K1;
    
        // Decrease length to the nearest multiple of 64, and operate on 64-byte chunks.
        length = (length - 1) & ~63;
        do {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Dec 28 17:50:25 GMT 2021
    - 6.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/MathTesting.java

        longValues.add(Integer.MAX_VALUE + 1L, Long.MAX_VALUE - 1L, Long.MAX_VALUE);
    
        // Now add values near 2^N for lots of values of N.
        for (int exponent : asList(32, 33, 39, 40, 41, 47, 48, 49, 55, 56, 57)) {
          long x = 1L << exponent;
          longValues.add(x, x + 1, x - 1);
        }
        longValues.add(194368031998L).add(194368031999L); // sqrt(2^75) rounded up and down
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/MathTesting.java

        longValues.add(Integer.MAX_VALUE + 1L, Long.MAX_VALUE - 1L, Long.MAX_VALUE);
    
        // Now add values near 2^N for lots of values of N.
        for (int exponent : asList(32, 33, 39, 40, 41, 47, 48, 49, 55, 56, 57)) {
          long x = 1L << exponent;
          longValues.add(x, x + 1, x - 1);
        }
        longValues.add(194368031998L).add(194368031999L); // sqrt(2^75) rounded up and down
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/IntMath.java

      static int[] biggestBinomials = {
        Integer.MAX_VALUE,
        Integer.MAX_VALUE,
        65536,
        2345,
        477,
        193,
        110,
        75,
        58,
        49,
        43,
        39,
        37,
        35,
        34,
        34,
        33
      };
    
      /**
       * Returns the arithmetic mean of {@code x} and {@code y}, rounded towards negative infinity. This
       * method is overflow resilient.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/InetAddresses.java

        //   start->num => "num"     start->gap => "::"
        //   num->num   => ":num"    num->gap   => "::"
        //   gap->num   => "num"     gap->gap   => ""
        StringBuilder buf = new StringBuilder(39);
        boolean lastWasNumber = false;
        for (int i = 0; i < hextets.length; i++) {
          boolean thisIsNumber = hextets[i] >= 0;
          if (thisIsNumber) {
            if (lastWasNumber) {
              buf.append(':');
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
Back to top