<commit_before>/*global describe, beforeEach, it */

'use strict';

var path = require('path');
var helpers = require('yeoman-test');
var assert = require('yeoman-assert');
var os = require('os');

describe('repo generator', function () {

    beforeEach(function (done) {
        helpers.run(path.join(__dirname, '../app'))
            .inDir(path.join(os.tmpdir(), './temp'))
            .withPrompts({
                'boilerplate': 'Polymer',
                'polymerVersion': '1.4.0',
                'elementName': 'my-element',
                'lifecycle': true
            })
            .withOptions({'skip-install': true})
            .on('end', done);
    });

    it('should create the required static files', function () {
        assert.file([
            'test/my-element-tests.html', 'src/my-element.html', 'bower.json', 'package.json', 'demo/index.html', 'README.md', 'Gruntfile.js', '.editorconfig', '.gitignore'
        ]);
    });

});<commit_msg>some tests<commit_after>/*global describe, beforeEach, it */

'use strict';

var path = require('path');
var helpers = require('yeoman-test');
var assert = require('yeoman-assert');
var os = require('os');

describe('repo generator', function () {

    describe('Polymer Test', function () {

        beforeEach(function (done) {
            helpers.run(path.join(__dirname, '../app'))
                .inDir(path.join(os.tmpdir(), './temp'))
                .withPrompts({
                    'boilerplate': 'Polymer',
                    'polymerVersion': '1.4.0',
                    'elementName': 'fake-element',
                    'lifecycle': true
                })
                .withOptions({'skip-install': true})
                .on('end', done);
        });

        it('should create the required static files', function () {
            assert.file([
                'test/fake-element-tests.html', 'src/fake-element.html', 'bower.json', 'package.json', 'demo/index.html', 'README.md', 'Gruntfile.js', '.editorconfig', '.gitignore'
            ]);
        });

        it('fills the README with project data', function () {
            assert.fileContent('README.md', 'fake-element');
        });

        it('fills the index html with project data', function () {
            assert.fileContent('src/fake-element.html', 'fake-element');
        });

        it('fills the bower with the correct library', function () {
            assert.fileContent('bower.json', '"polymer": "Polymer/polymer#^1.4.0"');
        });
    });
});
{'fraction_non_alphanumeric': 0.17906884202148826, 'fraction_numerical': 0.003581376840429765, 'mean_word_length': 2.1307596513075966, 'pattern_counts': {'":': 1, '<': 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': '4294645', 'n_tokens_mistral': 737, 'n_tokens_neox': 703, 'n_words': 148}