<commit_before>/**
 * Created by binarylu on 3/18/16.
 */

var github_api = 'https://api.github.com';
var token = '';
var user = '';
var repo = '';

var postfix = {
    c: ".c",
    cpp: ".cpp",
    java: ".java",
    python: ".py",
    csharp: ".cs",
    javascript: ".js",
    ruby: ".rb",
    swift: ".swift",
    golang: ".go"
};

(function(){
    var reg = new RegExp('submissions');
    if (window.location.pathname.match(reg) != null)
        return false;
    chrome.storage.sync.get({
        token: '',
        user: '',
        repo_name: ''
    }, function(items) {
        token = items.token;
        user = items.user;
        repo = items.repo_name;
        if (token && user) {
            add_node();
            $("#readme_button").click(restore);
            $("#commit_readme").click(commit);
            $("#commit_question").click(commit);
            $("#button1").click(commit);
            $("#filename").val(get_filename());
            $('select[name=lang]').change(function () {
                var ext = get_extension();
                var filename = get_filename();
                filename = filename.substring(0, filename.lastIndexOf(".")) + ext;
                $("#filename").val(filename);
            });<commit_msg>add .sh and .sql extension name<commit_after>/**
 * Created by binarylu on 3/18/16.
 */

var github_api = 'https://api.github.com';
var token = '';
var user = '';
var repo = '';

var postfix = {
    c: ".c",
    cpp: ".cpp",
    java: ".java",
    python: ".py",
    csharp: ".cs",
    javascript: ".js",
    ruby: ".rb",
    swift: ".swift",
    golang: ".go",
    base: ".sh",
    mysql: ".sql"
};

(function(){
    var reg = new RegExp('submissions');
    if (window.location.pathname.match(reg) != null)
        return false;
    chrome.storage.sync.get({
        token: '',
        user: '',
        repo_name: ''
    }, function(items) {
        token = items.token;
        user = items.user;
        repo = items.repo_name;
        if (token && user) {
            add_node();
            $("#readme_button").click(restore);
            $("#commit_readme").click(commit);
            $("#commit_question").click(commit);
            $("#button1").click(commit);
            $("#filename").val(get_filename());
            $('select[name=lang]').change(function () {
                var ext = get_extension();
                var filename = get_filename();
                filename = filename.substring(0, filename.lastIndexOf(".")) + ext;
                $("#filename").val(filename);
            });
{'fraction_non_alphanumeric': 0.19047619047619047, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 1.9392201834862386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5813091', 'n_tokens_mistral': 790, 'n_tokens_neox': 767, 'n_words': 163}