<commit_before>import * as React from 'react'
import { ForkContributionTarget } from '../../models/workflow-preferences'
import { RepositoryWithForkedGitHubRepository } from '../../models/repository'

interface IForkSettingsDescription {
  readonly repository: RepositoryWithForkedGitHubRepository
  readonly forkContributionTarget: ForkContributionTarget
}

export function ForkSettingsDescription(props: IForkSettingsDescription) {
  // We can't use the getNonForkGitHubRepository() helper since we need to calculate
  // the value based on the temporary form state.
  const targetRepository =
    props.forkContributionTarget === ForkContributionTarget.Self
      ? props.repository.gitHubRepository
      : props.repository.gitHubRepository.parent

  return (
    <ul className="fork-settings-description">
      <li>
        Pull requests targeting <strong>{targetRepository.fullName}</strong>{' '}
        will be shown in the pull request list.
      </li>
      <li>
        Issues will be created in <strong>{targetRepository.fullName}</strong>.
      </li>
      <li>
        "View on Github" will open <strong>{targetRepository.fullName}</strong>{' '}
        in the browser.
      </li>
      <li>
        New branches will be based on{' '}
        <strong>{targetRepository.fullName}</strong>'s default branch.
      </li>
    </ul>
  )
}<commit_msg>Include line about autocomplete in fork preferences<commit_after>import * as React from 'react'
import { ForkContributionTarget } from '../../models/workflow-preferences'
import { RepositoryWithForkedGitHubRepository } from '../../models/repository'

interface IForkSettingsDescription {
  readonly repository: RepositoryWithForkedGitHubRepository
  readonly forkContributionTarget: ForkContributionTarget
}

export function ForkSettingsDescription(props: IForkSettingsDescription) {
  // We can't use the getNonForkGitHubRepository() helper since we need to calculate
  // the value based on the temporary form state.
  const targetRepository =
    props.forkContributionTarget === ForkContributionTarget.Self
      ? props.repository.gitHubRepository
      : props.repository.gitHubRepository.parent

  return (
    <ul className="fork-settings-description">
      <li>
        Pull requests targeting <strong>{targetRepository.fullName}</strong>{' '}
        will be shown in the pull request list.
      </li>
      <li>
        Issues will be created in <strong>{targetRepository.fullName}</strong>.
      </li>
      <li>
        "View on Github" will open <strong>{targetRepository.fullName}</strong>{' '}
        in the browser.
      </li>
      <li>
        New branches will be based on{' '}
        <strong>{targetRepository.fullName}</strong>'s default branch.
      </li>
      <li>
        Autocompletion of user and issues will be based on{' '}
        <strong>{targetRepository.fullName}</strong>.
      </li>
    </ul>
  )
}
{'fraction_non_alphanumeric': 0.10395869191049914, 'fraction_numerical': 0.0, 'mean_word_length': 3.3502994011976046, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '6745103', 'n_tokens_mistral': 792, 'n_tokens_neox': 767, 'n_words': 214}