<commit_before>import { APIRefState } from '../lib/api'
import { GitHubRepository } from './github-repository'

export class PullRequestRef {
  /** The name of the ref. */
  public readonly ref: string

  /** The SHA of the ref. */
  public readonly sha: string

  /**
   * The GitHub repository in which this ref lives. It could be null if the
   * repository was deleted after the PR was opened.
   */
  public readonly gitHubRepository: GitHubRepository | null

  public constructor(
    ref: string,
    sha: string,
    gitHubRepository: GitHubRepository | null
  ) {
    this.ref = ref
    this.sha = sha
    this.gitHubRepository = gitHubRepository
  }
}

export class PullRequestStatus {
  /** The status' state. */
  public readonly state: APIRefState

  /** The number of statuses represented in this combined status. */
  public readonly totalCount: number

  /** The SHA for which this status applies. */
  public readonly sha: string

  public constructor(state: APIRefState, totalCount: number, sha: string) {
    this.state = state
    this.totalCount = totalCount
    this.sha = sha
  }
}

export class PullRequest {
  /** The database ID. */
  public readonly id: number

  /** The date on which the PR was created. */
  public readonly created: Date

  /** The title of the PR. */
  public readonly title: string

  /** The number. */
  public readonly number: number

  /** The ref from which the pull request's changes are coming. */
  public readonly head: PullRequestRef

  /** The ref which the pull request is targetting. */
  public readonly base: PullRequestRef

  /** The author's login. */
  public readonly author: string
<commit_msg>Add PR Number to status<commit_after>import { APIRefState } from '../lib/api'
import { GitHubRepository } from './github-repository'

export class PullRequestRef {
  /** The name of the ref. */
  public readonly ref: string

  /** The SHA of the ref. */
  public readonly sha: string

  /**
   * The GitHub repository in which this ref lives. It could be null if the
   * repository was deleted after the PR was opened.
   */
  public readonly gitHubRepository: GitHubRepository | null

  public constructor(
    ref: string,
    sha: string,
    gitHubRepository: GitHubRepository | null
  ) {
    this.ref = ref
    this.sha = sha
    this.gitHubRepository = gitHubRepository
  }
}

export class PullRequestStatus {
  /** The pull request this status is associated with */
  public readonly pullRequestNumber: number

  /** The status' state. */
  public readonly state: APIRefState

  /** The number of statuses represented in this combined status. */
  public readonly totalCount: number

  /** The SHA for which this status applies. */
  public readonly sha: string

  public constructor(
    pullRequestNumber: number,
    state: APIRefState,
    totalCount: number,
    sha: string
  ) {
    this.pullRequestNumber = pullRequestNumber
    this.state = state
    this.totalCount = totalCount
    this.sha = sha
  }
}

export class PullRequest {
  /** The database ID. */
  public readonly id: number

  /** The date on which the PR was created. */
  public readonly created: Date

  /** The title of the PR. */
  public readonly title: string

  /** The number. */
  public readonly number: number

  /** The ref from which the pull request's changes are coming. */
  public readonly head: PullRequestRef

  /** The ref which the pull request is targetting. */
  public readonly base: PullRequestRef

  /** The author's login. */
  public readonly author: string

{'fraction_non_alphanumeric': 0.08890147225368063, 'fraction_numerical': 0.0, 'mean_word_length': 3.005668934240363, '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': '3687792', 'n_tokens_mistral': 966, 'n_tokens_neox': 934, 'n_words': 397}