<commit_before>module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON("package.json"),
    eslint: {
      src: ["src/bugsnag.js"]
    },
    "regex-replace": {
      dist: {
        src: ["src/bugsnag.js", "README.md"],
        actions: [
          {
            name: "version",
            search: /var NOTIFIER_VERSION =[^;]*;/,
            replace: function() {
              return "var NOTIFIER_VERSION = \"" + (require("./package.json").version) + "\";";
            }
          }, {
            name: "readme",
            search: /cloudfront.net\/bugsnag-([0-9]+\.)+[0-9]+.min.js/g,
            replace: function() {
              return "cloudfront.net/bugsnag-" + (require("./package.json").version) + ".min.js";
            }
          }
        ]
      }
    },
    s3: {
      options: {
        bucket: "bugsnagcdn",
        access: "public-read",
        gzip: true,
        headers: {
          "Cache-Control": "public, max-age=315360000"
        }
      },
      release: {
        upload: [
          {
            src: "src/bugsnag.js",
            dest: "bugsnag-<%= pkg.version %>.js"
          }, {
            src: "dist/bugsnag.min.js",
            dest: "bugsnag-<%= pkg.version %>.min.js"
          }, {
            src: "dist/bugsnag.min.map",
            dest: "bugsnag-<%= pkg.version %>.min.map"
          }
        ]
      },
      major: {
        options: {
          headers: {
            "Cache-Control": "public, max-age=604800"
          }
        },
        upload: [
          {
            src: "src/bugsnag.js",
            dest: "bugsnag-<%= pkg.version.split('.')[0] %>.js"
          }, {
            src: "dist/bugsnag.min.js",
            dest: "bugsnag-<%= pkg.version.split('.')[0] %>.min.js"
          }
        ]
      }
    },
    invalidate_cloudfront: {
      options: {
        key: process.env.AWS_ACCESS_KEY_ID,
        secret: process.env.AWS_SECRET_ACCESS_KEY,
        distribution: "E205JDPNKONLN7"<commit_msg>Update major version pin during release<commit_after>module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON("package.json"),
    eslint: {
      src: ["src/bugsnag.js"]
    },
    "regex-replace": {
      dist: {
        src: ["src/bugsnag.js", "README.md"],
        actions: [
          {
            name: "version",
            search: /var NOTIFIER_VERSION =[^;]*;/,
            replace: function() {
              return "var NOTIFIER_VERSION = \"" + (require("./package.json").version) + "\";";
            }
          }, {
            name: "readme",
            search: /cloudfront.net\/bugsnag-([0-9]+\.)+[0-9]+.min.js/g,
            replace: function() {
              return "cloudfront.net/bugsnag-" + (require("./package.json").version) + ".min.js";
            }
          }
        ]
      }
    },
    s3: {
      options: {
        bucket: "bugsnagcdn",
        access: "public-read",
        gzip: true,
        headers: {
          "Cache-Control": "public, max-age=315360000"
        }
      },
      release: {
        upload: [
          {
            src: "src/bugsnag.js",
            dest: "bugsnag-<%= pkg.version %>.js"
          }, {
            src: "dist/bugsnag.min.js",
            dest: "bugsnag-<%= pkg.version %>.min.js"
          }, {
            src: "src/bugsnag.js",
            dest: "bugsnag-<%= pkg.version.split('.')[0] %>.js"
          }, {
            src: "dist/bugsnag.min.js",
            dest: "bugsnag-<%= pkg.version.split('.')[0] %>.min.js"
          }, {
            src: "dist/bugsnag.min.map",
            dest: "bugsnag-<%= pkg.version %>.min.map"
          }
        ]
      },
      major: {
        options: {
          headers: {
            "Cache-Control": "public, max-age=604800"
          }
        },
        upload: [
          {
            src: "src/bugsnag.js",
            dest: "bugsnag-<%= pkg.version.split('.')[0] %>.js"
          }, {
            src: "dist/bugsnag.min.js",
            dest: "bugsnag-<%= pkg.version.split('.')[0] %>.min.js"
          }
        ]
      }
    },
    invalidate_cloudfront: {
      options: {
        key: process.env.AWS_ACCESS_KEY_ID,
        secret: process.env.AWS_SECRET_ACCESS_KEY,
        distribution: "E205JDPNKONLN7"
{'fraction_non_alphanumeric': 0.17904851183501289, 'fraction_numerical': 0.012655261307710336, 'mean_word_length': 1.3658536585365855, 'pattern_counts': {'":': 6, '<': 15, '<?xml version=': 0, '>': 15, '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': '1487321', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1429, 'n_words': 204}