<commit_before>import React, { Component } from 'react';
import classNames from 'classnames';

import mergeStyles from '../lib/mergeStyles';


export default class DeleteSongBtn extends Component {
	
	constructor(props) {
		super(props);
		this.state = {
			deleteStep: 0
		}
	}

	handleClick(event) {
		if (this.state.deleteStep == 0) {
			this.setState({deleteStep: 1});
		} else {
			this.props.onDeleteSong(this.props.songIdx);
		}
	}

  render() {
		const gridStyle = mergeStyles({
			marginTop: 5
		});

    return (
				<button
					type="button"
					className="btn btn-danger col-xs-10 col-xs-offset-1 col-sm-2 col-sm-offset-1"
					onClick={ (e) => this.handleClick(e) }
					>
					<span
						className="glyphicon glyphicon-trash"
						aria-hidden="true"></span> { this.state.deleteStep == 0 ? 'Delete' : 'Confirm' }
				</button>
    );
  }
}
<commit_msg>rfmt && fix bug w/ delete confirmation<commit_after>import React, { Component } from 'react';
import classNames from 'classnames';

import mergeStyles from '../lib/mergeStyles';


export default class DeleteSongBtn extends Component {
  constructor(props) {
    super(props);
    this.state = {
      deleteStep: 0
    }
  }

  handleClick(event) {
    if (this.state.deleteStep == 0) {
      this.setState({deleteStep: 1});
    } else {
      this.props.onDeleteSong(this.props.songIdx);
      this.setState({deleteStep: 0});
    }
  }

render() {
  const gridStyle = mergeStyles({
    marginTop: 5
  });

  return (
    <button
      type="button"
      className="btn btn-danger col-xs-10 col-xs-offset-1 col-sm-2 col-sm-offset-1"
      onClick={ (e) => this.handleClick(e) }>

      <span
        className="glyphicon glyphicon-trash"
        aria-hidden="true"></span> { this.state.deleteStep == 0 ? 'Delete' : 'Confirm' }

    </button>
  );
  }
}

{'fraction_non_alphanumeric': 0.1503017004936917, 'fraction_numerical': 0.01151947339550192, 'mean_word_length': 2.872611464968153, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '4920506', 'n_tokens_mistral': 687, 'n_tokens_neox': 608, 'n_words': 125}