<commit_before>import * as React from 'react'
import { shell } from 'electron'
import * as classNames from 'classnames'

interface ILinkButtonProps {
  /** A URI to open on click. */
  readonly uri?: string | JSX.Element | ReadonlyArray<JSX.Element>

  /** A function to call on click. */
  readonly onClick?: () => void

  /** The title of the button. */
  readonly children?: string

  /** CSS classes attached to the component */
  readonly className?: string

  /** The tab index of the anchor element. */
  readonly tabIndex?: number

  /** Disable the link from being clicked */
  readonly disabled?: boolean

  /** title-text or tooltip for the link */
  readonly title?: string
}

/** A link component. */
export class LinkButton extends React.Component<ILinkButtonProps, void> {
  public render() {
    const { uri, className, ...otherProps } = this.props
    const href = uri || ''
    const props = { ...otherProps, className: classNames('link-button-component', className), onClick: this.onClick, href }

    return (
      <a {...props}><commit_msg>Did not look at that closely enough.<commit_after>import * as React from 'react'
import { shell } from 'electron'
import * as classNames from 'classnames'

interface ILinkButtonProps {
  /** A URI to open on click. */
  readonly uri?: string

  /** A function to call on click. */
  readonly onClick?: () => void

  /** The title of the button. */
  readonly children?: string | JSX.Element | ReadonlyArray<JSX.Element>

  /** CSS classes attached to the component */
  readonly className?: string

  /** The tab index of the anchor element. */
  readonly tabIndex?: number

  /** Disable the link from being clicked */
  readonly disabled?: boolean

  /** title-text or tooltip for the link */
  readonly title?: string
}

/** A link component. */
export class LinkButton extends React.Component<ILinkButtonProps, void> {
  public render() {
    const { uri, className, ...otherProps } = this.props
    const href = uri || ''
    const props = { ...otherProps, className: classNames('link-button-component', className), onClick: this.onClick, href }

    return (
      <a {...props}>
{'fraction_non_alphanumeric': 0.12529110386585934, 'fraction_numerical': 0.0, 'mean_word_length': 3.261904761904762, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4097089', 'n_tokens_mistral': 591, 'n_tokens_neox': 574, 'n_words': 229}