<commit_before><div ng-controller="EventListController as EventList">

    <div class="white-box">
        <ul class="sort-list">
            <li class="title">
                <h2 class="app-title">Events</h2>
            </li>
            <pagesize pages-list="EventList" pages-service="EventList.service"></pagesize>
            <li class="search divid">
                <div class="search-box">
                    <input type="text" ng-model='EventList.searchInput' ng-keyup="EventList.search()">
                    <button class="search-button" ng-click="EventList.search()"></button>
                </div>
            </li>
        </ul>
    </div>

    <div class="white-box clear">
        <ul class="object-list">
            <li ng-repeat="event in EventList.list">
                <div class="list-item">
                    <div>
                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.auth_logged_in_with_username">
                            User <a ui-sref="users.details({uuid: event.user_uuid})" class="name">{{ event.user_username }}</a> with full name
                            <span class="name">{{ event.user_full_name }}</span>
                            authenticated successfully with username and password
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.role_granted">
                            User <a ui-sref="users.details({uuid: event.affected_user_uuid})">{{ event.affected_user_username }}</a>
                            has gained role of {{ event.role_name }} in {{ event.structure_type }}
                            <a ui-sref="projects.details({uuid: event.project_uuid})"
                               ng-if="event.structure_type === EventList.EVENTTYPE.role_granted_structure_type_project">
                                {{ event.project_name }}
                            </a>
                            <a ui-sref="customers.details({uuid: event.customer_uuid})"
                               ng-if="event.structure_type === EventList.EVENTTYPE.role_granted_structure_type_customer">
                                {{ event.customer_name }}
                            </a>
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.user_update_succeeded">
                            User <a ui-sref="users.details({uuid: event.user_uuid})" class="name">{{ event.user_username }}</a>
                            has been updated
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.project_creation_succeeded">
                            Project
                            <a ui-sref="projects.details({uuid: event.project_uuid})" class="name">
                                {{ event.project_name }}
                            </a>
                            has been created
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.iaas_service_sync_failed">
                            Cloud service
                            <a ui-sref="services.details({uuid: event.cloud_account_uuid})" class="name">{{ event.cloud_account_name }}</a>
                            has failed to sync
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.iaas_instance_creation_scheduled">
                            Virtual machine
                            <a class="name">{{ event.iaas_instance_name }}</a>
                            creation has been scheduled
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.customer_creation_succeeded">
                            Customer <a ui-sref="customers.details({uuid: event.customer_uuid})" class="name">{{ event.customer_name }}</a>
                            has been created
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.project_group_creation_succeeded">
                            Project group <span class="name">{{ event.project_group_name }}</span> has been created
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.customer_update_succeeded">
                            Customer
                            <a ui-sref="customers.details({uuid: event.customer_uuid})" class="name">{{ event.customer_name }}</a>
                            has been updated<commit_msg>Changed event log entry renderings.<commit_after><div ng-controller="EventListController as EventList">

    <div class="white-box">
        <ul class="sort-list">
            <li class="title">
                <h2 class="app-title">Events</h2>
            </li>
            <pagesize pages-list="EventList" pages-service="EventList.service"></pagesize>
            <li class="search divid">
                <div class="search-box">
                    <input type="text" ng-model='EventList.searchInput' ng-keyup="EventList.search()">
                    <button class="search-button" ng-click="EventList.search()"></button>
                </div>
            </li>
        </ul>
    </div>

    <div class="white-box clear">
        <ul class="object-list">
            <li ng-repeat="event in EventList.list">
                <div class="list-item">
                    <div>
                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.auth_logged_in_with_username">
                            User <a ui-sref="users.details({uuid: event.user_uuid})" class="name">
                            <span class="name">{{ event.user_full_name }}</span></a>
                            has signed in with a username/password.
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.role_granted">
                            <!-- TODO: replace affected_user_username to affected_user_full_name once the data is in LA -->
                            User <a ui-sref="users.details({uuid: event.affected_user_uuid})">{{ event.affected_user_username }}</a>
                            has gained role of {{ event.role_name }} in {{ event.structure_type }}
                            <a ui-sref="projects.details({uuid: event.project_uuid})"
                               ng-if="event.structure_type === EventList.EVENTTYPE.role_granted_structure_type_project">
                                {{ event.project_name }}
                            </a>
                            <a ui-sref="customers.details({uuid: event.customer_uuid})"
                               ng-if="event.structure_type === EventList.EVENTTYPE.role_granted_structure_type_customer">
                                {{ event.customer_name }}
                            </a>
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.user_update_succeeded">
                            User <a ui-sref="users.details({uuid: event.user_uuid})" class="name">{{ event.user_full_name }}</a>
                            has been updated
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.project_creation_succeeded">
                            Project
                            <a ui-sref="projects.details({uuid: event.project_uuid})" class="name">
                                {{ event.project_name }}
                            </a>
                            has been created
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.iaas_service_sync_failed">
                            Cloud service
                            <a ui-sref="services.details({uuid: event.cloud_account_uuid})" class="name">{{ event.cloud_account_name }}</a>
                            has failed to sync
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.iaas_instance_creation_scheduled">
                            Virtual machine
                            <a class="name">{{ event.iaas_instance_name }}</a>
                            creation has been scheduled
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.customer_creation_succeeded">
                            Organization <a ui-sref="customers.details({uuid: event.customer_uuid})" class="name">{{ event.customer_name }}</a>
                            has been created
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.project_group_creation_succeeded">
                            Project group <span class="name">{{ event.project_group_name }}</span> has been created
                        </span>

                        <span class="event" ng-if="event.event_type === EventList.EVENTTYPE.customer_update_succeeded">
                            Organization
                            <a ui-sref="customers.details({uuid: event.customer_uuid})" class="name">{{ event.customer_name }}</a>
                            has been updated
{'fraction_non_alphanumeric': 0.12051740456409717, 'fraction_numerical': 0.0004206541171521716, 'mean_word_length': 1.4428461340868226, 'pattern_counts': {'":': 0, '<': 132, '<?xml version=': 0, '>': 132, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4492888', 'n_tokens_mistral': 2409, 'n_tokens_neox': 2297, 'n_words': 421}