Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 759 for Count (0.02 sec)

  1. migrator/migrator.go

    func (m Migrator) HasTable(value interface{}) bool {
    	var count int64
    
    	m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		currentDatabase := m.DB.Migrator().CurrentDatabase()
    		return m.DB.Raw("SELECT count(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ? AND table_type = ?", currentDatabase, stmt.Table, "BASE TABLE").Row().Scan(&count)
    	})
    
    	return count > 0
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  2. tests/query_test.go

    	}
    
    	if totalBatch != 6 {
    		t.Errorf("incorrect total batch, expects: %v, got %v", 6, totalBatch)
    	}
    
    	var count int64
    	DB.Model(&User{}).Where("name = ?", "find_in_batches_new").Count(&count)
    	if count != 6 {
    		t.Errorf("incorrect count after update, expects: %v, got %v", 6, count)
    	}
    }
    
    func TestFindInBatchesWithOffsetLimit(t *testing.T) {
    	users := []User{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        @SuppressWarnings("unchecked") // values only contains Vs
        @CanIgnoreReturnValue
        public int setCount(int count) {
          updateLastKnownIndex();
          if (lastKnownIndex == -1) {
            put(key, count);
            return 0;
          } else {
            int old = values[lastKnownIndex];
            values[lastKnownIndex] = count;
            return old;
          }
        }
      }
    
      private static int getHash(long entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

            public String key;
            public long count;
            public long used;
            public long capacity;
        }
    
        public static class JvmGcObj {
            public String key;
            public long count;
            public long time;
        }
    
        public static class JvmThreadsObj {
            public int count;
            public int peak;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/PairedStatsTest.java

     */
    public class PairedStatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_PAIRED_STATS.count()).isEqualTo(0);
        assertThat(ONE_VALUE_PAIRED_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_PAIRED_STATS.count()).isEqualTo(2);
        assertThat(MANY_VALUES_PAIRED_STATS.count()).isEqualTo(MANY_VALUES_COUNT);
      }
    
      public void testXStats() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. cmd/iam-object-store.go

    		policyDocs, err := iamOS.loadPolicyDocConcurrent(ctx, policiesList[:count]...)
    		if err != nil {
    			return err
    		}
    
    		for index := range policiesList[:count] {
    			if policyDocs[index].Policy.Version != "" {
    				policyName := path.Dir(policiesList[index])
    				cache.iamPolicyDocsMap[policyName] = policyDocs[index]
    			}
    		}
    
    		policiesList = policiesList[count:]
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

            assertEquals("1", extractData.getValues("meta:paragraph-count")[0]);
            assertEquals("太郎", extractData.getValues("dc:creator")[0]);
            assertEquals("かいしゃ", extractData.getValues("extended-properties:Company")[0]);
            assertEquals("2010-07-22T00:21:00Z", extractData.getValues("dcterms:created")[0]);
            assertEquals("1", extractData.getValues("meta:line-count")[0]);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

                throwValidationErrorApi(messages -> messages.addErrorsInvalidQueryUnknown(GLOBAL));
            }
            try {
                final long count = searchHelper.deleteByQuery(request, body);
                return asJson(new ApiDeleteResponse().count(count).status(Status.OK).result());
            } catch (final InvalidQueryException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug(e.getMessage(), e);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 09:03:45 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            final Vector<String> vector = new Vector<String>();
            vector.add("a");
            vector.add("b");
            int count = 0;
            for (final String s : iterable(vector.elements())) {
                ++count;
            }
            assertThat(count, is(2));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.EnumerationIterator#EnumerationIterator(Enumeration)}
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. docs/bucket/versioning/versioning-tests.sh

    echo hello | ./mc pipe sitea/delissue/hello --insecure
    
    ./mc version suspend sitea/delissue --insecure
    
    ./mc rm sitea/delissue/hello --insecure
    
    count=$(./mc ls --versions sitea/delissue --insecure | wc -l)
    
    if [ ${count} -ne 3 ]; then
    	echo "BUG: expected number of versions to be '3' found ${count}"
    	echo "===== DEBUG ====="
    	./mc ls --versions sitea/delissue
    fi
    
    ./mc mb sitea/testbucket
    
    ./mc version enable sitea/testbucket
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top