<commit_before>if (typeof define !== 'function') {
    var define = require('amdefine')(module);
}

define(function() {
    var match = function(message)
    {
        if(!message.text) return false;
        text = message.text.replace(/\s+/g, '').toLowerCase();
        return (text.indexOf("calculate") === 0 );
    }

    var execute = function(message)
    {
        text = message.text.replace(/\s+/g, '');
        formula = text.substr(9);

        response = parse(formula);

        if(response.ending === formula.length && response.result) return cutPrecision(response.result);
        return response.error || "Oops... there are extra bracket / parentheses!";<commit_msg>Strip amdefine.<commit_after>define(function() {
    var match = function(message)
    {
        if(!message.text) return false;
        text = message.text.replace(/\s+/g, '').toLowerCase();
        return (text.indexOf("calculate") === 0 );
    }

    var execute = function(message)
    {
        text = message.text.replace(/\s+/g, '');
        formula = text.substr(9);

        response = parse(formula);

        if(response.ending === formula.length && response.result) return cutPrecision(response.result);
        return response.error || "Oops... there are extra bracket / parentheses!";
{'fraction_non_alphanumeric': 0.16262705238467554, 'fraction_numerical': 0.003127443315089914, 'mean_word_length': 2.7536656891495603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6566660', 'n_tokens_mistral': 377, 'n_tokens_neox': 358, 'n_words': 77}