<commit_before><?php

class iniReader
{
    // private members  ///////////////////////////////////////////////////////////////////////////////////////
    const INI_STRUCTURE = "download_url,md5";

    private $file_name = "";
    private $ini_content = array();


    public function __construct($filename_input)
    {
        if (is_readable($filename_input)) {
            $this->file_name = $filename_input;
            $temp_read_content = $this->readIniFile();
            $this->importIniData($temp_read_content);
        } else throw new Exception ("Could not read " . $this->$filename_input);
    }

    // Functions //////////////////////////////////////////////////////////////////////////////////////////
    private function readIniFile() {
        if ($this->file_name != '') {
            return parse_ini_file($this->file_name, TRUE);
        } else throw new Exception ("Could not parse " . $this->file_name);
    }

    private function importIniData($content) {
        $split_keys = explode(',', self::INI_STRUCTURE);
        foreach ($content as $key => $value) {
            $this->ini_content[$key] = array();
            foreach ($value as $ext => $data) {
                $temp_split = explode(',', $data);
                $temp_array['os'] = $ext;
                $temp_array['version'] = $key;
                for ($index = 0; $index < count($split_keys); $index++) {
                    $temp_array[$split_keys[$index]] = $temp_split[$index];
                }
                $this->ini_content[$key][$ext] = $temp_array;
            }
        }
    }



    // Setters & getters	///////////////////////////////////////////////////////////////////////////////////////
    public function getFfile_name () {
        return $this->file_name;
    }

    public function getIni_content() {
        return $this->ini_content;
    }

<commit_msg>Removed unneeded comments<commit_after><?php

class iniReader
{
    const INI_STRUCTURE = "download_url,md5";

    private $file_name = "";
    private $ini_content = array();


    public function __construct($filename_input)
    {
        if (is_readable($filename_input)) {
            $this->file_name = $filename_input;
            $temp_read_content = $this->readIniFile();
            $this->importIniData($temp_read_content);
        } else throw new Exception ("Could not read " . $this->$filename_input);
    }

    private function readIniFile() {
        if ($this->file_name != '') {
            return parse_ini_file($this->file_name, TRUE);
        } else throw new Exception ("Could not parse " . $this->file_name);
    }

    private function importIniData($content) {
        $split_keys = explode(',', self::INI_STRUCTURE);
        foreach ($content as $key => $value) {
            $this->ini_content[$key] = array();
            foreach ($value as $ext => $data) {
                $temp_split = explode(',', $data);
                $temp_array['os'] = $ext;
                $temp_array['version'] = $key;
                for ($index = 0; $index < count($split_keys); $index++) {
                    $temp_array[$split_keys[$index]] = $temp_split[$index];
                }
                $this->ini_content[$key][$ext] = $temp_array;
            }
        }
    }


    public function getFfile_name () {
        return $this->file_name;
    }

    public function getIni_content() {
        return $this->ini_content;
    }
{'fraction_non_alphanumeric': 0.20930913348946137, 'fraction_numerical': 0.00117096018735363, 'mean_word_length': 1.6926713947990544, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 29, 'https://': 0, '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': '2007852', 'n_tokens_mistral': 958, 'n_tokens_neox': 924, 'n_words': 187}