Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Diff (0.03 sec)

  1. guava-tests/test/com/google/common/hash/HashTestUtils.java

              if ((hash1 & (1 << k)) == (hash2 & (1 << k))) {
                same[k] += 1;
              } else {
                diff[k] += 1;
              }
            }
          }
          // measure probability and assert it's within margin of error
          for (int j = 0; j < hashBits; j++) {
            double prob = (double) diff[j] / (double) (diff[j] + same[j]);
            assertThat(prob).isWithin(epsilon).of(0.50d);
          }
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  2. cmd/erasure-healing-common.go

    		}
    		nano := t.UnixNano()
    		if group > 0 {
    			for k := range timeOccurrenceMap {
    				if k == nano {
    					// We add to ourself later
    					continue
    				}
    				diff := k - nano
    				if diff < 0 {
    					diff = -diff
    				}
    				// We are within the limit
    				if diff < groupNano {
    					timeOccurrenceMap[k]++
    				}
    			}
    		}
    		// Add ourself...
    		timeOccurrenceMap[nano]++
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

        Multiset<String> ms2 = HashMultiset.create(asList("a", "b", "b", "b"));
        Multiset<String> diff = difference(ms1, ms2);
        assertThat(diff).contains("a");
        assertEquals(0, diff.count("b"));
        assertEquals(1, diff.count("a"));
        assertFalse(diff.contains("b"));
        assertTrue(diff.contains("a"));
      }
    
      public void testDifferenceEmptyNonempty() {
        Multiset<String> ms1 = HashMultiset.create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. internal/lru/lru.go

    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if size <= 0 {
    		c.size = 0
    		return 0
    	}
    	diff := c.evictList.Length() - size
    	if diff < 0 {
    		diff = 0
    	}
    	for i := 0; i < diff; i++ {
    		c.removeOldest()
    	}
    	c.size = size
    	return diff
    }
    
    // Close destroys cleanup goroutine. To clean up the cache, run Purge() before Close().
    // func (c *LRU[K, V]) Close() {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

            long diff;
    
            if (f1.isDirectory() != f2.isDirectory()) {
                return f1.isDirectory() ? -1 : 1;
            }
            if (f1.isDirectory()) {
                return f1name.compareToIgnoreCase(f2.getName());
            }
            diff = f1.length() - f2.length();
            if (diff == 0) {
                return f1name.compareToIgnoreCase(f2.getName());
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. lib/time/update.bash

    	cat make.out
    	exit 2
    fi
    
    cd zoneinfo
    ../mkzip ../../zoneinfo.zip
    cd ../..
    
    files="update.bash zoneinfo.zip"
    modified=true
    if git diff --quiet $files; then
    	modified=false
    fi
    
    if [ "$1" = "-work" ]; then
    	echo Left workspace behind in work/.
    	shift
    else
    	rm -rf work
    fi
    
    if ! $modified; then
    	echo No updates needed.
    	exit 0
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed May 28 16:03:11 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/extra-data-types.md

    * `datetime.timedelta`:
        * A Python `datetime.timedelta`.
        * In requests and responses will be represented as a `float` of total seconds.
        * Pydantic also allows representing it as a "ISO 8601 time diff encoding", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#custom-serializers" class="external-link" target="_blank">see the docs for more info</a>.
    * `frozenset`:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NetworkExplorer.java

            long diff;
    
            if (f1.isDirectory() != f2.isDirectory()) {
                return f1.isDirectory() ? -1 : 1;
            }
            if (f1.isDirectory()) {
                return f1name.compareToIgnoreCase(f2.getName());
            }
            diff = f1.length() - f2.length();
            if (diff == 0) {
                return f1name.compareToIgnoreCase(f2.getName());
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  9. Makefile

    verifiers: lint check-gen
    
    check-gen: ## check for updated autogenerated files
    	@go generate ./... >/dev/null
    	@go mod tidy -compat=1.21
    	@(! git diff --name-only | grep '_gen.go$$') || (echo "Non-committed changes in auto-generated code is detected, please commit them to proceed." && false)
    	@(! git diff --name-only | grep 'go.sum') || (echo "Non-committed changes in auto-generated go.sum is detected, please commit them to proceed." && false)
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Apr 27 00:44:22 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/endtoend_test.go

    	data, err := os.ReadFile(input)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    	lineno := 0
    	seq := 0
    	hexByLine := map[string]string{}
    	lines := strings.SplitAfter(string(data), "\n")
    Diff:
    	for _, line := range lines {
    		lineno++
    
    		// Ignore include of textflag.h.
    		if strings.HasPrefix(line, "#include ") {
    			continue
    		}
    
    		// Ignore GLOBL.
    		if strings.HasPrefix(line, "GLOBL ") {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Mar 26 01:02:50 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top