Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for counting (0.2 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

        elements.add(null);
        collection = getSubjectGenerator().create(elements.toArray());
        assertEquals(
            "A Set's hashCode() should be the sum of those of its elements (with "
                + "a null element counting as having a hash of zero).",
            expectedHashCode,
            getSet().hashCode());
      }
    
      /**
       * Returns the {@link Method} instances for the test methods in this class which call {@code
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CountingOutputStream.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class CountingOutputStream extends FilterOutputStream {
    
      private long count;
    
      /**
       * Wraps another output stream, counting the number of bytes written.
       *
       * @param out the output stream to be wrapped
       */
      public CountingOutputStream(OutputStream out) {
        super(checkNotNull(out));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/abstract_context.h

      //
      // WARNING: The destructor of this class is marked as protected to disallow
      // clients from directly destroying this object since it may manage its own
      // lifetime through ref counting. Thus clients MUST call Release() in order to
      // destroy an instance of this class.
      virtual void Release() = 0;
    
      // Creates an operation builder and ties it to this context.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/CountingInputStream.java

    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class CountingInputStream extends FilterInputStream {
    
      private long count;
      private long mark = -1;
    
      /**
       * Wraps another input stream, counting the number of bytes read.
       *
       * @param in the input stream to be wrapped
       */
      public CountingInputStream(InputStream in) {
        super(checkNotNull(in));
      }
    
      /** Returns the number of bytes read. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

        }
    
        int writeParameterWordsWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            dst[dstIndex++] = (byte)0x00;
            // name length without counting null termination
            namelen_index = dstIndex;
            dstIndex += 2;
            writeInt4( flags0, dst, dstIndex );
            dstIndex += 4;
            writeInt4( rootDirectoryFid, dst, dstIndex );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

        elements.add(null);
        collection = getSubjectGenerator().create(elements.toArray());
        assertEquals(
            "A Set's hashCode() should be the sum of those of its elements (with "
                + "a null element counting as having a hash of zero).",
            expectedHashCode,
            getSet().hashCode());
      }
    
      /**
       * Returns the {@link Method} instances for the test methods in this class which call {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

        abstract void apply(T collection, Object query);
    
        abstract double expectedAsymptotic(int n);
      }
    
      /**
       * Returns a list of objects with the same hash code, of size 2^power, counting calls to equals,
       * hashCode, and compareTo in counter.
       */
      static List<CountsHashCodeAndEquals> createAdversarialInput(int power, CallsCounter counter) {
        String str1 = "Aa";
        String str2 = "BB";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java

            Set<String> duplicateArtifactIds = projectBuildList.keySet().stream()
                    .map(MavenProject::getArtifactId)
                    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()))
                    .entrySet()
                    .stream()
                    .filter(p -> p.getValue() > 1)
                    .map(Map.Entry::getKey)
                    .collect(Collectors.toSet());
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/FormBody.kt

      override fun writeTo(sink: BufferedSink) {
        writeOrCountBytes(sink, false)
      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method
       * do double-duty to make sure the counting and content are consistent, particularly when it comes
       * to awkward operations like measuring the encoded length of header strings, or the
       * length-in-digits of an encoded integer.
       */
      private fun writeOrCountBytes(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/abstract_operation.h

      //
      // WARNING: The destructor of this class is marked as protected to disallow
      // clients from directly destroying this object since it may manage it's own
      // lifetime through ref counting. Thus this must be allocated on the heap and
      // clients MUST call Release() in order to destroy an instance of this class.
      virtual void Release() = 0;
    
      virtual Status Reset(const char* op, const char* raw_device_name) = 0;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
Back to top