<commit_before><?php
/**
 * Zip class in /BazeZF/Archive
 *
 * @category   BazeZF
 * @package    BazeZF_Archive
 * @copyright  Copyright (c) 2008 BazeZF
 * @author     <NAME> (hthetiot)
 *
 * Archive Builder for Zip Format.
 */

class BaseZF_Archive_Zip extends BaseZF_Archive_Abstract
{
    /**
     * Mime Type.
     *
     * @var string
     */
    protected static $_mimeType = 'application/zip';

    /**
     * Get archive format mime type
     *
     * @return string archive mime type
     */
    public static function getFileMimeType()
    {
        return self::$_mimeType;
    }

    /**
     * Build archive for current format
     */
    protected function _buildArchive()
    {
        $files = 0;
        $offset = 0;
        $central = '';

        if (!empty ($this->_options['sfx']))
            if ($fp = fopen($this->_options['sfx'], "rb"))
            {
                $temp = fread($fp, filesize($this->_options['sfx']));
                fclose($fp);
                $this->_addArchiveData($temp);
                $offset += strlen($temp);
                unset ($temp);
            } else {
                throw new BaseZF_Archive_Exception(sprintf('Could not open sfx module from %s."', $this->_options['sfx']));
            }

        $pwd = getcwd();

        foreach ($this->_files as $current) {
<commit_msg>fix typo for Coding standart<commit_after><?php
/**
 * Zip class in /BazeZF/Archive
 *
 * @category   BazeZF
 * @package    BazeZF_Archive
 * @copyright  Copyright (c) 2008 BazeZF
 * @author     <NAME> (hthetiot)
 *
 * Archive Builder for Zip Format.
 */

class BaseZF_Archive_Zip extends BaseZF_Archive_Abstract
{
    /**
     * Mime Type.
     *
     * @var string
     */
    protected static $_mimeType = 'application/zip';

    /**
     * Get archive format mime type
     *
     * @return string archive mime type
     */
    public static function getFileMimeType()
    {
        return self::$_mimeType;
    }

    /**
     * Build archive for current format
     */
    protected function _buildArchive()
    {
        $files = 0;
        $offset = 0;
        $central = '';

        if (!empty ($this->_options['sfx']))
            if ($fp = fopen($this->_options['sfx'], "rb")) {
                $temp = fread($fp, filesize($this->_options['sfx']));
                fclose($fp);
                $this->_addArchiveData($temp);
                $offset += strlen($temp);
                unset ($temp);
            } else {
                throw new BaseZF_Archive_Exception(sprintf('Could not open sfx module from %s."', $this->_options['sfx']));
            }

        $pwd = getcwd();

        foreach ($this->_files as $current) {

{'fraction_non_alphanumeric': 0.13800820589332338, 'fraction_numerical': 0.004475941812756434, 'mean_word_length': 1.8869752421959096, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6070162', 'n_tokens_mistral': 852, 'n_tokens_neox': 795, 'n_words': 196}