Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for Ftruncate (0.11 seconds)

  1. android/guava-tests/test/com/google/common/base/AsciiTest.java

        assertThat(Ascii.truncate("foobar", 6, "…")).isEqualTo("foobar");
        assertThat(Ascii.truncate("foobar", 5, "…")).isEqualTo("foob…");
        assertThat(Ascii.truncate("foobar", 3, "")).isEqualTo("foo");
        assertThat(Ascii.truncate("", 5, "")).isEqualTo("");
        assertThat(Ascii.truncate("", 5, "...")).isEqualTo("");
        assertThat(Ascii.truncate("", 0, "")).isEqualTo("");
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/AsciiTest.java

        assertThat(Ascii.truncate("foobar", 6, "…")).isEqualTo("foobar");
        assertThat(Ascii.truncate("foobar", 5, "…")).isEqualTo("foob…");
        assertThat(Ascii.truncate("foobar", 3, "")).isEqualTo("foo");
        assertThat(Ascii.truncate("", 5, "")).isEqualTo("");
        assertThat(Ascii.truncate("", 5, "...")).isEqualTo("");
        assertThat(Ascii.truncate("", 0, "")).isEqualTo("");
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                // Fallback: truncate the newest message to fit
                final LlmMessage newest = history.get(history.size() - 1);
                final String truncated = newest.getContent().substring(0, Math.min(budgetChars, newest.getContent().length()));
                request.addMessage(new LlmMessage(newest.getRole(), truncated));
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/chat/ChatClientTest.java

            // Empty titles => suffix is empty => falls back to truncated
            assertEquals("Some content here that is quite long enough to be truncated.", result);
        }
    
        // ========== additional truncated tests ==========
    
        @Test
        public void test_truncated_nullContent() {
            final ChatMessage msg = ChatMessage.assistantMessage(null);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 40.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/job/LogNotificationJobTest.java

            assertNotNull(details);
            // Max 50 events displayed, message truncated to 200 chars
            assertTrue(details.contains("Total: 100 event(s) (showing 50)"));
            assertTrue(details.contains("... and 50 more"));
            // Long messages should be truncated with "..."
            assertTrue(details.contains("..."));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  6. src/main/resources/fess_indices/fess.json

              "type":       "stop",
              "stopwords_path": "${fess.dictionary.path}vi/stopwords.txt"
            },
            "truncate10_filter" : {
              "type" : "truncate",
              "length" : 10
            },
            "truncate20_filter" : {
              "type" : "truncate",
              "length" : 20
            },
            "alphanum_word_filter" : {
              "type" : "alphanum_word",
              "max_token_length" : 20
            },
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 07:52:55 GMT 2026
    - 40K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

                sb.append("a");
            }
            String longScript = sb.toString();
    
            String result = activityHelper.normalizeScript(longScript);
    
            // Should be truncated to 100 characters (97 + "...")
            assertEquals(100, result.length());
            assertTrue(result.endsWith("..."));
        }
    
        @Test
        public void test_normalizeScript_exactlyMaxLength() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/chat/ChatClient.java

         *
         * @param msg the assistant chat message
         * @param mode the content mode (full, smart_summary, source_titles, source_titles_and_urls, truncated, none)
         * @param assistantMaxChars the maximum characters for truncated mode
         * @param summaryMaxChars the maximum characters for summary modes
         * @return the content string for history, or null if the message should be excluded
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 56.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/job/LogNotificationJob.java

         * @param maxDisplayEvents the maximum number of events to display
         * @param maxMessageLength the maximum length of each log message
         * @return the formatted details string with summary header and truncated entries
         */
        protected String formatDetails(final List<LogNotificationEvent> events, final int maxDetailsLength, final int maxDisplayEvents,
                final int maxMessageLength) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  10. .teamcity/scripts/CheckBadMerge.java

                if (s == null) return "null";
                String t = s.replace("\n", "\\n");
                if (t.length() > 500) {
                    return t.substring(0, 500) + "...(truncated)";
                }
                return t;
            }
        }
    
        private static ExecResult exec(String[] command) throws IOException, InterruptedException, ExecutionException {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
Back to Top