<commit_before>﻿//
//  This code implements controller 'meetupIndexController',
//  used for template file : ~/Meetups/Index.cshtml.
//
(function () {
    "use strict";
    angular
        .module('meetupModule', ['ngResource', 'angularMoment'])
        .controller('meetupIndexController', function ($scope, $resource, $q, $log) {

            var currentShowingMeetupCount = 0;
            var MEETUPS_PER_PAGE = 5;
            //
            //  Lazy resources
            //
            var Meetup = $resource('/api/Meetups');
            var Userview = $resource('/api/loggedUser');
            var Join = $resource('/api/Joins');
            var CommentView = $resource('/api/Comments/');

            //  Service
            var Users = $resource('/api/Users', null, {
                'update': { method: 'PUT' }
            });
            //
            //  Queries
            //
            $scope.hasLoaded = false;
            $q.all([
                Meetup.query({ start: currentShowingMeetupCount, amount: MEETUPS_PER_PAGE }, function (data) {
                    $scope.meetupViews = data;
                    currentShowingMeetupCount += MEETUPS_PER_PAGE;
                }).$promise,
                Userview.query(function (userViews) {
                    $scope.userId = userViews[0].userId;<commit_msg>removed experiment code<commit_after>﻿//
//  This code implements controller 'meetupIndexController',
//  used for template file : ~/Meetups/Index.cshtml.
//
(function () {
    "use strict";
    angular
        .module('meetupModule', ['ngResource', 'angularMoment'])
        .controller('meetupIndexController', function ($scope, $resource, $q, $log) {

            var currentShowingMeetupCount = 0;
            var MEETUPS_PER_PAGE = 5;
            //
            //  Lazy resources
            //
            var Meetup = $resource('/api/Meetups');
            var Userview = $resource('/api/loggedUser');
            var Join = $resource('/api/Joins');
            var CommentView = $resource('/api/Comments/');
            //
            //  Queries
            //
            $scope.hasLoaded = false;
            $q.all([
                Meetup.query({ start: currentShowingMeetupCount, amount: MEETUPS_PER_PAGE }, function (data) {
                    $scope.meetupViews = data;
                    currentShowingMeetupCount += MEETUPS_PER_PAGE;
                }).$promise,
                Userview.query(function (userViews) {
                    $scope.userId = userViews[0].userId;
{'fraction_non_alphanumeric': 0.129813418023025, 'fraction_numerical': 0.0023818975784041284, 'mean_word_length': 1.655426765015806, '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': '236053', 'n_tokens_mistral': 714, 'n_tokens_neox': 681, 'n_words': 137}