Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for hasRule (0.05 seconds)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            ruleManager.addRule(rule1);
            ruleManager.addRule(rule2);
            ruleManager.addRule(rule3);
    
            assertTrue(ruleManager.hasRule(rule1));
            assertTrue(ruleManager.hasRule(rule2));
            assertTrue(ruleManager.hasRule(rule3));
            assertEquals(3, ruleManager.getRuleCount());
        }
    
        /**
         * Test adding null rule
         */
        public void test_addRule_null() {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Sep 06 04:15:37 GMT 2025
    - 23.8K bytes
    - Click Count (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

                }
            }
    
            @Override
            public boolean removeRule(Rule rule) {
                return rules.remove(rule);
            }
    
            @Override
            public boolean hasRule(Rule rule) {
                return rules.contains(rule);
            }
    
            public List<Rule> getRules() {
                return new ArrayList<>(rules);
            }
    
            public void clearRules() {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            public void addRule(int index, Rule rule) {
            }
    
            @Override
            public boolean removeRule(Rule rule) {
                return false;
            }
    
            @Override
            public boolean hasRule(Rule rule) {
                return false;
            }
        }
    
        /**
         * Test implementation of IntervalController for testing
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Sep 06 04:15:37 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  4. cmd/site-replication.go

    			if err != nil {
    				return err
    			}
    		}
    		var (
    			ruleID  = fmt.Sprintf("site-repl-%s", d)
    			hasRule bool
    		)
    		var ruleARN string
    		for _, r := range replicationConfig.Rules {
    			if r.ID == ruleID {
    				hasRule = true
    				ruleARN = r.Destination.Bucket
    			}
    		}
    
    		ep, _ := url.Parse(peer.Endpoint)
    		var targets []madmin.BucketTarget
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 184.8K bytes
    - Click Count (1)
  5. src/archive/tar/strconv.go

    // license that can be found in the LICENSE file.
    
    package tar
    
    import (
    	"bytes"
    	"fmt"
    	"strconv"
    	"strings"
    	"time"
    )
    
    // hasNUL reports whether the NUL character exists within s.
    func hasNUL(s string) bool {
    	return strings.Contains(s, "\x00")
    }
    
    // isASCII reports whether the input is an ASCII C-style string.
    func isASCII(s string) bool {
    	for _, c := range s {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Mon Sep 08 17:08:20 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  6. internal/bucket/lifecycle/lifecycle_test.go

    	tests := []struct {
    		lc       Lifecycle
    		opts     ObjectOpts
    		hasRules bool
    	}{
    		{ // Delete marker shouldn't match filter without tags
    			lc: Lifecycle{
    				Rules: []Rule{
    					rules[0],
    				},
    			},
    			opts: ObjectOpts{
    				DeleteMarker: true,
    				IsLatest:     true,
    				Name:         "obj-1",
    			},
    			hasRules: false,
    		},
    		{ // PUT version with no matching tags
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 55.5K bytes
    - Click Count (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            if (cached != null
                    // if the POM has no file, we cached a missing artifact, only return the cached data if no update forced
                    && (!request.isForceUpdate() || hasFile(cached.getPomArtifact()))) {
                return cached;
            }
    
            List<Dependency> dependencies;
    
            List<Dependency> managedDependencies = null;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 12:03:50 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

            systemHelper.setupAdminHtmlData(this, runtime);
    
            final Boolean editable =
                    getUserBean().map(user -> user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray()) || user.hasRole(getActionRole()))
                            .orElse(false);
            runtime.registerData("editable", editable);
            runtime.registerData("editableClass", editable ? StringUtil.EMPTY : "disabled");
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  9. cmd/xl-storage-format-v2.go

    // If data is not xlv2, it is returned in full.
    func readXLMetaNoData(r io.Reader, size int64) ([]byte, error) {
    	initial := size
    	hasFull := true
    	if initial > metaDataReadDefault {
    		initial = metaDataReadDefault
    		hasFull = false
    	}
    
    	buf := metaDataPoolGet()[:initial]
    	_, err := io.ReadFull(r, buf)
    	if err != nil {
    		return nil, fmt.Errorf("readXLMetaNoData(io.ReadFull): %w", err)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 65.6K bytes
    - Click Count (1)
  10. src/archive/tar/common.go

    		// Technically, it is required for uname and gname,
    		// but neither GNU nor BSD tar checks for it.
    		tooLong := len(s) > size
    		allowLongGNU := paxKey == paxPath || paxKey == paxLinkpath
    		if hasNUL(s) || (tooLong && !allowLongGNU) {
    			whyNoGNU = fmt.Sprintf("GNU cannot encode %s=%q", name, s)
    			format.mustNotBe(FormatGNU)
    		}
    		if !isASCII(s) || tooLong {
    			canSplitUSTAR := paxKey == paxPath
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Oct 07 19:46:36 GMT 2025
    - 24.5K bytes
    - Click Count (0)
Back to Top