<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import Modal from './Modal';
import Button from 'react-bootstrap/lib/Button';

import CodeMirror from 'codemirror';
import L from 'leaflet';

export default class AboutModal extends React.Component {
    constructor (props) {
        super(props);

        this.state = {
            visible: true
        };

        this.onClickClose = this.onClickClose.bind(this);
    }

    onClickClose () {
        this.setState({ visible: false });
        ReactDOM.unmountComponentAtNode(document.getElementById('modal-container'));
    }

    render () {
        return (
            <Modal className='about-modal' visible={this.state.visible}>
                <div className='modal-text modal-about-text'>
                    <h4>About Tangram Play (BETA)</h4>

                    <p>
                        {/* Get and display version numbers.
                            Tangram version comes with its own "v" */}
                        Tangram <span className='about-tangram-version'>{window.Tangram.version}</span>
                        {/* Add "v" for Leaflet and CodeMirror */}
                        <br />Leaflet <span className='about-leaflet-version'>{`v${L.version}`}</span>
                        <br />CodeMirror <span className='about-cm-version'>{`v${CodeMirror.version}`}</span>
                    </p>
                    <p>
                        This is a <a href='https://mapzen.com/' target='_blank'>Mapzen</a> project.
                    </p>
                    <p>
                        <a href='https://github.com/tangrams/tangram-play' target='_blank'>View source on GitHub</a>
                    </p>
                </div>

                <div className='modal-buttons'>
                    <Button onClick={this.onClickClose} className='modal-confirm'>Got it</Button>
                </div>
            </Modal>
        );
    }
}<commit_msg>Remove unused visible state fromAboutModal<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import Modal from './Modal';
import Button from 'react-bootstrap/lib/Button';

import CodeMirror from 'codemirror';
import L from 'leaflet';

export default class AboutModal extends React.Component {
    onClickClose () {
        ReactDOM.unmountComponentAtNode(document.getElementById('modal-container'));
    }

    render () {
        return (
            <Modal className='about-modal'>
                <div className='modal-text modal-about-text'>
                    <h4>About Tangram Play (BETA)</h4>

                    <p>
                        {/* Get and display version numbers.
                            Tangram version comes with its own "v" */}
                        Tangram <span className='about-tangram-version'>{window.Tangram.version}</span>
                        {/* Add "v" for Leaflet and CodeMirror */}
                        <br />Leaflet <span className='about-leaflet-version'>{`v${L.version}`}</span>
                        <br />CodeMirror <span className='about-cm-version'>{`v${CodeMirror.version}`}</span>
                    </p>
                    <p>
                        This is a <a href='https://mapzen.com/' target='_blank'>Mapzen</a> project.
                    </p>
                    <p>
                        <a href='https://github.com/tangrams/tangram-play' target='_blank'>View source on GitHub</a>
                    </p>
                </div>

                <div className='modal-buttons'>
                    <Button onClick={this.onClickClose} className='modal-confirm'>Got it</Button>
                </div>
            </Modal>
        );
    }
}
{'fraction_non_alphanumeric': 0.12939902544667028, 'fraction_numerical': 0.0010828370330265296, 'mean_word_length': 1.613154172560113, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6787919', 'n_tokens_mistral': 1007, 'n_tokens_neox': 949, 'n_words': 216}