<commit_before><gj-popover class="search-autocomplete-popover popover-dark shell-popover"
	popover-id="search-autocomplete"
	popover-trigger-manually="true"
	popover-append-to-body="true"
	popover-position-by="position"
	popover-track-element-width="#search-input-{{ $ctrl.searchCtrl.id }}"
	>

	<!-- Regular Search -->
	<div ng-if="$ctrl.mode == 'search'">

		<!-- View All -->
		<div class="list-group">
			<a class="list-group-item" ng-class="{ active: $ctrl.selected === 0 }" ng-click="$ctrl.viewAll()" translate>
				search.autocomplete.show_all
			</a>
		</div>

		<!-- Installed Games -->
		<div class="popover-heading" ng-if="$ctrl.libraryGames.length">
			<span class="jolticon jolticon-download-box"></span>
			<span translate>search.autocomplete.installed_heading</span>
		</div>
		<div class="list-group thin" ng-if="$ctrl.libraryGames.length">
			<a class="list-group-item"
				ng-repeat="libraryGame in $ctrl.libraryGames track by libraryGame.id"
				ng-class="{ active: $ctrl.items[ $ctrl.selected - 1 ] === libraryGame }"
				ng-click="$ctrl.selectLibraryGame( libraryGame )"
				>

				<!-- TODO: Get this working again. -->
				<!--<div ng-if="$$ctrl.environment.isClient" class="pull-right">
					<gj-client-game-buttons label="installed" game="libraryGame._game" small-variant="true"></gj-client-game-buttons>
				</div>-->

				<span class="search-game-thumbnail">
					<img gj-img-responsive="{{ ::libraryGame.img_thumbnail }}" alt="{{ ::libraryGame.title }}">
				</span>

				{{ ::libraryGame.title }}
			</a>
		</div>

		<!-- Games -->
		<div class="popover-heading" ng-if="$ctrl.games.length">
			<span class="jolticon jolticon-game"></span>
			<span translate>search.autocomplete.games_heading</span>
		</div>
		<div class="list-group thin" ng-if="$ctrl.games.length">
			<a class="list-group-item"
				ng-repeat="game in $ctrl.games track by game.id"
				ng-class="{ active: $ctrl.items[ $ctrl.selected - 1 ] === game }"
				ng-click="$ctrl.selectGame( game )"
				>

				<!-- TODO: Get this working again. -->
				<!--<div ng-if="$$ctrl.environment.isClient" class="pull-right">
					<gj-client-game-buttons label="not-installed" game="game" small-variant="true"></gj-client-game-buttons>
				</div>-->

				<div class="pull-right">
					<gj-game-compat-icons gj-game="game"></gj-game-compat-icons>
				</div>

				<span class="search-game-thumbnail">
					<img gj-img-responsive="{{ ::game.img_thumbnail }}" alt="{{ ::game.title }}">
				</span>

				{{ ::game.title }}
			</a>
		</div>
<commit_msg>Fix some $ctrl references.<commit_after><gj-popover class="search-autocomplete-popover popover-dark shell-popover"
	popover-id="search-autocomplete"
	popover-trigger-manually="true"
	popover-append-to-body="true"
	popover-position-by="position"
	popover-track-element-width="#search-input-{{ $ctrl.searchCtrl.id }}"
	>

	<!-- Regular Search -->
	<div ng-if="$ctrl.mode == 'search'">

		<!-- View All -->
		<div class="list-group">
			<a class="list-group-item" ng-class="{ active: $ctrl.selected === 0 }" ng-click="$ctrl.viewAll()" translate>
				search.autocomplete.show_all
			</a>
		</div>

		<!-- Installed Games -->
		<div class="popover-heading" ng-if="$ctrl.libraryGames.length">
			<span class="jolticon jolticon-download-box"></span>
			<span translate>search.autocomplete.installed_heading</span>
		</div>
		<div class="list-group thin" ng-if="$ctrl.libraryGames.length">
			<a class="list-group-item"
				ng-repeat="libraryGame in $ctrl.libraryGames track by libraryGame.id"
				ng-class="{ active: $ctrl.items[ $ctrl.selected - 1 ] === libraryGame }"
				ng-click="$ctrl.selectLibraryGame( libraryGame )"
				>

				<!-- TODO: Get this working again. -->
				<!--<div ng-if="$ctrl.environment.isClient" class="pull-right">
					<gj-client-game-buttons label="installed" game="libraryGame._game" small-variant="true"></gj-client-game-buttons>
				</div>-->

				<span class="search-game-thumbnail">
					<img gj-img-responsive="{{ ::libraryGame.img_thumbnail }}" alt="{{ ::libraryGame.title }}">
				</span>

				{{ ::libraryGame.title }}
			</a>
		</div>

		<!-- Games -->
		<div class="popover-heading" ng-if="$ctrl.games.length">
			<span class="jolticon jolticon-game"></span>
			<span translate>search.autocomplete.games_heading</span>
		</div>
		<div class="list-group thin" ng-if="$ctrl.games.length">
			<a class="list-group-item"
				ng-repeat="game in $ctrl.games track by game.id"
				ng-class="{ active: $ctrl.items[ $ctrl.selected - 1 ] === game }"
				ng-click="$ctrl.selectGame( game )"
				>

				<!-- TODO: Get this working again. -->
				<!--<div ng-if="$ctrl.environment.isClient" class="pull-right">
					<gj-client-game-buttons label="not-installed" game="game" small-variant="true"></gj-client-game-buttons>
				</div>-->

				<div class="pull-right">
					<gj-game-compat-icons gj-game="game"></gj-game-compat-icons>
				</div>

				<span class="search-game-thumbnail">
					<img gj-img-responsive="{{ ::game.img_thumbnail }}" alt="{{ ::game.title }}">
				</span>

				{{ ::game.title }}
			</a>
		</div>

{'fraction_non_alphanumeric': 0.2083251134346025, 'fraction_numerical': 0.0011836654172420597, 'mean_word_length': 3.588235294117647, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1560561', 'n_tokens_mistral': 2027, 'n_tokens_neox': 1714, 'n_words': 291}