Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1901 - 1910 of 2,189 for else_ (0.08 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

          when {
            this === NONE -> return other
            this is AggregateEventListener -> this.eventListeners
            else -> arrayOf(this)
          }
        val right =
          when {
            other === NONE -> return this
            other is AggregateEventListener -> other.eventListeners
            else -> arrayOf(other)
          }
    
        return AggregateEventListener(left + right)
      }
    
      fun interface Factory {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Tables.java

      }
    
      static boolean equalsImpl(Table<?, ?, ?> table, @Nullable Object obj) {
        if (obj == table) {
          return true;
        } else if (obj instanceof Table) {
          Table<?, ?, ?> that = (Table<?, ?, ?>) obj;
          return table.cellSet().equals(that.cellSet());
        } else {
          return false;
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Streams.java

        for (BaseStream<?, ?> stream : toClose) {
          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
          }
        }
        if (exception != null) {
          // Normally this is a RuntimeException that doesn't need sneakyThrow.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 36.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/math/DoubleMathTest.java

          int log2 = DoubleMath.log2(d, DOWN);
          if (d >= 1.0) {
            assertTrue(log2 >= 0);
            assertTrue(StrictMath.pow(2.0, log2) <= d);
            assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
          } else {
            assertTrue(log2 <= 0);
            assertTrue(StrictMath.pow(2.0, log2) >= d);
            assertTrue(StrictMath.pow(2.0, log2 - 1) < d);
          }
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 27.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/IntMathTest.java

          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInInt(expectedResult)) {
            assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x));
          } else {
            assertThrows(ArithmeticException.class, () -> IntMath.ceilingPowerOfTwo(x));
          }
        }
      }
    
      public void testFloorPowerOfTwo() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

            int hash2 = function.hashInt(key2).asInt();
            for (int k = 0; k < hashBits; k++) {
              if ((hash1 & (1 << k)) == (hash2 & (1 << k))) {
                same[k] += 1;
              } else {
                diff[k] += 1;
              }
            }
          }
          // measure probability and assert it's within margin of error
          for (int j = 0; j < hashBits; j++) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  7. schema/relationship_test.go

    )
    
    func checkStructRelation(t *testing.T, data interface{}, relations ...Relation) {
    	if s, err := schema.Parse(data, &sync.Map{}, schema.NamingStrategy{}); err != nil {
    		t.Errorf("Failed to parse schema, got error %v", err)
    	} else {
    		for _, rel := range relations {
    			checkSchemaRelation(t, s, rel)
    		}
    	}
    }
    
    func TestBelongsToOverrideForeignKey(t *testing.T) {
    	type Profile struct {
    		gorm.Model
    		Name string
    	}
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Aug 18 11:44:52 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  8. src/bytes/buffer.go

    		// slice. We only need m+n <= c to slide, but
    		// we instead let capacity get twice as large so we
    		// don't spend all our time copying.
    		copy(b.buf, b.buf[b.off:])
    	} else if c > maxInt-c-n {
    		panic(ErrTooLarge)
    	} else {
    		// Add b.off to account for b.buf[:b.off] being sliced off the front.
    		b.buf = growSlice(b.buf[b.off:], b.off+n)
    	}
    	// Restore b.off and len(b.buf).
    	b.off = 0
    	b.buf = b.buf[:m+n]
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

                if (days.length == 0) {
                    return true;
                }
                int value;
                if (day == 8) {
                    value = 1;
                } else {
                    value = day;
                }
                for (final int d : days) {
                    if (d == value) {
                        return true;
                    }
                }
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 10K bytes
    - Click Count (0)
  10. src/main/java/jcifs/util/SimpleCircuitBreaker.java

                    consecutiveFailures.set(1);
                    log.warn("Circuit breaker {} reopened due to failure in HALF_OPEN state", name);
                }
            } else if (current == State.CLOSED) {
                int failures = consecutiveFailures.incrementAndGet();
                if (failures >= failureThreshold) {
                    if (state.compareAndSet(State.CLOSED, State.OPEN)) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top