Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 203 for trim (0.02 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      @get:Synchronized @set:Synchronized
      var maxSize: Long = maxSize
        set(value) {
          field = value
          if (initialized) {
            cleanupQueue.schedule(cleanupTask) // Trim the existing store if necessary.
          }
        }
    
      /*
       * This cache uses a journal file named "journal". A typical journal file looks like this:
       *
       *     libcore.io.DiskLruCache
       *     1
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

            socket.source.readUtf8LineStrict()
          }
          try {
            bytesRemainingInChunk = socket.source.readHexadecimalUnsignedLong()
            val extensions = socket.source.readUtf8LineStrict().trim()
            if (bytesRemainingInChunk < 0L || extensions.isNotEmpty() && !extensions.startsWith(";")) {
              throw ProtocolException(
                "expected chunk size and optional extensions" +
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 17.5K bytes
    - Click Count (7)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java

                    """;
    
                Document document = Document.of(pomXml);
    
                String version = ModelVersionUtils.detectModelVersion(document);
    
                assertEquals("4.1.0", version, "Should trim whitespace from model version");
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java

                                .child(MavenPomElements.Elements.PHASE)
                                .orElse(null);
                        if (phaseElement != null) {
                            String currentPhase = phaseElement.textContent().trim();
                            String newPhase = phaseUpgrades.get(currentPhase);
                            if (newPhase != null) {
                                phaseElement.textContent(newPhase);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  5. internal/logger/logger.go

    	goRootList = strings.Split(goRoot, pathSeparator)
    	defaultgoPathList = strings.Split(build.Default.GOPATH, pathSeparator)
    	defaultgoRootList = strings.Split(build.Default.GOROOT, pathSeparator)
    
    	// Add trim string "{GOROOT}/src/" into trimStrings
    	trimStrings = []string{filepath.Join(runtime.GOROOT(), "src") + string(filepath.Separator)}
    
    	// Add all possible path from GOPATH=path1:path2...:pathN
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  6. cmd/handler-utils.go

    		}
    	}
    
    	if contentEncoding, ok := metadata[strings.ToLower(xhttp.ContentEncoding)]; ok {
    		contentEncoding = trimAwsChunkedContentEncoding(contentEncoding)
    		if contentEncoding != "" {
    			// Make sure to trim and save the content-encoding
    			// parameter for a streaming signature which is set
    			// to a custom value for example: "aws-chunked,gzip".
    			metadata[strings.ToLower(xhttp.ContentEncoding)] = contentEncoding
    		} else {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.4K bytes
    - Click Count (1)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

            void shouldProvideMeaningfulDescription() {
                String description = strategy.getDescription();
    
                assertNotNull(description, "Description should not be null");
                assertFalse(description.trim().isEmpty(), "Description should not be empty");
                assertTrue(description.toLowerCase().contains("plugin"), "Description should mention plugins");
            }
        }
    
        @Nested
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  8. cmd/data-usage-cache.go

    		if err != nil {
    			return err
    		}
    		defer dec.Close()
    		return d.DecodeMsg(msgp.NewReader(dec))
    	default:
    		return fmt.Errorf("dataUsageCache: unknown version: %d", ver)
    	}
    }
    
    // Trim this from start+end of hashes.
    var hashPathCutSet = dataUsageRoot
    
    func init() {
    	if dataUsageRoot != string(filepath.Separator) {
    		hashPathCutSet = dataUsageRoot + string(filepath.Separator)
    	}
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  9. cmd/streaming-signature-v4.go

    	}
    	// Parse s3 specific chunk extension and fetch the values.
    	hexChunkSize, hexChunkSignature := parseS3ChunkExtension(buf)
    	return hexChunkSize, hexChunkSignature, nil
    }
    
    // trimTrailingWhitespace - trim trailing white space.
    func trimTrailingWhitespace(b []byte) []byte {
    	for len(b) > 0 && isASCIISpace(b[len(b)-1]) {
    		b = b[:len(b)-1]
    	}
    	return b
    }
    
    // isASCIISpace - is ascii space?
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java

        /**
         * Method getTrimmedValue.
         *
         * @param s a s object.
         * @return String
         */
        private String getTrimmedValue(String s) {
            if (s != null) {
                s = s.trim();
            }
            return s;
        } // -- String getTrimmedValue( String )
    
        /**
         * Method interpolatedTrimmed.
         *
         * @param value a value object.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 25.3K bytes
    - Click Count (0)
Back to Top