test_class.declarator: COMPRESSION_METHOD = 8
test_class.modifier: private static final
test_class.original_string: private static final int COMPRESSION_METHOD = 8;
test_class.type: int
test_class.var_name: COMPRESSION_METHOD
test_class.declarator: CRC32 = 123
test_class.modifier: private static final
test_class.original_string: private static final long CRC32 = 123;
test_class.type: long
test_class.var_name: CRC32
test_class.declarator: COMPRESSED_SIZE = 456
test_class.modifier: private static final
test_class.original_string: private static final long COMPRESSED_SIZE = 456;
test_class.type: long
test_class.var_name: COMPRESSED_SIZE
test_class.declarator: UNCOMPRESSED_SIZE = 789
test_class.modifier: private static final
test_class.original_string: private static final long UNCOMPRESSED_SIZE = 789;
test_class.type: long
test_class.var_name: UNCOMPRESSED_SIZE
test_class.declarator: FILE_NAME_BYTES = new byte[] {'f', 'o', 'o', '.', 'b', 'a', 'r'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] FILE_NAME_BYTES = new byte[] {'f', 'o', 'o', '.', 'b', 'a', 'r'};
test_class.type: byte[]
test_class.var_name: FILE_NAME_BYTES
test_class.declarator: GENERAL_PURPOSE_BIT_FLAG_11 = true
test_class.modifier: private static final
test_class.original_string: private static final boolean GENERAL_PURPOSE_BIT_FLAG_11 = true;
test_class.type: boolean
test_class.var_name: GENERAL_PURPOSE_BIT_FLAG_11
test_class.declarator: FILE_OFFSET_OF_LOCAL_ENTRY = 1337
test_class.modifier: private static final
test_class.original_string: private static final long FILE_OFFSET_OF_LOCAL_ENTRY = 1337;
test_class.type: long
test_class.var_name: FILE_OFFSET_OF_LOCAL_ENTRY
test_class.declarator: FILE_OFFSET_OF_COMPRESSED_DATA = 2674
test_class.modifier: private static final
test_class.original_string: private static final long FILE_OFFSET_OF_COMPRESSED_DATA = 2674;
test_class.type: long
test_class.var_name: FILE_OFFSET_OF_COMPRESSED_DATA
test_class.declarator: defaultEntry
test_class.modifier: private
test_class.original_string: private MinimalZipEntry defaultEntry;
test_class.type: MinimalZipEntry
test_class.var_name: defaultEntry
test_class.declarator: clonedDefaultEntry
test_class.modifier: private
test_class.original_string: private MinimalZipEntry clonedDefaultEntry;
test_class.type: MinimalZipEntry
test_class.var_name: clonedDefaultEntry
test_class.declarator: alteredCompressionMethod
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredCompressionMethod;
test_class.type: MinimalZipEntry
test_class.var_name: alteredCompressionMethod
test_class.declarator: alteredCrc32
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredCrc32;
test_class.type: MinimalZipEntry
test_class.var_name: alteredCrc32
test_class.declarator: alteredCompressedSize
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredCompressedSize;
test_class.type: MinimalZipEntry
test_class.var_name: alteredCompressedSize
test_class.declarator: alteredUncompressedSize
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredUncompressedSize;
test_class.type: MinimalZipEntry
test_class.var_name: alteredUncompressedSize
test_class.declarator: alteredFileNameBytes
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredFileNameBytes;
test_class.type: MinimalZipEntry
test_class.var_name: alteredFileNameBytes
test_class.declarator: alteredGeneralPurposeBitFlag11
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredGeneralPurposeBitFlag11;
test_class.type: MinimalZipEntry
test_class.var_name: alteredGeneralPurposeBitFlag11
test_class.declarator: alteredOffsetOfLocalEntry
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredOffsetOfLocalEntry;
test_class.type: MinimalZipEntry
test_class.var_name: alteredOffsetOfLocalEntry
test_class.declarator: alteredFileOffsetOfCompressedData
test_class.modifier: private
test_class.original_string: private MinimalZipEntry alteredFileOffsetOfCompressedData;
test_class.type: MinimalZipEntry
test_class.var_name: alteredFileOffsetOfCompressedData
test_class.declarator: allMutations
test_class.modifier: private
test_class.original_string: private List<MinimalZipEntry> allMutations;
test_class.type: List<MinimalZipEntry>
test_class.var_name: allMutations
test_class.file: feya/libraries/archive_diff/diff.generator/src/test/java/com/google/archivepatcher/generator/MinimalZipEntryTest.java
test_class.identifier: MinimalZipEntryTest
test_case.body: @Test
    public void testIsDeflateCompressed() {
      // Compression method == 8, and uncompressed size != compressed size
      Assert.assertTrue(defaultEntry.isDeflateCompressed());
      // Compression method == 8, but uncompressed size == compressed size (ie, STOR'ed entry)
      MinimalZipEntry stored =
          new MinimalZipEntry(
              COMPRESSION_METHOD,
              CRC32,
              1000,
              1000,
              FILE_NAME_BYTES,
              GENERAL_PURPOSE_BIT_FLAG_11,
              FILE_OFFSET_OF_LOCAL_ENTRY);
      Assert.assertFalse(stored.isDeflateCompressed());
      // Compression method != 8 (obviously not deflate)
      Assert.assertFalse(alteredCompressionMethod.isDeflateCompressed());
    }
test_case.class_method_signature: MinimalZipEntryTest.testIsDeflateCompressed()
test_case.full_signature: @Test public void testIsDeflateCompressed()
test_case.identifier: testIsDeflateCompressed
test_case.invocations: assertTrue isDeflateCompressed assertFalse isDeflateCompressed assertFalse isDeflateCompressed
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsDeflateCompressed()
focal_class.declarator: compressionMethod
focal_class.modifier: private final
focal_class.original_string: private final int compressionMethod;
focal_class.type: int
focal_class.var_name: compressionMethod
focal_class.declarator: crc32OfUncompressedData
focal_class.modifier: private final
focal_class.original_string: private final long crc32OfUncompressedData;
focal_class.type: long
focal_class.var_name: crc32OfUncompressedData
focal_class.declarator: compressedSize
focal_class.modifier: private final
focal_class.original_string: private final long compressedSize;
focal_class.type: long
focal_class.var_name: compressedSize
focal_class.declarator: uncompressedSize
focal_class.modifier: private final
focal_class.original_string: private final long uncompressedSize;
focal_class.type: long
focal_class.var_name: uncompressedSize
focal_class.declarator: fileNameBytes
focal_class.modifier: private final
focal_class.original_string: private final byte[] fileNameBytes;
focal_class.type: byte[]
focal_class.var_name: fileNameBytes
focal_class.declarator: generalPurposeFlagBit11
focal_class.modifier: private final
focal_class.original_string: private final boolean generalPurposeFlagBit11;
focal_class.type: boolean
focal_class.var_name: generalPurposeFlagBit11
focal_class.declarator: fileOffsetOfLocalEntry
focal_class.modifier: private final
focal_class.original_string: private final long fileOffsetOfLocalEntry;
focal_class.type: long
focal_class.var_name: fileOffsetOfLocalEntry
focal_class.declarator: fileOffsetOfCompressedData = -1
focal_class.modifier: private
focal_class.original_string: private long fileOffsetOfCompressedData = -1;
focal_class.type: long
focal_class.var_name: fileOffsetOfCompressedData
focal_class.file: feya/libraries/archive_diff/diff.generator/src/main/java/com/google/archivepatcher/generator/MinimalZipEntry.java
focal_class.identifier: MinimalZipEntry
focal_class.class_method_signature: MinimalZipEntry.MinimalZipEntry(
        int compressionMethod,
        long crc32OfUncompressedData,
        long compressedSize,
        long uncompressedSize,
        byte[] fileNameBytes,
        boolean generalPurposeFlagBit11,
        long fileOffsetOfLocalEntry)
focal_class.full_signature: public  MinimalZipEntry(
        int compressionMethod,
        long crc32OfUncompressedData,
        long compressedSize,
        long uncompressedSize,
        byte[] fileNameBytes,
        boolean generalPurposeFlagBit11,
        long fileOffsetOfLocalEntry)
focal_class.identifier: MinimalZipEntry
focal_class.modifiers: public
focal_class.parameters: (
        int compressionMethod,
        long crc32OfUncompressedData,
        long compressedSize,
        long uncompressedSize,
        byte[] fileNameBytes,
        boolean generalPurposeFlagBit11,
        long fileOffsetOfLocalEntry)
focal_class.signature:  MinimalZipEntry(
        int compressionMethod,
        long crc32OfUncompressedData,
        long compressedSize,
        long uncompressedSize,
        byte[] fileNameBytes,
        boolean generalPurposeFlagBit11,
        long fileOffsetOfLocalEntry)
focal_class.class_method_signature: MinimalZipEntry.setFileOffsetOfCompressedData(long offset)
focal_class.full_signature: public void setFileOffsetOfCompressedData(long offset)
focal_class.identifier: setFileOffsetOfCompressedData
focal_class.modifiers: public
focal_class.parameters: (long offset)
focal_class.return: void
focal_class.signature: void setFileOffsetOfCompressedData(long offset)
focal_class.class_method_signature: MinimalZipEntry.getCompressionMethod()
focal_class.full_signature: public int getCompressionMethod()
focal_class.identifier: getCompressionMethod
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCompressionMethod()
focal_class.class_method_signature: MinimalZipEntry.getCrc32OfUncompressedData()
focal_class.full_signature: public long getCrc32OfUncompressedData()
focal_class.identifier: getCrc32OfUncompressedData
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCrc32OfUncompressedData()
focal_class.class_method_signature: MinimalZipEntry.getCompressedSize()
focal_class.full_signature: public long getCompressedSize()
focal_class.identifier: getCompressedSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCompressedSize()
focal_class.class_method_signature: MinimalZipEntry.getUncompressedSize()
focal_class.full_signature: public long getUncompressedSize()
focal_class.identifier: getUncompressedSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getUncompressedSize()
focal_class.class_method_signature: MinimalZipEntry.getFileNameBytes()
focal_class.full_signature: public byte[] getFileNameBytes()
focal_class.identifier: getFileNameBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getFileNameBytes()
focal_class.class_method_signature: MinimalZipEntry.getFileName()
focal_class.full_signature: public String getFileName()
focal_class.identifier: getFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFileName()
focal_class.class_method_signature: MinimalZipEntry.getGeneralPurposeFlagBit11()
focal_class.full_signature: public boolean getGeneralPurposeFlagBit11()
focal_class.identifier: getGeneralPurposeFlagBit11
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean getGeneralPurposeFlagBit11()
focal_class.class_method_signature: MinimalZipEntry.getFileOffsetOfLocalEntry()
focal_class.full_signature: public long getFileOffsetOfLocalEntry()
focal_class.identifier: getFileOffsetOfLocalEntry
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getFileOffsetOfLocalEntry()
focal_class.class_method_signature: MinimalZipEntry.getFileOffsetOfCompressedData()
focal_class.full_signature: public long getFileOffsetOfCompressedData()
focal_class.identifier: getFileOffsetOfCompressedData
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getFileOffsetOfCompressedData()
focal_class.class_method_signature: MinimalZipEntry.isDeflateCompressed()
focal_class.full_signature: public boolean isDeflateCompressed()
focal_class.identifier: isDeflateCompressed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDeflateCompressed()
focal_class.class_method_signature: MinimalZipEntry.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: MinimalZipEntry.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_method.body: public boolean isDeflateCompressed() {
      // 8 is deflate according to the zip spec.
      if (getCompressionMethod() != 8) {
        return false;
      }
      // Some tools may list compression method deflate but set level to zero (store), so they will
      // have a compressed size equal to the uncompresesd size. Don't consider such things to be
      // compressed, even if they are "deflated".
      return getCompressedSize() != getUncompressedSize();
    }
focal_method.class_method_signature: MinimalZipEntry.isDeflateCompressed()
focal_method.full_signature: public boolean isDeflateCompressed()
focal_method.identifier: isDeflateCompressed
focal_method.invocations: getCompressionMethod getCompressedSize getUncompressedSize
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isDeflateCompressed()