<commit_before>import React, { PropTypes, Component } from 'react'

import RaisedButton from 'material-ui/RaisedButton';

const style = {
	position: 'fixed',
	bottom: '10px',
	right: '10px',
	padding: '2px'
};

let TogglePlayerButton = ({display, onToggleDisplay}) => {

    let button;

    if(display){
        button = (
	    <RaisedButton
	        onClick={e => {
		   e.preventDefault(); 
                   onToggleDisplay(display);
		}}
		label="Hide Player"
		secondary={true}
		style={style}
	    />
	)
    } else {
        button = (
	    <RaisedButton
	        onClick={e => {
		   e.preventDefault(); 
                   onToggleDisplay(display);
		}}
		label="Show Player"
		primary={true}
		style={style}
	    />
	)
    }

    return (
        <div>
            { button }
        </div>
    )
}

TogglePlayerButton.propTypes = {
    display: PropTypes.bool.isRequired,
    onToggleDisplay: PropTypes.func.isRequired
}

export default TogglePlayerButton
<commit_msg>clean<commit_after>import React, { PropTypes, Component } from 'react'

import RaisedButton from 'material-ui/RaisedButton';

const style = {
    position: 'fixed',
    bottom: '10px',
    right: '10px',
    padding: '2px'
};

let TogglePlayerButton = ({display, onToggleDisplay}) => {

    let button;

    if (display) {
        button = (
            <RaisedButton
                onClick={e => {
                    e.preventDefault();
                    onToggleDisplay(display);
                }}
                label="Hide Player"
                secondary={true}
                style={style}
            />
        )
    } else {
        button = (
            <RaisedButton
                onClick={e => {
                    e.preventDefault();
                    onToggleDisplay(display);
                }}
                label="Show Player"
                primary={true}
                style={style}
            />
        )
    }

    return (
        <div>
            { button }
        </div>
    )
}

TogglePlayerButton.propTypes = {
    display: PropTypes.bool.isRequired,
    onToggleDisplay: PropTypes.func.isRequired
}

export default TogglePlayerButton

{'fraction_non_alphanumeric': 0.11829944547134935, 'fraction_numerical': 0.0046210720887245845, 'mean_word_length': 1.6827757125154894, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '2210434', 'n_tokens_mistral': 654, 'n_tokens_neox': 613, 'n_words': 117}