<commit_before>// Copyright 2016, University of Colorado Boulder

/**
 *
 * @author <NAME> (PhET Interactive Simulations)
 * @author <NAME> (PhET Interactive Simulations)
 * @author <NAME>
 */
define( function( require ) {
  'use strict';

  // modules
  var assertInstanceOfTypes = require( 'PHET_IO/assertions/assertInstanceOfTypes' );
  var phetioNamespace = require( 'PHET_IO/phetioNamespace' );
  var phetioInherit = require( 'PHET_IO/phetioInherit' );
  var TPushButton = require( 'PHET_IO/types/sun/buttons/TPushButton' );

  /**
   * Wrapper type for phet/joist's PhetButton
   * @param phetButton
   * @param phetioID
   * @constructor
   */
  function TPhetButton( phetButton, phetioID ) {
    TPushButton.call( this, phetButton, phetioID );
    assertInstanceOfTypes( phetButton, [
      phet.joist.PhetButton,
      phet.joist.HomeButton
    ] );
  }

  phetioInherit( TPushButton, 'TPhetButton', TPhetButton, {}, {
    documentation: 'The buttons used in the home screen and navigation bar',
    events: TPushButton.events
  } );

  phetioNamespace.register( 'TPhetButton', TPhetButton );

  return TPhetButton;
} );<commit_msg>Added KeyboardHelpButton to TPhetButton legal types, https://github.com/phetsims/joist/issues/374<commit_after>// Copyright 2016, University of Colorado Boulder

/**
 *
 * @author <NAME> (PhET Interactive Simulations)
 * @author <NAME> (PhET Interactive Simulations)
 * @author <NAME>
 */
define( function( require ) {
  'use strict';

  // modules
  var assertInstanceOfTypes = require( 'PHET_IO/assertions/assertInstanceOfTypes' );
  var phetioNamespace = require( 'PHET_IO/phetioNamespace' );
  var phetioInherit = require( 'PHET_IO/phetioInherit' );
  var TPushButton = require( 'PHET_IO/types/sun/buttons/TPushButton' );

  /**
   * Wrapper type for phet/joist's PhetButton
   * @param phetButton
   * @param phetioID
   * @constructor
   */
  function TPhetButton( phetButton, phetioID ) {
    TPushButton.call( this, phetButton, phetioID );
    assertInstanceOfTypes( phetButton, [
      phet.joist.PhetButton,
      phet.joist.HomeButton,
      phet.joist.KeyboardHelpButton
    ] );
  }

  phetioInherit( TPushButton, 'TPhetButton', TPhetButton, {}, {
    documentation: 'The buttons used in the home screen and navigation bar',
    events: TPushButton.events
  } );

  phetioNamespace.register( 'TPhetButton', TPhetButton );

  return TPhetButton;
} );
{'fraction_non_alphanumeric': 0.11735330836454431, 'fraction_numerical': 0.004577611319184353, 'mean_word_length': 3.997920997920998, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '335303', 'n_tokens_mistral': 842, 'n_tokens_neox': 804, 'n_words': 177}