Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 6,576 for string (0.75 sec)

  1. cmd/utils_test.go

    	}
    }
    
    func TestLCP(t *testing.T) {
    	testCases := []struct {
    		prefixes     []string
    		commonPrefix string
    	}{
    		{[]string{"", ""}, ""},
    		{[]string{"a", "b"}, ""},
    		{[]string{"a", "a"}, "a"},
    		{[]string{"a/", "a/"}, "a/"},
    		{[]string{"abcd/", ""}, ""},
    		{[]string{"abcd/foo/", "abcd/bar/"}, "abcd/"},
    		{[]string{"abcd/foo/bar/", "abcd/foo/bar/zoo"}, "abcd/foo/bar/"},
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java

            @ParameterizedTest(name = "for {0}")
            @ValueSource(strings = {"4.0.0", "4.1.0", "4.2.0"})
            @DisplayName("should detect model version")
            void shouldDetectModelVersionFromNamespace(String targetVersion) throws Exception {
                String pomXml = PomBuilder.create()
                        .namespace("http://maven.apache.org/POM/" + targetVersion)
                        .modelVersion(targetVersion)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         *
         * @see ArtifactCoordinatesFactory#create(Session, String, String, String, String, String, String)
         */
        @Nonnull
        ArtifactCoordinates createArtifactCoordinates(
                String groupId, String artifactId, String version, String classifier, String extension, String type);
    
        /**
         * Shortcut for {@code getService(ArtifactFactory.class).create(...)}.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  4. internal/grid/types.go

    	clear(m)
    	return &m
    }
    
    // NewMSSWith returns a new MSS with the given map.
    func NewMSSWith(m map[string]string) *MSS {
    	m2 := MSS(m)
    	return &m2
    }
    
    var mssPool = bpool.Pool[map[string]string]{
    	New: func() map[string]string {
    		return make(map[string]string, 5)
    	},
    }
    
    // Recycle the underlying map.
    func (m *MSS) Recycle() {
    	if m != nil && *m != nil {
    		mssPool.Put(*m)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  5. generics.go

    	Preload(association string, query func(db PreloadBuilder) error) ChainInterface[T]
    	Select(query string, args ...interface{}) CreateInterface[T]
    	Omit(columns ...string) CreateInterface[T]
    	MapColumns(m map[string]string) ChainInterface[T]
    	Distinct(args ...interface{}) ChainInterface[T]
    	Group(name string) ChainInterface[T]
    	Having(query interface{}, args ...interface{}) ChainInterface[T]
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. utils/utils_test.go

    			t.Errorf("%v: expected %v, got %v", c.values, c.key, key)
    		}
    	}
    }
    
    func TestContains(t *testing.T) {
    	containsTests := []struct {
    		name  string
    		elems []string
    		elem  string
    		out   bool
    	}{
    		{"exists", []string{"1", "2", "3"}, "1", true},
    		{"not exists", []string{"1", "2", "3"}, "4", false},
    	}
    	for _, test := range containsTests {
    		t.Run(test.name, func(t *testing.T) {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 19 01:49:06 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. internal/bucket/replication/replication.go

    			// does not match
    			if recursive && !strings.HasPrefix(rule.Prefix(), prefix) && !strings.HasPrefix(prefix, rule.Prefix()) {
    				continue
    			}
    		}
    		return true
    	}
    	return false
    }
    
    // FilterTargetArns returns a slice of distinct target arns in the config
    func (c Config) FilterTargetArns(obj ObjectOpts) []string {
    	var arns []string
    
    	tgtsMap := make(map[string]struct{})
    	rules := c.FilterActionableRules(obj)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    func FilterObjectLockMetadata(metadata map[string]string, filterRetention, filterLegalHold bool) map[string]string {
    	// Copy on write
    	dst := metadata
    	var copied bool
    	delKey := func(key string) {
    		key = strings.ToLower(key)
    		if _, ok := metadata[key]; !ok {
    			return
    		}
    		if !copied {
    			dst = make(map[string]string, len(metadata))
    			maps.Copy(dst, metadata)
    			copied = true
    		}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

            }
    
            @Override
            public String toString() {
                return value.toString();
            }
        }
    
        /**
         * Represents a string in the version item list, usually a qualifier.
         */
        private static class StringItem implements Item {
            private static final List<String> QUALIFIERS =
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  10. cmd/metrics-v3-handler.go

    type metricDisplay struct {
    	Name   string   `json:"name"`
    	Help   string   `json:"help"`
    	Type   string   `json:"type"`
    	Labels []string `json:"labels"`
    }
    
    func (md metricDisplay) String() string {
    	return fmt.Sprintf("Name: %s\nType: %s\nHelp: %s\nLabels: {%s}\n", md.Name, md.Type, md.Help, strings.Join(md.Labels, ","))
    }
    
    func (md metricDisplay) TableRow() string {
    	labels := strings.Join(md.Labels, ",")
    	if labels == "" {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:03 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top