<commit_before>/*jslint white:true*/
/*global angular*/
/*global alert*/

var myapp;
if (myapp === undefined) {
    myapp = angular.module('myapp', ['ionic']);
}
   
myapp.controller('bindControl', function ($http, $timeout) {
    'use strict';
    var bindCtrl = this,
        onSuccess = function(position) {
        alert('Latitude: '          + position.coords.latitude          + '\n' +
              'Longitude: '         + position.coords.longitude         + '\n' +
              'Altitude: '          + position.coords.altitude          + '\n' +
              'Accuracy: '          + position.coords.accuracy          + '\n' +
              'Altitude Accuracy: ' + position.coords.altitudeAccuracy  + '\n' +
              'Heading: '           + position.coords.heading           + '\n' +
              'Speed: '             + position.coords.speed             + '\n' +
              'Timestamp: '         + position.timestamp                + '\n');
    };

    // onError Callback receives a PositionError object
    //
    function onError(error) {
        alert('code: '    + error.code    + '\n' +
              'message: ' + error.message + '\n');
    }

    
    document.addEventListener("deviceready", function () {
        navigator.geolocation.getCurrentPosition(onSuccess, onError, {
            timeout: 5000,
            enableHighAccuracy: false
        });
//        navigator.contacts.find(['id', 'displayName'], function (contacts) {
//            alert('Found ' + contacts.length + ' contacts.');
//        }, function (err) {
//            alert(err);
//        });
    }, false);
});<commit_msg>Test contacts (cont.)<commit_after>/*jslint white:true*/
/*global angular*/
/*global alert*/

var myapp;
if (myapp === undefined) {
    myapp = angular.module('myapp', ['ionic']);
}
   
myapp.controller('bindControl', function ($http, $timeout) {
    'use strict';
    var bindCtrl = this,
        onSuccess = function(position) {
        alert('Latitude: '          + position.coords.latitude          + '\n' +
              'Longitude: '         + position.coords.longitude         + '\n' +
              'Altitude: '          + position.coords.altitude          + '\n' +
              'Accuracy: '          + position.coords.accuracy          + '\n' +
              'Altitude Accuracy: ' + position.coords.altitudeAccuracy  + '\n' +
              'Heading: '           + position.coords.heading           + '\n' +
              'Speed: '             + position.coords.speed             + '\n' +
              'Timestamp: '         + position.timestamp                + '\n');
    };

    function onError(error) {
        alert('code: '    + error.code    + '\n' +
              'message: ' + error.message + '\n');
    }

    
    document.addEventListener("deviceready", function () {
//        navigator.geolocation.getCurrentPosition(onSuccess, onError, {
//            timeout: 5000,
//            enableHighAccuracy: false
//        });
        navigator.contacts.find(['id', 'displayName'], function (contacts) {
            alert('Found ' + contacts.length + ' contacts.\nThe first one: ', JSON.stringify(contacts[0]));
        }, function (err) {
            alert(err);
        });
    }, false);
});
{'fraction_non_alphanumeric': 0.152154263332329, 'fraction_numerical': 0.0027116601385959627, 'mean_word_length': 1.5227963525835866, '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': '3356098', 'n_tokens_mistral': 963, 'n_tokens_neox': 925, 'n_words': 165}