<commit_before>var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var fs = require('fs');
var replace = require('gulp-replace');

var paths = {
  sass: ['./scss/**/*.scss']
};

var config = {
  libclientionic: './www/vendors/ionic-platform-web-client/dist/'
};
gulp.task('ioconfig', function () {
    var src = config.libclientionic + 'ionic.io.bundle*.js';
    var ioconfig = fs.readFileSync(".io-config.json", "utf8").slice(0, -1);
    var start = '"IONIC_SETTINGS_STRING_START";var settings =';
    var end =  '; return { get: function(setting) { if (settings[setting]) { return settings[setting]; } return null; };"IONIC_SETTINGS_STRING_END"';
    var replaceBy = start + ioconfig + end;
    console.log('inject .io-config in ionic.io.bundle.js');
console.log(replaceBy);
    gulp.src(src)
      .pipe(replace(/"IONIC_SETTINGS_STRING_START.*IONIC_SETTINGS_STRING_END"/, replaceBy))
      .pipe(gulp.dest(config.libclientionic));
});

gulp.task('default', ['sass']);

gulp.task('sass', function(done) {
  gulp.src('./scss/ionic.app.scss')
    .pipe(sass())
    .on('error', sass.logError)
    .pipe(gulp.dest('./www/css/'))
    .pipe(minifyCss({
      keepSpecialComments: 0<commit_msg>Fix typo<commit_after>var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var fs = require('fs');
var replace = require('gulp-replace');

var paths = {
  sass: ['./scss/**/*.scss']
};

var config = {
  libclientionic: './www/vendors/ionic-platform-web-client/dist/'
};
gulp.task('ioconfig', function () {
    var src = config.libclientionic + 'ionic.io.bundle*.js';
    var ioconfig = fs.readFileSync(".io-config.json", "utf8").slice(0, -1);
    var start = '"IONIC_SETTINGS_STRING_START";var settings =';
    var end =  '; return { get: function(setting) { if (settings[setting]) { return settings[setting]; } return null; }};"IONIC_SETTINGS_STRING_END"';
    var replaceBy = start + ioconfig + end;
    console.log('inject .io-config in ionic.io.bundle.js');
console.log(replaceBy);
    gulp.src(src)
      .pipe(replace(/"IONIC_SETTINGS_STRING_START.*IONIC_SETTINGS_STRING_END"/, replaceBy))
      .pipe(gulp.dest(config.libclientionic));
});

gulp.task('default', ['sass']);

gulp.task('sass', function(done) {
  gulp.src('./scss/ionic.app.scss')
    .pipe(sass())
    .on('error', sass.logError)
    .pipe(gulp.dest('./www/css/'))
    .pipe(minifyCss({
      keepSpecialComments: 0
{'fraction_non_alphanumeric': 0.19495738636363635, 'fraction_numerical': 0.002840909090909091, 'mean_word_length': 4.355513307984791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4838153', 'n_tokens_mistral': 1028, 'n_tokens_neox': 1016, 'n_words': 182}