<commit_before>import GeolocationPoint from 'ui/geolocationPoint';

export default class Geolocation {
  /**
     * @author <NAME>
     * @access public
     * @param {object} map - A Leaflet map.
     */
  constructor(map) {
    this._isMovedByUserAction = false;
    this._isLocateInProgress = false;
    this._hasHeadingMarker = false;
    this._lastAutomaticZoom = null;
    this._map = map;
  }

  /**
     * Starts the location watch.
     *
     * @author <NAME>
     * @access public
     */
  locate() {
    if (this._isLocateInProgress === true) {<commit_msg>fix: Bind orientation handler for correct this in event<commit_after>import GeolocationPoint from 'ui/geolocationPoint';

export default class Geolocation {
  /**
     * @author <NAME>
     * @access public
     * @param {object} map - A Leaflet map.
     */
  constructor(map) {
    this._isMovedByUserAction = false;
    this._isLocateInProgress = false;
    this._hasHeadingMarker = false;
    this._lastAutomaticZoom = null;
    this._map = map;
    this._onOrientationFound = this._onOrientationFound.bind(this);
  }

  /**
     * Starts the location watch.
     *
     * @author <NAME>
     * @access public
     */
  locate() {
    if (this._isLocateInProgress === true) {
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.0, 'mean_word_length': 2.728358208955224, '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': '4912721', 'n_tokens_mistral': 401, 'n_tokens_neox': 396, 'n_words': 92}