<commit_before>window.ReactDeleteButton = React.createBackboneClass
  displayName: 'ReactDeleteButton'

  getInitialState: ->
    opened: false

  _toggleButton: -> @setState opened: !@state.opened

  _slideButtonIn: -> @setState opened: false

  _onDelete: -> @props.onDelete()

  render: ->
    second_button =
      R.span className: "delete-button-second-container",
        R.span className: "delete-button-second button-small button-danger", onClick: @_onDelete,
          @props.text || 'Delete'
        R.span className: "delete-button-arrow"

    first_button =
      R.span className: "delete-button-first", onClick: @_toggleButton,
        R.i className: "icon-trash"
<commit_msg>Simplified callback<commit_after>window.ReactDeleteButton = React.createBackboneClass
  displayName: 'ReactDeleteButton'

  getInitialState: ->
    opened: false

  _toggleButton: -> @setState opened: !@state.opened

  _slideButtonIn: -> @setState opened: false

  render: ->
    second_button =
      R.span className: "delete-button-second-container",
        R.span className: "delete-button-second button-small button-danger", onClick: @props.onDelete,
          @props.text || 'Delete'
        R.span className: "delete-button-arrow"

    first_button =
      R.span className: "delete-button-first", onClick: @_toggleButton,
        R.i className: "icon-trash"

{'fraction_non_alphanumeric': 0.12076583210603829, 'fraction_numerical': 0.0, 'mean_word_length': 3.455737704918033, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '6611777', 'n_tokens_mistral': 413, 'n_tokens_neox': 405, 'n_words': 85}