Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for ratio (0.15 sec)

  1. okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/DecompressionBombChecker.kt

     * limitations under the License.
     */
    package okhttp3.brotli.internal
    
    import okio.Buffer
    import okio.ForwardingSource
    import okio.IOException
    import okio.Source
    
    /** Fails decompression if the ratio is too high. */
    internal class DecompressionBombChecker(
      private val maxRatio: Long,
    ) {
      private var inputByteCount = 0L
      private var outputByteCount = 0L
    
      fun wrapInput(source: Source): Source {
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. docs/erasure/storage-class/README.md

    Below is a list of data/parity drives and corresponding _approximate_ storage space usage on a 16 drive MinIO deployment. The field _storage
    usage ratio_ is simply the drive space used by the file after erasure-encoding, divided by actual file size.
    
    | Total Drives (N) | Data Drives (D) | Parity Drives (P) | Storage Usage Ratio |
    |------------------|-----------------|-------------------|---------------------|
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 5.8K bytes
    - Viewed (1)
  3. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

          long largeOps = largeCounter.total();
    
          double ratio = (double) largeOps / smallOps;
          assertWithMessage(
                  "ratio of equals/hashCode/compareTo operations to build with %s entries versus %s"
                      + " entries",
                  largeSize, smallSize)
              .that(ratio)
              .isAtMost(
                  2
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  4. .cm/summary_table.cm

      additions: {{ branch.diff.files_metadata | map(attr='additions') | sum }}
      # Sum all the line removed in the PR
      deletions: {{ branch.diff.files_metadata | map(attr='deletions') | sum }}
      # Calculate the ratio of new code
      ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 }}
      # Total number of files changed
      total: {{ branch.diff.files_metadata | length }}
    
    is:
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Feb 08 15:20:44 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheStats.java

      }
    
      /** Returns the number of times {@link Cache} lookup methods have returned a cached value. */
      public long hitCount() {
        return hitCount;
      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
       * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate +
       * missRate =~ 1.0}.
       */
      public double hitRate() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheStats.java

      }
    
      /** Returns the number of times {@link Cache} lookup methods have returned a cached value. */
      public long hitCount() {
        return hitCount;
      }
    
      /**
       * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount /
       * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate +
       * missRate =~ 1.0}.
       */
      public double hitRate() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  7. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt

          uncompressed.body.string()
        }.isInstanceOf<IOException>()
          .message()
          .isNotNull()
          .matches(
            Regex(
              "decompression bomb\\? outputByteCount=\\d+, inputByteCount=\\d+ exceeds max ratio of 100",
            ),
          )
      }
    
      /** Returns a ByteString that expands to 10 GiB when Brotli-decompressed. */
      private fun readBrotli10G(): ByteString {
        val gzippedBrotliBomb =
          (
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ViewHelper.java

            if (width < TABLET_WIDTH) {
                float ratio = ((float) width) / ((float) TABLET_WIDTH);
                if (ratio < 0.5) {
                    ratio = 0.5f;
                }
                highlightInfo.fragmentSize((int) (highlightInfo.getFragmentSize() * ratio));
            }
        }
    
        public String getUrlLink(final Map<String, Object> document) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 40.1K bytes
    - Viewed (2)
  9. src/main/webapp/js/admin/plugins/form-validator/file.js

    image dimensions does not support inputs allowing multiple files"),b(!1)):0===i.length?b(!0):f(i[0],function(c){var d=!1;e.valAttr("dimension")&&(d=a.formUtils.checkImageDimension(c,e.valAttr("dimension"),h)),!d&&e.valAttr("ratio")&&(d=a.formUtils.checkImageRatio(c,e.valAttr("ratio"),h)),d?(j.errorMessage=h.wrongFileDim+" "+e.valAttr("has-not-valid-dim"),b(!1)):b(!0)},function(a){throw a})}else b(!0)},errorMessage:"",errorMessageKey:""}),a(b).one("validatorsLoaded formValidationSetup",function(b,c,d){var...
    JavaScript
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 4.6K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            a full-time Guava team member. [Feedback](https://stackoverflow.com/a/4543114) from our
            users indicates that they really appreciate Guava's high power-to-weight ratio. It's
            important to us to keep Guava as easy to use and understand as we can. That means boiling
            features down to compact but powerful abstractions, and controlling feature bloat carefully.
    
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top