<commit_before># --------------------------------------
#
# 進行表示Context系パッケージ
#
# --------------------------------------
Player2 = require('../models/players').Player
PlayerState = require('../models/players').PlayerState


ProgressController =
  _findColumnNode: (e) ->
    elm = e.target
    if elm.getAttribute != 'col-md-1'
      elm = elm.parentNode
    return elm

  tryAnswer: (e) ->
    elm = @_findColumnNode(e)
    console.debug(elm.getAttribute('data-playerid') + ': try answer.')
    @dispatch 'try-answer', parseInt(elm.getAttribute('data-playerid'))

  answerRight: ->
    console.debug '正解'
    @dispatch 'answer-right'

  answerWrong: ->
    console.debug '誤答'
    @dispatch 'answer-wrong'

  throughAnswer: ->
    @dispatch 'through-answer'

  resetAnswer: ->
    @dispatch 'reset-answer'


Player = React.createClass
    render: ->
      @PlayerState = PlayerState
      require("jade-react!../components/Player.jade") @


JudgePanel = React.createClass
   render: ->
      require("jade-react!../components/JudgePanel.jade") @


ViewControlPanel = React.createClass
   render: ->
      require("jade-react!../components/ViewControlPanel.jade") @


ProgressComponent = React.createClass
   mixins: [Arda.mixin, ProgressController]
   render: ->
      @BootstrapFooter = require('../components/common').BootstrapFooter
      @JudgePanel = JudgePanel<commit_msg>Refactor<commit_after># --------------------------------------
#
# 進行表示Context系パッケージ
#
# --------------------------------------
Player2 = require('../models/players').Player
PlayerState = require('../models/players').PlayerState


ProgressController =
  _findColumnNode: (e) ->
    elm = e.target
    if elm.getAttribute != 'col-md-1'
      elm = elm.parentNode
    return elm

  tryAnswer: (e) ->
    elm = @_findColumnNode(e)
    console.debug(elm.getAttribute('data-playerid') + ': try answer.')
    @dispatch 'try-answer', parseInt(elm.getAttribute('data-playerid'))

  answerRight: ->
    console.debug '正解'
    @dispatch 'answer-right'

  answerWrong: ->
    console.debug '誤答'
    @dispatch 'answer-wrong'

  throughAnswer: ->
    @dispatch 'through-answer'

  resetAnswer: ->
    @dispatch 'reset-answer'


Player = React.createClass
  render: ->
    @PlayerState = PlayerState
    require("jade-react!../components/Player.jade") @


JudgePanel = React.createClass
  render: ->
    require("jade-react!../components/JudgePanel.jade") @


ViewControlPanel = React.createClass
  render: ->
    require("jade-react!../components/ViewControlPanel.jade") @


ProgressComponent = React.createClass
   mixins: [Arda.mixin, ProgressController]
   render: ->
      @BootstrapFooter = require('../components/common').BootstrapFooter
      @JudgePanel = JudgePanel
{'fraction_non_alphanumeric': 0.1949616648411829, 'fraction_numerical': 0.0014603870025556773, 'mean_word_length': 2.6877523553162854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '5974828', 'n_tokens_mistral': 870, 'n_tokens_neox': 841, 'n_words': 135}