<commit_before>const path = require('path');
const yosay = require('yosay');
const remote = require('yeoman-remote');
const yeoman = require('yeoman-generator');
const slug = require('slugg');
const mkdirp = require('mkdirp');

module.exports = yeoman.Base.extend({
	prompting() {
		if (!this.options.name) {
			this.log(yosay('get Talend dotfiles!'));
			const prompts = [{
				type: 'input',
				name: 'name',
				message: 'Library name',
				default: slug(this.appname),
			}];

			return this.prompt(prompts).then((props) => {
				if (props.name !== slug(this.appname)) {
					this.destinationRoot(props.name);
				}

				this.props = props;
			});
		}
		this.destinationRoot('.');
		this.props = { name: this.options.name() };
	},

	configuring() {
		const jsFormatterPath = 'tools-javascript-formatter';
		const editorconfig = '.editorconfig';
		const eslintrc = '.eslintrc';
		const scssFormatterPath = 'tools-scss-formatting';
		const sasslint = '.sass-lint.yml';

		const done = this.async();
		remote('Talend', 'tools', (err, cachePath) => {
			this.fs.copy(path.join(cachePath, jsFormatterPath, editorconfig),
				this.destinationPath(editorconfig));
			this.fs.copy(path.join(cachePath, jsFormatterPath, eslintrc),
				this.destinationPath(eslintrc));
			this.fs.copy(path.join(cachePath, scssFormatterPath, sasslint),
				this.destinationPath(sasslint));
			done();
		});

		const files = [
			'.gitignore',
			'.travis.yml',
			'.npmignore',
		];

		files.forEach((name) => {
			this.fs.copy(
				path.join(__dirname, `../../${name}`),
				this.destinationPath(name)
			);
		});

		mkdirp(this.destinationPath('src'), (err) => {
			if (err) {
				this.log("Couldn't create src directory", err);
			}
		});
	},
});<commit_msg>fix(dotfiles): update dotfiles folder path (#11)<commit_after>const path = require('path');
const yosay = require('yosay');
const remote = require('yeoman-remote');
const yeoman = require('yeoman-generator');
const slug = require('slugg');
const mkdirp = require('mkdirp');

module.exports = yeoman.Base.extend({
	prompting() {
		if (!this.options.name) {
			this.log(yosay('get Talend dotfiles!'));
			const prompts = [{
				type: 'input',
				name: 'name',
				message: 'Library name',
				default: slug(this.appname),
			}];

			return this.prompt(prompts).then((props) => {
				if (props.name !== slug(this.appname)) {
					this.destinationRoot(props.name);
				}

				this.props = props;
			});
		}
		this.destinationRoot('.');
		this.props = { name: this.options.name() };
	},

	configuring() {
		const jsFormatterPath = 'tools-javascript';
		const jsDotFiles = ['.editorconfig', '.eslintrc', '.travis.yml', '.npmignore'];
		const scssFormatterPath = 'tools-scss-formatting';
		const sasslint = '.sass-lint.yml';
		const githubRoot = 'tools-root-github';
		const gitignore = '.gitignore';

		const done = this.async();
		remote('Talend', 'tools', (err, cachePath) => {
			jsDotFiles.forEach((dotfile) => {
				this.fs.copy(path.join(cachePath, jsFormatterPath, dotfile),
				this.destinationPath(dotfile));
			});
			this.fs.copy(path.join(cachePath, scssFormatterPath, sasslint),
				this.destinationPath(sasslint));
			this.fs.copy(path.join(cachePath, githubRoot, gitignore),
				this.destinationPath(gitignore));
			done();
		});

		mkdirp(this.destinationPath('src'), (err) => {
			if (err) {
				this.log("Couldn't create src directory", err);
			}
		});
	},
});
{'fraction_non_alphanumeric': 0.18370934661588045, 'fraction_numerical': 0.0005859947260474656, 'mean_word_length': 3.9122302158273383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4094061', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1143, 'n_words': 210}