<commit_before><!DOCTYPE html>

<html>
<head>
	<link rel='stylesheet' type='text/css' media='all' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css' />
	<link rel='stylesheet' type='text/css' media='all' href='/css/bootstrap-flat.min.css' />
	<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
	<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
	<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
	<style>
		.ng-hide { display: none; }
	</style>
</head>

<body ng-app="app" class="ng-hide" ng-cloak ng-show="true">
	<div id="header">
		<ul class="nav nav-pills">
			<li ng-click="view='addons'" ng-class="{ active: view == 'addons' }"><a>Add-ons</a></li>
			<li ng-click="view='discover'" ng-class="{ active: view == 'discover' }"><a>Discover</a></li>
			<li ng-click="view='search'" ng-class="{ active: view == 'search' }"><a>Search</a></li>

		</ul>
	</div>

	<div id="addons" ng-show="view=='addons'" ng-controller='addonsCtrl'>
			<h2>Loaded endpoints</h2>
			<div class="row" ng-show="stremio.get().length">
				<div ng-repeat="addon in stremio.get() track by addon.url" class="col-xs-4 col-lg-3 nopadding" >
					<h2><b>{{addon.manifest.name}}</b> {{addon.manifest.version}}</h2>
					<h3>{{addon.identifier()}}<br>{{addon.url}}</h3>
					<div class="type">{{getType(addon.url)}}</div>
				</div>
			</div>

			<hr></hr>

			<h2>Enabled identifiers</h2>

			<ul>
				<li ng-repeat="identifier in identifiers()">
					<!--<input type="checkbox" ng-model="activated[identifier]"></input>-->
					{{identifier}}
				</li>
			</ul>

			<hr></hr>

			<h2>Add new add-on</h2>
			<form class="input-group" ng-submit="add()">
				<input type="text" placeholder="Add-on endpoint URL" class="form-control ng-valid ng-dirty ng-valid-parse ng-touched" id="ch_sfield" name="q" value="" ng-model="addonUrl">
				<span class="input-group-btn">
					<button type="submit" class="btn btn-default" style="border-left: none;">
					<span class="fa fa-plus-circle purple"></span>
					</button>
				</span>
			</form>
		</div>
	</div>

	<div id="search" ng-show="view=='search'" ng-controller='searchCtrl'>
		<form class="input-group" ng-submit="search()">
			<input type="text" placeholder="Search" class="form-control ng-valid ng-dirty ng-valid-parse ng-touched" id="ch_sfield" name="q" value="" ng-model="searchQuery">
			<span class="input-group-btn">
				<button type="submit" class="btn btn-default" value="Search" style="border-left: none;">
				<span class="fa fa-search purple"></span>
				</button>
			</span>
		</form>

		<div class="row">
			<div class="col-xs-8">
				<div class="row catalog" ng-repeat="group in groups">
					<h2>{{group.type}}</h2>
					<div ng-repeat="item in group.items" ng-if="::item.poster" class="col-xs-4 col-lg-3 nopadding" >
						<div class="panel" ng-class="::item.id == selected.item.id ? 'panel-primary' : ''">
							<a href="" ng-click="selected.item = item">
								<img class="img-responsive" ng-src="{{::item.getPoster()}}" alt="{{::item.name}}" />
							</a>
							<a ng-cloak class="play-button" href="#" ng-show="item.id == selected.item.id">
								<img src="play_circle.png" alt="Play"/>
							</a>
						</div>
					</div>
				</div>
			</div>

			<div class="col-xs-4" style="margin-top: 30px;" ng-show="selected.item" ng-controller='infobarCtrl' ng-include="'infobar.html'">
			</div>
		</div>

	</div>

	<div id="discover" ng-show="view=='discover'" ng-controller="discoverCtrl">
		<div class="row">
			<div class="col-xs-2">
				<ul class="nav nav-pills nav-stacked cat-types">
					<li ng-repeat="(key, val) in catTypes" ng-class="{'active': selected.type === key}"><a href="" ng-click="selected.type = key">{{val.name}}</a></li>
				</ul>
				<br>
				<ul class="nav nav-pills nav-stacked cat-types">
					<li ng-repeat="sort in sorts track by $id(sort.prop)" ng-class="{'active': selected.sort === sort.prop}" ng-show="filterSort(selected.type, sort)"><a href="" ng-click="selected.sort = sort.prop">Sort by {{sort.name}}</a></li>
				</ul>
				<br>
				<ul class="nav nav-pills nav-stacked cat-genres">
					<li ng-class="{'active': !selected.genre}"><a href="" ng-click="selected.genre = null">Top</a></li>
					<li ng-repeat="(genre, _) in genres[selected.type]" ng-class="{'active': selected.genre === genre}"><a href="" ng-click="selected.genre = genre">{{genre}}</a></li>
				</ul>
			</div>
			<div class="col-xs-7">
				<div class="row catalog" ng-show="items">
					<div ng-repeat="item in items" ng-if="item.poster" class="col-xs-4 col-lg-3 nopadding" >
						<div class="panel" ng-class="::item.id == selected.item.id ? 'panel-primary' : ''">
							<a href="" ng-click="selected.item = item">
								<img class="img-responsive" ng-src="{{::item.getPoster()}}" alt="{{::item.name}}" />
							</a>
							<a ng-cloak class="play-button" href="#" ng-show="item.id == selected.item.id">
								<img src="play_circle.png" alt="Play"/>
							</a>
						</div>
					</div>
					<button class="btn btn-purple" style="display: block; width: 100%;" ng-show="items.length" ng-click="loadNextPage()">Load more items</button>
				</div>
				<div ng-show="isLoading()">
					<p><i class="fa fa-cog fa-spin"></i> Loading...</p>
				</div>
				<div ng-hide="items.length || isLoading()">
					<p>No items to display</p>
				</div>
			</div>

			<div class="col-xs-3" ng-show="selected.item" ng-controller='infobarCtrl' ng-include="'infobar.html'">
			</div>
		</div>
	</div>

	<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
	<script src="/js/stremio-addons.min.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
	<script src="/js/EventEmitter.js"></script>
	<script src="/js/main.js"></script>
	<script src="/js/factories/stremio.js"></script>
	<script src="/js/factories/requests.js"></script>
	<script src="/js/factories/metadata.js"></script>
	<script src="/js/controllers/infobar.js"></script>
	<script src="/js/controllers/discover.js"></script>
	<script src="/js/controllers/search.js"></script>
	<script src="/js/controllers/addons.js"></script>

	<link href="./style.css" rel="stylesheet" type="text/css" />

</body>
</html>
<commit_msg>include stremio-addons from www.strem.io<commit_after><!DOCTYPE html>

<html>
<head>
	<link rel='stylesheet' type='text/css' media='all' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css' />
	<link rel='stylesheet' type='text/css' media='all' href='/css/bootstrap-flat.min.css' />
	<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
	<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
	<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
	<style>
		.ng-hide { display: none; }
	</style>
</head>

<body ng-app="app" class="ng-hide" ng-cloak ng-show="true">
	<div id="header">
		<ul class="nav nav-pills">
			<li ng-click="view='addons'" ng-class="{ active: view == 'addons' }"><a>Add-ons</a></li>
			<li ng-click="view='discover'" ng-class="{ active: view == 'discover' }"><a>Discover</a></li>
			<li ng-click="view='search'" ng-class="{ active: view == 'search' }"><a>Search</a></li>

		</ul>
	</div>

	<div id="addons" ng-show="view=='addons'" ng-controller='addonsCtrl'>
			<h2>Loaded endpoints</h2>
			<div class="row" ng-show="stremio.get().length">
				<div ng-repeat="addon in stremio.get() track by addon.url" class="col-xs-4 col-lg-3 nopadding" >
					<h2><b>{{addon.manifest.name}}</b> {{addon.manifest.version}}</h2>
					<h3>{{addon.identifier()}}<br>{{addon.url}}</h3>
					<div class="type">{{getType(addon.url)}}</div>
				</div>
			</div>

			<hr></hr>

			<h2>Enabled identifiers</h2>

			<ul>
				<li ng-repeat="identifier in identifiers()">
					<!--<input type="checkbox" ng-model="activated[identifier]"></input>-->
					{{identifier}}
				</li>
			</ul>

			<hr></hr>

			<h2>Add new add-on</h2>
			<form class="input-group" ng-submit="add()">
				<input type="text" placeholder="Add-on endpoint URL" class="form-control ng-valid ng-dirty ng-valid-parse ng-touched" id="ch_sfield" name="q" value="" ng-model="addonUrl">
				<span class="input-group-btn">
					<button type="submit" class="btn btn-default" style="border-left: none;">
					<span class="fa fa-plus-circle purple"></span>
					</button>
				</span>
			</form>
		</div>
	</div>

	<div id="search" ng-show="view=='search'" ng-controller='searchCtrl'>
		<form class="input-group" ng-submit="search()">
			<input type="text" placeholder="Search" class="form-control ng-valid ng-dirty ng-valid-parse ng-touched" id="ch_sfield" name="q" value="" ng-model="searchQuery">
			<span class="input-group-btn">
				<button type="submit" class="btn btn-default" value="Search" style="border-left: none;">
				<span class="fa fa-search purple"></span>
				</button>
			</span>
		</form>

		<div class="row">
			<div class="col-xs-8">
				<div class="row catalog" ng-repeat="group in groups">
					<h2>{{group.type}}</h2>
					<div ng-repeat="item in group.items" ng-if="::item.poster" class="col-xs-4 col-lg-3 nopadding" >
						<div class="panel" ng-class="::item.id == selected.item.id ? 'panel-primary' : ''">
							<a href="" ng-click="selected.item = item">
								<img class="img-responsive" ng-src="{{::item.getPoster()}}" alt="{{::item.name}}" />
							</a>
							<a ng-cloak class="play-button" href="#" ng-show="item.id == selected.item.id">
								<img src="play_circle.png" alt="Play"/>
							</a>
						</div>
					</div>
				</div>
			</div>

			<div class="col-xs-4" style="margin-top: 30px;" ng-show="selected.item" ng-controller='infobarCtrl' ng-include="'infobar.html'">
			</div>
		</div>

	</div>

	<div id="discover" ng-show="view=='discover'" ng-controller="discoverCtrl">
		<div class="row">
			<div class="col-xs-2">
				<ul class="nav nav-pills nav-stacked cat-types">
					<li ng-repeat="(key, val) in catTypes" ng-class="{'active': selected.type === key}"><a href="" ng-click="selected.type = key">{{val.name}}</a></li>
				</ul>
				<br>
				<ul class="nav nav-pills nav-stacked cat-types">
					<li ng-repeat="sort in sorts track by $id(sort.prop)" ng-class="{'active': selected.sort === sort.prop}" ng-show="filterSort(selected.type, sort)"><a href="" ng-click="selected.sort = sort.prop">Sort by {{sort.name}}</a></li>
				</ul>
				<br>
				<ul class="nav nav-pills nav-stacked cat-genres">
					<li ng-class="{'active': !selected.genre}"><a href="" ng-click="selected.genre = null">Top</a></li>
					<li ng-repeat="(genre, _) in genres[selected.type]" ng-class="{'active': selected.genre === genre}"><a href="" ng-click="selected.genre = genre">{{genre}}</a></li>
				</ul>
			</div>
			<div class="col-xs-7">
				<div class="row catalog" ng-show="items">
					<div ng-repeat="item in items" ng-if="item.poster" class="col-xs-4 col-lg-3 nopadding" >
						<div class="panel" ng-class="::item.id == selected.item.id ? 'panel-primary' : ''">
							<a href="" ng-click="selected.item = item">
								<img class="img-responsive" ng-src="{{::item.getPoster()}}" alt="{{::item.name}}" />
							</a>
							<a ng-cloak class="play-button" href="#" ng-show="item.id == selected.item.id">
								<img src="play_circle.png" alt="Play"/>
							</a>
						</div>
					</div>
					<button class="btn btn-purple" style="display: block; width: 100%;" ng-show="items.length" ng-click="loadNextPage()">Load more items</button>
				</div>
				<div ng-show="isLoading()">
					<p><i class="fa fa-cog fa-spin"></i> Loading...</p>
				</div>
				<div ng-hide="items.length || isLoading()">
					<p>No items to display</p>
				</div>
			</div>

			<div class="col-xs-3" ng-show="selected.item" ng-controller='infobarCtrl' ng-include="'infobar.html'">
			</div>
		</div>
	</div>

	<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
	<!--<script src="/js/stremio-addons.min.js"></script>-->
	<script src="http://www.strem.io/js/stremio-addons.min.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
	<script src="/js/EventEmitter.js"></script>
	<script src="/js/main.js"></script>
	<script src="/js/factories/stremio.js"></script>
	<script src="/js/factories/requests.js"></script>
	<script src="/js/factories/metadata.js"></script>
	<script src="/js/controllers/infobar.js"></script>
	<script src="/js/controllers/discover.js"></script>
	<script src="/js/controllers/search.js"></script>
	<script src="/js/controllers/addons.js"></script>

	<link href="./style.css" rel="stylesheet" type="text/css" />

</body>
</html>

{'fraction_non_alphanumeric': 0.23744500075861022, 'fraction_numerical': 0.008192990441511151, 'mean_word_length': 3.84313005143277, 'pattern_counts': {'":': 6, '<': 386, '<?xml version=': 0, '>': 386, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, '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': '1256732', 'n_tokens_mistral': 5628, 'n_tokens_neox': 4811, 'n_words': 843}