Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for predictable (0.25 sec)

  1. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt

            typeArguments.flatMap(::apiTypeKey) +
            bounds.flatMap(::apiTypeKey)
    }
    
    
    // TODO Policy for extensions with reified generics
    //
    // Goals
    // - make the dsl predictable
    // - prevent ambiguous overload situations
    //
    // Rules
    // 1. an extension should either require no type parameters, a single reifeid type parameter, at call site
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Wed Dec 20 21:41:53 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        var i = 0
        while (i < 1024) {
          try {
            out!!.write(data)
            out.flush()
            if (i == 513) {
              // pause slightly after half way to make result more predictable
              Thread.sleep(100)
            }
          } catch (e: IOException) {
            break
          }
          i++
        }
        // Halfway +/- 0.5%
        assertThat(i.toFloat()).isCloseTo(512f, 5f)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

     *
     * This test uses [TaskFaker] to deterministically test racy code. Each function in this test has
     * the same structure:
     *
     *  * prepare a set of plans, each with a predictable connect delay
     *  * attempt to find a connection
     *  * step through time, asserting that the expected side effects are performed.
     */
    internal class FastFallbackExchangeFinderTest {
      private val taskFaker = TaskFaker()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        var i = 0
        while (i < 1024) {
          try {
            out.write(data)
            out.flush()
            if (i == 513) {
              // pause slightly after halfway to make result more predictable
              Thread.sleep(100)
            }
          } catch (e: IOException) {
            break
          }
          i++
        }
        // Halfway +/- 0.5%
        assertThat(i.toFloat()).isCloseTo(512f, 5f)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/OrderingTest.java

              @Override
              int identityHashCode(Object object) {
                return ((Integer) object) % 5; // fake tons of collisions!
              }
            };
    
        // Don't let the elements be in such a predictable order
        list = shuffledCopy(list, new Random(1));
    
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

              @Override
              int identityHashCode(Object object) {
                return ((Integer) object) % 5; // fake tons of collisions!
              }
            };
    
        // Don't let the elements be in such a predictable order
        list = shuffledCopy(list, new Random(1));
    
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    		s2c, cb := newS2CompressReader(actualReader, actualSize, wantEncryption)
    		idxCb = cb
    		defer s2c.Close()
    		reader = etag.Wrap(s2c, actualReader)
    		size = -1   // Since compressed size is un-predictable.
    		md5hex = "" // Do not try to verify the content.
    		sha256hex = ""
    	}
    
    	var forceMD5 []byte
    	// Optimization: If SSE-KMS and SSE-C did not request Content-Md5. Use uuid as etag. Optionally enable this also
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    		s2c, idxCb = newS2CompressReader(actualReader, actualSize, wantEncryption)
    		defer s2c.Close()
    
    		reader = etag.Wrap(s2c, actualReader)
    		size = -1   // Since compressed size is un-predictable.
    		md5hex = "" // Do not try to verify the content.
    		sha256hex = ""
    	}
    
    	var forceMD5 []byte
    	// Optimization: If SSE-KMS and SSE-C did not request Content-Md5. Use uuid as etag. Optionally enable this also
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 125K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.7.md

    #### API Machinery
    Plain Text
    - Registered: Fri May 03 09:05:14 GMT 2024
    - Last Modified: Thu May 05 13:44:43 GMT 2022
    - 308.7K bytes
    - Viewed (1)
  10. src/cmd/asm/internal/asm/testdata/arm64error.s

    	STLXP	(R6, R11), (RSP), R6                             // ERROR "constrained unpredictable behavior"
    	STXP	(R6, R11), (R2), R2                              // ERROR "constrained unpredictable behavior"
    	STLXR	R3, (RSP), R3                                    // ERROR "constrained unpredictable behavior"
    	STXR	R3, (R4), R4                                     // ERROR "constrained unpredictable behavior"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 37.8K bytes
    - Viewed (0)
Back to top