code: private HashCalculationResult hashBuckets(byte[] fileWithoutSpaces, double bucketSize) throws IOException {
          // int(bucket_size) will round down the bucket_size: IE: 1.2 -> 1.0
          int bucketIntSize = (int) bucketSize;
  
          // Get bytes and calculate sha1
          byte[] mostSigBytes = Arrays.copyOfRange(fileWithoutSpaces, 0, bucketIntSize);
          int length = fileWithoutSpaces.length;
          byte[] leastSigBytes = Arrays.copyOfRange(fileWithoutSpaces, length - bucketIntSize, length);
          String fullFileHash = calculateByteArraySHA1(fileWithoutSpaces);
          String mostSigBitsHash = calculateByteArraySHA1(mostSigBytes);
          String leastSigBitsHash = calculateByteArraySHA1(leastSigBytes);
          return new HashCalculationResult(fullFileHash, mostSigBitsHash, leastSigBitsHash);
      }
docs: /* --- Private static methods ---