<commit_before>function Player(map, location) {
  this._map = map;
  this._location = location;

  var markerimage = new google.maps.MarkerImage(
      "res/icon.png",
      new google.maps.Size(48, 48));
  this._marker = new google.maps.Marker({
      position:location,
      map:map,
      title:"You",
      icon:markerimage,
      // TODO: shadow image.
    });
}

Player.prototype.locationChanged = function(position) {
  this._location = latLngFromPosition(position);
  this._marker.set_position(this._location);
}<commit_msg>Convert the Player to a Prototype class.<commit_after>var Player = Class.create({
  initialize: function(map, location) {
    this.map = map;
    this.location = location;
    
    var markerimage = new google.maps.MarkerImage(
        "res/icon.png",
        new google.maps.Size(48, 48));
    this.marker = new google.maps.Marker({
        position:this.location,
        map:this.map,
        title:"You",
        icon:markerimage,
        // TODO: shadow image.
      });
  },
  
  locationChanged: function(latLng) {
    this.location = latLng;
    this.marger.set_position(this.location);
  }
});
{'fraction_non_alphanumeric': 0.13215859030837004, 'fraction_numerical': 0.007048458149779736, 'mean_word_length': 2.824915824915825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6931663', 'n_tokens_mistral': 359, 'n_tokens_neox': 349, 'n_words': 69}