<commit_before>
const util = require('./util');

if(process.env.RELEASE_TYPE) //look release build
{

    let cmd = "npm version " + process.env.RELEASE_TYPE;

    util.series([

        "npm test",

        ["git fetch","fetch all branches"],

        ["git checkout master","checked out master branch"],

        ["git checkout production","checked out production branch"],
        ["git merge --no-ff --no-edit production master", "merging from Master"],

        [cmd,"increasing version number and tagging"],

        "git push -u --follow-tags",

        ['git checkout master',"checked out master branch.."],

        "git merge --no-ff --no-edit master production",

        "git push",

        ['git branch -D production',"production branch deleted..release Done!!"]

    ],function(err){
        if(err)
        {
            console.log(err);
            process.exit(1);
        }

        process.exit(0);
    });

}
else
{
    console.log("\n Cannot Recognize the type of release");

    process.exit(1);
}<commit_msg>fixing release process 1.0<commit_after>
const util = require('./util');

if(process.env.RELEASE_TYPE) //look release build
{

    let cmd = "npm version " + process.env.RELEASE_TYPE;



    util.series([

        "npm test",

        ["git fetch","fetch all branches"],

        ["git checkout master","checked out master branch"]

    ],function(err){

        if(err)
        {
            console.log(err);
            process.exit(1);
        }

        util.exec("git checkout production",function(err) {

            if(err)
            {
                util.exec("git checkout -b production",function(err) {

                    if(err)
                    {
                        console.log(err);
                        process.exit(1);
                    }

                    util.series([

                        ["git merge --no-ff --no-edit production master", "merging from Master"],

                        [cmd,"increasing version number and tagging"],

                        "git push -u --follow-tags",

                        ['git checkout master',"checked out master branch.."],

                        "git merge --no-ff --no-edit master production",

                        "git push",

                        ['git branch -D production',"production branch deleted..release Done!!"]

                    ],function(err){
                        if(err)
                        {
                            console.log(err);
                            process.exit(1);
                        }

                        process.exit(0);
                    });


                });
            }

        });

    });

}
else
{
    console.log("\n Cannot Recognize the type of release");

    process.exit(1);
}
{'fraction_non_alphanumeric': 0.12998204667863555, 'fraction_numerical': 0.003590664272890485, 'mean_word_length': 1.365025466893039, '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': '67555', 'n_tokens_mistral': 760, 'n_tokens_neox': 671, 'n_words': 185}