Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 116 for Indices (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HuffmanTest.kt

    class HuffmanTest {
      @Test
      fun roundTripForRequestAndResponse() {
        val s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
        for (i in s.indices) {
          assertRoundTrip(s.substring(0, i).encodeUtf8())
        }
        val random = Random(123456789L)
        val buf = ByteArray(4096)
        random.nextBytes(buf)
        assertRoundTrip(buf.toByteString())
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

        $constant_operand_indices are the indices of the inputs that are constant to the TPU program (e.g. weights in inference), the rest of the inputs are input tensors.
        constant_operand_indices is sorted in ascending order.
        $operands_with_static_shape are indices of operands that are tagged with a maximum static shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. schema/index_test.go

    	}
    	indexSchema, err := schema.Parse(&IndexTest{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse user index, got error %v", err)
    	}
    	indices := indexSchema.ParseIndexes()
    	CheckIndices(t, map[string]schema.Index{
    		"idx_index_tests_field_a": {
    			Name:   "idx_index_tests_field_a",
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. test/nil.go

    	f()
    }
    
    func shouldBlock(f func()) {
    	go func() {
    		f()
    		panic("did not block")
    	}()
    	time.Sleep(1e7)
    }
    
    // nil array pointer
    
    func arraytest() {
    	var p *[10]int
    
    	// Looping over indices is fine.
    	s := 0
    	for i := range p {
    		s += i
    	}
    	if s != 45 {
    		panic(s)
    	}
    
    	s = 0
    	for i := 0; i < len(p); i++ {
    		s += i
    	}
    	if s != 45 {
    		panic(s)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/provider/ScriptApiTest.kt

    
    private
    fun List<KParameter>.isCompatibleWith(api: List<KParameter>) =
        when {
            size != api.size -> false
            isEmpty() -> true
            else -> indices.all { idx -> get(idx).isCompatibleWith(api[idx]) }
        }
    
    
    private
    fun KParameter.isCompatibleWith(api: KParameter) =
        when {
            isVarargCompatibleWith(api) -> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/source.go

    // compiles) and thus could be made into its own package.
    
    package syntax
    
    import (
    	"io"
    	"unicode/utf8"
    )
    
    // The source buffer is accessed using three indices b (begin),
    // r (read), and e (end):
    //
    // - If b >= 0, it points to the beginning of a segment of most
    //   recently read characters (typically a Go literal).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 19:25:46 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td

        the indices that are previously set in _TfrtSetResource op.
        `shared_name` and `container` are used to store identifying information for
        resource tensors that have been hoisted. This is important for resource
        alias analysis and side effect analysis. These are empty for non-resource
        type tensors.
      }];
    
      let arguments = (ins
        I64ArrayAttr:$indices,
        StrArrayAttr:$shared_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. src/internal/zstd/window.go

    			w.data = append(w.data, buf...)
    		} else {
    			w.data = append(w.data, buf[:free]...)
    			w.off = copy(w.data, buf[free:])
    		}
    	}
    }
    
    // appendTo appends stored bytes between from and to indices to the buf.
    // Index from must be less or equal to index to and to must be less or equal to w.len().
    func (w *window) appendTo(buf []byte, from, to uint32) []byte {
    	dataLen := uint32(len(w.data))
    	from += uint32(w.off)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:49:23 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

     */
    @file:Suppress("ktlint:standard:filename")
    
    package okhttp3.internal
    
    import okhttp3.MediaType
    
    internal fun MediaType.commonParameter(name: String): String? {
      for (i in parameterNamesAndValues.indices step 2) {
        if (parameterNamesAndValues[i].equals(name, ignoreCase = true)) {
          return parameterNamesAndValues[i + 1]
        }
      }
      return null
    }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

        keyStoreType: String?,
        trustedCertificates: List<X509Certificate>,
        insecureHosts: List<String>,
      ): X509TrustManager {
        val trustStore = newEmptyKeyStore(keyStoreType)
        for (i in trustedCertificates.indices) {
          trustStore.setCertificateEntry("cert_$i", trustedCertificates[i])
        }
    
        val factory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm())
        factory.init(trustStore)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top