<commit_before><?php
/**
 * Created by PhpStorm.
 * User: loveorigami
 * Date: 20/3/16
 */

namespace lo\modules\noty\controllers;

use yii\web\Controller;
use yii\helpers\Json;
use lo\modules\noty\widgets\Wrapper;

class DefaultController extends Controller
{

    public function actionIndex()
    {
        $layerClass = \Yii::$app->request->post('layerClass');
        $options = \Yii::$app->request->post('options');

        $layerClass = str_replace('"', '', $layerClass);

        $wrapper = new Wrapper([
            'layerClass' => $layerClass,
            'options' => Json::decode($options)
        ]);

        echo $wrapper->ajaxCallback();
    }

} <commit_msg>trim quotes<commit_after><?php
/**
 * Created by PhpStorm.
 * User: loveorigami
 * Date: 20/3/16
 */

namespace lo\modules\noty\controllers;

use yii\web\Controller;
use yii\helpers\Json;
use lo\modules\noty\widgets\Wrapper;

class DefaultController extends Controller
{

    public function actionIndex()
    {
        $layerClass = \Yii::$app->request->post('layerClass');
        $options = \Yii::$app->request->post('options');

        $layerClass = trim($layerClass, '"');

        $wrapper = new Wrapper([
            'layerClass' => $layerClass,
            'options' => Json::decode($options)
        ]);

        echo $wrapper->ajaxCallback();
    }

} 
{'fraction_non_alphanumeric': 0.16206123973114264, 'fraction_numerical': 0.0074682598954443615, 'mean_word_length': 2.8176638176638176, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '394904', 'n_tokens_mistral': 425, 'n_tokens_neox': 416, 'n_words': 78}