<commit_before><?php

/**
 * Morfy Charts Plugin
 *
 * (c) <NAME> / Awilum <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

// Add Action
Morfy::addAction('theme_header', function () {
    echo('<script type="text/javascript" src="https://www.google.com/jsapi"></script>');
});

// Add Shortcode {chart}
Shortcode::add('chart', function ($attributes) {

    // Extract
    extract($attributes);
<commit_msg>Updates for Morfy 2<commit_after><?php

/**
 * Morfy Charts Plugin
 *
 * (c) <NAME> / Awilum <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

// Add Action
Action::add('theme_header', function () {
    echo('<script type="text/javascript" src="https://www.google.com/jsapi"></script>');
});

// Add Shortcode {chart}
Shortcode::add('chart', function ($attributes) {

    // Extract
    extract($attributes);

{'fraction_non_alphanumeric': 0.16683217477656406, 'fraction_numerical': 0.0009930486593843098, 'mean_word_length': 4.04, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '850695', 'n_tokens_mistral': 306, 'n_tokens_neox': 299, 'n_words': 87}