<commit_before>const { Octokit } = require('@octokit/rest');

const {
  github: { owner, secret, freeCodeCampRepo, defaultBase }
} = require('../../../lib/config');

const getPRs = async () => {
  const octokit = new Octokit({ auth: secret });

  /* eslint-disable camelcase */
  const methodProps = {
    owner,
    repo: freeCodeCampRepo,
    base: defaultBase,
    state: 'open',
    sort: 'created',
    direction: 'asc',
    per_page: 100
  };

  const openPRs = await octokit.paginate(octokit.pulls.list, methodProps);
  return openPRs;
};

module.exports = getPRs;<commit_msg>Contributor tools searches from all PRs (#42630)<commit_after>const { Octokit } = require('@octokit/rest');

const {
  github: { owner, secret, freeCodeCampRepo }
} = require('../../../lib/config');

const getPRs = async () => {
  const octokit = new Octokit({ auth: secret });

  /* eslint-disable camelcase */
  const methodProps = {
    owner,
    repo: freeCodeCampRepo,
    state: 'open',
    sort: 'created',
    direction: 'asc',
    per_page: 100
  };

  const openPRs = await octokit.paginate(octokit.pulls.list, methodProps);
  return openPRs;
};

module.exports = getPRs;
{'fraction_non_alphanumeric': 0.15622317596566523, 'fraction_numerical': 0.00944206008583691, 'mean_word_length': 3.450381679389313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7656554', 'n_tokens_mistral': 416, 'n_tokens_neox': 397, 'n_words': 92}