<commit_before>angular.module('authFactory', ['firebase'])

.factory('Auth', ['$firebaseAuth', function ($firebaseAuth){

	var authFactory = {};
	var ref = new Firebase('https://bizgramer.firebaseio.com/');

	var authObj = $firebaseAuth(ref);
	authFactory.getAuth= function(callback){
		var authData = authObj.$getAuth();
		console.log(authData);
		callback(authData);
	};

  authFactory.signin = function(email,password,callback){
    authObj.$authWithPassword({
        email: email,
        password: password
      }).then(function(authData){
      data = authData;
      console.log('logged in as '+authData.uid);
      callback(data);
    }).catch(function(error){
      console.log('Error:',error);
    });
  };

	authFactory.signup = function(email,password, callback, vm){
    // var data = null;
    authObj.$createUser({
      email: email,
      password: password
    }).then(function(userData){
      console.log("User " + userData.uid + " created successfully!");
      signin(email,password,callback,vm);
    }).catch(function(error){
      console.log('Error:',error);
    });
	};

	authFactory.signout = function(){
		authObj.$unauth();
	};

	return authFactory;
}]);<commit_msg>(fix) signin on authFactory<commit_after>angular.module('authFactory', ['firebase'])

.factory('Auth', ['$firebaseAuth', function ($firebaseAuth){

	var authFactory = {};
	var ref = new Firebase('https://bizgramer.firebaseio.com/');

	var authObj = $firebaseAuth(ref);
	authFactory.getAuth= function(callback){
		var authData = authObj.$getAuth();
		console.log(authData);
		callback(authData);
	};

  authFactory.signin = function(email,password,callback){
    authObj.$authWithPassword({
        email: email,
        password: password
      }).then(function(authData){
      data = authData;
      console.log('logged in as '+authData.uid);
      callback(data);
    }).catch(function(error){
      console.log('Error:',error);
    });
  };

	authFactory.signup = function(email,password, callback, vm){
    // var data = null;
    authObj.$createUser({
      email: email,
      password: password
    }).then(function(userData){
      console.log("User " + userData.uid + " created successfully!");
      authFactory.signin(email,password,callback,vm);
    }).catch(function(error){
      console.log('Error:',error);
    });
	};

	authFactory.signout = function(){
		authObj.$unauth();
	};

	return authFactory;
}]);
{'fraction_non_alphanumeric': 0.16900826446280992, 'fraction_numerical': 0.0, 'mean_word_length': 3.794059405940594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '347134', 'n_tokens_mistral': 766, 'n_tokens_neox': 741, 'n_words': 131}