<commit_before><!-- List of person-box's -->

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/core-ajax/core-ajax.html">
<link rel="import" href="../../bower_components/core-selector/core-selector.html">
<link rel="import" href="extension-box.html">
<link rel="import" href="../box-list.html">

<polymer-element name="extension-list" attributes="people query">
	<template>
		<style>
			:host {
				display: block;
				width: 100%;
			}
		</style>
		<box-list id="list" multi selector valueattr="crsid">
			<template repeat="{{person in people | filter(query) }}">
					<extension-box
						class="itemBox"
						name="{{person.user.displayName}}"
						crsid="{{person.user._id}}"
						college="{{person.user.college == 'Unknown' ? '' : person.user.college}}"
						extension="{{person.deadline}}">
					</extension-box>	
			</template>	
		</box-list>
	</template>
	<script>
		Polymer('extension-list', {
			
			listFilter: function(item) {
				var q = this.query.toLowerCase();
				return (item.displayName.toLowerCase().indexOf(q) > -1 ||
						item._id.toLowerCase().indexOf(q) > -1 ||
						item.college.toLowerCase().indexOf(q) > -1);
			},

			filter: function(items, q) {
				if (items && q) {
					return items.filter(this.listFilter.bind(this));
				}
				return items;
			}
		});
	</script>
</polymer-element><commit_msg>Fixed searching in extension list.<commit_after><!-- List of person-box's -->

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/core-ajax/core-ajax.html">
<link rel="import" href="../../bower_components/core-selector/core-selector.html">
<link rel="import" href="extension-box.html">
<link rel="import" href="../box-list.html">

<polymer-element name="extension-list" attributes="people query">
	<template>
		<style>
			:host {
				display: block;
				width: 100%;
			}
		</style>
		<box-list id="list" multi selector valueattr="crsid">
			<template repeat="{{person in people | filter(query) }}">
					<extension-box
						class="itemBox"
						name="{{person.user.displayName}}"
						crsid="{{person.user._id}}"
						college="{{person.user.college == 'Unknown' ? '' : person.user.college}}"
						extension="{{person.deadline}}">
					</extension-box>	
			</template>	
		</box-list>
	</template>
	<script>
		Polymer('extension-list', {
			
			listFilter: function(item) {
				var q = this.query.toLowerCase();
				return (item.user.displayName.toLowerCase().indexOf(q) > -1 ||
						item.user._id.toLowerCase().indexOf(q) > -1 ||
						item.user.college.toLowerCase().indexOf(q) > -1);
			},

			filter: function(items, q) {
				if (items && q) {
					return items.filter(this.listFilter.bind(this));
				}
				return items;
			}
		});
	</script>
</polymer-element>
{'fraction_non_alphanumeric': 0.20267417311752287, 'fraction_numerical': 0.00422237860661506, 'mean_word_length': 3.3805855161787366, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 49, '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': '3399442', 'n_tokens_mistral': 1120, 'n_tokens_neox': 935, 'n_words': 161}