<commit_before><?php

/**
 * @package   yii2-markdown
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright &copy; <NAME>, Krajee.com, 2015
 * @version   1.3.1
 */

namespace kartik\markdown;

use Yii;

/**
 * A Markdown conversion and editing module for Yii Framework 2.0
 *
 * @author <NAME> <<EMAIL>>
 * @since 1.0
 */
class Module extends \kartik\base\Module
{
    const MODULE = 'markdown';

    /**
     * @var string the controller action route used
     * for markdown editor preview
     */
    public $previewAction = '/markdown/parse/preview';

    /**
     * @var string the controller action route used
     * for downloading the markdown exported file
     */
    public $downloadAction = '/markdown/parse/download';

    /**
     * @var array the list of custom conversion patterns
     * - array key is the pattern to search
     * - array value is the pattern to replace
     */
    public $customConversion = [
        '<table>' => '<table class="table table-bordered table-striped">'
    ];
    
    /**
     * @var boolean|callable turn smarty temlates on/off. Can be a callable function with the $module passed as a parameter.
     */
    public $smarty = true;
    
    /**
     * @var array|null Smarty class configuration params
     */
    public $smartyParams;
    
    /**
     * @var boolean wether to add Yii::$app as a variable for Smarty templates.
     */
    public $smartyYiiApp = true;
    
    /**
     * @var boolean whether to add Yii::$app->params as smarty configs accessable via {#paramName#} in the editor
     */
    public $smartyYiiParams = true;

    /**
     * @var boolean whether to use PHP SmartyPants
     * to process the markdown output.
     */
    public $smartyPants = true;

    public function init()
    {<commit_msg>Correction for Smarty templates update<commit_after><?php

/**
 * @package   yii2-markdown
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright &copy; <NAME>, Krajee.com, 2015
 * @version   1.3.1
 */

namespace kartik\markdown;

use Yii;

/**
 * A Markdown conversion and editing module for Yii Framework 2.0
 *
 * @author <NAME> <<EMAIL>>
 * @since 1.0
 */
class Module extends \kartik\base\Module
{
    const MODULE = 'markdown';

    /**
     * @var string the controller action route used
     * for markdown editor preview
     */
    public $previewAction = '/markdown/parse/preview';

    /**
     * @var string the controller action route used
     * for downloading the markdown exported file
     */
    public $downloadAction = '/markdown/parse/download';

    /**
     * @var array the list of custom conversion patterns
     * - array key is the pattern to search
     * - array value is the pattern to replace
     */
    public $customConversion = [
        '<table>' => '<table class="table table-bordered table-striped">'
    ];
    
    /**
     * @var boolean|callable turn smarty temlates on/off. Can be a callable function with the $module passed as a parameter.
     */
    public $smarty = false;
    
    /**
     * @var array|null Smarty class configuration params
     */
    public $smartyParams;
    
    /**
     * @var boolean wether to add Yii::$app as a variable for Smarty templates.
     */
    public $smartyYiiApp = false;
    
    /**
     * @var boolean whether to add Yii::$app->params as smarty configs accessable via {#paramName#} in the editor
     */
    public $smartyYiiParams = false;

    /**
     * @var boolean whether to use PHP SmartyPants
     * to process the markdown output.
     */
    public $smartyPants = true;

    public function init()
    {
{'fraction_non_alphanumeric': 0.11166945840312674, 'fraction_numerical': 0.006700167504187605, 'mean_word_length': 2.4352828379674016, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5575185', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1050, 'n_words': 362}