<commit_before>var app = angular.module('bizGramApp', ['ui.router', 'mainCtrl', 'bizGramFactories','app.auth', 'roomCtrl', 'app.profile']);

app.config(function ($stateProvider, $urlRouterProvider) {

	// need to dynamically create routes based on the rooms available

	$urlRouterProvider.otherwise('/');

	$stateProvider

	.state('main', {
		url: '/',
		templateUrl: 'app/main/main.html'
	})
	.state('main.room', {
		url: 'room/:roomName',
		parent: 'main',
		templateUrl: 'app/room/room.html',
		controller: 'roomController',
		params: {roomName: 'value'}
		// controller: function($stateParams) {
		// 	vm.roomName = $stateParams.roomName;
		// }
	})
	.state('main.direct', {
		url: '/dm',
		templateUrl: 'app/dm/directmessage.html'
	})
	.state('signin',{
		url: '/signin',
		templateUrl: 'app/auth/signin.html',
		controller:'SigninController'
	})
	.state('signup',{
		url: '/signup',
		templateUrl:'app/auth/signup.html',
		controller:'SignupController'
	})
	.state('profile',{
		url: '/profile',
		templateUrl: 'app/profile/profile.html',
		controller: 'ProfileController'
	});

});

app.run(function ($rootScope, $window, $location, $state, Auth){

	$rootScope.shouldShow = true;
	$rootScope.logout = function(){
		Auth.signout();
		$rootScope.shouldShow = true;
	};
<commit_msg>(fix) cleaned app.js main.room state<commit_after>var app = angular.module('bizGramApp', ['ui.router', 'mainCtrl', 'bizGramFactories','app.auth', 'roomCtrl', 'app.profile']);

app.config(function ($stateProvider, $urlRouterProvider) {

	// need to dynamically create routes based on the rooms available

	$urlRouterProvider.otherwise('/');

	$stateProvider

	.state('main', {
		url: '/',
		templateUrl: 'app/main/main.html'
	})
	.state('main.room', {
		url: 'room/:roomName',
		parent: 'main',
		templateUrl: 'app/room/room.html'
	})
	.state('main.direct', {
		url: '/dm',
		templateUrl: 'app/dm/directmessage.html'
	})
	.state('signin',{
		url: '/signin',
		templateUrl: 'app/auth/signin.html',
		controller:'SigninController'
	})
	.state('signup',{
		url: '/signup',
		templateUrl:'app/auth/signup.html',
		controller:'SignupController'
	})
	.state('profile',{
		url: '/profile',
		templateUrl: 'app/profile/profile.html',
		controller: 'ProfileController'
	});

});

app.run(function ($rootScope, $window, $location, $state, Auth){

	$rootScope.shouldShow = true;
	$rootScope.logout = function(){
		Auth.signout();
		$rootScope.shouldShow = true;
	};

{'fraction_non_alphanumeric': 0.19508196721311474, 'fraction_numerical': 0.0, 'mean_word_length': 4.637413394919169, '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': '2923352', 'n_tokens_mistral': 916, 'n_tokens_neox': 858, 'n_words': 153}