<commit_before>// Copyright 2013-2018, University of Colorado Boulder

/**
 * Game timer, keeps track of the elapsed time in the game using "wall clock" time. The frame rate of this clock is
 * sufficient for displaying a game timer in "seconds", but not for driving smooth animation.
 *
 * @author <NAME> (PixelZoom, Inc.)
 */
define( function( require ) {
  'use strict';

  // modules
  var inherit = require( 'PHET_CORE/inherit' );
  var Property = require( 'AXON/Property' );
  var StringUtils = require( 'PHETCOMMON/util/StringUtils' );
  var timer = require( 'PHET_CORE/timer' );
  var vegas = require( 'VEGAS/vegas' );

  // strings
  var pattern0Hours1Minutes2SecondsString = require( 'string!VEGAS/pattern.0hours.1minutes.2seconds' );
  var pattern0Minutes1SecondsString = require( 'string!VEGAS/pattern.0minutes.1seconds' );

  /**
   * @constructor
   */
  function GameTimer() {
    
    // @public seconds since the timer was started
    this.elapsedTimeProperty = new Property( 0 );
    this.isRunningProperty = new Property( false );
    
    this.intervalId = null; // @private
  }

  vegas.register( 'GameTimer', GameTimer );

  return inherit( Object, GameTimer, {
    
    // @public
    reset: function(){
      this.elapsedTimeProperty.reset();<commit_msg>Move timer from phet-core to axon, see https://github.com/phetsims/phet-core/issues/51<commit_after>// Copyright 2013-2018, University of Colorado Boulder

/**
 * Game timer, keeps track of the elapsed time in the game using "wall clock" time. The frame rate of this clock is
 * sufficient for displaying a game timer in "seconds", but not for driving smooth animation.
 *
 * @author <NAME> (PixelZoom, Inc.)
 */
define( function( require ) {
  'use strict';

  // modules
  var inherit = require( 'PHET_CORE/inherit' );
  var Property = require( 'AXON/Property' );
  var StringUtils = require( 'PHETCOMMON/util/StringUtils' );
  var timer = require( 'AXON/timer' );
  var vegas = require( 'VEGAS/vegas' );

  // strings
  var pattern0Hours1Minutes2SecondsString = require( 'string!VEGAS/pattern.0hours.1minutes.2seconds' );
  var pattern0Minutes1SecondsString = require( 'string!VEGAS/pattern.0minutes.1seconds' );

  /**
   * @constructor
   */
  function GameTimer() {
    
    // @public seconds since the timer was started
    this.elapsedTimeProperty = new Property( 0 );
    this.isRunningProperty = new Property( false );
    
    this.intervalId = null; // @private
  }

  vegas.register( 'GameTimer', GameTimer );

  return inherit( Object, GameTimer, {
    
    // @public
    reset: function(){
      this.elapsedTimeProperty.reset();
{'fraction_non_alphanumeric': 0.12004573170731707, 'fraction_numerical': 0.01524390243902439, 'mean_word_length': 3.502572898799314, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '1724810', 'n_tokens_mistral': 831, 'n_tokens_neox': 789, 'n_words': 234}