<commit_before>/**
 * Created by <NAME> on 3/31/2017.
 */
angular.module('myApp.controllers',['cordovaGeolocationModule'])
    .controller('langCtrl',function($scope,$translate){
        $scope.language=null;
        $scope.languages=['en','si','ta'];
        $scope.updateLanguage=function(language){
            //$rootScope.var=language;
           // console.log($rootScope.var);
            $translate.use(language);
        }
    })


    .controller('loginCtrl', function($scope,$window) {

        $scope.loginSave= function() {
            if($scope.username == "kasun" && $scope.password == "<PASSWORD>"){
                console.log("correct");
            } else {
                console.log("incorrect");
                $window.alert("Invalid username or password...!!!");
            }
        }
    })

    .controller('numLoginCtrl', function($scope,$window) {

        $scope.numLoginSave= function() {
            if($scope.number == "1234"){
                console.log("correct");
            } else {
                console.log("incorrect");
                $window.alert("Invalid username or password...!!!");
            }
        }
    })
    .controller('createEventLocCtrl', function ($scope, cordovaGeolocationService) {
        var options = {timeout: 10000, enableHighAccuracy: true};

        cordovaGeolocationService.getCurrentPosition(function(position){

         var latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
        //var latLng = new google.maps.LatLng(7.8731, 80.7718);


        var mapOptions = {
            center: latLng,
            zoom: 15,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };

        $scope.map = new google.maps.Map(document.getElementById("gmaps"), mapOptions);
        },options);

    }, function(error) {
            console.log(error);
            console.log("Could not get location");
    })
    .controller('MapCtrl', function ($scope,$translate) {
        //$translate.use($rootScope.language);
        var options = {timeout: 10000, enableHighAccuracy: true};

        //$cordovaGeolocation.getCurrentPosition(options).then(function(position){

        //  var latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
        var latLng = new google.maps.LatLng(7.8731, 80.7718);


        var mapOptions = {
            center: latLng,
            zoom: 15,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };

        $scope.map = new google.maps.Map(document.getElementById("gmaps"), mapOptions);

    }, function(error){
        console.log(error);
        console.log("Could not get location");
    });


<commit_msg>committed<commit_after>/**
 * Created by <NAME> on 3/31/2017.
 */
angular.module('myApp.controllers',['cordovaGeolocationModule'])
    .controller('langCtrl',function($scope,$translate){
        $scope.language=null;
        $scope.languages=['en','si','ta'];
        $scope.updateLanguage=function(language){
            //$rootScope.var=language;
           // console.log($rootScope.var);
            $translate.use(language);
        }
    })


    .controller('loginCtrl', function($scope,$window) {

        $scope.loginSave= function() {
            if($scope.username == "kasun" && $scope.password == "<PASSWORD>"){
                console.log("correct");
            } else {
                console.log("incorrect");
                $window.alert("Invalid username or password...!!!");
            }
        }
    })

    .controller('numLoginCtrl', function($scope,$window) {

        $scope.numLoginSave= function() {
            if($scope.number == "1234"){
                console.log("correct");
            } else {
                console.log("incorrect");
                $window.alert("Invalid username or password...!!!");
            }
        }
    })
    .controller('createEventLocCtrl', function ($scope, cordovaGeolocationService) {
        var options = {timeout: 10000, enableHighAccuracy: true};

        cordovaGeolocationService.getCurrentPosition(function(position){

         var latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
        //var latLng = new google.maps.LatLng(7.8731, 80.7718);


        var mapOptions = {
            center: latLng,
            zoom: 15,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };

        $scope.map = new google.maps.Map(document.getElementById("gmaps"), mapOptions);
        },options);

    }, function(error) {
            console.log(error);
            console.log("Could not get location");
    })
    .controller('MapCtrl', function ($scope,$translate) {
        //$translate.use($rootScope.language);
        var options = {timeout: 10000, enableHighAccuracy: true};

        //$cordovaGeolocation.getCurrentPosition(options).then(function(position){

        //  var latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
        var latLng = new google.maps.LatLng(7.8731, 80.7718);


        var mapOptions = {
            center: latLng,
            zoom: 15,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        

        $scope.map = new google.maps.Map(document.getElementById("gmaps"), mapOptions);

    }, function(error){
        console.log(error);
        console.log("Could not get location");
    });



{'fraction_non_alphanumeric': 0.14854602704204484, 'fraction_numerical': 0.017410631598444155, 'mean_word_length': 2.2142857142857144, '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': '6392468', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1502, 'n_words': 242}