<commit_before>'use strict';

module.exports = function (grunt) {

  grunt.initConfig({
    'bower-install': {
      target: {
        src: ['inc/html_start.php'],

        cwd: '',
        ignorePath: '',
        exclude: [],
        fileTypes: {
          html: {
            block: /(([\s\t]*)<!--\s*bower:*(\S*)\s*-->)(\n|\r|.)*?(<!--\s*endbower\s*-->)/gi,
            detect: {
              js: /<script.*src=['"](.+)['"]>/gi,
              css: /<link.*href=['"](.+)['"]/gi
            },
            replace: {
              js: '<script src="{{filePath}}"></script>',
              css: '<link rel="stylesheet" href="{{filePath}}" />'
            }
          }, php: {
            block: /(([\s\t]*)<\?php\s*\/\/\s*<!--\s*bower:*(\S*)\s*-->\s*\?>)(\n|\r|.)*?(<\?php\s*\/\/\s*<!--\s*endbower\s*-->\s*\?>)/gi,
            detect: {
              js: /<script.*src=['"](.+)['"]>/gi,
              css: /<link.*href=['"](.+)['"]/gi
            },
            replace: {
              js: '<script src="{{filePath}}"></script>',
              css: '<link rel="stylesheet" href="{{filePath}}" />'
            }
          }
        }
      }
    },
    less: {
      development: {
        files: {
          "css/style.css": "css/style.less"
        }
      },
      production: {
        files: {
          "css/style.css": "css/style.less"
        },
        cleancss: true
      },
    },
    sass: {
      development: {
        files: {
          "css/style.css": "css/style.scss"
        },
        sourceComments: 'map'
      },
      production: {
        files: {
          "css/style.css": "css/style.scss"
        },
        outputStyle : 'compressed'
      },
    },
    <% if(prepros != 'none') {%>
    watch: {
      scripts: {
        files: ['css/<%=prepros%>/**'],
        tasks: ['<%=prepros%>:development'],
        options: {
          spawn: false,
        },
      },
    }
  <% }%>
  });

  grunt.loadNpmTasks('grunt-bower-install');

  <% if(prepros != 'none') {%>
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-<%=prepros%>');
  <% }%>
  grunt.registerTask('assets', ['bower-install']);
};<commit_msg>Switched to grunt-pot for lang files<commit_after>'use strict';

module.exports = function (grunt) {

  grunt.initConfig({
    'bower-install': {
      target: {
        src: ['inc/html_start.php'],

        cwd: '',
        ignorePath: '',
        exclude: [],
        fileTypes: {
          html: {
            block: /(([\s\t]*)<!--\s*bower:*(\S*)\s*-->)(\n|\r|.)*?(<!--\s*endbower\s*-->)/gi,
            detect: {
              js: /<script.*src=['"](.+)['"]>/gi,
              css: /<link.*href=['"](.+)['"]/gi
            },
            replace: {
              js: '<script src="{{filePath}}"></script>',
              css: '<link rel="stylesheet" href="{{filePath}}" />'
            }
          }, php: {
            block: /(([\s\t]*)<\?php\s*\/\/\s*<!--\s*bower:*(\S*)\s*-->\s*\?>)(\n|\r|.)*?(<\?php\s*\/\/\s*<!--\s*endbower\s*-->\s*\?>)/gi,
            detect: {
              js: /<script.*src=['"](.+)['"]>/gi,
              css: /<link.*href=['"](.+)['"]/gi
            },
            replace: {
              js: '<script src="{{filePath}}"></script>',
              css: '<link rel="stylesheet" href="{{filePath}}" />'
            }
          }
        }
      }
    },
    less: {
      development: {
        files: {
          "css/style.css": "css/style.less"
        }
      },
      production: {
        files: {
          "css/style.css": "css/style.less"
        },
        cleancss: true
      },
    },
    sass: {
      development: {
        files: {
          "css/style.css": "css/style.scss"
        },
        sourceComments: 'map'
      },
      production: {
        files: {
          "css/style.css": "css/style.scss"
        },
        outputStyle : 'compressed'
      },
    },
    <% if(prepros != 'none') {%>
    watch: {
      scripts: {
        files: ['css/<%=prepros%>/**'],
        tasks: ['<%=prepros%>:development'],
        options: {
          spawn: false,
        },
      },
    }
  <% }%>
  });

  grunt.loadNpmTasks('grunt-bower-install');

  <% if(prepros != 'none') {%>
  grunt.loadNpmTasks('grunt-contrib-watch');
  <% if(prepros != 'sass') {%>
  grunt.loadNpmTasks('grunt-<%=prepros%>');
  <% }%>
  <% if(prepros != 'less') {%>
  grunt.loadNpmTasks('grunt-contrib-<%=prepros%>');
  <% }%>
  <% }%>
  grunt.registerTask('assets', ['bower-install']);
};
{'fraction_non_alphanumeric': 0.2553191489361702, 'fraction_numerical': 0.0, 'mean_word_length': 1.5075800112296462, 'pattern_counts': {'":': 8, '<': 54, '<?xml version=': 0, '>': 50, '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': '1680320', 'n_tokens_mistral': 1625, 'n_tokens_neox': 1585, 'n_words': 186}