<commit_before>'use strict';

var app = angular.module('myApp', ['myApp.services','ngResource']).
	config(['$locationProvider', '$interpolateProvider', function($locationProvider, $interpolateProvider) {
	    $locationProvider.html5Mode(true);
	    $interpolateProvider.startSymbol('[[');
	    $interpolateProvider.endSymbol(']]');
	}]);

app.controller('IndexController', function IndexController($scope) {
    $scope.label = "This bindings is brought you you by [[]] interpolation symbols.";
});

app.controller('MessagesController', function MessagesController($scope, messages) {
	$scope.messages = [];
	$scope.newMessage = "";

    $scope.createNewMessage = function() {
    	messages.storeMessage($scope.newMessage,function(response) {
    		console.log(response);
    		$scope.loadMessages(messages);
    	});
    };

    $scope.loadMessages = function () {
    	messages.loadMessages(function (data) {<commit_msg>small correction<commit_after>'use strict';

var app = angular.module('myApp', ['myApp.services','ngResource']).
	config(['$locationProvider', '$interpolateProvider', function($locationProvider, $interpolateProvider) {
	    $locationProvider.html5Mode(true);
	    $interpolateProvider.startSymbol('[[');
	    $interpolateProvider.endSymbol(']]');
	}]);

app.controller('MessagesController', function MessagesController($scope, messages) {
	$scope.messages = [];
	$scope.newMessage = "";

    $scope.createNewMessage = function() {
    	messages.storeMessage($scope.newMessage,function(response) {
            $scope.newMessage = "";
    		$scope.loadMessages(messages);
    	});
    };

    $scope.loadMessages = function () {
    	messages.loadMessages(function (data) {
{'fraction_non_alphanumeric': 0.16371158392434987, 'fraction_numerical': 0.001182033096926714, 'mean_word_length': 5.068100358422939, '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': '7272676', 'n_tokens_mistral': 494, 'n_tokens_neox': 481, 'n_words': 70}