Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for Trimming (0.08 seconds)

  1. src/test/java/org/codelibs/fess/entity/ChatSessionTest.java

            session.addAssistantMessage("Assistant 2");
            session.addUserMessage("User 3");
            session.addAssistantMessage("Assistant 3");
            assertEquals(6, session.getMessageCount());
    
            // Trimming to 3 would start at index 3 (assistant), so it should go back to index 2 (user)
            session.trimHistory(3);
    
            final List<ChatMessage> messages = session.getMessages();
            assertEquals(4, messages.size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  2. internal/config/certs.go

    func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err error) {
    	// Read certificate file.
    	var data []byte
    	if data, err = os.ReadFile(certFile); err != nil {
    		return nil, err
    	}
    
    	// Trimming leading and tailing white spaces.
    	data = bytes.TrimSpace(data)
    
    	// Parse all certs in the chain.
    	current := data
    	for len(current) > 0 {
    		var pemBlock *pem.Block
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Aug 14 17:11:51 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertThat(CharMatcher.any().collapseFrom("ab", '_')).isEqualTo("_");
        assertThat(CharMatcher.any().collapseFrom("abcd", '_')).isEqualTo("_");
      }
    
      public void testTrimFrom() {
        // trimming -
        doTestTrimFrom("-", "");
        doTestTrimFrom("x-", "x");
        doTestTrimFrom("-x", "x");
        doTestTrimFrom("--", "");
        doTestTrimFrom("x--", "x");
        doTestTrimFrom("--x", "x");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/util/InputStreamThread.java

                buf.append(value).append("\n");
            }
            return buf.toString();
        }
    
        /**
         * Checks if the buffer contains a line that matches the specified value (after trimming).
         *
         * @param value the value to search for in the buffered lines
         * @return true if a matching line is found, false otherwise
         */
        public boolean contains(final String value) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

        //
        // 9) Execute AbstractLifecycleParticipant.afterProjectsRead(session)
        //
        // 10) Create ProjectDependencyGraph without trimming (as trimming was done in 7). A new topological sort is
        // required after the execution of 9) as the AbstractLifecycleParticipants are free to mutate the MavenProject
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 29 10:43:38 GMT 2025
    - 28.8K bytes
    - Click Count (1)
  6. internal/grid/trace.go

    func (c *muxClient) traceRoundtrip(ctx context.Context, t *tracer, h HandlerID, req []byte) ([]byte, error) {
    	if t == nil || t.Publisher.NumSubscribers(t.TraceType) == 0 {
    		return c.roundtrip(h, req)
    	}
    
    	// Following trimming is needed for consistency between outputs with other internode traces.
    	local := strings.TrimPrefix(strings.TrimPrefix(t.Local, httpsScheme), httpScheme)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Jun 01 05:17:37 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  7. internal/s3select/sql/funceval.go

    		// needed.
    		// String might contain trimming spaces, which
    		// needs to be trimmed.
    		res, ok := strToInt(strings.TrimSpace(x))
    		if !ok {
    			return 0, errCastFailure("could not parse as int")
    		}
    		return res, nil
    	case []byte:
    		// Parse as number, truncate floating point if
    		// needed.
    		// String might contain trimming spaces, which
    		// needs to be trimmed.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        assertThat(formEncode(255)).isEqualTo("%C3%BF")
      }
    
      @Throws(IOException::class)
      private fun formEncode(codePoint: Int): String {
        // Wrap the codepoint with regular printable characters to prevent trimming.
        val body =
          FormBody
            .Builder()
            .add("a", String(intArrayOf('b'.code, codePoint, 'c'.code), 0, 3))
            .build()
        val buffer = Buffer()
        body.writeTo(buffer)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java

     *   <li><strong>Root Attribute</strong>: Adds {@code root="true"} attribute to root project</li>
     *   <li><strong>Parent Element Trimming</strong>:
     *     <ul>
     *       <li>Removes parent {@code <groupId>} when child has no explicit groupId</li>
     *       <li>Removes parent {@code <version>} when child has no explicit version</li>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

        }
    
        /**
         * Trims the prefix.
         *
         * @param propertyName
         *            The property name
         * @return The result after trimming
         */
        protected String trimPrefix(final String propertyName) {
            if (prefix == null) {
                return propertyName;
            }
            return propertyName.substring(prefix.length());
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 17.5K bytes
    - Click Count (0)
Back to Top