<commit_before>/**
 * Config for running lighthouse audits.
 * For the possible types, see
 * https://github.com/GoogleChrome/lighthouse/blob/master/typings/config.d.ts.
 * and
 * https://github.com/GoogleChrome/lighthouse/tree/master/lighthouse-core/config
 * @const {LH.Config}
 */
module.exports = {
  extends: 'lighthouse:full',
  passes: [
    {
      passName: 'defaultPass',
      gatherers: [
        './gatherers/network',
        './gatherers/rendered-ad-slots',
      ],
    },
    {
      passName: 'redirectPass',
      gatherers: [
        './gatherers/static-ad-tags',
      ],
    },
  ],

  audits: [
    './audits/ad-blocking-tasks',
    './audits/ad-request-critical-path',
    './audits/ads-in-viewport',
    './audits/async-ad-tags',
    './audits/has-ads',
    './audits/loads-gpt-over-https',
    './audits/viewport-ad-density',
  ],

  groups: {
    'ads-best-practices': {
      title: 'Best Practices',
    },
    'ads-performance': {
      title: 'Performance',
    },
  },

  categories: {
    'ads-quality': {
      title: 'Ad Quality',
      auditRefs: [
        {id: 'ad-blocking-tasks', weight: 1, group: 'ads-performance'},
        {id: 'ad-request-critical-path', weight: 1, group: 'ads-performance'},
        {id: 'ads-in-viewport', weight: 1, group: 'ads-best-practices'},
        {id: 'async-ad-tags', weight: 1, group: 'ads-best-practices'},
        {id: 'loads-gpt-over-https', weight: 1, group: 'ads-best-practices'},
        {id: 'viewport-ad-density', weight: 1, group: 'ads-best-practices'},<commit_msg>Make gatherer/audit paths in config absolute.<commit_after>/**
 * Config for running lighthouse audits.
 * For the possible types, see
 * https://github.com/GoogleChrome/lighthouse/blob/master/typings/config.d.ts.
 * and
 * https://github.com/GoogleChrome/lighthouse/tree/master/lighthouse-core/config
 * @const {LH.Config}
 */
module.exports = {
  extends: 'lighthouse:full',
  passes: [
    {
      passName: 'defaultPass',
      gatherers: [
        require.resolve('./gatherers/network'),
        require.resolve('./gatherers/rendered-ad-slots'),
      ],
    },
    {
      passName: 'redirectPass',
      gatherers: [
        require.resolve('./gatherers/static-ad-tags'),
      ],
    },
  ],

  audits: [
    require.resolve('./audits/ad-blocking-tasks'),
    require.resolve('./audits/ad-request-critical-path'),
    require.resolve('./audits/ads-in-viewport'),
    require.resolve('./audits/async-ad-tags'),
    require.resolve('./audits/has-ads'),
    require.resolve('./audits/loads-gpt-over-https'),
    require.resolve('./audits/viewport-ad-density'),
  ],

  groups: {
    'ads-best-practices': {
      title: 'Best Practices',
    },
    'ads-performance': {
      title: 'Performance',
    },
  },

  categories: {
    'ads-quality': {
      title: 'Ad Quality',
      auditRefs: [
        {id: 'ad-blocking-tasks', weight: 1, group: 'ads-performance'},
        {id: 'ad-request-critical-path', weight: 1, group: 'ads-performance'},
        {id: 'ads-in-viewport', weight: 1, group: 'ads-best-practices'},
        {id: 'async-ad-tags', weight: 1, group: 'ads-best-practices'},
        {id: 'loads-gpt-over-https', weight: 1, group: 'ads-best-practices'},
        {id: 'viewport-ad-density', weight: 1, group: 'ads-best-practices'},
{'fraction_non_alphanumeric': 0.19004250151791136, 'fraction_numerical': 0.0036429872495446266, 'mean_word_length': 2.652993348115299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3764800', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1153, 'n_words': 178}