Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 752 for ok (0.2 sec)

  1. statement.go

    		fieldValue, _ := field.ValueOf(stmt.Context, modelValue)
    		if v, ok := selectColumns[field.DBName]; (ok && v) || (!ok && !restricted) {
    			if mv, mok := stmt.Dest.(map[string]interface{}); mok {
    				if fv, ok := mv[field.Name]; ok {
    					return !utils.AssertEqual(fv, fieldValue)
    				} else if fv, ok := mv[field.DBName]; ok {
    					return !utils.AssertEqual(fv, fieldValue)
    				}
    			} else {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  2. src/archive/tar/strconv_test.go

    		{0, 12, true},
    		{math.MinInt64, 12, true},
    	}
    
    	for _, v := range vectors {
    		ok := fitsInBase256(v.width, v.in)
    		if ok != v.ok {
    			t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok)
    		}
    	}
    }
    
    func TestParseNumeric(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want int64
    		ok   bool
    	}{
    		// Test base-256 (binary) encoded values.
    		{"", 0, true},
    		{"\x80", 0, true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  3. internal/crypto/metadata.go

    	if IsMultiPart(metadata) {
    		return nil, true
    	}
    	if _, ok := metadata[MetaIV]; ok {
    		return nil, true
    	}
    	if _, ok := metadata[MetaAlgorithm]; ok {
    		return nil, true
    	}
    	if _, ok := metadata[MetaKeyID]; ok {
    		return nil, true
    	}
    	if _, ok := metadata[MetaDataEncryptionKey]; ok {
    		return nil, true
    	}
    	if _, ok := metadata[MetaContext]; ok {
    		return nil, true
    	}
    	return nil, false
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/custom_device_test.cc

      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      bool arrived = false;
      bool executed = false;
      const char* name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      RegisterLoggingDevice(context, name, /*strict_scope_placement=*/true,
                            &arrived, &executed, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  5. migrator/migrator.go

    	var oldTable, newTable interface{}
    	if v, ok := oldName.(string); ok {
    		oldTable = clause.Table{Name: v}
    	} else {
    		stmt := &gorm.Statement{DB: m.DB}
    		if err := stmt.Parse(oldName); err == nil {
    			oldTable = m.CurrentTable(stmt)
    		} else {
    			return err
    		}
    	}
    
    	if v, ok := newName.(string); ok {
    		newTable = clause.Table{Name: v}
    	} else {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  6. migrator.go

    	ColumnType() (columnType string, ok bool) // varchar(64)
    	PrimaryKey() (isPrimaryKey bool, ok bool)
    	AutoIncrement() (isAutoIncrement bool, ok bool)
    	Length() (length int64, ok bool)
    	DecimalSize() (precision int64, scale int64, ok bool)
    	Nullable() (nullable bool, ok bool)
    	Unique() (unique bool, ok bool)
    	ScanType() reflect.Type
    	Comment() (value string, ok bool)
    	DefaultValue() (value string, ok bool)
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_remote_test_util.cc

                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server2)
                      .ok());
      ASSERT_TRUE(worker_server2->Start().ok());
    
      TF_Status* status = TF_NewStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  8. cmd/metacache-manager.go

    // updateCacheEntry will update non-transient state.
    func (m *metacacheManager) updateCacheEntry(update metacache) (metacache, error) {
    	m.mu.RLock()
    	if meta, ok := m.trash[update.id]; ok {
    		m.mu.RUnlock()
    		return meta, nil
    	}
    
    	b, ok := m.buckets[update.bucket]
    	m.mu.RUnlock()
    	if ok {
    		return b.updateCacheEntry(update)
    	}
    
    	// We should have either a trashed bucket or this
    	return metacache{}, errVolumeNotFound
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  9. schema/schema.go

    			fieldInterface := fieldValue.Interface()
    			if fc, ok := fieldInterface.(CreateClausesInterface); ok {
    				field.Schema.CreateClauses = append(field.Schema.CreateClauses, fc.CreateClauses(field)...)
    			}
    
    			if fc, ok := fieldInterface.(QueryClausesInterface); ok {
    				field.Schema.QueryClauses = append(field.Schema.QueryClauses, fc.QueryClauses(field)...)
    			}
    
    			if fc, ok := fieldInterface.(UpdateClausesInterface); ok {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 2);
      EXPECT_EQ(num_compute_calls, 3);
      cache2.LookupOrCompute("d", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 3);
      EXPECT_EQ(num_compute_calls, 4);
      cache2.LookupOrCompute("e", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 4);
      EXPECT_EQ(num_compute_calls, 5);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
Back to top