<commit_before>window.$ = window.jQuery = require('jquery');
require('mapbox.js');
require('leaflet.markercluster');
L.mapbox.accessToken = '<KEY>';
window.angular = require('angular');
window._ = require('underscore');
window.moment = require('moment');
require('moment/locale/pt-br');
moment.locale('pt-br');
require('intl-tel-input/build/js/intlTelInput');

require('angular-simple-logger');

require('angular-animate');
require('angular-leaflet-directive');
require('angular-google-chart');
require('angular-ui-router');
require('angular-resource');
require('angular-cookies');
require('angular-gettext');
require('ng-dialog');
require('angular-pickadate/src/angular-pickadate');
require('international-phone-number/releases/international-phone-number');

var app = angular.module('rede', [
	'ui.router',
	'ngCookies',
	'ngAnimate',
	'ngResource',
	'ngDialog',
	'googlechart',
	'leaflet-directive',
	'pickadate',
	'internationalPhoneNumber',
	'gettext'
]);

app
.value('googleChartApiConfig', {
	version: '1.1',
	optionalSettings: {
		packages: ['line', 'bar'],
		language: 'en'
	}
})
.config([
	'$stateProvider',
	'$urlRouterProvider',
	'$locationProvider',
	'$httpProvider',
	function($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {

		$locationProvider.html5Mode({
			enabled: true,
			requireBase: false
		});
		$locationProvider.hashPrefix('!');

		/* will be reverted in the future
		$stateProvider
		.state('home', {
			url: '/',
			controller: 'HomeCtrl',
			templateUrl: '/views/home.html',
			resolve: {
				SensorsData: [
					'RedeService',
					function(Rede) {
						return Rede.sensors.query().$promise;
					}
				]
			}
		})*/
		$stateProvider
		.state('home', {
			url: '/sensors/563bfd23c4c383b51361762b/',
			controller: 'SensorCtrl',
			templateUrl: '/views/sensor.html',
			resolve: {
				SensorData: [
					'RedeService',
					'$stateParams',
					function(Rede, $stateParams) {
						return Rede.sensors.get({id: $stateParams.sensorId}).$promise;
					}
				],
				ParametersData: [
					'RedeService',
					function(Rede) {
						return Rede.getParameters();
					}
				],
				AddressData: [
					'RedeService',
					'SensorData',
					function(Rede, Sensor) {
						var coords = Sensor.geometry.coordinates
						return Rede.geocode(coords[1], coords[0]);
					}
				]
			}
		})
		.state('about', {
			url: '/sobre/',
			templateUrl: '/views/pages/about.html'
		})
		.state('monitoring', {
			url: '/monitoring/',
			templateUrl: '/views/pages/monitoring.html'
		})
		.state('equipment', {
			url: '/equipamento/',
			templateUrl: '/views/pages/equipment.html'
		})
		.state('login', {
			url: '/login/',
			templateUrl: '/views/login.html',
			controller: [
				'$state',
				'$scope',
				'RedeAuth',
				'MessageService',<commit_msg>revert last commit<commit_after>window.$ = window.jQuery = require('jquery');
require('mapbox.js');
require('leaflet.markercluster');
L.mapbox.accessToken = 'pk.eyJ1IjoibWlndWVscGVpeGUiLCJhIjoiVlc0WWlrQSJ9.pIPkSx25w7ossO6rZH9Tcw';
window.angular = require('angular');
window._ = require('underscore');
window.moment = require('moment');
require('moment/locale/pt-br');
moment.locale('pt-br');
require('intl-tel-input/build/js/intlTelInput');

require('angular-simple-logger');

require('angular-animate');
require('angular-leaflet-directive');
require('angular-google-chart');
require('angular-ui-router');
require('angular-resource');
require('angular-cookies');
require('angular-gettext');
require('ng-dialog');
require('angular-pickadate/src/angular-pickadate');
require('international-phone-number/releases/international-phone-number');

var app = angular.module('rede', [
	'ui.router',
	'ngCookies',
	'ngAnimate',
	'ngResource',
	'ngDialog',
	'googlechart',
	'leaflet-directive',
	'pickadate',
	'internationalPhoneNumber',
	'gettext'
]);

app
.value('googleChartApiConfig', {
	version: '1.1',
	optionalSettings: {
		packages: ['line', 'bar'],
		language: 'en'
	}
})
.config([
	'$stateProvider',
	'$urlRouterProvider',
	'$locationProvider',
	'$httpProvider',
	function($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {

		$locationProvider.html5Mode({
			enabled: true,
			requireBase: false
		});
		$locationProvider.hashPrefix('!');

		$stateProvider
		.state('home', {
			url: '/',
			controller: 'HomeCtrl',
			templateUrl: '/views/home.html',
			resolve: {
				SensorsData: [
					'RedeService',
					function(Rede) {
						return Rede.sensors.query().$promise;
					}
				]
			}
		.state('about', {
			url: '/sobre/',
			templateUrl: '/views/pages/about.html'
		})
		.state('monitoring', {
			url: '/monitoring/',
			templateUrl: '/views/pages/monitoring.html'
		})
		.state('equipment', {
			url: '/equipamento/',
			templateUrl: '/views/pages/equipment.html'
		})
		.state('login', {
			url: '/login/',
			templateUrl: '/views/login.html',
			controller: [
				'$state',
				'$scope',
				'RedeAuth',
				'MessageService',
{'fraction_non_alphanumeric': 0.1888394662353417, 'fraction_numerical': 0.006672058228871815, 'mean_word_length': 4.296573875802998, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '865705', 'n_tokens_mistral': 1995, 'n_tokens_neox': 1689, 'n_words': 246}