Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 58 for Diff (0.02 seconds)

  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);
          }
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/math/ToDoubleRounder.java

              }
    
              X deltaToFloor = minus(x, roundFloor);
              X deltaToCeiling = minus(roundCeiling, x);
              int diff = deltaToFloor.compareTo(deltaToCeiling);
              if (diff < 0) { // closer to floor
                return roundFloorAsDouble;
              } else if (diff > 0) { // closer to ceiling
                return roundCeilingAsDouble;
              }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. .github/workflows/pre-commit.yml

            continue-on-error: true
          - name: Commit and push changes
            if: env.HAS_SECRETS == 'true'
            run: |
              git config user.name "github-actions[bot]"
              git config user.email "github-actions[bot]@users.noreply.github.com"
              git add -A
              if git diff --staged --quiet; then
                echo "No changes to commit"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:02:57 GMT 2026
    - 2.9K bytes
    - Click Count (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() {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  5. .github/workflows/upgrade-to-latest-wrapper.yml

              git config --global user.name "GitHub Action"
    
              git reset origin/master --hard
    
              ./gradlew wrapper --gradle-version=nightly
              ./gradlew wrapper
    
              if ! git diff --quiet; then
                ./gradlew -v
                VERSION=$(./gradlew -v | grep "Gradle" | cut -d' ' -f2)
                git add .
                git commit -m "Update Gradle wrapper to $VERSION"
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Nov 20 22:15:20 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

      public void testMapDifferenceEmptyEmpty() {
        MapDifference<Integer, Integer> diff = Maps.difference(EMPTY, EMPTY);
        assertTrue(diff.areEqual());
        assertEquals(EMPTY, diff.entriesOnlyOnLeft());
        assertEquals(EMPTY, diff.entriesOnlyOnRight());
        assertEquals(EMPTY, diff.entriesInCommon());
        assertEquals(EMPTY, diff.entriesDiffering());
        assertThat(diff.toString()).isEqualTo("equal");
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  7. 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
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Dec 11 16:47:56 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. 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", [see the docs for more info](https://docs.pydantic.dev/latest/concepts/serialization/#custom-serializers).
    * `frozenset`:
        * In requests and responses, treated the same as a `set`:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/tutorial/extra-data-types.md

        * Python 的 `datetime.time`。
        * 在請求與回應中會以 ISO 8601 格式的 `str` 表示,例如:`14:23:55.003`。
    * `datetime.timedelta`:
        * Python 的 `datetime.timedelta`。
        * 在請求與回應中會以總秒數的 `float` 表示。
        * Pydantic 也允許用「ISO 8601 time diff encoding」來表示,[詳情見文件](https://docs.pydantic.dev/latest/concepts/serialization/#custom-serializers)。
    * `frozenset`:
        * 在請求與回應中與 `set` 相同處理:
            * 在請求中,會讀取一個 list,去除重複並轉為 `set`。
            * 在回應中,`set` 會被轉為 `list`。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.6K bytes
    - Click Count (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 ") {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Mar 20 17:02:17 GMT 2026
    - 12.6K bytes
    - Click Count (0)
Back to Top