<commit_before>(function (angular, undefined) {
	'use strict'

	angular.module('pokeApp', ['ui.router'])
	.config(function ($stateProvider, $urlRouterProvider) {

		$urlRouterProvider.otherwise('/index')
		$stateProvider.state('home', {
			resolve: {
				getPokemons: function($http){
		           var url = 'http://pokeapi.co/';
		           
		           return {
		           		// GET rattata 
			           	rattata: function () {
			           		return $http({
			           			method: 'GET', 
			           			url: url + 'api/v1/pokemon/19/'
			           		})			           						        
			           	},

			           	// GET charmander
			           	charmander: function () {
			           		return $http({
			           			method: 'GET', 
			           			url: url + 'api/v1/pokemon/4/'
			           		})			           						        
			           	},

			           	// GET wartortle
			           	wartortle: function () {
			           		return $http({
			           			method: 'GET', 
			           			url: url + 'api/v1/pokemon/8/'
			           		})			           						        
			           	},
		           }			        
		        }	
			},
			controller: function ($scope, getPokemons) {
				getPokemons.rattata().then(function (data) {
					console.log(data)
					$scope.rattatas = data;						
				}, function (error) {
					console.log(error)
				});	

				getPokemons.charmander().then(function (data) {
					console.log(data)
					$scope.charmanders = data;						
				}, function (error) {
					console.log(error)
				});	

				getPokemons.wartortle().then(function (data) {
					console.log(data)
					$scope.wartortles = data;						
				}, function (error) {
					console.log(error)
				});						
			},			
			url: '/index',
			templateUrl: '/views/poke.tpl.html'	
		})
	})	

})(angular);<commit_msg>update poke-app<commit_after>(function (angular, undefined) {
	'use strict'

	angular.module('pokeApp', ['ui.router'])
	.config(function ($stateProvider, $urlRouterProvider) {
		$urlRouterProvider.otherwise('/index')
		$stateProvider.state('home', {
			resolve: {
				getPokemons: 'pokeFactory'	
			},
			controller: 'pokeController',						
			url: '/index',
			templateUrl: '/views/poke.tpl.html'	
		})
	})	
})(angular);
{'fraction_non_alphanumeric': 0.1433659839715049, 'fraction_numerical': 0.003116651825467498, 'mean_word_length': 1.4801324503311257, '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': '1732216', 'n_tokens_mistral': 948, 'n_tokens_neox': 709, 'n_words': 107}