Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for heuristics (0.07 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

                }
            } else if (numTokens == 3) {
                // groupId:artifactId:goal or pluginPrefix:version:goal (since Maven 3.9.0)
    
                String firstToken = tok[0];
                // groupId or pluginPrefix? heuristics: groupId contains dot (.) but not pluginPrefix
                if (firstToken.contains(".")) {
                    // We have everything that we need except the version
                    //
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/Files.java

       * to the original. The following heuristics are used:
       *
       * <ul>
       *   <li>empty string becomes .
       *   <li>. stays as .
       *   <li>fold out ./
       *   <li>fold out ../ when possible
       *   <li>collapse multiple slashes
       *   <li>delete trailing slashes (unless the path is just "/")
       * </ul>
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/reflect/ClassPath.java

         *
         * <p>Behaves similarly to {@link Class#getSimpleName()} but does not require the class to be
         * loaded.
         *
         * <p>But note that this class uses heuristics to identify the simple name. See a related
         * discussion in <a href="https://github.com/google/guava/issues/3349">issue 3349</a>.
         */
        public String getSimpleName() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  4. src/bytes/bytes.go

    // shouldUseASCIISet returns whether to use the lookup table optimization.
    // The threshold of 8 bytes balances initialization cost against per-byte
    // search cost, performing well across all charset sizes.
    //
    // More complex heuristics (e.g., different thresholds per charset size)
    // add branching overhead that eats away any theoretical improvements.
    func shouldUseASCIISet(bufLen int) bool {
    	return bufLen > 8
    }
    
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 12 17:56:55 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt

        private var etag: String? = null
    
        /** Age of the cached response. */
        private var ageSeconds = -1
    
        /**
         * Returns true if computeFreshnessLifetime used a heuristic. If we used a heuristic to serve a
         * cached response older than 24 hours, we are required to attach a warning.
         */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java

         * of the child. The general idea is to adjust inherited URLs to match the project layout (in SCM).
         *
         * <p>This calculation is only a heuristic based on our conventions.
         * In detail, the algo relies on the following assumptions: <ul>
         * <li>The parent uses aggregation and refers to the child via the modules section</li>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            if (data == null || data.length == 0) {
                return 1.0;
            }
            if (algorithm == COMPRESSION_NONE) {
                return 1.0;
            }
    
            // Simple heuristic based on data entropy
            // In practice, this would be more sophisticated
            int uniqueBytes = countUniqueBytes(data);
            double entropy = (double) uniqueBytes / 256.0;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

         *   <li>If {@link #MODULES} path type is also set, then the dependency can be placed either on the
         *       class path or on the module path, but only one of those. The choice is up to the plugin,
         *       possibly using heuristic rules (Maven 3 behavior).</li>
         *   <li>If a {@link #patchModule(String)} is also set and the main JAR file is placed on the module path,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:13:42 GMT 2025
    - 15.7K bytes
    - Click Count (1)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

              continue restart; // We raced with an add or complete
            }
            curr = succ;
          }
          break;
        }
      }
    
      // A heuristic for timed gets. If the remaining timeout is less than this, spin instead of
      // blocking. This value is what AbstractQueuedSynchronizer uses.
      private static final long SPIN_THRESHOLD_NANOS = 1000L;
    
      @VisibleForTesting
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
Back to Top