Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for counters (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

            AtomicInteger counter1 = new AtomicInteger(0);
            AtomicInteger counter2 = new AtomicInteger(0);
    
            executor1.addShutdownListener(() -> counter1.incrementAndGet());
            executor2.addShutdownListener(() -> counter2.incrementAndGet());
    
            executor1.shutdown();
            assertEquals(1, counter1.get());
            assertEquals(0, counter2.get());
    
            executor2.shutdown();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

        public void test_concurrent_stores() {
            // Test thread-safe implementation
            final AtomicLong counter = new AtomicLong(0);
    
            IndexUpdateCallback callback = new IndexUpdateCallback() {
                @Override
                public void store(DataStoreParams paramMap, Map<String, Object> dataMap) {
                    counter.incrementAndGet();
                }
    
                @Override
                public long getDocumentSize() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  3. src/main/webapp/js/chat.js

        }
    
        /**
         * Update character counter
         */
        function updateCharCount() {
            var count = elements.chatInput.val().length;
            var maxLength = 4000;
            elements.charCount.text(count);
    
            var counter = elements.charCount.parent();
            counter.removeClass('warning danger');
            if (count >= maxLength * 0.95) {
                counter.addClass('danger');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 30.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

         */
        @Test
        public void test_evaluate_noStateLeakBetweenEvaluations() {
            final GroovyEngine engine = new GroovyEngine();
            final String script = "def counter = 0; counter += x; return counter";
    
            final Map<String, Object> params1 = new HashMap<>();
            params1.put("x", 5);
            assertEquals(5, engine.evaluate(script, params1));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  5. src/main/webapp/css/chat.css

        padding: 0 0.25rem;
    }
    
    .input-hint {
        font-size: 0.6875rem;
        color: #8993a4;
    }
    
    .char-counter {
        font-size: 0.6875rem;
        color: #8993a4;
        font-variant-numeric: tabular-nums;
    }
    
    .char-counter.warning {
        color: #ff991f;
    }
    
    .char-counter.danger {
        color: #de350b;
    }
    
    /* ============================================
       Responsive adjustments
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:21:57 GMT 2026
    - 19.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            // Verify
            assertTrue(result.isPresent());
            assertEquals(Locale.JAPAN, result.get());
        }
    
        // Test findBusinessLocale with language only (no country)
        @Test
        public void test_findBusinessLocale_withLanguageOnly() {
            // Setup mock config
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            final AtomicInteger counter = new AtomicInteger(0);
            final ForkJoinPool pool = new ForkJoinPool(10);
            for (int i = 0; i < 1000; i++) {
                pool.execute(() -> {
                    assertEquals(result, crawlingInfoHelper.generateId(dataMap));
                    counter.incrementAndGet();
                });
            }
            pool.shutdown();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  8. src/main/webapp/WEB-INF/orig/view/chat/chat.jsp

    								</button>
    							</div>
    							<div class="input-footer">
    								<span class="input-hint"><la:message key="labels.chat_input_hint" /></span>
    								<span class="char-counter"><span id="charCount">0</span> / 4000</span>
    							</div>
    						</div>
    					</div>
    				</div>
    			</div>
    		</div>
    	</main>
    	<jsp:include page="../footer.jsp" />
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:21:57 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            // Test with same language but different country
            Locale enUS = new Locale("en", "US");
            Locale enGB = new Locale("en", "GB");
            assertFalse(labelTypeHelper.matchLocale(enUS, enGB));
    
            // Test with same language, target has no country
            Locale en = new Locale("en");
            assertTrue(labelTypeHelper.matchLocale(enUS, en));
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                return context;
            }
    
            /**
             * Increments the counter.
             */
            public void inc() {
                counter++;
            }
    
            @Override
            public void close() {
                if (counter > 1) {
                    counter--;
                } else {
                    try {
                        if (context != null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 85.2K bytes
    - Click Count (0)
Back to Top