<commit_before>Spine = require('spine')

class Actions extends Spine.Controller

  elements:
    '.deal': 'deal_button'
    '.continue': 'continue_button'
    '.surrender': 'surrender_button'
    '.bet': 'bet_buttons'
    '.action': 'action_buttons'

  events:
    'click .deal': 'deal'

  constructor: ->
    super
    Spine.bind 'result', @finished
    @setup()
  
  setup: =>
    show @bet_buttons
    hide @action_buttons
    hide @continue_button
  
  deal: =>
    hide @bet_buttons
    hide @deal_button
    show @action_buttons
  
  finished: =>
    disable @action_buttons
    show @continue_button
  
  # Private
  
  hide = (selection) ->
    selection.hide()
    
  show = (selection) ->
    enable selection.show()<commit_msg>Hide the action buttons instead of just disabling them<commit_after>Spine = require('spine')

class Actions extends Spine.Controller

  elements:
    '.deal': 'deal_button'
    '.continue': 'continue_button'
    '.surrender': 'surrender_button'
    '.bet': 'bet_buttons'
    '.action': 'action_buttons'

  events:
    'click .deal': 'deal'

  constructor: ->
    super
    Spine.bind 'result', @finished
    @setup()
  
  setup: =>
    show @bet_buttons
    hide @action_buttons
    hide @continue_button
  
  deal: =>
    hide @bet_buttons
    hide @deal_button
    show @action_buttons
  
  finished: =>
    hide @action_buttons
    show @continue_button
  
  # Private
  
  hide = (selection) ->
    selection.hide()
    
  show = (selection) ->
    enable selection.show()
{'fraction_non_alphanumeric': 0.1215323645970938, 'fraction_numerical': 0.0, 'mean_word_length': 2.8161209068010074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3077664', 'n_tokens_mistral': 498, 'n_tokens_neox': 478, 'n_words': 115}