<commit_before>/* global angular Firebase */
(function() {
    'use strict';
    angular.module('beautyMark')
      .controller('LoginController', function(FIREBASE_URL) {
          // var newUser = true;
          var ref = new Firebase(FIREBASE_URL);
          var authData = ref.getAuth();
          if (authData) {
            console.log('Authenticated user with uid:', authData.uid);
          }
          ref.authWithOAuthPopup('facebook', function(error) {
            if (error) {
              console.log('Login Failed!', error);
            } else {
              console.log('Authenticated successfully with payload:', authData);
            }
          }, {
            remember: 'sessionOnly'
          });
          // ref.onAuth(function(authData) {
          //   if (authData && newUser) {
          //     ref.child('users').child(authData.uid).set({
          //       provider: authData.provider,
          //       name: authData.facebook.displayName
          //     });
          //   }
          // });
      });
})();<commit_msg>playing around with the login page... shouldn't be on thie branch<commit_after>/* global angular Firebase */
(function() {
    'use strict';
    angular.module('beautyMark')
      .controller('LoginController', function(FIREBASE_URL) {
          // var newUser = true;
          var ref = new Firebase(FIREBASE_URL);
          var authData = ref.getAuth();
          if (authData) {
            console.log('Authenticated user with uid:', authData.uid);
          }
          ref.authWithOAuthPopup('facebook', function(error) {
            if (error) {
              console.log('Login Failed!', error);
            } else {
              console.log('Authenticated successfully with payload:', authData);
            }
          }, {
            remember: 'sessionOnly'
          });
          // .then(function(){
          //   $location.path('/homepage');
          // });
          // ref.onAuth(function(authData) {
          //   if (authData && newUser) {
          //     ref.child('users').child(authData.uid).set({
          //       provider: authData.provider,
          //       name: authData.facebook.displayName
          //     });
          //   }
          // });
      });
})();
{'fraction_non_alphanumeric': 0.1453900709219858, 'fraction_numerical': 0.0, 'mean_word_length': 1.5560588901472254, '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': '1661619', 'n_tokens_mistral': 610, 'n_tokens_neox': 607, 'n_words': 114}