<commit_before><?php
namespace CsvMigrations\Parser\Csv;

use CsvMigrations\Parser\AbstractParser;
use League\Csv\Reader;

abstract class AbstractCsvParser extends AbstractParser
{
    /**
     * Mode to use for opening CSV files
     */
    protected $open_mode = 'r';

     /**
     * Get headers from path
     *
     * @param string $path Path to file
     * @return array
     */
    public function getHeadersFromPath($path)
    {
        $result = [];

        $this->validatePath($path);

        $reader = Reader::createFromPath($path, $this->open_mode);
        $result = $reader->fetchOne();<commit_msg>Coding style fix<commit_after><?php
namespace CsvMigrations\Parser\Csv;

use CsvMigrations\Parser\AbstractParser;
use League\Csv\Reader;

abstract class AbstractCsvParser extends AbstractParser
{
    /**
     * Mode to use for opening CSV files
     */
    protected $open_mode = 'r';

    /**
     * Get headers from path
     *
     * @param string $path Path to file
     * @return array
     */
    public function getHeadersFromPath($path)
    {
        $result = [];

        $this->validatePath($path);

        $reader = Reader::createFromPath($path, $this->open_mode);
        $result = $reader->fetchOne();
{'fraction_non_alphanumeric': 0.12032520325203253, 'fraction_numerical': 0.0, 'mean_word_length': 2.7078313253012047, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2539669', 'n_tokens_mistral': 372, 'n_tokens_neox': 363, 'n_words': 89}