<commit_before>/**
* DateSelect.jsx
* Created by <NAME>
**/

import React from 'react';
import GenerateFileBox from '../generateFiles/components/GenerateFileBox.jsx';
import LoadingBauble from '../SharedComponents/overlays/LoadingBauble.jsx';

export default class DateSelect extends React.Component {
    handleDateChange(file, date, dateType) {
        this.props.handleDateChange(file, date, dateType);
    }

    showError(file, header, description) {
        this.props.showError(file, header, description);
    }

    hideError(file) {
        this.props.hideError(file);
    }

    render() {
        let d1Text = "Generate D1 File";
        let loadingD1 = null;
        if(this.props.d1.status == "generating") {
            d1Text = "Generating";
            loadingD1 = <LoadingBauble />
        }
        else if(this.props.d1.status == "done") {
            d1Text = "Regenerate D1 File";
        }

        let d2Text = "Generate D2 File";
        let loadingD2 = null;
        if(this.props.d2.status == "generating") {
            d2Text = "Generating";
            loadingD2 = <LoadingBauble />
        }
        else if(this.props.d2.status == "done") {
            d1Text = "Regenerate D2 File";
        }<commit_msg>Fixing a small text bug<commit_after>/**
* DateSelect.jsx
* Created by <NAME>
**/

import React from 'react';
import GenerateFileBox from '../generateFiles/components/GenerateFileBox.jsx';
import LoadingBauble from '../SharedComponents/overlays/LoadingBauble.jsx';

export default class DateSelect extends React.Component {
    handleDateChange(file, date, dateType) {
        this.props.handleDateChange(file, date, dateType);
    }

    showError(file, header, description) {
        this.props.showError(file, header, description);
    }

    hideError(file) {
        this.props.hideError(file);
    }

    render() {
        let d1Text = "Generate D1 File";
        let loadingD1 = null;
        if(this.props.d1.status == "generating") {
            d1Text = "Generating";
            loadingD1 = <LoadingBauble />
        }
        else if(this.props.d1.status == "done") {
            d1Text = "Regenerate D1 File";
        }

        let d2Text = "Generate D2 File";
        let loadingD2 = null;
        if(this.props.d2.status == "generating") {
            d2Text = "Generating";
            loadingD2 = <LoadingBauble />
        }
        else if(this.props.d2.status == "done") {
            d2Text = "Regenerate D2 File";
        }
{'fraction_non_alphanumeric': 0.12489927477840451, 'fraction_numerical': 0.014504431909750202, 'mean_word_length': 2.2800528401585205, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1787130', 'n_tokens_mistral': 780, 'n_tokens_neox': 754, 'n_words': 164}