<commit_before>'use strict';

angular.module('app').factory('quizz', function ($q, apiBlind, session) {
    return {

        blindStart: function(type, friendId){

            var deferred = $q.defer();

            apiBlind.blindStart(type, session.getUser().facebook_id, friendId).then(function(result){
                deferred.resolve(result.blind.id);
            });

            return deferred.promise;
        },

        addResponse: function(blindId, questionId, responseId, userId){

            if(responseId){
                apiBlind.blindResponse(blindId, userId, questionId, responseId);
            }
            else{
                apiBlind.blindResponse(blindId, userId, questionId);
            }

        },

        loadQuestions: function (type, category, blindId) {
<commit_msg>Fix last commit<commit_after>'use strict';

angular.module('app').factory('quizz', function ($q, apiBlind, session) {
    return {

        blindStart: function(type, friendId){

            var deferred = $q.defer();

            apiBlind.blindStart(type, session.getUser().facebook_id, friendId).then(function(result){
                deferred.resolve(result.blind.id);
            });

            return deferred.promise;
        },

        addResponse: function(blindId, userId, questionId, responseId){

            if(responseId){
                apiBlind.blindResponse(blindId, userId, questionId, responseId);
            }
            else{
                apiBlind.blindResponse(blindId, userId, questionId);
            }

        },

        loadQuestions: function (type, category, blindId) {

{'fraction_non_alphanumeric': 0.11771995043370508, 'fraction_numerical': 0.0, 'mean_word_length': 2.111753371868979, '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': '5617188', 'n_tokens_mistral': 461, 'n_tokens_neox': 424, 'n_words': 80}