<commit_before>/**
 * Created by MyPC on 5/6/2016.
 */
(function () {

    function TestController($location, AuthenticationService, FlashService, UserService, FbLoginService, $q, $http) {

        var vm = this;

        vm.examinationData = [];

        function GetQuestionData() {
            var deferred = $q.defer();
            $http.get('http://localhost/SeeEnglish/Api/Examination').
            success(function(data, status, headers, config) {
                deferred.resolve(data);
            }).
            error(function(data, status, headers, config) {
                deferred.reject(status);
            });
            return deferred.promise;
        }

        GetQuestionData().then(function(data) {
                vm.examinationData = data;
        },
        function() {
            alert('Error when loading data');
        })




        $('.timer').startTimer();

        $('.index-question-block').find('li').on('click', function () {
            var number = $(this).text();
            var questionElm = $("#q" + number);
            if (questionElm.length) {
                $('html, body').animate({
                    scrollTop: questionElm.offset().top - 55
                }, 500);
            }
        });

        var itemsQuestion = $('.index-question-block').find('li');
        $('.wrapper-test-content').find('input[type="radio"]').on('click', function () {
            var name = $(this).closest('.question-block').attr('id');
            var id = '';
            if (name) {
                id = name.split('q').length > 1 ? name.split('q')[1] : '';
                if (!isNaN(parseInt(id))) {<commit_msg>commit test<commit_after>/**
 * Created by MyPC on 5/6/2016.
 */
(function () {

    function TestController($location, AuthenticationService, FlashService, UserService, FbLoginService, $q, $http) {

        var vm = this;

        vm.examinationData = [];

        function GetQuestionData() {
            var deferred = $q.defer();
            $http.get('http://localhost/SeeEnglish/Api/Examination').
            success(function(data, status, headers, config) {
                deferred.resolve(data);
            }).
            error(function(data, status, headers, config) {
                deferred.reject(status);
            });
            return deferred.promise;
        }

        GetQuestionData().then(function(data) {
                vm.examinationData = data;
        },
        function() {
            alert('Error when loading data');
        })




        $('.timer').startTimer();

        $('.index-question-block').on('click', 'li', function () {
            var number = $(this).text();
            var questionElm = $("#q" + number);
            if (questionElm.length) {
                $('html, body').animate({
                    scrollTop: questionElm.offset().top - 55
                }, 500);
            }
        });

        var itemsQuestion = $('.index-question-block').find('li');
        $('.wrapper-test-content').find('input[type="radio"]').on('click', function () {
            var name = $(this).closest('.question-block').attr('id');
            var id = '';
            if (name) {
                id = name.split('q').length > 1 ? name.split('q')[1] : '';
                if (!isNaN(parseInt(id))) {
{'fraction_non_alphanumeric': 0.1677263094156827, 'fraction_numerical': 0.007871631849833485, 'mean_word_length': 1.726072607260726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1671894', 'n_tokens_mistral': 929, 'n_tokens_neox': 860, 'n_words': 164}