Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for new_name (0.1 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        String oldName = Thread.currentThread().getName();
        Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            () -> {
              assertThat(Thread.currentThread().getName()).isEqualTo(newName.get());
              return null;
            };
        Callables.threadRenaming(callable, newName).call();
        assertThat(Thread.currentThread().getName()).isEqualTo(oldName);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        String oldName = Thread.currentThread().getName();
        Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            () -> {
              assertThat(Thread.currentThread().getName()).isEqualTo(newName.get());
              return null;
            };
        Callables.threadRenaming(callable, newName).call();
        assertThat(Thread.currentThread().getName()).isEqualTo(oldName);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  3. tensorflow/c/eager/c_api_test_util.cc

        CHECK_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        const string dev_name(TF_DeviceListName(devices, i, status.get()));
        CHECK_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        if (dev_type == device_type) {
          *device_name = dev_name;
          LOG(INFO) << "Found " << device_type << " device " << *device_name;
          TF_DeleteDeviceList(devices);
          return true;
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  4. migrator/migrator.go

    func (m Migrator) RenameColumn(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		if stmt.Schema != nil {
    			if field := stmt.Schema.LookUpField(oldName); field != nil {
    				oldName = field.DBName
    			}
    
    			if field := stmt.Schema.LookUpField(newName); field != nil {
    				newName = field.DBName
    			}
    		}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 29.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            emptyGenerator.setName("testGenerator");
            assertEquals("testGenerator", emptyGenerator.getName());
    
            // Test changing name
            emptyGenerator.setName("newName");
            assertEquals("newName", emptyGenerator.getName());
        }
    
        @Test
        public void test_addCondition() {
            // Initialize without container
            emptyGenerator = new EmptyGenerator();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  6. tests/migrate_test.go

    		}
    	}
    
    	type NewColumnStruct struct {
    		gorm.Model
    		Name    string
    		NewName string
    	}
    
    	if err := DB.Table("column_structs").Migrator().AddColumn(&NewColumnStruct{}, "NewName"); err != nil {
    		t.Fatalf("Failed to add column, got %v", err)
    	}
    
    	if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
    		t.Fatalf("Failed to find added column")
    	}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 66.3K bytes
    - Click Count (0)
  7. scripts/playwright/json_base64_bytes/image01.py

    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        # Update the viewport manually
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("button", name="POST /data Post Data").click()
        # Manually add the screenshot
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  8. tests/generics_test.go

    		t.Fatalf("prepare user failed: %v", err)
    	}
    
    	// update with Set after chain
    	newName := "GenericsSetUpdate_After"
    	newAge := uint(31)
    	rows, err := gorm.G[User](DB).
    		Where("id = ?", u.ID).
    		Set(
    			clause.Assignment{Column: clause.Column{Name: "name"}, Value: newName},
    			clause.Assignment{Column: clause.Column{Name: "age"}, Value: newAge},
    		).
    		Update(ctx)
    	if err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Dec 30 08:11:14 GMT 2025
    - 34.9K bytes
    - Click Count (0)
  9. tensorflow/c/eager/c_api_cluster_test.cc

      // Another renaming of local device
      const string second_name = "def";
      server_def.set_job_name(second_name);
      server_def.mutable_cluster()->mutable_job(0)->set_name(second_name);
      (*server_def.mutable_cluster()->mutable_job(0)->mutable_tasks())[0] =
          absl::StrCat(second_name, ":",
                       tensorflow::testing::PickUnusedPortOrDie());
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  10. tensorflow/c/eager/c_api_experimental_test.cc

      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      server_def.set_task_index(0);
      auto cluster = server_def.mutable_cluster();
      auto client_job = cluster->add_job();
      client_job->set_name("localhost");
      int client_port = tensorflow::testing::PickUnusedPortOrDie();
      client_job->mutable_tasks()->insert(
          {0, absl::StrCat("localhost:", client_port)});
      server_def.set_job_name("localhost");
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 31.5K bytes
    - Click Count (0)
Back to Top