<commit_before>var gulp = require('gulp');
var bem = require('gulp-bem');
var concat = require('gulp-concat');
var del = require('del');
var jade = require('gulp-jade');
var sass = require('gulp-sass');
var pack = require('gulp-bem-pack');
var autoprefixer = require('gulp-autoprefixer');
var uglify = require('gulp-uglify');
var buildBranch = require('buildbranch');

var levels = [
    'js',
    'libs/bootstrap/levels/*',
    'base',
    'blocks',
    'pages'
];

var tree;
gulp.task('tree', function () {
    tree = bem.objects(levels).pipe(bem.deps()).pipe(bem.tree());
});

gulp.task('js', ['clean'], function () {
    return tree.deps('pages/index')
        .pipe(bem.src('{bem}.js'))
        .pipe(pack('index.js'))
        .pipe(uglify())
        .pipe(gulp.dest('./dist'));
});

gulp.task('css', ['clean'], function () {
    function buildCss(page) {
        return tree.deps('pages/' + page.id)
            .pipe(bem.src('{bem}.{scss,css}'))
            .pipe(concat(page.id + '.css'))
            .pipe(sass())
            .pipe(autoprefixer({
                browsers: ['last 2 versions'],
                cascade: false<commit_msg>fix(tasks/js): fix entry deps-point for building js<commit_after>var gulp = require('gulp');
var bem = require('gulp-bem');
var concat = require('gulp-concat');
var del = require('del');
var jade = require('gulp-jade');
var sass = require('gulp-sass');
var pack = require('gulp-bem-pack');
var autoprefixer = require('gulp-autoprefixer');
var uglify = require('gulp-uglify');
var buildBranch = require('buildbranch');

var levels = [
    'js',
    'libs/bootstrap/levels/*',
    'base',
    'blocks',
    'pages'
];

var tree;
gulp.task('tree', function () {
    tree = bem.objects(levels).pipe(bem.deps()).pipe(bem.tree());
});

gulp.task('js', ['clean'], function () {
    return tree.deps('blocks/page')
        .pipe(bem.src('{bem}.js'))
        .pipe(pack('index.js'))
        .pipe(uglify())
        .pipe(gulp.dest('./dist'));
});

gulp.task('css', ['clean'], function () {
    function buildCss(page) {
        return tree.deps('pages/' + page.id)
            .pipe(bem.src('{bem}.{scss,css}'))
            .pipe(concat(page.id + '.css'))
            .pipe(sass())
            .pipe(autoprefixer({
                browsers: ['last 2 versions'],
                cascade: false
{'fraction_non_alphanumeric': 0.2109106529209622, 'fraction_numerical': 0.000859106529209622, 'mean_word_length': 2.914285714285714, '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': '2672933', 'n_tokens_mistral': 825, 'n_tokens_neox': 820, 'n_words': 147}