<commit_before>module.exports = class Radar {
  constructor(github, config) {
    this.github = github;
    this.config = Object.assign({}, require('./defaults'), config || {});
    this.logger = config.logger || console;
  }

  //return most recent blocked issues
  async getIssuesWithLabel(){
    const {owner, repo, labels} = this.config;
    this.logger.info(owner, repo, labels);
    var all_issues = [];
    await labels.forEach(label => {
      var query = `repo:${owner}/${repo} is:issue is:open label:${label} `
      const params = {
        q: query,
        sort: 'updated',
        order: 'desc',
        per_page: 100
      };

      this.logger.info(params, 'searching %s/%s for blocked issues', owner, repo);
      issues = this.github.search.issues(params);
      all_issues.push(issues);
    });

    this.logger.info("all_issues:", all_issues)
    return all_issues;
  }
};<commit_msg>assign var<commit_after>module.exports = class Radar {
  constructor(github, config) {
    this.github = github;
    this.config = Object.assign({}, require('./defaults'), config || {});
    this.logger = config.logger || console;
  }

  //return most recent blocked issues
  async getIssuesWithLabel(){
    const {owner, repo, labels} = this.config;
    this.logger.info(owner, repo, labels);
    var all_issues = [];
    await labels.forEach(label => {
      var query = `repo:${owner}/${repo} is:issue is:open label:${label} `
      const params = {
        q: query,
        sort: 'updated',
        order: 'desc',
        per_page: 100
      };

      this.logger.info(params, 'searching %s/%s for blocked issues', owner, repo);
      var issues = this.github.search.issues(params);
      all_issues.push(issues);
    });

    this.logger.info("all_issues:", all_issues)
    return all_issues;
  }
};
{'fraction_non_alphanumeric': 0.1536760641238253, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 2.8758029978586723, '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': '169931', 'n_tokens_mistral': 563, 'n_tokens_neox': 550, 'n_words': 130}