<commit_before>const logger = require('../utils/logger')
const chalk = require('chalk')

module.exports = async function filterTymlyRepos (options) {
  logger.section(`Filtering ${options.gitHubRepos.length} Tymly repos:`)
  const applyRepoData = async () => {
    const tymlyRepos = []
    process.stdout.write('    ')
    for (const repo of options.gitHubRepos) {
      process.stdout.write('.')
      try {
        const packageJson = await getPackageJson(options.octokit, repo.name, options.gitHubOrg)
        const packageJsonString = Buffer.from(packageJson.data.content, 'base64').toString('utf8')
        const keywords = JSON.parse(packageJsonString).keywords

        if (Array.isArray(keywords)) {
          // Only interested in repos with 'tymly' in package.keywords
          if (keywords.includes('tymly')) {
            // And also only those with a qualifying 'repoType' keyword
            let repoType = null
            options.repoTypes.forEach(rt => {
              if (keywords.includes(rt)) {
                if (repoType === null) {
                  repoType = rt
                } else {<commit_msg>refactor: symbol looks nicer<commit_after>const logger = require('../utils/logger')
const chalk = require('chalk')

module.exports = async function filterTymlyRepos (options) {
  logger.section(`Filtering ${options.gitHubRepos.length} Tymly repos:`)
  const applyRepoData = async () => {
    const tymlyRepos = []
    process.stdout.write('    ')
    for (const repo of options.gitHubRepos) {
      process.stdout.write('◽')
      try {
        const packageJson = await getPackageJson(options.octokit, repo.name, options.gitHubOrg)
        const packageJsonString = Buffer.from(packageJson.data.content, 'base64').toString('utf8')
        const keywords = JSON.parse(packageJsonString).keywords

        if (Array.isArray(keywords)) {
          // Only interested in repos with 'tymly' in package.keywords
          if (keywords.includes('tymly')) {
            // And also only those with a qualifying 'repoType' keyword
            let repoType = null
            options.repoTypes.forEach(rt => {
              if (keywords.includes(rt)) {
                if (repoType === null) {
                  repoType = rt
                } else {
{'fraction_non_alphanumeric': 0.11689457432730481, 'fraction_numerical': 0.002646669607410675, 'mean_word_length': 2.527216174183515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7366538', 'n_tokens_mistral': 644, 'n_tokens_neox': 618, 'n_words': 151}