<commit_before><?php

namespace Rs\VersionEye\Authentication;

/**
 * RubyConfigFileToken.
 *
 * @author <NAME> <<EMAIL>>
 */
class RubyConfigFileToken implements Token
{
    private $file;

    /**
     * @param string $file
     */
    public function __construct($file = null)
    {
        if (!$file) {
            $file = $_SERVER['HOME'] . DIRECTORY_SEPARATOR . '.veye.rc';
        }

        $this->file = $file;
    }

    /**
     * {@inheritdoc}
     */
    public function read()
    {
        if (!is_readable($this->file)) {
            return;
        }

        $data = file_get_contents($this->file);
        $data = parse_ini_string(str_replace([': ', ':'], ['= ', ''], $data)); //stupid convert from .rc to .ini

        if (isset($data['api_key']) && $data['api_key']) {
            return trim($data['api_key']);<commit_msg>scrutinizer fix<commit_after><?php

namespace Rs\VersionEye\Authentication;

/**
 * RubyConfigFileToken.
 *
 * @author <NAME> <<EMAIL>>
 */
class RubyConfigFileToken implements Token
{
    private $file;

    /**
     * @param string $file
     */
    public function __construct($file = null)
    {
        if (null === $file) {
            $file = $_SERVER['HOME'] . DIRECTORY_SEPARATOR . '.veye.rc';
        }

        $this->file = $file;
    }

    /**
     * {@inheritdoc}
     */
    public function read()
    {
        if (!is_readable($this->file)) {
            return;
        }

        $data = file_get_contents($this->file);
        $data = parse_ini_string(str_replace([': ', ':'], ['= ', ''], $data)); //stupid convert from .rc to .ini

        if (isset($data['api_key']) && $data['api_key']) {
            return trim($data['api_key']);
{'fraction_non_alphanumeric': 0.18235294117647058, 'fraction_numerical': 0.0, 'mean_word_length': 2.173507462686567, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '2967843', 'n_tokens_mistral': 548, 'n_tokens_neox': 532, 'n_words': 103}