Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 148 for 1110 (0.03 sec)

  1. guava-tests/test/com/google/common/primitives/LongsTest.java

      }
    
      public void testRotateIndexed() {
        testRotate(new long[] {}, 0, 0, 0, new long[] {});
    
        testRotate(new long[] {1}, 0, 0, 1, new long[] {1});
        testRotate(new long[] {1}, 1, 0, 1, new long[] {1});
        testRotate(new long[] {1}, 1, 1, 1, new long[] {1});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(new long[] {0, 1, 2, 3, 4, 5, 6}, -6, 1, 6, new long[] {0, 2, 3, 4, 5, 1, 6});
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ContiguousSet.java

      @GwtIncompatible // NavigableSet
      ImmutableSortedSet<C> createDescendingSet() {
        return new DescendingImmutableSortedSet<>(this);
      }
    
      /** Returns a shorthand representation of the contents such as {@code "[1..100]"}. */
      @Override
      public String toString() {
        return range().toString();
      }
    
      /**
       * Not supported. {@code ContiguousSet} instances are constructed with {@link #create}. This
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ContiguousSet.java

      @GwtIncompatible // NavigableSet
      ImmutableSortedSet<C> createDescendingSet() {
        return new DescendingImmutableSortedSet<>(this);
      }
    
      /** Returns a shorthand representation of the contents such as {@code "[1..100]"}. */
      @Override
      public String toString() {
        return range().toString();
      }
    
      /**
       * Not supported. {@code ContiguousSet} instances are constructed with {@link #create}. This
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        };
      }
    
      public enum Value {
        INSTANCE;
      }
    
      public enum ListSizeDistribution {
        UNIFORM_0_TO_2(0, 2),
        UNIFORM_0_TO_9(0, 9),
        ALWAYS_0(0, 0),
        ALWAYS_10(10, 10);
    
        final int min;
        final int max;
    
        private ListSizeDistribution(int min, int max) {
          this.min = min;
          this.max = max;
        }
    
        public int chooseSize(Random random) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/PairedStatsAccumulator.java

        if (value > 0.0) {
          return value;
        } else {
          return Double.MIN_VALUE;
        }
      }
    
      private static double ensureInUnitRange(double value) {
        return Doubles.constrainToRange(value, -1.0, 1.0);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

        this.server = server
        platform.assumeNotBouncyCastle()
      }
    
      /**
       * The pinner should pull the root certificate from the trust manager.
       */
      @Test
      fun pinRootNotPresentInChain() {
        // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703
        val rootCa =
          HeldCertificate.Builder()
            .serialNumber(1L)
            .certificateAuthority(1)
            .commonName("root")
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        assertThat(response.handshake!!.localPrincipal).isNull()
        assertThat(response.body.string()).isEqualTo("abc")
      }
    
      @Flaky
      @RetryingTest(5)
      fun missingClientAuthFailsForNeeds() {
        // Fails with 11.0.1 https://github.com/square/okhttp/issues/4598
        // StreamReset stream was reset: PROT...
        val client = buildClient(null, clientIntermediateCa.certificate)
        val socketFactory = buildServerSslSocketFactory()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. fastapi/encoders.py

        where a integer (but not int typed) is used. Encoding this as a float
        results in failed round-tripping between encode and parse.
        Our Id type is a prime example of this.
    
        >>> decimal_encoder(Decimal("1.0"))
        1.0
    
        >>> decimal_encoder(Decimal("1"))
        1
        """
        if dec_value.as_tuple().exponent >= 0:  # type: ignore[operator]
            return int(dec_value)
        else:
            return float(dec_value)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. internal/lsync/lrwmutex_test.go

    	n := 1000
    	if testing.Short() {
    		n = 5
    	}
    	HammerRWMutex(1, 1, n)
    	HammerRWMutex(1, 3, n)
    	HammerRWMutex(1, 10, n)
    	HammerRWMutex(4, 1, n)
    	HammerRWMutex(4, 3, n)
    	HammerRWMutex(4, 10, n)
    	HammerRWMutex(10, 1, n)
    	HammerRWMutex(10, 3, n)
    	HammerRWMutex(10, 10, n)
    	HammerRWMutex(10, 5, n)
    }
    
    // Borrowed from rwmutex_test.go
    func TestDRLocker(t *testing.T) {
    	wl := NewLRWMutex()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

         * This will overwrite any previously set status, body, or streamHandler.
         */
        fun webSocketUpgrade(listener: WebSocketListener) =
          apply {
            status = "HTTP/1.1 101 Switching Protocols"
            setHeader("Connection", "Upgrade")
            setHeader("Upgrade", "websocket")
            webSocketListener = listener
          }
    
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top