<commit_before><link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../bower_components/app-route/app-route.html">
<link rel="import" href="../bower_components/app-route/app-location.html">
<link rel="import" href="../bower_components/iron-pages/iron-pages.html">
<link rel="import" href="../bower_components/iron-icons/iron-icons.html">

<link rel="import" href="../layout/l-menu.html">

<dom-module id="polymer-apod">
    <template>
    <style>
        :host {
            font-family: 'Roboto';
        }
        .container {
          display: flex;
          align-items: flex-start;
          width: 100%;
        }
        .container > * {
            margin: 10px;
            padding: 10px;
        }
        l-menu {
          min-width: 150px;
          border: 1px solid red;
        }
        iron-pages {
         border: 1px solid green;
        }
    </style>

    <app-location route="{{route}}"></app-location>
    <app-route
        route="{{route}}"
        pattern="/:page"
        data="{{routeData}}"
        tail="{{subroute}}">
    </app-route>

    <h1>Polymer APOD</h1>

    <div class="container">
        <l-menu page="[[page]]"></l-menu>

        <iron-pages
          selected="[[page]]"
          attr-for-selected="name"
          fallback-selection="view-404"
          role="main">
            <today-apod name="today-apod"></today-apod>
            <calendar-apod name="calendar-apod"></calendar-apod>
            <view-404 name="view-404"></view-404>
        </iron-pages>
    </div>


</template>

    <script>
        Polymer({
            is: 'polymer-apod',
            properties: {
                page: {
                    type: String,
                    reflectToAttribute: true,
                    observer: '_pageChanged',
                },
            },

            observers: [
                '_routePageChanged(routeData)'
            ],


            _routePageChanged: function(routeData) {
                this.page = routeData.page || 'calendar-apod';
            },

            _pageChanged: function(page) {
                // Load page import on demand. Show 404 page if fails
                var resolvedPageUrl = this.resolveUrl(page + '.html');
                this.importHref(resolvedPageUrl, null, this._showPage404, true);
            },

            _showPage404: function() {
                this.page = 'view-404';
            },
        });
    </script>


</dom-module>
<commit_msg>koniec na dzis<commit_after><link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../bower_components/app-route/app-route.html">
<link rel="import" href="../bower_components/app-route/app-location.html">
<link rel="import" href="../bower_components/iron-pages/iron-pages.html">
<link rel="import" href="../bower_components/iron-icons/iron-icons.html">

<link rel="import" href="../layout/l-menu.html">

<dom-module id="polymer-apod">
    <template>
    <style>
        :host {
            font-family: 'Roboto';
        }
        .container {
            display: flex;
            align-items: flex-start;
            width: 100%;
        }
        .container > * {
            margin: 10px;
            padding: 10px;
        }
        l-menu {
            min-width: 150px;
            border: 1px solid red;

        }
        iron-pages {
            margin: 10px;
            padding: 10px;
            border: 1px solid green;
        }
    </style>

    <app-location route="{{route}}"></app-location>
    <app-route
        route="{{route}}"
        pattern="/:page"
        data="{{routeData}}"
        tail="{{subroute}}">
    </app-route>

    <h1>Polymer APOD</h1>

    <div class="container">
        <l-menu page="[[page]]"></l-menu>

        <iron-pages
          selected="[[page]]"
          attr-for-selected="name"
          fallback-selection="view-404"
          role="main">
            <today-apod name="today-apod"></today-apod>
            <calendar-apod name="calendar-apod"></calendar-apod>
            <view-404 name="view-404"></view-404>
        </iron-pages>
    </div>


</template>

    <script>
        Polymer({
            is: 'polymer-apod',
            properties: {
                page: {
                    type: String,
                    reflectToAttribute: true,
                    observer: '_pageChanged',
                },
            },

            observers: [
                '_routePageChanged(routeData)'
            ],


            _routePageChanged: function(routeData) {
                this.page = routeData.page || 'calendar-apod';
            },

            _pageChanged: function(page) {
                // Load page import on demand. Show 404 page if fails
                var resolvedPageUrl = this.resolveUrl(page + '.html');
                this.importHref(resolvedPageUrl, null, this._showPage404, true);
            },

            _showPage404: function() {
                this.page = 'view-404';
            },
        });
    </script>


</dom-module>

{'fraction_non_alphanumeric': 0.15408085430968727, 'fraction_numerical': 0.015255530129672006, 'mean_word_length': 1.6343545956805625, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 71, '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': '1838439', 'n_tokens_mistral': 1619, 'n_tokens_neox': 1497, 'n_words': 258}