Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1961 - 1970 of 2,143 for ELSE (0.03 sec)

  1. src/archive/tar/tar_test.go

    	}
    	if len(f.ops) == 0 {
    		return 0, io.EOF
    	}
    	s, ok := f.ops[0].(string)
    	if !ok {
    		return 0, errors.New("unexpected Read operation")
    	}
    
    	n := copy(b, s)
    	if len(s) > n {
    		f.ops[0] = s[n:]
    	} else {
    		f.ops = f.ops[1:]
    	}
    	f.pos += int64(len(b))
    	return n, nil
    }
    
    func (f *testFile) Write(b []byte) (int, error) {
    	if len(b) == 0 {
    		return 0, nil
    	}
    	if len(f.ops) == 0 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

              // same freshness, generate again.
              return invokeGeneratorMethod(emptyGenerate);
            } else {
              // Cannot use empty generator. Proceed with other generators.
            }
          } else {
            // never generated empty instance for this type before.
            Object emptyInstance = invokeGeneratorMethod(emptyGenerate);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Converter.java

          return a == null ? null : checkNotNull(doForward(a));
        } else {
          return unsafeDoForward(a);
        }
      }
    
      @CheckForNull
      A correctedDoBackward(@CheckForNull B b) {
        if (handleNullAutomatically) {
          // TODO(kevinb): we shouldn't be checking for a null result at runtime. Assert?
          return b == null ? null : checkNotNull(doBackward(b));
        } else {
          return unsafeDoBackward(b);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInLong(expectedResult)) {
            assertEquals(expectedResult.longValue(), LongMath.ceilingPowerOfTwo(x));
          } else {
            assertThrows(ArithmeticException.class, () -> LongMath.ceilingPowerOfTwo(x));
          }
        }
      }
    
      public void testFloorPowerOfTwo() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                                systemHelper.getCurrentTimeAsLong() - execTime, MemoryUtil.byteCountToDisplaySize(docList.getContentSize()),
                                MemoryUtil.getMemoryUsageLog());
                    } else {
                        logger.info("Sent {}  docs (Doc:{send {}ms}, {})", docList.size(), systemHelper.getCurrentTimeAsLong() - execTime,
                                MemoryUtil.getMemoryUsageLog());
                    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

        // Slightly different encoding
        if (platform.isBouncyCastle()) {
          assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(bcPkcs8Pem)
        } else {
          assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(pkcs8Pem)
        }
        val certificate = heldCertificate.certificate
        assertThat(certificate.notBefore.time).isEqualTo(5000L)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

                org.apache.maven.api.plugin.descriptor.PluginDescriptor pd =
                        new PluginDescriptorStaxReader().read(xsr, true);
                return new PluginDescriptor(pd);
            } else {
                XmlNode node = XmlNodeStaxBuilder.build(xsr, true, null);
                PlexusConfiguration cfg = XmlPlexusConfiguration.toPlexusConfiguration(node);
                return build(source, cfg);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    ```groovy
    public interface NewThing {
        Property<String> getSomeProperty()
    }
    
    // Unacceptable
    String value
    if (!getSomeProperty().isPresent()) {
       value = "convention"
    } else {
       value = getSomeProperty().get()
    }
    
    // Also unacceptable
    String value = getSomeProperty().getOrElse("convention")
    
    // This should be always:
    String value = getSomeProperty().get()
    ```
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 15 20:00:57 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin.go

    	if err := log.Configure(GetLoggingOptions(conf)); err != nil {
    		log.Error("Failed to configure istio-cni logging")
    	}
    
    	var loggedPrevResult any
    	if conf.PrevResult == nil {
    		loggedPrevResult = "none"
    	} else {
    		loggedPrevResult = conf.PrevResult
    	}
    	log.WithLabels("if", args.IfName).Debugf("istio-cni CmdAdd config: %+v", conf)
    	log.Debugf("istio-cni CmdAdd previous result: %+v", loggedPrevResult)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

      public static void assertContains(Iterable<?> actual, Object expected) {
        boolean contained = false;
        if (actual instanceof Collection) {
          contained = ((Collection<?>) actual).contains(expected);
        } else {
          for (Object o : actual) {
            if (equal(o, expected)) {
              contained = true;
              break;
            }
          }
        }
    
        if (!contained) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top