<commit_before><!DOCTYPE html>
<html>
    <head>
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/stylesheet.css">
        <link rel="stylesheet" type="text/css" href="css/bootstrap.css">

        <script>
            window.ENV = {
                ENABLE_ALL_FEATURES: true,
                RAISE_ON_DEPRECATION: true
            };
        </script>

        <script src="js/libs/jquery.js"></script>
        <script src="js/libs/jquery.cookie.js"></script>
        <script src="js/libs/handlebars.js"></script>
        <script src="js/libs/underscore.js"></script>
        <script src="js/libs/oauth.js"></script>

        <script src="js/libs/ember.js"></script>
        <script src="js/libs/ember-data.js"></script>

        <script src="js/app/app.js"></script>
        <script src="js/app/prototype_extensions.js"></script>
        <script src="js/app/handlebars_utils.js"></script>

        <script src="js/app/mixins/scrolling_mixin.js"></script>
        <script src="js/app/mixins/post_mixin.js"></script>

        <script src="js/app/utils/auth_manager_util.js"></script>

        <script src="js/app/routes/router.js"></script>
        <script src="js/app/routes/dashboard_route.js"></script>
        <script src="js/app/routes/single_blog_route.js"></script>
        <script src="js/app/routes/single_post_route.js"></script>
        <script src="js/app/routes/application_route.js"></script>
        <script src="js/app/routes/loading_route.js"></script>

        <script src="js/app/data_utils/store.js"></script>
        <script src="js/app/data_utils/transforms.js"></script>
        <script src="js/app/data_utils/adapter.js"></script>
        <script src="js/app/data_utils/serializer.js"></script>

        <script src="js/app/models/photo_model/photo_model.js"></script>
        <script src="js/app/models/photo_model/sub_photo_model.js"></script>
        <script src="js/app/models/photo_model/sub_photo_instance_model.js"></script>

        <script src="js/app/models/quote_model.js"></script>
        <script src="js/app/models/text_model.js"></script>
        <script src="js/app/models/video_model.js"></script>
        <script src="js/app/models/audio_model.js"></script>
        <script src="js/app/models/chat_model.js"></script>
        <script src="js/app/models/answer_model.js"></script>
        <script src="js/app/models/link_model.js"></script>

        <script src="js/app/controllers/application_controller.js"></script>
        <script src="js/app/controllers/dashboard_controller.js"></script>
        <script src="js/app/controllers/single_blog_controller.js"></script>
        <script src="js/app/controllers/single_post_controller.js"></script>

        <script src="js/app/views/dashboard_view.js"></script>
        <script src="js/app/views/single_blog_view.js"></script>

        <script src="js/app/components/loading_widget_component.js"></script>

        <script type="text/x-handlebars">
            <div class="container">
                {{partial 'header'}}

                {{outlet 'main'}}
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="_header">
            <header class="row col-lg-12">
                <h1>
                    Tumblr Ember

                    {{#if controller.metadata.title}}
                        - {{controller.metadata.title}}
                    {{/if}}
                </h1>

                <nav>
                    {{#link-to 'dashboard' class="btn btn-primary"}}Home{{/link-to}}
                    {{#if isAuthenticated}}
                        {{#link-to 'following' class="btn btn-primary"}}Following{{/link-to}}
                        <button {{action "logout"}} class="btn btn-primary">Logout</button>
                    {{else}}
                        <button {{action "auth"}} class="btn btn-primary">Auth</button>
                    {{/if}}
                </nav>
            </header>
        </script>

        <script type="text/x-handlebars" data-template-name="authenticate">
            <div class="row col-lg-12 well well-lg">
                <button {{action "auth"}} class="btn btn-primary btn-large">
                    Authenticate
                </button>
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="loading_route">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12 well well-lg">
                        <div style="margin-right: auto; margin-left: auto;">
                            <h1>
                                {{loading-widget}}
                            </h1>
                        </div>
                    </div>
                </div>
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="_loading_posts">
            <div class="row">
                <footer class="col-lg-12">
                    <h2 class="inner">
                        {{#if isLoading}}
                            {{loading-widget}}
                        {{/if}}

                        {{#if loadingFailed}}
                            Loading failed. <a {{action 'tryAgain'}} class="clickable">Try again?</a>
                        {{/if}}
                    </h2>
                </footer>
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="post_stream">
            {{#each post in controller}}
                <div class="post row">
                    <div class="col-lg-1 well well-lg avatar">
                        <img width="50" height="50"/>
                    </div>
                    <div class="col-lg-11 well well-lg post-content">
                        {{partial 'single_post'}}
                    </div>
                </div>
            {{/each}}

            {{partial 'loading_posts'}}
        </script>

        <script type="text/x-handlebars" data-template-name="single_post">
            {{! purely for the single_post route }}
            {{#with controller.post as post}}
                {{partial 'single_post'}}
            {{/with}}
        </script>

        <script type="text/x-handlebars" data-template-name="_single_post">
            {{switch attr=post.type}}
        </script>

        <script type="text/x-handlebars" data-template-name="_photoset">
            <div>
                {{#each row in post.sized_rows}}
                    <div>
                        {{#each sub_photo in row.content}}
                            {{partial 'sub_photo'}}
                        {{/each}}
                    </div>
                {{/each}}
                <p>
                    {{{post.caption}}}<commit_msg>Simplify; the less code you have to write to do the same thing means less code to maintain<commit_after><!DOCTYPE html>
<html>
    <head>
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/stylesheet.css">
        <link rel="stylesheet" type="text/css" href="css/bootstrap.css">

        <script>
            window.ENV = {
                ENABLE_ALL_FEATURES: true,
                RAISE_ON_DEPRECATION: true
            };
        </script>

        <script src="js/libs/jquery.js"></script>
        <script src="js/libs/jquery.cookie.js"></script>
        <script src="js/libs/handlebars.js"></script>
        <script src="js/libs/underscore.js"></script>
        <script src="js/libs/oauth.js"></script>

        <script src="js/libs/ember.js"></script>
        <script src="js/libs/ember-data.js"></script>

        <script src="js/app/app.js"></script>
        <script src="js/app/prototype_extensions.js"></script>
        <script src="js/app/handlebars_utils.js"></script>

        <script src="js/app/mixins/scrolling_mixin.js"></script>
        <script src="js/app/mixins/post_mixin.js"></script>

        <script src="js/app/utils/auth_manager_util.js"></script>

        <script src="js/app/routes/router.js"></script>
        <script src="js/app/routes/dashboard_route.js"></script>
        <script src="js/app/routes/single_blog_route.js"></script>
        <script src="js/app/routes/single_post_route.js"></script>
        <script src="js/app/routes/application_route.js"></script>
        <script src="js/app/routes/loading_route.js"></script>

        <script src="js/app/data_utils/store.js"></script>
        <script src="js/app/data_utils/transforms.js"></script>
        <script src="js/app/data_utils/adapter.js"></script>
        <script src="js/app/data_utils/serializer.js"></script>

        <script src="js/app/models/photo_model/photo_model.js"></script>
        <script src="js/app/models/photo_model/sub_photo_model.js"></script>
        <script src="js/app/models/photo_model/sub_photo_instance_model.js"></script>

        <script src="js/app/models/quote_model.js"></script>
        <script src="js/app/models/text_model.js"></script>
        <script src="js/app/models/video_model.js"></script>
        <script src="js/app/models/audio_model.js"></script>
        <script src="js/app/models/chat_model.js"></script>
        <script src="js/app/models/answer_model.js"></script>
        <script src="js/app/models/link_model.js"></script>

        <script src="js/app/controllers/application_controller.js"></script>
        <script src="js/app/controllers/dashboard_controller.js"></script>
        <script src="js/app/controllers/single_blog_controller.js"></script>
        <script src="js/app/controllers/single_post_controller.js"></script>

        <script src="js/app/views/dashboard_view.js"></script>
        <script src="js/app/views/single_blog_view.js"></script>

        <script src="js/app/components/loading_widget_component.js"></script>

        <script type="text/x-handlebars">
            <div class="container">
                {{partial 'header'}}

                {{outlet 'main'}}
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="_header">
            <header class="row col-lg-12">
                <h1>
                    Tumblr Ember

                    {{#if controller.metadata.title}}
                        - {{controller.metadata.title}}
                    {{/if}}
                </h1>

                <nav>
                    {{#link-to 'dashboard' class="btn btn-primary"}}Home{{/link-to}}
                    {{#if isAuthenticated}}
                        {{#link-to 'following' class="btn btn-primary"}}Following{{/link-to}}
                        <button {{action "logout"}} class="btn btn-primary">Logout</button>
                    {{else}}
                        <button {{action "auth"}} class="btn btn-primary">Auth</button>
                    {{/if}}
                </nav>
            </header>
        </script>

        <script type="text/x-handlebars" data-template-name="authenticate">
            <div class="row col-lg-12 well well-lg">
                <button {{action "auth"}} class="btn btn-primary btn-large">
                    Authenticate
                </button>
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="loading_route">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12 well well-lg">
                        <div style="margin-right: auto; margin-left: auto;">
                            <h1>
                                {{loading-widget}}
                            </h1>
                        </div>
                    </div>
                </div>
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="_loading_posts">
            <div class="row">
                <footer class="col-lg-12">
                    <h2 class="inner">
                        {{#if isLoading}}
                            {{loading-widget}}
                        {{/if}}

                        {{#if loadingFailed}}
                            Loading failed. <a {{action 'tryAgain'}} class="clickable">Try again?</a>
                        {{/if}}
                    </h2>
                </footer>
            </div>
        </script>

        <script type="text/x-handlebars" data-template-name="post_stream">
            {{#each post in controller}}
                <div class="post row">
                    <div class="col-lg-1 well well-lg avatar">
                        <img width="50" height="50"/>
                    </div>
                    <div class="col-lg-11 well well-lg post-content">
                        {{partial 'single_post'}}
                    </div>
                </div>
            {{/each}}

            {{partial 'loading_posts'}}
        </script>

        <script type="text/x-handlebars" data-template-name="single_post">
            {{! essentially a proxy}}
            {{partial 'single_post'}}
        </script>

        <script type="text/x-handlebars" data-template-name="_single_post">
            {{switch attr=post.type}}
        </script>

        <script type="text/x-handlebars" data-template-name="_photoset">
            <div>
                {{#each row in post.sized_rows}}
                    <div>
                        {{#each sub_photo in row.content}}
                            {{partial 'sub_photo'}}
                        {{/each}}
                    </div>
                {{/each}}
                <p>
                    {{{post.caption}}}
{'fraction_non_alphanumeric': 0.15830315571650286, 'fraction_numerical': 0.0031039834454216243, 'mean_word_length': 1.6194347657762291, 'pattern_counts': {'":': 0, '<': 305, '<?xml version=': 0, '>': 305, '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': '2704449', 'n_tokens_mistral': 3947, 'n_tokens_neox': 3749, 'n_words': 595}