<commit_before><!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>polymer-filters Demo</title>

  <script src="../platform/platform.js"></script>
  <link rel="import" href="polymer-filters.html">
</head>
<body unresolved>
<template id="view" is="auto-binding">

    <h3>uppercase</h3>

    <p>{{greeting | uppercase}}</p>

    <h3>lowercase</h3>

    <p>{{greeting | lowercase}}</p>

    <h3>reverse</h3>
    {{'Hello World' | reverse}}

    <h3>replace('World','Peeps')</h3>
    {{'Hello World' | replace('World','Peeps')}}

    <h3>startsWith(T)</h3>
    <template repeat="{{friend in friends | startsWith(T)}}">
        {{ friend.name }}
    </template>

    <h3>date('yyyy-MM-dd HH:mm:ss Z')</h3>
    {{1288323623006 | date('yyyy-MM-dd HH:mm:ss Z')}}

    <h3>orderBy('age')</h3>

    <ul class="phones">
        <template repeat="{{phones | orderBy(orderProp)}}">
            <li>
                <span><strong>{{name}}</strong> - {{snippet}}</span>
            </li>
        </template>
    </ul>

    <h3>limitFrom(1,2)</h3>

    <ul class="phones">
        <template repeat="{{phones | limitFrom(1,2)}}">
            <li>
                <span><strong>{{name}}</strong> - {{snippet}}</span>
            </li>
        </template>
    </ul>

    <h3>wordcount</h3>
    {{'Hello World' | wordcount}}

    <h3>round</h3>
    {{ 45.35 | round }}

    <h3>round(1, 'floor')</h3>
    {{ 45.35 | round(1, 'floor') }}

</template>
  <script>
	var template = document.getElementById('view');
	var phones = [{'name':'Nexus S','snippet':'Fast just got faster with Nexus S.','age':1},{'name':'Motorola XOOM with Wi-Fi','snippet':'The Next, Next Generation tablet.','age':2},{'name':'MOTOROLA XOOM','snippet':'The Next, Next Generation tablet.','age':3}];
	var template = document.getElementById('view');
	template.phones = phones;
	template.orderProp = 'age';

	template.greeting = 'Hello World';
	template.friends = [{
	    name: 'Matt'        
	  }, {
	    name: 'Paul'
	  }, {
	    name: 'Eric'
	  }, {
	    name: 'Rob'
	  }, {
	    name: 'Timothy'
	  }];
  </script>
</body>
</html>
<commit_msg>Fix startsWith demo, add random colours.<commit_after><!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>polymer-filters Demo</title>

  <script src="../platform/platform.js"></script>
  <link rel="import" href="polymer-filters.html">
</head>
<body unresolved>
<template id="view" is="auto-binding">

    <h3>uppercase</h3>

    <p>{{greeting | uppercase}}</p>

    <h3>lowercase</h3>

    <p>{{greeting | lowercase}}</p>

    <h3>reverse</h3>
    {{'Hello World' | reverse}}

    <h3>replace('World','Peeps')</h3>
    {{'Hello World' | replace('World','Peeps')}}

    <h3>startsWith(T)</h3>
    <template repeat="{{friend in friends | startsWith('T')}}">
        {{ friend.name }}
    </template>

    <h3>date('yyyy-MM-dd HH:mm:ss Z')</h3>
    {{1288323623006 | date('yyyy-MM-dd HH:mm:ss Z')}}

    <h3>orderBy('age')</h3>

    <ul class="phones">
        <template repeat="{{phones | orderBy(orderProp)}}">
            <li>
                <span><strong>{{name}}</strong> - {{snippet}}</span>
            </li>
        </template>
    </ul>

    <h3>limitFrom(1,2)</h3>

    <ul class="phones">
        <template repeat="{{phones | limitFrom(1,2)}}">
            <li>
                <span><strong>{{name}}</strong> - {{snippet}}</span>
            </li>
        </template>
    </ul>

    <h3>wordcount</h3>
    {{'Hello World' | wordcount}}

    <h3>round</h3>
    {{ 45.35 | round }}

    <h3>round(1, 'floor')</h3>
    {{ 45.35 | round(1, 'floor') }}

    <h3>random</h3>
    {{ colors | random }}

</template>
  <script>
	var template = document.getElementById('view');
	var phones = [{'name':'Nexus S','snippet':'Fast just got faster with Nexus S.','age':1},{'name':'Motorola XOOM with Wi-Fi','snippet':'The Next, Next Generation tablet.','age':2},{'name':'MOTOROLA XOOM','snippet':'The Next, Next Generation tablet.','age':3}];
	var template = document.getElementById('view');
	template.phones = phones;
	template.orderProp = 'age';
	template.colors = ['red','green','blue','yellow'];
	template.greeting = 'Hello World';
	template.friends = [{
	    name: 'Matt'        
	  }, {
	    name: 'Paul'
	  }, {
	    name: 'Eric'
	  }, {
	    name: 'Rob'
	  }, {
	    name: 'Timothy'
	  }];
  </script>
</body>
</html>

{'fraction_non_alphanumeric': 0.22335475293596277, 'fraction_numerical': 0.02526035896299579, 'mean_word_length': 3.0411817367949867, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, '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': '6452294', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1601, 'n_words': 288}