Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for evaluate (0.04 sec)

  1. src/test/java/org/codelibs/fess/score/QueryRescorerTest.java

            params.put("test", "value");
    
            assertNull(queryRescorer.evaluate(params)); // First call - odd
            assertNotNull(queryRescorer.evaluate(params)); // Second call - even
            assertNull(queryRescorer.evaluate(params)); // Third call - odd
            assertNotNull(queryRescorer.evaluate(params)); // Fourth call - even
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/script/AbstractScriptEngineTest.java

            assertEquals(testScriptEngine, retrieved);
        }
    
        // Test evaluate with null parameters
        public void test_evaluate_nullParams() {
            Object result = testScriptEngine.evaluate("template", null);
            assertEquals("processed: template with params", result);
        }
    
        // Test evaluate with empty parameters
        public void test_evaluate_emptyParams() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            final Map<String, Object> params = new HashMap<>();
            assertNull(groovyEngine.evaluate("", params));
            assertEquals("", groovyEngine.evaluate("return ''", params));
            assertEquals(1, groovyEngine.evaluate("return 1", params));
    
            params.put("test", "123");
            assertEquals("123", groovyEngine.evaluate("return test", params));
        }
    
        public void test_getName() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/TestLogHandler.kt

      }
    
      override fun apply(
        base: Statement,
        description: Description,
      ): Statement =
        object : Statement() {
          override fun evaluate() {
            beforeEach(null)
            try {
              base.evaluate()
            } finally {
              afterEach(null)
            }
          }
        }
    
      fun takeAll(): List<String> {
        val list = mutableListOf<String>()
        logs.drainTo(list)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/script/ScriptEngine.java

         * with parameters from the paramMap substituted into the template.
         *
         * @param template the template string to evaluate
         * @param paramMap the map of parameters to substitute into the template
         * @return the result of evaluating the template, or null if evaluation fails
         */
        Object evaluate(final String template, final Map<String, Object> paramMap);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  6. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

          rule.apply(
            object : Statement() {
              override fun evaluate() {
                called.set(true)
                rule.server
                  .url("/")
                  .toUrl()
                  .openConnection()
                  .connect()
              }
            },
            Description.EMPTY,
          )
        statement.evaluate()
        assertThat(called.get()).isTrue()
        try {
          rule.server
            .url("/")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

            if (value instanceof Boolean) {
                return (Boolean) value;
            }
    
            return false;
        }
    
        /**
         * Calculates the boost value for the given document data using the boost expression.
         * The method evaluates the boost expression and converts the result to a float value.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

        }
    
        @Override
        public Object evaluate(final String template, final Map<String, Object> paramMap) {
            final Map<String, Object> bindingMap = new HashMap<>(paramMap);
            bindingMap.put("container", SingletonLaContainerFactory.getContainer());
            final GroovyShell groovyShell = new GroovyShell(new Binding(bindingMap));
            try {
                return groovyShell.evaluate(template);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

            ComponentUtil.register(scriptEngineFactory, "scriptEngineFactory");
            new AbstractScriptEngine() {
    
                @Override
                public Object evaluate(String template, Map<String, Object> paramMap) {
                    final Map<String, Object> bindingMap = new HashMap<>(paramMap);
                    bindingMap.put("container", SingletonLaContainerFactory.getContainer());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 4.1K bytes
    - Viewed (1)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XPathAPI.java

    import org.codelibs.fess.crawler.exception.CrawlerSystemException;
    import org.w3c.dom.Node;
    
    /**
     * The XPathAPI class provides methods to evaluate XPath expressions and select nodes or node lists from an XML document.
     * It uses the javax.xml.xpath.XPath and javax.xml.xpath.XPathFactory classes to create and evaluate XPath expressions.
     *
     * <p>Example usage:</p>
     * <pre>
     * {@code
     * XPathAPI xPathAPI = new XPathAPI();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top