<commit_before>'use babel';

import { Point } from 'atom';

export default {
    selector: ".source.blob",
    inclusionPriority: 1,
    excludeLowerPriority: true,

    getPrefix(editor, bufferPosition){
        match = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition]).match(/[^()\s]+$/);
        return match != null ? match[0] : "";
    },

    formatArg(arg, index){
        var format = "";
        if (Array.isArray(arg))
        {
            format = "${" + index + ":expression}";
        }

        else
        {
            let name = arg.name != undefined ? arg.name : "";
            var input = "", prefix = "", suffix = "";
            switch (arg.type)
            {
                case "string":
                    prefix = '"';
                    suffix = '"';
                    input = name;
                    break;<commit_msg>Added atom and option arguments<commit_after>'use babel';

import { Point } from 'atom';

export default {
    selector: ".source.blob",
    inclusionPriority: 1,
    excludeLowerPriority: true,

    getPrefix(editor, bufferPosition){
        match = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition]).match(/[^()\s]+$/);
        return match != null ? match[0] : "";
    },

    formatArg(arg, index){
        var format = "";
        if (Array.isArray(arg))
        {
            // TODO: Handle this later, for now can just make separate variations instead
            format = "${" + index + ":expression}";
        }

        else
        {
            let name = arg.name != undefined ? arg.name : "";
            var input = "", prefix = "", suffix = "";
            switch (arg.type)
            {
                case "string":
                    prefix = '"';
                    suffix = '"';
                    input = name;
                    break;

                case "atom":
                    prefix = ':';
                    input = name;
                    break;

                case "option":
                    suffix = ':';
                    input = name;
                    break;
{'fraction_non_alphanumeric': 0.1379638439581351, 'fraction_numerical': 0.0028544243577545195, 'mean_word_length': 1.341870824053452, 'pattern_counts': {'":': 6, '<': 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': '5175995', 'n_tokens_mistral': 550, 'n_tokens_neox': 516, 'n_words': 131}