<commit_before>/* eslint no-var: 0 */
var command = require('./command');
var packageJson = require('./../package.json');
var webpackConfig = require('./../webpack.config');
var utils = require('./utils');



/*------ Update package.json ------*/


var json = utils.getPropertiesFromObj(packageJson,[
    'dependencies'
]);

var newJson = {
	'main' : 'lib/' + webpackConfig.output.library,
    'devDependencies': json.dependencies,
    'scripts':{
        "prebuild": "node scripts/prebuild.js",
        "build": "node scripts/build.js production",
        "postbuild": "node scripts/postbuild.js"
    },
	'files': [
		"lib"
	]
};

//todo implement 
//command.execute('../../node_modules/.bin/eslint --init')

command.createDir( '../../src',function(){
    command.createDir( '../../test',function(){
        command.createDir( '../../lib',function(){
            command.copyDir( './scripts', '../../scripts',function(){
                command.copyFile( './webpack.config.js', '../../webpack.config.js',function(){
                    command.copyFile( './.babelrc', '../../.babelrc',function(){
	                    command.copyFile( './.eslintrc.json', '../../.eslintrc.json',function(){
		                    command.updateJson( '../../package.json', newJson,function(){
			                    command.remove('../../scripts/postinstall.js',function(){
				                    command.remove('../../node_modules/library-boilerplate')
			                    })
		                    });
	                    })
                    });
                });
            });
        });
    });
});










<commit_msg>gitignore added<commit_after>/* eslint no-var: 0 */
var command = require('./command');
var packageJson = require('./../package.json');
var webpackConfig = require('./../webpack.config');
var utils = require('./utils');



/*------ Update package.json ------*/


var json = utils.getPropertiesFromObj(packageJson,[
    'dependencies'
]);

var newJson = {
	'main' : 'lib/' + webpackConfig.output.library + '.js',
    'devDependencies': json.dependencies,
    'scripts':{
        "prebuild": "node scripts/prebuild.js",
        "build": "node scripts/build.js production",
        "postbuild": "node scripts/postbuild.js"
    },
	'files': [
		"lib"
	]
};

//todo implement 
//command.execute('../../node_modules/.bin/eslint --init')

command.createDir( '../../src',function(){
    command.createDir( '../../test',function(){
        command.createDir( '../../lib',function(){
            command.copyDir( './scripts', '../../scripts',function(){
                command.copyFile( './webpack.config.js', '../../webpack.config.js',function(){
                    command.copyFile( './.babelrc', '../../.babelrc',function(){
	                    command.copyFile( './.gitignore', '../../.gitignore',function(){
		                    command.copyFile( './.eslintrc.json', '../../.eslintrc.json',function(){
			                    command.updateJson( '../../package.json', newJson,function(){
				                    command.remove('../../scripts/postinstall.js',function(){
					                    command.remove('../../node_modules/library-boilerplate')
				                    })
			                    });
		                    })
	                    });
                    });
                });
            });
        });
    });
});











{'fraction_non_alphanumeric': 0.2155581947743468, 'fraction_numerical': 0.0005938242280285036, 'mean_word_length': 1.7016840417000803, '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': '1321364', 'n_tokens_mistral': 951, 'n_tokens_neox': 880, 'n_words': 143}