<commit_before> /*
 * sublimetext-gruntfile.js
 * https://github.com/idleberg/sublimetext-gruntfile.js
 *
 * Copyright (c) 2014 <NAME>
 * Licensed under the MIT license.
 */
 
 module.exports = function(grunt) {

 	var jsonFiles = [
        '**/*.JSON-tmLanguage',
        '**/*.sublime-build',
        '**/*.sublime-commands',
        '**/*.sublime-completions',
        '**/*.sublime-keymap',
        '**/*.sublime-macro',
        '**/*.sublime-menu',
        '**/*.sublime-settings',
        '**/*.sublime-theme',
        'messages.json'
    ];

    var xmlFiles = [
    	'**/*.plist',
    	'**/*.sublime-snippet',
    	'**/*.tmCommand',
    	'**/*.tmLanguage',
    	'**/*.tmPreferences',
    	'**/*.tmSnippet'
    ];

 	grunt.initConfig({

 		// default task
		jsonlint: {
		  files: {
		    src: jsonFiles
		  }
		},

 		xml_validator: {
 			files: {
 				src: xmlFiles
 			},
 		},

		// watch task
        watch: {
		    json: {
		        files: jsonFiles,
		        tasks: ['jsonlint']
		    },
		    xml: {
		        files: xmlFiles,
		        tasks: ['xml_validator']
		    }
		}
 	});

 	grunt.loadNpmTasks('grunt-contrib-watch');
 	grunt.loadNpmTasks('grunt-xml-validator');
 	grunt.loadNpmTasks('grunt-jsonlint');
 	grunt.registerTask('default', ['jsonlint', 'xml_validator']);

    // task shortcuts
 	grunt.registerTask('json', 'jsonlint');
 	grunt.registerTask('xml', 'xml_validator');
 };<commit_msg>update linter rules<commit_after> /*
  * sublimetext-gruntfile.js
  * https://github.com/idleberg/sublimetext-gruntfile.js
  *
  * Copyright (c) 2014-2016 <NAME>
  * Licensed under the MIT license.
  */
 
 module.exports = function(grunt) {

    var jsonFiles = [
        '**/*.JSON-sublime-syntax',
        '**/*.JSON-tmLanguage',
        '**/*.JSON-tmTheme',
        '**/*.sublime-build',
        '**/*.sublime-commands',
        '**/*.sublime-completions',
        '**/*.sublime-keymap',
        '**/*.sublime-macro',
        '**/*.sublime-menu',
        '**/*.sublime-settings',
        '**/*.sublime-theme',
        'messages.json',
        '!node_modules/**/*.*'
    ];

    var pyFiles = [
        '*.py'
    ];

    var ymlFiles = [
        '**/*.sublime-syntax',
        '**/*.YAML-tmLanguage',
        '**/*.YAML-tmTheme'
    ];

    var xmlFiles = [
        '**/*.plist',
        '**/*.PLIST-sublime-syntax',
        '**/*.PLIST-tmLanguage',
        '**/*.PLIST-tmTheme',
        '**/*.sublime-snippet',
        '**/*.tmCommand',
        '**/*.tmLanguage',
        '**/*.tmPreferences',
        '**/*.tmSnippet',
        '**/*.tmTheme',
        '**/*.xml',
        '*.bbcolors',
        '*.dvtcolortheme',
        '*.icls',
        '*.itermcolors',
        '*.terminal',
        '!node_modules/**/*.*'
    ];

    grunt.initConfig({

        // default task
        jsonlint: {
          files: {
            src: jsonFiles
          }
        },

        yamllint: {
            files: {
                src: ymlFiles
            },
        },

        xml_validator: {
            files: {
                src: xmlFiles
            },
        },

        // watch task
        watch: {
            json: {
                files: jsonFiles,
                tasks: ['jsonlint']
            },
            yml: {
                files: ymlFiles,
                tasks: ['yamllint']
            },
            xml: {
                files: xmlFiles,
                tasks: ['xml_validator']
            }
        },

        // pylint task, not yet part of default
        pylint: {
          files: {
            options: {
                errorsOnly: true
            },
            src: pyFiles
          }
        },

    });

    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-jsonlint');
    grunt.loadNpmTasks('grunt-pylint');
    grunt.loadNpmTasks('grunt-yamllint');
    grunt.loadNpmTasks('grunt-xml-validator');
    grunt.registerTask('default', 'lint');

    // task shortcuts
    grunt.registerTask('json',   'jsonlint');
    grunt.registerTask('lint',  ['jsonlint', 'yamllint', 'xml_validator']);
    grunt.registerTask('py',     'pylint');
    grunt.registerTask('travis', 'lint');
    grunt.registerTask('xml',    'xml_validator');
 };
{'fraction_non_alphanumeric': 0.18891268141803474, 'fraction_numerical': 0.0028551034975017845, 'mean_word_length': 1.6095592799503413, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 21}, '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': '4956380', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1434, 'n_words': 196}