<commit_before>module.exports = function(grunt) {

  var appConfig = {
    host: 'localhost',
    port: 1337,
    appDir: 'web'
  };

  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    appConfig: appConfig,

    connect: {
      options: {
        port: appConfig.port,
        livereload: true,
      },
      dist: {
        options: {
          base: ['web/dist/']
        }
      }
    },

    open: {
      server: {
        path: "http://<%= appConfig.host %>:<%= appConfig.port %>"
      }
    },

    sass: {
      options: {
        sourceMap: true
      },
      dist: {
        files: {
          'dist/gridle.css': 'grid/gridle.scss',
          'web/dist/css/theme.css': 'web/css/theme.scss'
        }<commit_msg>wip, add variables and configuration<commit_after>module.exports = function(grunt) {

  var appConfig = {
    host: 'localhost',
    port: 1337,
    appDir: 'web'
  };

  var grid_dir        = 'grid/',
      theme_dir       = 'web/',
      grid_build_dir  = 'dist/',
      theme_build_dir = theme_dir + 'dist/';
      theme_css_dir   = theme_dir + 'dist/css';
      theme_js_dir    = theme_dir + 'dist/js';

  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    appConfig: appConfig,

    connect: {
      options: {
        port: appConfig.port,
        livereload: true,
      },
      dist: {
        options: {
          base: [theme_build_dir]
        }
      }
    },

    open: {
      server: {
        path: "http://<%= appConfig.host %>:<%= appConfig.port %>"
      }
    },

    sass: {
      options: {
        sourceMap: true
      },
      dist: {
        files: {
          "<%= grid_build_dir %>/gridle.css": "<%= grid_dir %>/gridle.scss",
          "<%= theme_css_dir %>/theme.css": "<%= theme_dir %>/theme.scss"
        }
{'fraction_non_alphanumeric': 0.16486902927580893, 'fraction_numerical': 0.004108885464817668, 'mean_word_length': 1.8604992657856094, 'pattern_counts': {'":': 2, '<': 11, '<?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': '168769', 'n_tokens_mistral': 699, 'n_tokens_neox': 666, 'n_words': 108}