<commit_before>'use strict';

import path from 'path';
import gulp from 'gulp';
import browserSync from 'browser-sync';
import gulpLoadPlugins from 'gulp-load-plugins';

const plugins = gulpLoadPlugins();
const reload = browserSync.reload;

gulp.task('lint', () =>
  gulp.src(['app/scripts/**/*.js'])
    .pipe(plugins.eslint())
    .pipe(plugins.eslint.format())
);

gulp.task('styles',() => {
	const AUTOPREFIXER_BROWSERS = [
    'ie >= 10',
    'ie_mob >= 10',
    'ff >= 30',
    'chrome >= 34',
    'safari >= 7',
    'opera >= 23',
    'ios >= 7',
    'android >= 4.4',
    'bb >= 10'
  ];
  return gulp.src([
  		'app/src/styles/**/*.scss',
  		'app/src/styles/**/*.css'
  	])
  		.pipe(plugins.sourcemaps.init())
  		.pipe(plugins.sass({
     		precision: 10
    	}).on('error', plugins.sass.logError))
    	.pipe(plugins.autoprefixer(AUTOPREFIXER_BROWSERS))
    	.pipe(plugins.sourcemaps.write('./'))
    	.pipe(gulp.dest('app/dist/styles'));
});

gulp.task('serve',['styles'], () => {
	browserSync({
		notify: false,
		server:'app',<commit_msg>add lint<commit_after>'use strict';

import path from 'path';
import gulp from 'gulp';
import browserSync from 'browser-sync';
import gulpLoadPlugins from 'gulp-load-plugins';

const plugins = gulpLoadPlugins();
const reload = browserSync.reload;

gulp.task('lint', () =>
  gulp.src(['app/scripts/**/*.js'])
  gulp.src(['app/scripts/**/*.js','!node_modules/**'])
    .pipe(plugins.eslint())
    .pipe(plugins.eslint.format())
    .pipe(plugins.if(!browserSync.active, plugins.eslint.failAfterError()))
);

gulp.task('styles',() => {
	const AUTOPREFIXER_BROWSERS = [
    'ie >= 10',
    'ie_mob >= 10',
    'ff >= 30',
    'chrome >= 34',
    'safari >= 7',
    'opera >= 23',
    'ios >= 7',
    'android >= 4.4',
    'bb >= 10'
  ];
  return gulp.src([
  		'app/src/styles/**/*.scss',
  		'app/src/styles/**/*.css'
  	])
  		.pipe(plugins.sourcemaps.init())
  		.pipe(plugins.sass({
     		precision: 10
    	}).on('error', plugins.sass.logError))
    	.pipe(plugins.autoprefixer(AUTOPREFIXER_BROWSERS))
    	.pipe(plugins.sourcemaps.write('./'))
    	.pipe(gulp.dest('app/dist/styles'));
});

gulp.task('serve',['styles'], () => {
	browserSync({
		notify: false,
		server:'app',
{'fraction_non_alphanumeric': 0.22023276633840644, 'fraction_numerical': 0.01611459265890779, 'mean_word_length': 3.365234375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '5854759', 'n_tokens_mistral': 899, 'n_tokens_neox': 852, 'n_words': 137}