<commit_before>@if($activities->count() > 0)
	@foreach($activities as $activity)
		<div class="events-list">
			<div class="media event">
				<a class="pull-left event-user-image" href="#">
					<img class="media-object img-circle" src="/img/no-image.png" width="50" height="50" alt="Image">
				</a>
				<div class="media-body">
					<div class="event-top">
						<div class="pull-left event-icon">
							@if($activity->name == 'created_category')
                                <img src="/img/icons/ecommerce_sales.svg" width="22" height="22" alt="Image">
                            @endif

                            @if($activity->name == 'deleted_category')
								<img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">
                            @endif

                            @if($activity->name == 'updated_category')
								<img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">												
                            @endif

                            @if($activity->name == 'created_wiki')
								<img src="/img/icons/basic_notebook.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'deleted_wiki')
								<img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'updated_wiki')
								<img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'created_wikipage')
								<img src="/img/icons/basic_webpage_txt.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'deleted_wikipage')
								<img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">				                                
                            @endif

                            @if($activity->name == 'updated_wikipage')
								<img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">				                                
                            @endif

                            @if($activity->name == 'created_comment')
								<img src="/img/icons/basic_message.svg" width="22" height="22" alt="Image">
                            @endif

                            @if($activity->name == 'deleted_comment')
								<img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'updated_comment')
								<img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">                                                
                            @endif
						</div>
						<div class="pull-left">
							@if($activity->name == 'created_category')
								<a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> created a category <a href="#">{{ $activity->subject['name'] }}</a>.
							@endif
							
                            @if($activity->name == 'deleted_category')
								<a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> deleted a category <a href="#">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_category')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> updated a category <a href="#">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'created_wiki')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> created a wiki <a href="{{ route('wikis.show', [$team->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'deleted_wiki')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> deleted a wiki <a href="{{ route('wikis.show', [$team->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_wiki')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> updated a wiki <a href="{{ route('wikis.show', [$team->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'created_wikipage')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> created a page <a href="{{ route('pages.show', [$team->slug, $activity->wiki->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'deleted_wikipage')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> deleted a page <a href="{{ route('pages.show', [$team->slug, $activity->wiki->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_wikipage')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> updated a page <a href="{{ route('pages.show', [$team->slug, $activity->wiki->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'created_comment')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> commented on a page <a href="{{ route('pages.show', [$team->slug, $activity->wiki->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'deleted_comment')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> deleted comment from a page <a href="{{ route('pages.show', [$team->slug, $activity->wiki->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_comment')
                                <a href="{{ route('users.show', [ $team->slug, $activity->user->slug ]) }}">You</a> updated comment on page <a href="{{ route('pages.show', [$team->slug, $activity->wiki->slug, $activity->subject->slug]) }}">{{ $activity->subject['name'] }}</a>.
                            @endif
						</div>
						<div class="clearfix"></div>
					</div>
					<p class="text-muted"><span data-toggle="tooltip" data-placement="bottom" title="{{ $activity->created_at->timezone(Session::get('user_timezone'))->toFormattedDateString() . ' at ' . $activity->created_at->timezone(Session::get('user_timezone'))->format('h:i A')}}">{{ $activity->created_at->timezone(Session::get('user_timezone'))->diffForHumans() }}</span></p>
				</div>
			</div>
		</div>
	@endforeach
@else 
	<h1 class="nothing-found">No activity found</h1>
@endif<commit_msg>Update user activity<commit_after>@if($activities->count() > 0)
    <div class="events-list">
        @foreach($activities as $activity)
            <div class="media event">
                <a class="pull-left event-user-image" href="#">
                    <img class="media-object" style="border-radius: 3px;" src="/img/no-image.png" width="42" height="42" alt="Image">
                </a>
                <div class="media-body">
                    <div class="event-top">
                        <div class="pull-left event-icon">
                            @if($activity->name == 'created_category')
                                <img src="/img/icons/ecommerce_sales.svg" width="22" height="22" alt="Image">
                            @endif

                            @if($activity->name == 'deleted_category')
                                <img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">
                            @endif

                            @if($activity->name == 'updated_category')
                                <img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">                                              
                            @endif

                            @if($activity->name == 'created_wiki')
                                <img src="/img/icons/basic_book.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'deleted_wiki')
                                <img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'updated_wiki')
                                <img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'created_page')
                                <img src="/img/icons/basic_webpage_txt.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'deleted_page')
                                <img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'updated_page')
                                <img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">                                              
                            @endif

                            @if($activity->name == 'created_comment')
                                <img src="/img/icons/basic_message.svg" width="22" height="22" alt="Image">
                            @endif

                            @if($activity->name == 'deleted_comment')
                                <img src="/img/icons/basic_trashcan.svg" width="22" height="22" alt="Image">                                                
                            @endif

                            @if($activity->name == 'updated_comment')
                                <img src="/img/icons/basic_floppydisk.svg" width="22" height="22" alt="Image">                                                
                            @endif
                        </div>
                        <div class="pull-left">
                            @if($activity->name == 'created_category')
                                You created category <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif
                            
                            @if($activity->name == 'deleted_category')
                                You deleted category <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_category')
                                You updated category <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'created_wiki')
                                You created wiki <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'deleted_wiki')
                                You deleted wiki <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_wiki')
                                You updated wiki <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'created_page')
                                You created page <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'deleted_page')
                                You deleted page <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a>.
                            @endif

                            @if($activity->name == 'updated_page')
                                You updated page <a href="" style="color: #337ab7;">{{ $activity->subject['name'] }}</a> at wiki <a href="" style="color: #337ab7;">{{ $activity->subject->wiki->name }}</a>.
                            @endif

                            @if($activity->name == 'created_comment')
                                @if($activity->subject->subject_type === 'App\Models\Wiki')
                                    You commented on wiki <a href="" style="color: #337ab7;">{{ $activity->subject->wiki->name }}</a>.
                                @else
                                    You commented on page <a href="" style="color: #337ab7;">{{ $activity->subject->page->name }}</a> at wiki <a href="" style="color: #337ab7;">{{ $activity->subject->page->wiki->name }}</a>.
                                @endif
                            @endif

                            @if($activity->name == 'deleted_comment')
                                @if($activity->subject->subject_type === 'App\Models\Wiki')
                                    You deleted comment from wiki <a href="" style="color: #337ab7;">{{ $activity->subject->wiki->name }}</a> at wiki .
                                @else
                                    You deleted comment from page <a href="" style="color: #337ab7;">{{ $activity->subject->page->name }}</a> at wiki <a href="" style="color: #337ab7;">{{ $activity->subject->page->wiki->name }}</a>.
                                @endif
                            @endif

                            @if($activity->name == 'updated_comment')
                                @if($activity->subject->subject_type === 'App\Models\Wiki')
                                    You updated comment on wiki <a href="" style="color: #337ab7;">{{ $activity->subject->wiki->name }}</a>.
                                @else
                                    You updated comment on page <a href="" style="color: #337ab7;">{{ $activity->subject->page->name }}</a> at wiki <a href="" style="color: #337ab7;">{{ $activity->subject->page->wiki->name }}</a>.
                                @endif
                            @endif
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    @if($activity->name == 'created_comment' || $activity->name == 'deleted_comment' || $activity->name == 'updated_comment')
                        <p style="border: 1px solid #ddd; padding: 6px 11px; border-radius: 3px; margin-bottom: 5px; background-color: #fbfbfb; margin-top: 10px;">{!! (new Emoji)->render($activity->subject->content) !!}</p>
                    @endif
                    <p class="text-muted"><span data-toggle="tooltip" data-placement="bottom" title="{{ $activity->created_at->timezone(Session::get('user_timezone'))->toFormattedDateString() . ' at ' . $activity->created_at->timezone(Session::get('user_timezone'))->format('h:i A')}}">{{ $activity->created_at->timezone(Session::get('user_timezone'))->diffForHumans() }}</span></p>
                </div>
            </div>
        @endforeach
    </div>
@else 
    <h1 class="nothing-found">No activity found</h1>
@endif
{'fraction_non_alphanumeric': 0.17185041752390173, 'fraction_numerical': 0.01179958852716931, 'mean_word_length': 1.375251509054326, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 372, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 55, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2360780', 'n_tokens_mistral': 4519, 'n_tokens_neox': 4124, 'n_words': 790}