<commit_before>class PhotolistController {
  constructor() {
    'ngInject';

  }
}

export default PhotolistController;<commit_msg>get location on page load<commit_after>class PhotolistController {
  constructor($cordovaGeolocation) {
    'ngInject';
    var posOptions = {timeout: 1000, enableHighAccuracy: false};
    function getLocation() {
      $cordovaGeolocation
      .getCurrentPosition(posOptions)
      .then(function (position) {
        window.localStorage.setItem('lat', position.coords.latitude);
        window.localStorage.setItem('long', position.coords.longitude);
      }, function(err) {
        // error
      })};
    getLocation();
    console.log('Where Am I?', window.localStorage.getItem('lat'), window.localStorage.getItem('long'));
  }
}

export default PhotolistController;
{'fraction_non_alphanumeric': 0.12546583850931678, 'fraction_numerical': 0.004968944099378882, 'mean_word_length': 3.9753086419753085, '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': '3013193', 'n_tokens_mistral': 237, 'n_tokens_neox': 234, 'n_words': 41}