<commit_before><?php
/**
 * Configuration Reader
 * This script contains an helper to read configuration files
 *
 * @license MIT
 * @copyright 2015 <NAME>
 */
declare(strict_types=1);

namespace Apine\Core;

use Apine\Core\Json\JsonStore;

/**
 * Configuration Reader
 * Read and write project's configuration file
 *
 * @author <NAME> <<EMAIL>>
 * @package Apine\Core
 */
final class Config
{
    /**
     * Path to the config file
     *
     * @var string
     */
    private $path;
    
    /**
     * Setting strings for the file
     *
     * @var object
     */
    private $settings;
    
    /**
     * Construct the Configuration Reader handler
     * Extract string from the configuration file
     *
     * @param string $a_path
     *
     * @throws \Exception If file not found
     */
    public function __construct(string $a_path)
    {
        try {
            $this->path = $a_path;
            $this->settings = JsonStore::get($a_path);
        } catch (\Exception $e) {<commit_msg>Update PHPdoc for Config<commit_after><?php
/**
 * Configuration Reader
 * This script contains an helper to read configuration files
 *
 * @license MIT
 * @copyright 2015 <NAME>
 */
declare(strict_types=1);

namespace Apine\Core;

use Apine\Core\Json\Json;
use Apine\Core\Json\JsonStore;

/**
 * Configuration Reader
 * Read and write project's configuration file
 *
 * @author <NAME> <<EMAIL>>
 * @package Apine\Core
 */
final class Config
{
    /**
     * Path to the config file
     *
     * @var string
     */
    private $path;
    
    /**
     * Setting strings for the file
     *
     * @var Json
     */
    private $settings;
    
    /**
     * Construct the Configuration Reader handler
     * Extract string from the configuration file
     *
     * @param string $a_path
     *
     * @throws \Exception If file not found
     */
    public function __construct(string $a_path)
    {
        try {
            $this->path = $a_path;
            $this->settings = JsonStore::get($a_path);
        } catch (\Exception $e) {
{'fraction_non_alphanumeric': 0.11355849241311797, 'fraction_numerical': 0.004894762604013705, 'mean_word_length': 2.2188976377952754, 'pattern_counts': {'":': 0, '<': 13, '<?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': '4968844', 'n_tokens_mistral': 612, 'n_tokens_neox': 593, 'n_words': 181}