Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 933 for slop (0.04 sec)

  1. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 37.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/query/TermQueryCommandTest.java

                    "aaa");
            assertQueryBuilder(MatchPhraseQueryBuilder.class,
                    "{\"match_phrase\":{\"title\":{\"query\":\"aaa\",\"slop\":0,\"zero_terms_query\":\"NONE\",\"boost\":1.0}}}", //
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/query/PrefixQueryCommand.java

                        (f, b) -> QueryBuilders.matchPhrasePrefixQuery(f, toLowercaseWildcard(text)).boost(b * boost)
                                .maxExpansions(fessConfig.getQueryPrefixExpansionsAsInteger()).slop(fessConfig.getQueryPrefixSlopAsInteger()));
            }
    
            if (!isSearchField(field)) {
                final String query = prefixQuery.getPrefix().toString();
                final String origQuery = toLowercaseWildcard(query);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/time/tick_test.go

    		for range count - count/2 {
    			<-ticker.C
    		}
    		ticker.Stop()
    		t1 := Now()
    		dt := t1.Sub(t0)
    		target := 3 * delta * Duration(count/2)
    		slop := target * 3 / 10
    		if dt < target-slop || dt > target+slop {
    			errs = append(errs, fmt.Sprintf("%d %s ticks then %d %s ticks took %s, expected [%s,%s]", count/2, delta, count/2, delta*2, dt, target-slop, target+slop))
    			if dt > target+slop {
    				// System may be overloaded; sleep a bit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  5. src/hash/maphash/smhasher_test.go

    	for i := 1; i < len(list); i++ {
    		if list[i] == list[i-1] {
    			collisions++
    		}
    	}
    	n := len(list)
    
    	const SLOP = 10.0
    	pairs := int64(n) * int64(n-1) / 2
    	expected := float64(pairs) / math.Pow(2.0, float64(hashSize))
    	stddev := math.Sqrt(expected)
    	if float64(collisions) > expected+SLOP*(3*stddev+1) {
    		t.Errorf("unexpected number of collisions: got=%d mean=%f stddev=%f", collisions, expected, stddev)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/runtime/hash_test.go

    			collisions++
    		}
    	}
    	n := len(list)
    
    	const SLOP = 50.0
    	pairs := int64(n) * int64(n-1) / 2
    	expected := float64(pairs) / math.Pow(2.0, float64(hashSize))
    	stddev := math.Sqrt(expected)
    	if float64(collisions) > expected+SLOP*(3*stddev+1) {
    		t.Errorf("unexpected number of collisions: got=%d mean=%f stddev=%f threshold=%f", collisions, expected, stddev, expected+SLOP*(3*stddev+1))
    	}
    	// Reset for reuse
    	s.list = s.list[:0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. src/internal/coverage/cfile/testsupport.go

    // time within a running test, so as to support the testing.Coverage()
    // function. This version doesn't examine coverage meta-data, so the
    // result it returns will be less accurate (more "slop") due to the
    // fact that we don't look at the meta data to see how many statements
    // are associated with each counter.
    func Snapshot() float64 {
    	cl := getCovCounterList()
    	if len(cl) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/runtime/metrics_test.go

    			}
    
    			const slop = 1.5 // account for nanotime vs cputicks
    			t.Run("compare timers", func(t *testing.T) {
    				testenv.SkipFlaky(t, 64253)
    				if profileGrowth > slop*metricGrowth || metricGrowth > slop*profileGrowth {
    					t.Errorf("views differ by more than %fx", slop)
    				}
    			})
    		})
    
    		t.Run("sample-2", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. src/runtime/gc_test.go

    func init() {
    	// Enable ReadMemStats' double-check mode.
    	*runtime.DoubleCheckReadMemStats = true
    }
    
    func TestReadMemStats(t *testing.T) {
    	base, slow := runtime.ReadMemStatsSlow()
    	if base != slow {
    		logDiff(t, "MemStats", reflect.ValueOf(base), reflect.ValueOf(slow))
    		t.Fatal("memstats mismatch")
    	}
    }
    
    func logDiff(t *testing.T, prefix string, got, want reflect.Value) {
    	typ := got.Type()
    	switch typ.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/bytes/buffer_test.go

    	b.Write(buf[0:1])
    	var cap0 int
    	for i := 0; i < 5<<10; i++ {
    		b.Write(buf)
    		b.Read(buf)
    		if i == 0 {
    			cap0 = b.Cap()
    		}
    	}
    	cap1 := b.Cap()
    	// (*Buffer).grow allows for 2x capacity slop before sliding,
    	// so set our error threshold at 3x.
    	if cap1 > cap0*3 {
    		t.Errorf("buffer cap = %d; too big (grew from %d)", cap1, cap0)
    	}
    }
    
    func BenchmarkWriteByte(b *testing.B) {
    	const n = 4 << 10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top