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

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

  // modules
  var assertInstanceOf = require( 'PHET_IO/assertions/assertInstanceOf' );
  var phetioInherit = require( 'PHET_IO/phetioInherit' );
  var phetioNamespace = require( 'PHET_IO/phetioNamespace' );
  var TObject = require( 'PHET_IO/types/TObject' );
  var toEventOnEmit = require( 'PHET_IO/events/toEventOnEmit' );

  /**
   * Wrapper type for phet/tandem's TandemDragHandler class.
   * @param tandemDragHandler
   * @param phetioID
   * @constructor
   */
  function TTandemDragHandler( tandemDragHandler, phetioID ) {
    TObject.call( this, tandemDragHandler, phetioID );
    assertInstanceOf( tandemDragHandler, phet.tandem.TandemDragHandler );

    var toXY = function( x, y ) { return { x: x, y: y }; };
    toEventOnEmit( tandemDragHandler.startedCallbacksForDragStartedEmitter, tandemDragHandler.endedCallbacksForDragStartedEmitter, 'user', phetioID, TTandemDragHandler, 'dragStarted', toXY );
    toEventOnEmit( tandemDragHandler.startedCallbacksForDraggedEmitter, tandemDragHandler.endedCallbacksForDraggedEmitter, 'user', phetioID, TTandemDragHandler, 'dragged', toXY );
    toEventOnEmit( tandemDragHandler.startedCallbacksForDragEndedEmitter, tandemDragHandler.endedCallbacksForDragEndedEmitter, 'user', phetioID, TTandemDragHandler, 'dragEnded' );
  }

  phetioInherit( TObject, 'TTandemDragHandler', TTandemDragHandler, {}, {
    documentation: 'Drag listener for objects that can be dragged by the user.',
    events: [ 'dragStarted', 'dragged', 'dragEnded' ]
  } );

  phetioNamespace.register( 'TTandemDragHandler', TTandemDragHandler );

  return TTandemDragHandler;
} );
<commit_msg>Renamed TandemDragHandler => TandemSimpleDragHandler to match naming conventions, see https://github.com/phetsims/phet-io/issues/889<commit_after>// Copyright 2016, University of Colorado Boulder

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

  // modules
  var assertInstanceOf = require( 'PHET_IO/assertions/assertInstanceOf' );
  var phetioInherit = require( 'PHET_IO/phetioInherit' );
  var phetioNamespace = require( 'PHET_IO/phetioNamespace' );
  var TObject = require( 'PHET_IO/types/TObject' );
  var toEventOnEmit = require( 'PHET_IO/events/toEventOnEmit' );

  /**
   * Wrapper type for phet/tandem's TandemSimpleDragHandler class.
   * @param tandemSimpleDragHandler
   * @param phetioID
   * @constructor
   */
  function TTandemSimpleDragHandler( tandemSimpleDragHandler, phetioID ) {
    TObject.call( this, tandemSimpleDragHandler, phetioID );
    assertInstanceOf( tandemSimpleDragHandler, phet.tandem.TandemSimpleDragHandler );

    var toXY = function( x, y ) { return { x: x, y: y }; };
    toEventOnEmit( tandemSimpleDragHandler.startedCallbacksForDragStartedEmitter, tandemSimpleDragHandler.endedCallbacksForDragStartedEmitter, 'user', phetioID, TTandemSimpleDragHandler, 'dragStarted', toXY );
    toEventOnEmit( tandemSimpleDragHandler.startedCallbacksForDraggedEmitter, tandemSimpleDragHandler.endedCallbacksForDraggedEmitter, 'user', phetioID, TTandemSimpleDragHandler, 'dragged', toXY );
    toEventOnEmit( tandemSimpleDragHandler.startedCallbacksForDragEndedEmitter, tandemSimpleDragHandler.endedCallbacksForDragEndedEmitter, 'user', phetioID, TTandemSimpleDragHandler, 'dragEnded' );
  }

  phetioInherit( TObject, 'TTandemSimpleDragHandler', TTandemSimpleDragHandler, {}, {
    documentation: 'Drag listener for objects that can be dragged by the user.',
    events: [ 'dragStarted', 'dragged', 'dragEnded' ]
  } );

  phetioNamespace.register( 'TTandemSimpleDragHandler', TTandemSimpleDragHandler );

  return TTandemSimpleDragHandler;
} );

{'fraction_non_alphanumeric': 0.10518253765636967, 'fraction_numerical': 0.002808271636456472, 'mean_word_length': 5.663265306122449, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '1365172', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1230, 'n_words': 254}