Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1941 - 1950 of 3,487 for init (0.03 sec)

  1. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            });
        }
    
        /**
         * Generates test data with repeating patterns for good compression.
         */
        private byte[] generateTestData(int size) {
            byte[] data = new byte[size];
    
            // Create data with repeating patterns
            for (int i = 0; i < size; i++) {
                if (i % 100 < 50) {
                    data[i] = (byte) 'A';
                } else if (i % 100 < 75) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

       * @since 13.0 (since 3.0 as {@code Iterators.skip})
       */
      @CanIgnoreReturnValue
      public static int advance(Iterator<?> iterator, int numberToAdvance) {
        checkNotNull(iterator);
        checkArgument(numberToAdvance >= 0, "numberToAdvance must be nonnegative");
    
        int i;
        for (i = 0; i < numberToAdvance && iterator.hasNext(); i++) {
          iterator.next();
        }
        return i;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  3. cmd/xl-storage-format_test.go

    			t.Errorf("Test %d: Expected %v but received %v", tt.name, got, tt.want)
    		}
    	}
    }
    
    func TestIsXLMetaErasureInfoValid(t *testing.T) {
    	tests := []struct {
    		name   int
    		data   int
    		parity int
    		want   bool
    	}{
    		{1, 5, 6, false},
    		{2, 5, 5, true},
    		{3, 0, 5, false},
    		{3, -1, 5, false},
    		{4, 5, -1, false},
    		{5, 5, 0, true},
    		{6, 5, 0, true},
    		{7, 5, 4, true},
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/ResourceManager.java

        }
    
        /**
         * Force cleanup of all resources
         *
         * @return number of resources cleaned
         */
        public int forceCleanup() {
            log.info("Forcing cleanup of all resources");
    
            int cleaned = 0;
            for (ResourceHolder holder : activeResources.values()) {
                if (!holder.closed) {
                    AutoCloseable resource = holder.resourceRef.get();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. cmd/naughty-disk_test.go

    	// The real disk
    	disk StorageAPI
    	// Programmed errors: API call number => error to return
    	errors map[int]error
    	// The error to return when no error value is programmed
    	defaultErr error
    	// The current API call number
    	callNR int
    	// Data protection
    	mu sync.Mutex
    }
    
    func newNaughtyDisk(d StorageAPI, errs map[int]error, defaultErr error) *naughtyDisk {
    	return &naughtyDisk{disk: d, errors: errs, defaultErr: defaultErr}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/context/BaseContextTest.java

        void testConcurrentAccess() throws InterruptedException {
            // Given
            final int threadCount = 10;
            final Thread[] threads = new Thread[threadCount];
            final boolean[] results = new boolean[threadCount];
    
            // When
            for (int i = 0; i < threadCount; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Primitives.java

      /**
       * Returns the corresponding primitive type of {@code type} if it is a wrapper type; otherwise
       * returns {@code type} itself. Idempotent.
       *
       * <pre>
       *     unwrap(Integer.class) == int.class
       *     unwrap(int.class) == int.class
       *     unwrap(String.class) == String.class
       * </pre>
       */
      public static <T> Class<T> unwrap(Class<T> type) {
        checkNotNull(type);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

         */
        private static class TestInfo implements SmbBasicFileInfo {
            private final int attributes;
            private final long createTime;
            private final long lastWriteTime;
            private final long lastAccessTime;
            private final long size;
    
            TestInfo(int attributes, long createTime, long lastWriteTime, long lastAccessTime, long size) {
                this.attributes = attributes;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/DcerpcBinding.java

        }
    
        private final String proto;
        private Map<String, Object> options = null;
        private final String server;
        private String endpoint = null;
        private UUID uuid = null;
        private int major;
        private int minor;
    
        DcerpcBinding(final String proto, final String server) {
            this.proto = proto;
            this.server = server;
        }
    
        /**
         * Get the protocol for this binding.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

            pendingOperations.clear();
        }
    
        /**
         * Calculate channel score for load balancing (higher is better)
         *
         * @return channel score
         */
        public int getScore() {
            int score = 100;
    
            // Adjust based on state
            if (state == ChannelState.ACTIVE)
                score -= 20; // Busy channel penalty
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top