<commit_before>import React from "react";
import { Button } from "antd";

/**
 * React component to be used any time a link button needs
 * to be added to the page.
 * @param {string} text to be displayed on the button
 * @param {string} href (optional) if this is a link to a new page
 * @param {function} onClick click handler for action to be taken on click
 * @param {object} props any other props that should be added to the button
 * @returns {*}
 */
export function LinkButton({ text, href, onClick, ...props }) {
  return (
    <Button
      type="link"
      block
      style={{
        padding: 0,
        height: "auto",
        whiteSpace: "normal",
        textAlign: "left",
        margin: 0,
      }}
      href={href}
      onClick={onClick}
      {...props}
    >
      {text}
    </Button><commit_msg>adding style param to LinkButton component<commit_after>import React from "react";
import { Button } from "antd";

/**
 * React component to be used any time a link button needs
 * to be added to the page.
 * @param {string} text to be displayed on the button
 * @param {string} href (optional) if this is a link to a new page
 * @param {function} onClick click handler for action to be taken on click
 * @param {object} props any other props that should be added to the button
 * @returns {*}
 */
export function LinkButton({ text, href, onClick, style, ...props }) {
  return (
    <Button
      type="link"
      block
      style={{
        padding: 0,
        height: "auto",
        whiteSpace: "normal",
        textAlign: "left",
        margin: 0,
        ...style,
      }}
      href={href}
      onClick={onClick}
      {...props}
    >
      {text}
    </Button>
{'fraction_non_alphanumeric': 0.11615566037735849, 'fraction_numerical': 0.0023584905660377358, 'mean_word_length': 2.4421906693711968, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5216312', 'n_tokens_mistral': 483, 'n_tokens_neox': 482, 'n_words': 206}