Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 357 for pairOf (0.15 sec)

  1. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/JavaObjectSerializationCodecTest.kt

                val writeObjectBean = SerializableWriteObjectBean(Pair(writeReplaceBean, writeReplaceBean))
                pairOf(writeObjectBean)
            }) { (first, second) ->
                assertThat(
                    first,
                    sameInstance(second)
                )
                val decodedPair = first.value as Pair<*, *>
                assertThat(
                    decodedPair.first,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. src/encoding/base32/base32_test.go

    	encodings := []*Encoding{
    		StdEncoding,
    		StdEncoding.WithPadding('-'),
    		StdEncoding.WithPadding(NoPadding),
    	}
    
    	for i, enc := range encodings {
    		for _, pair := range pairs {
    
    			input := pair.decoded
    			encoded := enc.EncodeToString([]byte(input))
    
    			decoded, err := enc.DecodeString(encoded)
    			if err != nil {
    				t.Errorf("DecodeString Error for encoding %d (%q): %v", i, input, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/iter/iter.go

    // next and stop.
    //
    // Next returns the next pair in the sequence
    // and a boolean indicating whether the pair is valid.
    // When the sequence is over, next returns a pair of zero values and false.
    // It is valid to call next after reaching the end of the sequence
    // or after calling stop. These calls will continue
    // to return a pair of zero values and false.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableTable.java

         * soon be deprecated.
         *
         * @throws IllegalArgumentException if duplicate key pairs were added
         */
        public ImmutableTable<R, C, V> build() {
          return buildOrThrow();
        }
    
        /**
         * Returns a newly-created immutable table, or throws an exception if duplicate key pairs were
         * added.
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/ExecutionList.java

    public final class ExecutionList {
      /** Logger to log exceptions caught when running runnables. */
      private static final LazyLogger log = new LazyLogger(ExecutionList.class);
    
      /**
       * The runnable, executor pairs to execute. This acts as a stack threaded through the {@link
       * RunnableExecutorPair#next} field.
       */
      @GuardedBy("this")
      @CheckForNull
      private RunnableExecutorPair runnables;
    
      @GuardedBy("this")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 21:17:24 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/async-sql-encode-databases.md

    but it doesn't have the `id` field.
    
    So we create a new `dict`, that contains the key-value pairs from `note.dict()` with:
    
    ```Python
    {**note.dict()}
    ```
    
    `**note.dict()` "unpacks" the key value pairs directly, so, `{**note.dict()}` would be, more or less, a copy of `note.dict()`.
    
    And then, we extend that copy `dict`, adding another key-value pair: `"id": last_record_id`:
    
    ```Python
    {**note.dict(), "id": last_record_id}
    ```
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

    public final class ExecutionList {
      /** Logger to log exceptions caught when running runnables. */
      private static final LazyLogger log = new LazyLogger(ExecutionList.class);
    
      /**
       * The runnable, executor pairs to execute. This acts as a stack threaded through the {@link
       * RunnableExecutorPair#next} field.
       */
      @GuardedBy("this")
      @CheckForNull
      private RunnableExecutorPair runnables;
    
      @GuardedBy("this")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 21:17:24 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.cc

      if (!attr) return success();
    
      // ID pairs are separated by `,`.
      llvm::SmallVector<std::string, 8> str_list =
          absl::StrSplit(attr.getValue().str(), ',', absl::SkipWhitespace());
      id_pairs.reserve(str_list.size());
      for (const std::string& str : str_list) {
        // IDs of one pair are separated by `:`.
        llvm::SmallVector<std::string, 8> id_pair = absl::StrSplit(str, ':');
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/internal/fmtsort/sort.go

    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    // Each KeyValue pair contains a map key and its corresponding value.
    type SortedMap []KeyValue
    
    // KeyValue holds a single key and value pair found in a map.
    type KeyValue struct {
    	Key, Value reflect.Value
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/index/suffixarray/suffixarray.go

    				return
    			}
    			slices.Sort(indices)
    			pairs := make([]int, 2*len(indices))
    			result = make([][]int, len(indices))
    			count := 0
    			prev := 0
    			for _, i := range indices {
    				if count == n {
    					break
    				}
    				// ignore indices leading to overlapping matches
    				if prev <= i {
    					j := 2 * count
    					pairs[j+0] = i
    					pairs[j+1] = i + len(lit)
    					result[count] = pairs[j : j+2]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top