<commit_before>Lootils Archiver
==============

An abstraction library to interface with file archives.

[![Build Status](https://secure.travis-ci.org/RobLoach/archiver.png)](http://travis-ci.org/RobLoach/archiver)


Installation
-----------

Use [Composer](http://getcomposer.org) to retrieve Archiver's dependencies:

    curl -s http://getcomposer.org/installer | php
    php composer.phar install


Usage
-----

Create a zip file:

    $zip = \Lootils\Archiver\ZipArchive('myarchive.zip');
    $zip->add('myfile.png');


Extract a .tar archive:

    $tar = \Lootils\Archiver\TarArchive('myarchive.tar');
    $tar->extract('destination');


List the contents of an archive:

    $tar = \Lootils\Archiver\TarArchive('myarchive.tar');
    $files = $tar->contents();
    foreach ($files as $filename => $data) {
       echo $filename . ' ';
    }


Development
----------

To install development tools, run the following:

    curl -s http://getcomposer.org/installer | php
    php composer.phar install --dev

Run tests:

    php vendor/bin/phpunit

Fix code to code standards:

    php vendor/bin/php-cs-fixer fix .

Generate code documentation:

   php vendor/bin/sami.php render src/sami.php


License
------

Lootils Archiver is licensed under the MIT License - see the LICENSE file for
details.<commit_msg>Update README.md with the new build link.<commit_after>Lootils Archiver
==============

An abstraction library to interface with file archives.

[![Build Status](https://secure.travis-ci.org/lootils/archiver.png?branch=master)](http://travis-ci.org/lootils/archiver)


Installation
-----------

Use [Composer](http://getcomposer.org) to retrieve Archiver's dependencies:

    curl -s http://getcomposer.org/installer | php
    php composer.phar install


Usage
-----

Create a zip file:

    $zip = \Lootils\Archiver\ZipArchive('myarchive.zip');
    $zip->add('myfile.png');


Extract a .tar archive:

    $tar = \Lootils\Archiver\TarArchive('myarchive.tar');
    $tar->extract('destination');


List the contents of an archive:

    $tar = \Lootils\Archiver\TarArchive('myarchive.tar');
    $files = $tar->contents();
    foreach ($files as $filename => $data) {
       echo $filename . ' ';
    }


Development
----------

To install development tools, run the following:

    curl -s http://getcomposer.org/installer | php
    php composer.phar install --dev

Run tests:

    php vendor/bin/phpunit

Fix code to code standards:

    php vendor/bin/php-cs-fixer fix .

Generate code documentation:

    php vendor/bin/sami.php render src/sami.php


License
------

Lootils Archiver is licensed under the MIT License - see the LICENSE file for
details.
{'fraction_non_alphanumeric': 0.150093808630394, 'fraction_numerical': 0.0, 'mean_word_length': 3.139751552795031, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3882257', 'n_tokens_mistral': 887, 'n_tokens_neox': 824, 'n_words': 221}