Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for Replace (0.04 seconds)

  1. src/bytes/bytes_test.go

    			}
    			if len(old) == 0 && n != 0 {
    				out.Write(new)
    			}
    			return out.Bytes()
    		}
    		if simple, replace := differentImpl(in, old, new, n), Replace(in, old, new, n); !slices.Equal(simple, replace) {
    			t.Errorf("The two implementations do not match %q != %q for Replace(%q, %q, %q, %d)", simple, replace, in, old, new, n)
    		}
    	})
    }
    
    func BenchmarkReplace(b *testing.B) {
    	for _, tt := range ReplaceTests {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 23 23:54:14 GMT 2025
    - 62.9K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

        }
    
        /**
         * Add or replace an artifact. This method is now deprecated. Use the @{MavenProjectHelper} to attach artifacts to a
         * project. In spite of the 'throws' declaration on this API, this method has never thrown an exception since Maven
         * 3.0.x. Historically, it logged and ignored a second addition of the same g/a/v/c/t. Now it replaces the file for
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Aug 29 12:47:20 GMT 2025
    - 67K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                // Use replace(key, null, value) to make sure the *main* session, i.e. the one used
                // to load the projects, is stored. This is to avoid the session being overwritten
                // if a plugin uses the ProjectBuilder.
                this.session
                        .getData()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  4. cmd/xl-storage-format-v2.go

    			panic(fmt.Sprintf("header: %x != object id: %x", x.versions[idx].header.VersionID, dst.getVersionID()))
    		}
    	}
    	return &dst, err
    }
    
    // setIdx will replace a version at a given index.
    // Note that versions may become re-sorted if modtime changes.
    func (x *xlMetaV2) setIdx(idx int, ver xlMetaV2Version) (err error) {
    	if idx < 0 || idx >= len(x.versions) {
    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)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                    } else if (!sysFile.isFile()) {
                        String msg = "refers to a non-existing file " + sysFile.getAbsolutePath();
                        systemPath = systemPath.replace('/', File.separatorChar).replace('\\', File.separatorChar);
                        String jdkHome =
                                request.getSystemProperties().getProperty("java.home", EMPTY) + File.separator + "..";
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  6. cmd/xl-storage.go

    		// upload to copy back its data from the remote tier. This
    		// doesn't replace the existing version, so we don't need to add
    		// a free-version.
    		xlMeta.AddFreeVersion(fi)
    	}
    
    	// indicates if RenameData() is called by healing.
    	healing := fi.Healing()
    
    	// Replace the data of null version or any other existing version-id
    	_, ver, err := xlMeta.findVersionStr(reqVID)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 91.7K bytes
    - Click Count (0)
  7. tensorflow/c/c_api_test.cc

        // ATTR_TEST_REGISTER calls above.
        string op_name = "CApiAttributesTestOp";
        if (type.find("list(") == 0) {
          op_name += "List";
          type = type.replace(0, 5, "");
          type = type.replace(type.size() - 1, 1, "");
        }
        op_name += type;
        return TF_NewOperation(graph_, op_name.c_str(),
                               absl::StrCat("name", counter_++).c_str());
      }
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Nov 17 00:00:38 GMT 2025
    - 97K bytes
    - Click Count (0)
  8. cmd/erasure-server-pool.go

    		result.HealthyRead = result.HealthyRead && drivesHealing == 0
    		result.HealingDrives = drivesHealing
    	}
    
    	return result
    }
    
    // PutObjectMetadata - replace or add tags to an existing object
    func (z *erasureServerPools) PutObjectMetadata(ctx context.Context, bucket, object string, opts ObjectOptions) (ObjectInfo, error) {
    	object = encodeDirObject(object)
    	if z.SinglePool() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 89.2K bytes
    - Click Count (0)
  9. cmd/bucket-handlers.go

    		// Set delimiter value for "s3:delimiter" policy conditionals.
    		r.Header.Set("delimiter", SlashSeparator)
    
    		n := 0
    		// Use the following trick to filter in place
    		// https://github.com/golang/go/wiki/SliceTricks#filter-in-place
    		for _, bucketInfo := range bucketsInfo {
    			if globalIAMSys.IsAllowed(policy.Args{
    				AccountName:     cred.AccessKey,
    				Groups:          cred.Groups,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 63.9K bytes
    - Click Count (0)
  10. tests/migrate_test.go

    			t.Fatalf("decimal changed error,expected: %+v,got: %+v.", expectedSql, alterSQL)
    		}
    	}
    }
    
    func TestAutoMigrateDecimal(t *testing.T) {
    	if DB.Dialector.Name() == "sqlserver" { // database/sql will replace numeric to decimal. so only support decimal.
    		type MigrateDecimalColumn struct {
    			RecID1 int64 `gorm:"column:recid1;type:decimal(9,0);not null" json:"recid1"`
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Aug 20 04:51:17 GMT 2025
    - 65.2K bytes
    - Click Count (0)
Back to Top