<commit_before>#jshint node: true, camelcase: false 
"use strict"
module.exports = (grunt) ->
  grunt.initConfig
    pkg: 
      grunt.file.readJSON("package.json")

    connect:
      demo:
        options:
          hostname: "*" # make accessible from everywhere
          port: 8080
          base: "./"
          keepalive: true
      dev: # pass on, so subsequent tastks (like watch) can start
          options:
              port: 8080
              base: "./"
              keepalive: false
      sauce:
        options:
          hostname: "localhost"
          port: 9999
          base: ""
          keepalive: false

    exec:
      tabfix:
        # Cleanup whitespace according to http://contribute.jquery.org/style-guide/js/
        # (requires https://github.com/mar10/tabfix)
        cmd: "tabfix -t -r -m *.js,*.css,*.html,*.yaml -i node_modules ."

      upload:
        # FTP upload the demo files (requires https://github.com/mar10/pyftpsync)
        cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --omit dist,node_modules,.*,_* -x"

    jscs:
      src: ["jquery.ui-contextmenu.js", "test/tests.js"]
      options:
        config: ".jscsrc"
        force: true

    jshint:
      files: ["jquery.ui-contextmenu.js", "test/tests.js"]
      options:
        jshintrc: ".jshintrc"

    qunit:
      all: ["test/index.html", "test/index-jquery-ui-1-10.html"]

    # replace: # grunt-text-replace
    #     production:
    #         src: ["build/**/*.js"]
    #         overwrite : true
    #         replacements: [ {
    #             from : /@DATE/g
    #             to : "<%= grunt.template.today('yyyy-mm-dd\"T\"HH:MM') %>"
    #         },{
    #             from : /buildType:\s*\"[a-zA-Z]+\"/g
    #             to : "buildType: \"production\""
    #         },{
    #             from : /debugLevel:\s*[0-9]/g
    #             to : "debugLevel: 1"
    #         } ]
    #     release:
    #         src: ["dist/**/*.js"]
    #         overwrite : true
    #         replacements: [ {
    #             from : /@VERSION/g
    #             to : "<%= pkg.version %>"
    #         } ]

    "saucelabs-qunit":
      ui_10:
        options:
          urls: [
            # "http://localhost:9999/test/index.html",
            "http://localhost:9999/test/index-jquery-ui-1-10.html"
          ]
          
          # username: process.env.SAUCE_USERNAME,
          # key: process.env.SAUCE_ACCESS_KEY,
          build: process.env.TRAVIS_JOB_ID
          throttled: 8
          browsers: [
            { browserName: "chrome", platform: "Windows 7" }
            { browserName: "firefox", platform: "Windows 7" }
            # { browserName: "firefox", platform: "Windows XP" }
            { browserName: "firefox", platform: "Linux" }
            { browserName: "internet explorer", version: "6", platform: "Windows XP" }
            { browserName: "internet explorer", version: "7", platform: "Windows XP" }
            { browserName: "internet explorer", version: "8", platform: "Windows 7" }
            { browserName: "internet explorer", version: "9", platform: "Windows 7" }
            { browserName: "internet explorer", version: "10", platform: "Windows 8" }
            { browserName: "internet explorer", version: "11", platform: "Windows 8.1" }
            { browserName: "safari", version: "6", platform: "OS X 10.8" }
            { browserName: "safari", version: "7", platform: "OS X 10.9" }
            { browserName: "safari", version: "8", platform: "OS X 10.10" }
          ]
          testname: "jquery.ui-contextmenu qunit tests (jQuery UI 10)"
      ui: # UI Menu 11+ dropped support for IE7
        options:
          urls: [
            "http://localhost:9999/test/index.html",
            # "http://localhost:9999/test/index-jquery-ui-1-10.html"
          ]
          
          # username: process.env.SAUCE_USERNAME,
          # key: process.env.SAUCE_ACCESS_KEY,
          build: process.env.TRAVIS_JOB_ID
          throttled: 8
          browsers: [
            { browserName: "chrome", platform: "Windows 7" }
            { browserName: "firefox", platform: "Windows 7" }
            { browserName: "firefox", platform: "Windows XP" }
            { browserName: "firefox", platform: "Linux" }
            # { browserName: "internet explorer", version: "6", platform: "Windows XP" }<commit_msg>Test with ms edge and os x 10.11<commit_after>#jshint node: true, camelcase: false 
"use strict"
module.exports = (grunt) ->
  grunt.initConfig
    pkg: 
      grunt.file.readJSON("package.json")

    connect:
      demo:
        options:
          hostname: "*" # make accessible from everywhere
          port: 8080
          base: "./"
          keepalive: true
      dev: # pass on, so subsequent tastks (like watch) can start
          options:
              port: 8080
              base: "./"
              keepalive: false
      sauce:
        options:
          hostname: "localhost"
          port: 9999
          base: ""
          keepalive: false

    exec:
      tabfix:
        # Cleanup whitespace according to http://contribute.jquery.org/style-guide/js/
        # (requires https://github.com/mar10/tabfix)
        cmd: "tabfix -t -r -m *.js,*.css,*.html,*.yaml -i node_modules ."

      upload:
        # FTP upload the demo files (requires https://github.com/mar10/pyftpsync)
        cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --omit dist,node_modules,.*,_* -x"

    jscs:
      src: ["jquery.ui-contextmenu.js", "test/tests.js"]
      options:
        config: ".jscsrc"
        force: true

    jshint:
      files: ["jquery.ui-contextmenu.js", "test/tests.js"]
      options:
        jshintrc: ".jshintrc"

    qunit:
      all: ["test/index.html", "test/index-jquery-ui-1-10.html"]

    # replace: # grunt-text-replace
    #     production:
    #         src: ["build/**/*.js"]
    #         overwrite : true
    #         replacements: [ {
    #             from : /@DATE/g
    #             to : "<%= grunt.template.today('yyyy-mm-dd\"T\"HH:MM') %>"
    #         },{
    #             from : /buildType:\s*\"[a-zA-Z]+\"/g
    #             to : "buildType: \"production\""
    #         },{
    #             from : /debugLevel:\s*[0-9]/g
    #             to : "debugLevel: 1"
    #         } ]
    #     release:
    #         src: ["dist/**/*.js"]
    #         overwrite : true
    #         replacements: [ {
    #             from : /@VERSION/g
    #             to : "<%= pkg.version %>"
    #         } ]

    "saucelabs-qunit":
      ui_10:
        options:
          urls: [
            # "http://localhost:9999/test/index.html",
            "http://localhost:9999/test/index-jquery-ui-1-10.html"
          ]
          
          # username: process.env.SAUCE_USERNAME,
          # key: process.env.SAUCE_ACCESS_KEY,
          build: process.env.TRAVIS_JOB_ID
          throttled: 8
          browsers: [
            { browserName: "chrome", platform: "Windows 7" }
            { browserName: "firefox", platform: "Windows 7" }
            # { browserName: "firefox", platform: "Windows XP" }
            { browserName: "firefox", platform: "Linux" }
            { browserName: "internet explorer", version: "6", platform: "Windows XP" }
            { browserName: "internet explorer", version: "7", platform: "Windows XP" }
            { browserName: "internet explorer", version: "8", platform: "Windows 7" }
            { browserName: "internet explorer", version: "9", platform: "Windows 7" }
            { browserName: "internet explorer", version: "10", platform: "Windows 8" }
            { browserName: "internet explorer", version: "11", platform: "Windows 8.1" }
            { browserName: "microsoftedge", platform: "Windows 10" }
            { browserName: "safari", version: "6", platform: "OS X 10.8" }
            { browserName: "safari", version: "7", platform: "OS X 10.9" }
            { browserName: "safari", version: "8", platform: "OS X 10.10" }
            { browserName: "safari", version: "8.1", platform: "OS X 10.11" }
          ]
          testname: "jquery.ui-contextmenu qunit tests (jQuery UI 10)"
      ui: # UI Menu 11+ dropped support for IE7
        options:
          urls: [
            "http://localhost:9999/test/index.html",
            # "http://localhost:9999/test/index-jquery-ui-1-10.html"
          ]
          
          # username: process.env.SAUCE_USERNAME,
          # key: process.env.SAUCE_ACCESS_KEY,
          build: process.env.TRAVIS_JOB_ID
          throttled: 8
          browsers: [
            { browserName: "chrome", platform: "Windows 7" }
            { browserName: "firefox", platform: "Windows 7" }
            { browserName: "firefox", platform: "Windows XP" }
            { browserName: "firefox", platform: "Linux" }
            # { browserName: "internet explorer", version: "6", platform: "Windows XP" }
{'fraction_non_alphanumeric': 0.14713744709289375, 'fraction_numerical': 0.020049008687903765, 'mean_word_length': 1.7258652094717668, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '3048549', 'n_tokens_mistral': 2960, 'n_tokens_neox': 2778, 'n_words': 614}