<commit_before>import * as React from 'react'
import { TextBox } from '../lib/text-box'
import { Button } from '../lib/button'
import { Row } from '../lib/row'
import { DialogContent } from '../dialog'
import { Monospaced } from '../lib/monospaced'

interface ICloneGenericRepositoryProps {
  readonly url: string

  readonly path: string

  readonly onPathChanged: (path: string) => void

  readonly onUrlChanged: (url: string) => void

  readonly onChooseDirectory: () => Promise<string | undefined>
}

/** The component for cloning a repository. */
export class CloneGenericRepository extends React.Component<
  ICloneGenericRepositoryProps,
  {}
> {
  public constructor(props: ICloneGenericRepositoryProps) {
    super(props)
  }

  public render() {
    return (
      <DialogContent className="clone-generic-repository">
        <Row className="url-field-group">
          <label>
            Enter a repository URL or GitHub username and repository (e.g.,{' '}
            <Monospaced>hubot/cool-repo</Monospaced>)
          </label>

          <TextBox
            placeholder="URL or username/repository"
            value={this.props.url}
            onValueChanged={this.onUrlChanged}
            autoFocus={true}
          />
        </Row>

        <Row className="clone-url-local-path">
          <TextBox
            value={this.props.path}
            label={__DARWIN__ ? 'Local Path' : 'Local path'}
            placeholder="repository path"
            onValueChanged={this.props.onPathChanged}
          />
          <Button onClick={this.onChooseDirectory}>Choose…</Button>
        </Row>
      </DialogContent>
    )
  }

  private onChooseDirectory = async () => {
    const path = await this.props.onChooseDirectory()

    if (path) {
      this.props.onPathChanged(path)
    }
  }

  private onUrlChanged = (url: string) => {
    this.props.onUrlChanged(url)
  }
}
<commit_msg>Line break<commit_after>import * as React from 'react'
import { TextBox } from '../lib/text-box'
import { Button } from '../lib/button'
import { Row } from '../lib/row'
import { DialogContent } from '../dialog'
import { Monospaced } from '../lib/monospaced'

interface ICloneGenericRepositoryProps {
  readonly url: string

  readonly path: string

  readonly onPathChanged: (path: string) => void

  readonly onUrlChanged: (url: string) => void

  readonly onChooseDirectory: () => Promise<string | undefined>
}

/** The component for cloning a repository. */
export class CloneGenericRepository extends React.Component<
  ICloneGenericRepositoryProps,
  {}
> {
  public constructor(props: ICloneGenericRepositoryProps) {
    super(props)
  }

  public render() {
    return (
      <DialogContent className="clone-generic-repository">
        <Row className="url-field-group">
          <label>
            Enter a repository URL or GitHub username and repository
            <br />
            (e.g.,{' '}
            <Monospaced>hubot/cool-repo</Monospaced>)
          </label>

          <TextBox
            placeholder="URL or username/repository"
            value={this.props.url}
            onValueChanged={this.onUrlChanged}
            autoFocus={true}
          />
        </Row>

        <Row className="clone-url-local-path">
          <TextBox
            value={this.props.path}
            label={__DARWIN__ ? 'Local Path' : 'Local path'}
            placeholder="repository path"
            onValueChanged={this.props.onPathChanged}
          />
          <Button onClick={this.onChooseDirectory}>Choose…</Button>
        </Row>
      </DialogContent>
    )
  }

  private onChooseDirectory = async () => {
    const path = await this.props.onChooseDirectory()

    if (path) {
      this.props.onPathChanged(path)
    }
  }

  private onUrlChanged = (url: string) => {
    this.props.onUrlChanged(url)
  }
}

{'fraction_non_alphanumeric': 0.12343423799582463, 'fraction_numerical': 0.0, 'mean_word_length': 2.475067996373527, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 46, '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': '2765060', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1060, 'n_words': 246}