<commit_before>import pLimit from 'p-limit'
import QuickLRU from 'quick-lru'

import { Account } from '../../models/account'
import { AccountsStore } from './accounts-store'
import { GitHubRepository } from '../../models/github-repository'
import {
  API,
  IAPIRefStatusItem,
  IAPIRefCheckRun,
  APICheckStatus,
  APICheckConclusion,
  IAPIWorkflowRun,
  IAPIWorkflowJobStep,
  IAPIWorkflowJob,
  IAPIWorkflowJobs,
  getAccountForEndpoint,
} from '../api'
import { IDisposable, Disposable } from 'event-kit'
import { setAlmostImmediate } from '../set-almost-immediate'
import JSZip from 'jszip'

/**
 * A Desktop-specific model closely related to a GitHub API Check Run.
 *
 * The RefCheck object abstracts the difference between the legacy
 * Commit Status objects and the modern Check Runs and unifies them
 * under one common interface. Since all commit statuses can be<commit_msg>Import moment<commit_after>import pLimit from 'p-limit'
import QuickLRU from 'quick-lru'

import { Account } from '../../models/account'
import { AccountsStore } from './accounts-store'
import { GitHubRepository } from '../../models/github-repository'
import {
  API,
  IAPIRefStatusItem,
  IAPIRefCheckRun,
  APICheckStatus,
  APICheckConclusion,
  IAPIWorkflowRun,
  IAPIWorkflowJobStep,
  IAPIWorkflowJob,
  IAPIWorkflowJobs,
  getAccountForEndpoint,
} from '../api'
import { IDisposable, Disposable } from 'event-kit'
import { setAlmostImmediate } from '../set-almost-immediate'
import JSZip from 'jszip'
import moment from 'moment'

/**
 * A Desktop-specific model closely related to a GitHub API Check Run.
 *
 * The RefCheck object abstracts the difference between the legacy
 * Commit Status objects and the modern Check Runs and unifies them
 * under one common interface. Since all commit statuses can be
{'fraction_non_alphanumeric': 0.09444444444444444, 'fraction_numerical': 0.0, 'mean_word_length': 4.392215568862276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4811223', 'n_tokens_mistral': 545, 'n_tokens_neox': 536, 'n_words': 178}