Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 415 for putA (0.04 sec)

  1. internal/store/queuestore.go

    	}
    
    	if err != nil {
    		return err
    	}
    	// Increment the item count.
    	store.entries[key.String()] = time.Now().UnixNano()
    	return nil
    }
    
    // Put - puts an item to the store.
    func (store *QueueStore[I]) Put(item I) (Key, error) {
    	store.Lock()
    	defer store.Unlock()
    	if uint64(len(store.entries)) >= store.entryLimit {
    		return Key{}, errLimitExceeded
    	}
    	// Generate a new UUID for the key.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. internal/store/queuestore_test.go

    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	for i := 0; i < 5; i++ {
    		if _, err := store.Put(testItem); err != nil {
    			t.Fatal("Failed to put to queue store ", err)
    		}
    	}
    	// Should not allow 6th Put.
    	if _, err := store.Put(testItem); err == nil {
    		t.Fatalf("Expected to fail with %s, but passes", errLimitExceeded)
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java

            map.put("boost1", 0);
            map.put("boost2", 0);
            assertTrue(0.0f == docBoostMatcher.getValue(map));
    
            map.put("boost1", 1);
            map.put("boost2", 0);
            assertTrue(10.0f == docBoostMatcher.getValue(map));
    
            map.put("boost1", 1);
            map.put("boost2", 2);
            assertTrue(12.0f == docBoostMatcher.getValue(map));
        }
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/admin/WebAuthTests.java

            requestBody.put("name", "test_webconfig");
            requestBody.put("urls", "http://www.example.com");
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100.0);
            requestBody.put("available", true);
            requestBody.put("sort_order", 1);
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

            final Map<String, String> valueMap = new LinkedHashMap<>();
            valueMap.put("action", Action.ACCESS.name());
            valueMap.put("user", user.map(FessUserBean::getUserId).orElse("-"));
            valueMap.put("path", path);
            valueMap.put("execute", execute);
            log(valueMap);
        }
    
        public void permissionChanged(final OptionalThing<FessUserBean> user) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/ParameterUtil.java

            map.put(ConfigName.CONFIG, configConfigMap);
            map.put(ConfigName.CLIENT, clientConfigMap);
            map.put(ConfigName.XPATH, xpathConfigMap);
            map.put(ConfigName.META, metaConfigMap);
            map.put(ConfigName.VALUE, valueConfigMap);
            map.put(ConfigName.SCRIPT, scriptConfigMap);
            map.put(ConfigName.FIELD, fieldConfigMap);
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/it/admin/SearchListTests.java

            final Map<String, Object> doc = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            doc.put(KEY_PROPERTY, keyProp);
            doc.put("url", "http://example.com/" + id);
            doc.put("boost", id);
            doc.put("role", "Rguest");
            requestBody.put("doc", doc);
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> createSearchBody(final int size) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/admin/FileAuthTests.java

            requestBody.put("name", "test_fileconfig");
            requestBody.put("paths", "file:///example/path/");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100.0);
            requestBody.put("available", true);
            requestBody.put("sort_order", 1);
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            requestBody.put("name", NAME_PREFIX + "WebConfig");
            requestBody.put("urls", urls);
            requestBody.put("included_urls", includedUrls);
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("depth", 1);
            requestBody.put("num_of_thread", 1);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100);
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            dataMap.put("url", "http://example.com/");
            final List<String> roleTypeList = new ArrayList<String>();
            roleTypeList.add("admin");
            dataMap.put("role", roleTypeList);
            final List<String> virtualHostList = new ArrayList<String>();
            virtualHostList.add("site1");
            dataMap.put("virtual_host", virtualHostList);
    
            assertEquals(
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top