<commit_before>import * as React from "react";

export const TipLink = (props: { label: string; link: string; external?: boolean }) => {
  return (
    <span className="tip-link">
      <a href={props.link}>
        {props.label}
      </a>
    </span>
  )
}<commit_msg>update link<commit_after>import * as React from "react";

import { Link } from 'react-router-dom';

export const TipLink = (props: { link: string; external?: boolean; children?:any }) => {
  const linkElement = props.external ?
    (<a href={props.link}>
      {props.children}
    </a>) :
    (<Link to={props.link}>{props.children}</Link>);
  return (
    <span className="tip-link">
      {linkElement}
    </span>
  )
}
{'fraction_non_alphanumeric': 0.1774891774891775, 'fraction_numerical': 0.0, 'mean_word_length': 3.155688622754491, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '1873534', 'n_tokens_mistral': 227, 'n_tokens_neox': 223, 'n_words': 56}