<commit_before>const childProcess = require('child_process');

const cmd = (c) => c;
const shell = 'bash';
const config = {
    env: {
        NODE_ENV: 'production',
        encoding: 'utf8',
    },
    shell,
};

const exec = (c) => {
    return new Promise((resolve, reject) => {
        childProcess.exec(c, config, (err, stdout, stderr) => {
            if (err) {
                reject(err);
            } else {
                resolve(stdout, stderr);
            }
        });
    });
};
console.log('Deploy start.');
exec(cmd('cd ../myapp/public/img'))
    .then(() => exec(cmd('git add .')))
    .then(() => exec(cmd(`git commit -m ${new Date().getTime()} `)))
    .then(() => exec(cmd('git push -u origin master')))
    .then(() => console.log('Deploy end.'))
    .catch(err => {
        console.error(err);
    });


<commit_msg>‘1480906861715’<commit_after>const childProcess = require('child_process');

const cmd = (c) => c;
const shell = 'bash';
const config = {
    env: {
        NODE_ENV: 'production',
        encoding: 'utf8',
    },
    shell,
};

const exec = (c) => {
    return new Promise((resolve, reject) => {
        childProcess.exec(c, config, (err, stdout, stderr) => {
            if (err) {
                reject(err);
            } else {
                resolve(stdout, stderr);
            }
        });
    });
};
console.log('Deploy start.');
exec(cmd('cd ../myapp/public/img'))
    .then(() => exec(cmd('git add .')))
    .then(() => exec(cmd(`git commit -m ‘${new Date().getTime()}’ `)))
    .then(() => exec(cmd('git push -u origin master')))
    .then(() => console.log('Deploy end.'))
    .catch(err => {
        console.error(err);
    });



{'fraction_non_alphanumeric': 0.20828402366863905, 'fraction_numerical': 0.008875739644970414, 'mean_word_length': 2.148975791433892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '3453023', 'n_tokens_mistral': 567, 'n_tokens_neox': 550, 'n_words': 120}