Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 125 for shuffled (0.13 sec)

  1. tests/tests_test.go

    	var err error
    	allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}, &Coupon{}, &CouponProduct{}, &Order{}, &Parent{}, &Child{}, &Tools{}}
    	rand.Seed(time.Now().UnixNano())
    	rand.Shuffle(len(allModels), func(i, j int) { allModels[i], allModels[j] = allModels[j], allModels[i] })
    
    	DB.Migrator().DropTable("user_friends", "user_speaks")
    
    	if err = DB.Migrator().DropTable(allModels...); err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/DependencyGenerator.groovy

                            projectsInLayers[it]
                        }.flatten()
                        // use Random with projectNumber as seed, so that we get same results each time
                        Collections.shuffle(possibleDependencies, new Random(projectNumber as long))
                        resolvedDependencies = possibleDependencies.take(maxProjectDependencies).sort()
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        for (int i = 0; i < alpha; i++) {
          chars.add(randomAlpha());
        }
        for (int i = 0; i < nonAlpha; i++) {
          chars.add(randomNonAlpha());
        }
        Collections.shuffle(chars, random);
        char[] array = Chars.toArray(chars);
        this.testString = new String(array);
      }
    
      private char randomAlpha() {
        return ALPHA.charAt(random.nextInt(ALPHA.length()));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  4. src/internal/bytealg/indexbyte_amd64.s

    	MOVB c+16(FP), AL
    	LEAQ ret+24(FP), R8
    	JMP  indexbytebody<>(SB)
    
    // input:
    //   SI: data
    //   BX: data len
    //   AL: byte sought
    //   R8: address to put result
    TEXT	indexbytebody<>(SB), NOSPLIT, $0
    	// Shuffle X0 around so that each byte contains
    	// the character we're looking for.
    	MOVD AX, X0
    	PUNPCKLBW X0, X0
    	PUNPCKLBW X0, X0
    	PSHUFL $0, X0, X0
    
    	CMPQ BX, $16
    	JLT small
    
    	MOVQ SI, DI
    
    	CMPQ BX, $32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 19:06:01 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        this.striped = impl.get(numStripes);
        stripes = new int[numStripes];
        for (int i = 0; i < numStripes; i++) {
          stripes[i] = i;
        }
        List<Integer> asList = Ints.asList(stripes);
        Collections.shuffle(asList, new Random(0xdeadbeef));
    
        // do bulk gets with exactly 10 keys (possibly <10 stripes) (or less if numStripes is smaller)
        bulkGetSet = ImmutableList.copyOf(limit(cycle(asList), 10));
      }
    
      @Footprint
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/data_flow_grad.cc

      int32_t num_values = op.num_inputs() / 2;
    
      // Stop propagation along the indices list
      for (int32_t i = 0; i < num_values; i++) {
        grad_outputs->push_back(NoGradient());
      }
    
      // DynamicStitch shuffles its data to the output (using items in
      // indices) so the gradient propagated to a given data input simply
      // selects the gradient for its output position.
      for (int32_t i = 0; i < num_values; i++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jul 24 13:40:35 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        for (int i = 0; i < alpha; i++) {
          chars.add(randomAlpha());
        }
        for (int i = 0; i < nonAlpha; i++) {
          chars.add(randomNonAlpha());
        }
        Collections.shuffle(chars, random);
        char[] array = Chars.toArray(chars);
        this.testString = new String(array);
      }
    
      private char randomAlpha() {
        return ALPHA.charAt(random.nextInt(ALPHA.length()));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/testflag.go

    	cf.String("fuzztime", "", "")
    	cf.String("fuzzminimizetime", "", "")
    	cf.StringVar(&testTrace, "trace", "", "")
    	cf.Var(&testV, "v", "")
    	cf.Var(&testShuffle, "shuffle", "")
    
    	for name, ok := range passFlagToTest {
    		if ok {
    			cf.Var(cf.Lookup(name).Value, "test."+name, "")
    		}
    	}
    }
    
    // outputdirFlag implements the -outputdir flag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/internal/notsha256/sha256block_amd64.s

    	ADDQ $64, SI
    	CMPQ SI, 256(SP)
    	JB   loop
    
    end:
    	RET
    
    // shuffle byte order from LE to BE
    DATA flip_mask<>+0x00(SB)/8, $0x0405060700010203
    DATA flip_mask<>+0x08(SB)/8, $0x0c0d0e0f08090a0b
    DATA flip_mask<>+0x10(SB)/8, $0x0405060700010203
    DATA flip_mask<>+0x18(SB)/8, $0x0c0d0e0f08090a0b
    GLOBL flip_mask<>(SB), 8, $32
    
    // shuffle xBxA -> 00BA
    DATA shuff_00BA<>+0x00(SB)/8, $0x0b0a090803020100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 14K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

    		return nil
    	}
    	metrics.ObserveQueueLength(ctx, qs.qCfg.Name, fsName, queue.requestsWaiting.Length())
    	return req
    }
    
    // shuffleShardLocked uses shuffle sharding to select a queue index
    // using the given hashValue and the shuffle sharding parameters of the queueSet.
    func (qs *queueSet) shuffleShardLocked(hashValue uint64, descr1, descr2 interface{}) int {
    	var backHand [8]int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 16:59:21 UTC 2024
    - 42.4K bytes
    - Viewed (0)
Back to top