<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses(
    'io.archive.zip.ZipArchiveWriter',
    'io.archive.zip.ZipArchiveReader',
    'io.streams.OutputStream',
    'io.streams.InputStream'
  );

  /**
   * Zip archives hanadling
   *
   * Usage (creating a zip file)
   * ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   * <code>
   *   $z= ZipFile::create(new FileOutputStream(new File('dist.zip')));
   *   $z->addEntry(new ZipDirEntry('META-INF'));
   *   $e= $z->addEntry(new ZipFileEntry('META-INF/version.txt'));
   *   $e->getOutputStream()->write($contents);
   *   $z->close();
   * </code>
   *
   * Usage (reading a zip file)
   * ~~~~~~~~~~~~~~~~~~~~~~~~~~
   * <code>
   *   $z= ZipFile::open(new FileInputStream(new File('dist.zip')));
   *   foreach ($z->entries() as $entry) {
   *     if ($entry->isDirectory()) {
   *       // Create dir
   *     } else {
   *       // Extract
   *       Streams::readAll($entry->getInputStream());
   *     }
   *   }
   * </code>
   *
   * @see      http://www.pkware.com/documents/casestudies/APPNOTE.TXT
   * @purpose  Entry point class
   */
  abstract class ZipFile extends Object {
    
    /**<commit_msg>- QA: Add @test references<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses(
    'io.archive.zip.ZipArchiveWriter',
    'io.archive.zip.ZipArchiveReader',
    'io.streams.OutputStream',
    'io.streams.InputStream'
  );

  /**
   * Zip archives hanadling
   *
   * Usage (creating a zip file)
   * ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   * <code>
   *   $z= ZipFile::create(new FileOutputStream(new File('dist.zip')));
   *   $z->addEntry(new ZipDirEntry('META-INF'));
   *   $e= $z->addEntry(new ZipFileEntry('META-INF/version.txt'));
   *   $e->getOutputStream()->write($contents);
   *   $z->close();
   * </code>
   *
   * Usage (reading a zip file)
   * ~~~~~~~~~~~~~~~~~~~~~~~~~~
   * <code>
   *   $z= ZipFile::open(new FileInputStream(new File('dist.zip')));
   *   foreach ($z->entries() as $entry) {
   *     if ($entry->isDirectory()) {
   *       // Create dir
   *     } else {
   *       // Extract
   *       Streams::readAll($entry->getInputStream());
   *     }
   *   }
   * </code>
   *
   * @test     xp://net.xp_framework.unittest.io.archive.vendors.InfoZipZipFileTest
   * @test     xp://net.xp_framework.unittest.io.archive.vendors.WindowsZipFileTest
   * @test     xp://net.xp_framework.unittest.io.archive.MalformedZipFileTest
   * @see      http://www.pkware.com/documents/casestudies/APPNOTE.TXT
   * @purpose  Entry point class
   */
  abstract class ZipFile extends Object {
    
    /**
{'fraction_non_alphanumeric': 0.20974495622382947, 'fraction_numerical': 0.0, 'mean_word_length': 2.595075239398085, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1677939', 'n_tokens_mistral': 960, 'n_tokens_neox': 899, 'n_words': 148}