<commit_before>'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('localizationTool.jquery.json'),

    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',


    // Task configuration.
    clean: {
      files: ['dist']
    },

    concat: {
      options: {
        banner: '<%= banner %>',
        stripBanners: true
      },
      dist: {
        src: ['src/jquery.<%= pkg.name %>.js'],
        dest: 'dist/jquery.<%= pkg.name %>.js'
      }
    },
    copy: {
        images: {
            dest: 'dist/flags.png',
            src: 'src/flags.png'
        }
    },
    uglify: {
      options: {
        banner: '<%= banner %>'
      },
      dist: {
        src: '<%= concat.dist.dest %>',
        dest: 'dist/jquery.<%= pkg.name %>.min.js'
      }
    },

    qunit: {
      files: ['test/**/*.html'],
      all: {
          options: {
              urls: ['1.6.4', '1.7.0', '1.8.0', '1.9.0', '1.11.0', '2.0.0', '2.1.1'].map(function(version) {
                  return 'http://localhost:<%= connect.server.options.port %>/test/localizationTool.html?jquery=' + version;
              })
          }
      }
    },

    jshint: {
      gruntfile: {
        options: {
          jshintrc: '.jshintrc'
        },
        src: 'Gruntfile.js'
      },
      src: {
        options: {
          jshintrc: 'src/.jshintrc'
        },
        src: ['src/**/*.js']
      },
      test: {
        options: {
          jshintrc: 'test/.jshintrc'
        },
        src: ['test/**/*.js']
      }
    },

    less: {
      development: {
        options: {
          compress: false,
          ieCompat: true,
//          dumpLineNumbers: 'all'
        },
        files: {
          // target.css file: source.less file
          "dist/jquery.localizationTool.css" : "src/jquery.localizationTool.less"
        }
      }
    },

    cssmin: {
      development: {
        options: {
        },
        files: {
          // target: source
          "dist/jquery.localizationTool.min.css" : "dist/jquery.localizationTool.css"
        }
      }
    },

    watch: {
      gruntfile: {
        files: '<%= jshint.gruntfile.src %>',
        tasks: ['jshint:gruntfile']
      },
      src: {
        files: '<%= jshint.src.src %>',
        tasks: ['jshint:src', 'qunit']
      },
      test: {
        files: '<%= jshint.test.src %>',
        tasks: ['jshint:test', 'qunit']
      },
      styles: {
        files: ['src/*.less'],
        tasks: ['less','cssmin'],
        options: {
          nospawn: true
        }
      }
    },

    jsdoc : {
        dist: {
            src: ['src/*.js'],
            options: {
                destination: 'docs'
            }
        }
    },

    connect : {
        server: {
            options: {
                port: 8001
            }
        }
    }
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-connect');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-jsdoc');

  // Default task
  grunt.registerTask('default', 'build:dev');

  // Build dev task
  grunt.registerTask('build:dev', ['jshint', 'clean', 'concat', 'uglify', 'less', 'cssmin', 'copy', 'jsdoc', 'test']);

  // Test task
  grunt.registerTask('test', ['connect', 'jshint', 'qunit']);


};
<commit_msg>test in more versions of jQuery as well<commit_after>'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('localizationTool.jquery.json'),

    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',


    // Task configuration.
    clean: {
      files: ['dist']
    },

    concat: {
      options: {
        banner: '<%= banner %>',
        stripBanners: true
      },
      dist: {
        src: ['src/jquery.<%= pkg.name %>.js'],
        dest: 'dist/jquery.<%= pkg.name %>.js'
      }
    },
    copy: {
        images: {
            dest: 'dist/flags.png',
            src: 'src/flags.png'
        }
    },
    uglify: {
      options: {
        banner: '<%= banner %>'
      },
      dist: {
        src: '<%= concat.dist.dest %>',
        dest: 'dist/jquery.<%= pkg.name %>.min.js'
      }
    },

    qunit: {
      files: ['test/**/*.html'],
      all: {
          options: {
              urls: ['1.6.4', '1.7.0', '1.8.0', '1.9.0', '1.11.0', '2.0.0', '2.1.1', '2.2.4', '3.0.0']
                  .map(function(version) {
                      return 'http://localhost:<%= connect.server.options.port %>/test/localizationTool.html?jquery=' + version;
                  })
          }
      }
    },

    jshint: {
      gruntfile: {
        options: {
          jshintrc: '.jshintrc'
        },
        src: 'Gruntfile.js'
      },
      src: {
        options: {
          jshintrc: 'src/.jshintrc'
        },
        src: ['src/**/*.js']
      },
      test: {
        options: {
          jshintrc: 'test/.jshintrc'
        },
        src: ['test/**/*.js']
      }
    },

    less: {
      development: {
        options: {
          compress: false,
          ieCompat: true,
//          dumpLineNumbers: 'all'
        },
        files: {
          // target.css file: source.less file
          "dist/jquery.localizationTool.css" : "src/jquery.localizationTool.less"
        }
      }
    },

    cssmin: {
      development: {
        options: {
        },
        files: {
          // target: source
          "dist/jquery.localizationTool.min.css" : "dist/jquery.localizationTool.css"
        }
      }
    },

    watch: {
      gruntfile: {
        files: '<%= jshint.gruntfile.src %>',
        tasks: ['jshint:gruntfile']
      },
      src: {
        files: '<%= jshint.src.src %>',
        tasks: ['jshint:src', 'qunit']
      },
      test: {
        files: '<%= jshint.test.src %>',
        tasks: ['jshint:test', 'qunit']
      },
      styles: {
        files: ['src/*.less'],
        tasks: ['less','cssmin'],
        options: {
          nospawn: true
        }
      }
    },

    jsdoc : {
        dist: {
            src: ['src/*.js'],
            options: {
                destination: 'docs'
            }
        }
    },

    connect : {
        server: {
            options: {
                port: 8001
            }
        }
    }
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-connect');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-jsdoc');

  // Default task
  grunt.registerTask('default', 'build:dev');

  // Build dev task
  grunt.registerTask('build:dev', ['jshint', 'clean', 'concat', 'uglify', 'less', 'cssmin', 'copy', 'jsdoc', 'test']);

  // Test task
  grunt.registerTask('test', ['connect', 'jshint', 'qunit']);


};

{'fraction_non_alphanumeric': 0.193076064027795, 'fraction_numerical': 0.0071969226951234646, 'mean_word_length': 1.6662256037049288, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '5162628', 'n_tokens_mistral': 2869, 'n_tokens_neox': 2744, 'n_words': 414}