<commit_before>import { Meteor } from 'meteor/meteor';
import React, { PropTypes } from 'react';
import { Segment, Header, Progress, Button } from 'semantic-ui-react';

export default class ActivePuzzle extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    const { team, puzzle } = this.props;

    return (
      <Segment>
        <Header as='h3' content={ puzzle.name }/>
        Puzzle timer coming...
        <Button
          basic fluid
          color='red'
          content='Reset Timer'
          onClick={ () => this._resetTimer() }
        />
      </Segment>
    );
  }

  _resetTimer() {
    const { team, puzzle } = this.props;
    const confirmMsg = `
You want to reset ${puzzle.name}
for team: ${team.name}?
<commit_msg>Add puzzle progress to volunteer active puzzle comp<commit_after>import { Meteor } from 'meteor/meteor';
import React, { PropTypes } from 'react';
import { Segment, Header, Progress, Button } from 'semantic-ui-react';

import PuzzleProgress from '../../game/imports/puzzle-progress';

export default class ActivePuzzle extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    const { team, puzzle } = this.props;

    return (
      <Segment>
        <Header as='h3' content={ puzzle.name }/>
        <PuzzleProgress puzzle={ puzzle }/>
        <br/>
        <Button
          basic fluid
          color='red'
          content='Reset Timer'
          onClick={ () => this._resetTimer() }
        />
      </Segment>
    );
  }

  _resetTimer() {
    const { team, puzzle } = this.props;
    const confirmMsg = `
You want to reset ${puzzle.name}
for team: ${team.name}?

{'fraction_non_alphanumeric': 0.13611940298507463, 'fraction_numerical': 0.0011940298507462687, 'mean_word_length': 2.4556701030927837, 'pattern_counts': {'":': 0, '<': 13, '<?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': '7145828', 'n_tokens_mistral': 513, 'n_tokens_neox': 493, 'n_words': 136}