<commit_before>'use strict';

angular
.module('app.controllers')
.controller('EventsCtrl', function($scope, Restangular) {
    $scope.isTeamMember = false;
    Restangular.one('people/me')
        .get()
        .then(function(data) {
            if (data &&data.attributes && data.attributes.roles && data.attributes.roles.length > 0) {
                $scope.isTeamMember = true;
            }
        });
	$scope.loadingPromise = Restangular.one('events/next-10-publicly?page[limit]=10&sort=%2bstartDateTime')
		.get()
		.then(function(data) {
			$scope.events = data;
		});
});
<commit_msg>Changing to eligible<commit_after>'use strict';

angular
.module('app.controllers')
.controller('EventsCtrl', function($scope, Restangular) {
    $scope.isTeamMember = false;
    Restangular.one('people/me')
        .get()
        .then(function(data) {
            if (data &&data.attributes && data.attributes.roles && data.attributes.roles.length > 0) {
                $scope.isTeamMember = true;
            }
        });
	$scope.loadingPromise = Restangular.one('events/public-check-in-eligible?page[limit]=10&sort=%2bstartDateTime')
		.get()
		.then(function(data) {
			$scope.events = data;
		});
});

{'fraction_non_alphanumeric': 0.16708229426433915, 'fraction_numerical': 0.00831255195344971, 'mean_word_length': 3.040268456375839, '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': '3607670', 'n_tokens_mistral': 395, 'n_tokens_neox': 376, 'n_words': 54}