<commit_before><?php
/**
 * (c) shoptimax GmbH, Nürnberg
 *
 * @package   SmxMonolog
 * @author    shoptimax GmbH <<EMAIL>>
 * @copyright 2017 shoptimax GmbH
 * @link      http://www.shoptimax.de
 */

namespace Shoptimax\SmxMonolog\Log;

require_once dirname(__FILE__) . '/../vendor/autoload.php';

use Cascade\Cascade;
use Monolog\Logger as Logger;

class SmxMonolog
{
    /**
     * Logger Configuration
     *
     * @var SmxMonologConfig
     */
    protected $smxMonologConfig = null;

    /**
     * The available log levels,
     * coming straight from Monolog/Logger
     *
     * @var array
     */
    public static $aLogLevels = array();

    /**
     * Our current log level
     *
     * @var int
     */
    protected $logLevel = 0;<commit_msg>Check for path from inside vendor dir<commit_after><?php
/**
 * (c) shoptimax GmbH, Nürnberg
 *
 * @package   SmxMonolog
 * @author    shoptimax GmbH <<EMAIL>>
 * @copyright 2017 shoptimax GmbH
 * @link      http://www.shoptimax.de
 */

namespace Shoptimax\SmxMonolog\Log;

if (file_exists(dirname(__FILE__) . '/../vendor/autoload.php')) {
    include_once dirname(__FILE__) . '/../vendor/autoload.php';
} elseif (file_exists(dirname(__FILE__) . '/../../../../vendor/autoload.php')) {
    include_once dirname(__FILE__) . '/../../../../vendor/autoload.php';
}

use Cascade\Cascade;
use Monolog\Logger as Logger;

class SmxMonolog
{
    /**
     * Logger Configuration
     *
     * @var SmxMonologConfig
     */
    protected $smxMonologConfig = null;

    /**
     * The available log levels,
     * coming straight from Monolog/Logger
     *
     * @var array
     */
    public static $aLogLevels = array();

    /**
     * Our current log level
     *
     * @var int
     */
    protected $logLevel = 0;
{'fraction_non_alphanumeric': 0.14156285390713477, 'fraction_numerical': 0.0056625141562853904, 'mean_word_length': 2.411196911196911, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4694345', 'n_tokens_mistral': 604, 'n_tokens_neox': 577, 'n_words': 134}