<commit_before>'use strict';

/* Controllers */

angular.module('qcmffvl.controllers', [])

.controller('MainCtrl', function($scope, API, $route, $http, $location, $timeout, $filter, dialogs) {

    $scope.main = {
        category: {
            options: [ "Parapente" ],
            checked: "Parapente"
        },
        level: {
            options: [ "Brevet Initial", "Brevet de Pilote", "Brevet de Pilote Confirmé"],
            checked: "Brevet de Pilote"
        },
        nbquestions: {
        	options: [ "10", "30", "60", "90", "Toutes" ],
        	checked: "30"
        },
        // TODO: ajouter "révision" et prepend "examen"
        typeExam: {
            options: [ "Révision", "Examen papier (candidat)", "Examen papier (examinateur)" ],
            // options: [ "Révision", "Examen papier", "Examen numérique"],
            checked: "Examen papier (examinateur)"
        },
        targetExam: "Examinateur",
        displayLimit: 10000,
        checkAnswers: false,
        score: {
            total: 0,
            nb: 0,
            percentage: 0,
            user: 0
        },
        examMode: false,
        examPapier: false,
        examNumerique: false,
        examPapierCandidat: false,
        examPapierExaminateur: false,
        QCMID: "",
        QCMIDUser: ""
    }
    $scope.main.search  = {
    	num_niveau: $scope.main.level.options.indexOf($scope.main.level.checked)
    }
    $scope.main.limit = $scope.main.nbquestions.checked;
    $scope.reloadQCM = false;
    // automatically removed by a directive when the QCM is loaded
    $scope.loading = true;
    // to force the loading state, regardless of scope.loading
    $scope.forceloading = true;
<commit_msg>correct default values<commit_after>'use strict';

/* Controllers */

angular.module('qcmffvl.controllers', [])

.controller('MainCtrl', function($scope, API, $route, $http, $location, $timeout, $filter, dialogs) {

    $scope.main = {
        category: {
            options: [ "Parapente" ],
            checked: "Parapente"
        },
        level: {
            options: [ "Brevet Initial", "Brevet de Pilote", "Brevet de Pilote Confirmé"],
            checked: "Brevet de Pilote"
        },
        nbquestions: {
        	options: [ "10", "30", "60", "90", "Toutes" ],
        	checked: "30"
        },
        // TODO: ajouter "révision" et prepend "examen"
        typeExam: {
            options: [ "Révision", "Examen papier (candidat)", "Examen papier (examinateur)" ],
            // options: [ "Révision", "Examen papier", "Examen numérique"],
            checked: "Révision"
        },
        targetExam: "Examinateur",
        displayLimit: 10000,
        checkAnswers: false,
        score: {
            total: 0,
            nb: 0,
            percentage: 0,
            user: 0
        },
        examMode: false,
        examPapier: false,
        examNumerique: false,
        examPapierCandidat: false,
        examPapierExaminateur: false,
        QCMID: "",
        QCMIDUser: ""
    }
    $scope.main.search  = {
    	num_niveau: $scope.main.level.options.indexOf($scope.main.level.checked)
    }
    $scope.main.limit = $scope.main.nbquestions.checked;
    $scope.reloadQCM = false;
    // automatically removed by a directive when the QCM is loaded
    $scope.loading = true;
    // to force the loading state, regardless of scope.loading
    $scope.forceloading = true;

{'fraction_non_alphanumeric': 0.13372434017595308, 'fraction_numerical': 0.011143695014662757, 'mean_word_length': 2.032, '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': '5477621', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1078, 'n_words': 248}