<commit_before>/**
 * @author <NAME> - <EMAIL>
 */

var ROS2D = ROS2D || {
  REVISION : '1'
};<commit_msg>function added to Stage to convert from Stage coordinates to ROS coordinates<commit_after>/**
 * @author <NAME> - <EMAIL>
 */

var ROS2D = ROS2D || {
  REVISION : '1'
};

// convert the given global Stage coordinates to ROS coordinates
createjs.Stage.prototype.globalToRos = function(x, y) {
  var rosX = x / this.scaleX;
  // change Y direction
  var rosY = this.y - (y / this.scaleY);
  return {
    x : rosX,
    y : rosY
  };
};
{'fraction_non_alphanumeric': 0.14869888475836432, 'fraction_numerical': 0.011152416356877323, 'mean_word_length': 2.9925925925925925, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2427976', 'n_tokens_mistral': 205, 'n_tokens_neox': 197, 'n_words': 58}