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

interface Props {
    text?: string;
    buttonClass: string;
    faClass?: string;
    onClick: React.MouseEventHandler<HTMLSpanElement>;
    onMouseEnter?: React.MouseEventHandler<HTMLSpanElement>;
    onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
}

export class ListingButton extends React.Component<Props> {
    public render() {
        const text = this.props.text || "";
        
        const cssClasses = [`c-listing-button`, `c-listing-${this.props.buttonClass}`];
        if (this.props.faClass) {
            cssClasses.push("fa", `fa-${this.props.faClass}`);
        }
        
        return <span
            className={cssClasses.join(" ")}
            onClick={this.props.onClick}
            onMouseEnter={this.props.onMouseEnter}
            onMouseLeave={this.props.onMouseLeave}>
            {text}</span>;
    } 
}<commit_msg>Show folder icon on listing folders<commit_after>import * as React from "react";

interface Props {
    text?: string;
    buttonClass: string;
    faClass?: string;
    onClick: React.MouseEventHandler<HTMLSpanElement>;
    onMouseEnter?: React.MouseEventHandler<HTMLSpanElement>;
    onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
}

export class ListingButton extends React.Component<Props> {
    public render() {
        const text = this.props.text || "";
        
        const cssClasses = [`c-listing-button`, `c-listing-${this.props.buttonClass}`];
        if (this.props.faClass) {
            cssClasses.push("fas", `fa-${this.props.faClass}`);
        }
        
        return <span
            className={cssClasses.join(" ")}
            onClick={this.props.onClick}
            onMouseEnter={this.props.onMouseEnter}
            onMouseLeave={this.props.onMouseLeave}>
            {text}</span>;
    } 
}
{'fraction_non_alphanumeric': 0.13159325720500273, 'fraction_numerical': 0.0, 'mean_word_length': 2.6653386454183265, 'pattern_counts': {'":': 0, '<': 15, '<?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': '2639570', 'n_tokens_mistral': 521, 'n_tokens_neox': 529, 'n_words': 93}