<commit_before><!DOCTYPE html>
<html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Grubhub Demo Page</title>
    <meta name="viewport" content="width=device-width">
    <meta name="description" content="Branch Demo Page">
    <meta name="author" content="<NAME>">
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
    <link rel="stylesheet" href="/style.css">    
    <link rel="stylesheet" href="/css/font-awesome/css/font-awesome.min.css">
    <link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
    <link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">

    <!-- Branch Web SDK -->
    <script type="text/javascript">
    (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent".split(" "), 0);

    branch.init('key_live_cnChxhZYcC9rBMAG82xLNjdcFBokyGD0', function(err, data) {

        branch.setBranchViewData({
            data:{
                '$journeys_icon_image_url':'http://www.roamchicago.com/roam/grubhub.jpg',
                '$journeys_title':'Title was reset on load via JS',
                '$journeys_description':'Description reset on load via JS'
            }
        });

        console.log(data);
        console.log(JSON.parse(err.message));
    });

    </script>


</head>
<body id="page-top" class="index">
       <!-- Navigation -->
    <nav class="navbar navbar-default navbar-fixed-top">

        <!-- Branch <div> that prevents banner from overlapping with a fixed|absolute positioned nav element, but adding a top-margin  -->
        <div class="branch-journeys-top" style="display:none;"></div>

        <div class="container">

            <div class="navbar-header page-scroll">

                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#page-top">Branch Demo</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li class="hidden">
                        <a href="#page-top"></a>
                    </li>
                    <li class="page-scroll">
                        <a href="#portfolio">Top Section</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#about">Middle Section</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#contact">Bottom Section</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

        <!-- Header -->
    <header>
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="intro-text">
                        <span class="name"><NAME> Demo</span>
                        <hr class="star-light">
                        <span class="skills">Client-side banner controls</span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    
    <!-- Portfolio Grid Section -->
    <section id="portfolio">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="intro-text">
                        <button onclick="orderNoodles()" onmouseover="" style="cursor: pointer; border-radius: 12px; background-color: #008CBA; border: none; color: white; padding: 12px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); width:100%; margin: 5px 0px 5px 0px;">Order Noodles</button>
                        <button onclick="orderBurgers()" onmouseover="" style="cursor: pointer; border-radius: 12px; background-color: #008CBA; border: none; color: white; padding: 12px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); width:100%; margin: 5px 0px 5px 0px;">Order Burgers</button>
                        <button onclick="swapTemplate()" onmouseover="" style="cursor: pointer; border-radius: 12px; background-color: #008CBA; border: none; color: white; padding: 12px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); width:100%; margin: 5px 0px 5px 0px;">Swap template</button>
                        <p></p>
                    </div>
                </div>
            </div>
        </div>
    </section>
     <!-- About Section -->
    <section class="success" id="about">
        <div class="container">

            <!-- Section Header -->
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2>Filler Text</h2>
                    <hr class="star-light">
                </div>
            </div>

            <!-- Description Text -->
            <div class="row">
                <div class="col-lg-5 col-lg-offset-1 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
                <div class="col-lg-5 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
            </div>

        </div>
    </section>


    
    <!-- Contact Section -->
<section id="contact">
	<div class="container">
		<!-- Section Header -->
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2>Filler Text</h2>
                    <hr class="star-light">
                </div>
            </div>

            <!-- Description Text -->
            <div class="row">
                <div class="col-lg-5 col-lg-offset-1 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
                <div class="col-lg-5 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
            </div>
	</div>
</section>

    

        <!-- Footer -->
    <footer class="text-center">
        <div class="footer-above">
            <div class="container">
                <div class="row">
                    <div class="footer-col col-md-4">
                        <h3>Branch Demo Page</h3>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer-below">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        Contact <EMAIL> for questions
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) -->
    <div class="scroll-top page-scroll visible-xs visible-sm">
        <a class="btn btn-primary" href="#page-top">
            <i class="fa fa-chevron-up"></i>
        </a>
    </div>


    <!-- Branch javascript -->
    <script type="text/javascript">

    // Branch listener object that retrieves banner link data and prints it to console
    var listener = function(event, data) {
        console.log(event);
        console.log(data);
    };
    branch.addListener("willShowJourney", listener);
    branch.addListener("didShowJourney", listener);
    branch.addListener("willNotShowJourney", listener);
    branch.addListener("didClickJourneyCTA", listener);
    branch.addListener("didClickJourneyClose", listener);
    branch.addListener("willCloseJourney", listener);
    branch.addListener("didCloseJourney", listener);
    branch.addListener("didCallJourneyClose", listener);

    
    var templateID = '453238497136757764';
    var foodID = 'Food!'
    function orderNoodles(){
        branch.closeJourney(function(err) { console.log(err); });
        foodID = 'Noodles!'
        branch.setBranchViewData({
            data: {
                '$journeys_icon_image_url':'https://image.flaticon.com/icons/png/512/168/168564.png',
                '$journeys_button_get_no_app':foodID,
                '$journeys_button_get_has_app':foodID,
                '$journeys_title':'Hungry for ' + foodID,
                '$journeys_description':'Order ' + foodID + ' in the app!'
            }
        });
        branch.init('<KEY>', {'branch_view_id':templateID,'make_new_link': true});
    }

    function orderBurgers(){
        branch.closeJourney(function(err) { console.log(err); });
        foodID = 'Burgers!'
        branch.setBranchViewData({
            data: {
                '$journeys_icon_image_url':'https://cdn1.iconfinder.com/data/icons/jellycons-2-100-ios-8-app-icons/1024/Burger.png',
                '$journeys_button_get_no_app':foodID,
                '$journeys_button_get_has_app':foodID,
                '$journeys_title':'Hungry for ' + foodID,
                '$journeys_description':'Order ' + foodID + ' in the app!'
            }
        });
        branch.init('<KEY>', {'branch_view_id':templateID,'make_new_link': true});
    }

    function swapTemplate(){
        branch.closeJourney(function(err) { console.log(err); });
        if (templateID=='453238497136757764') {
            templateID='453238701065589764';
        } else if (templateID=='453238701065589764') {
            templateID='453238497136757764';
        };
        branch.init('<KEY>', {'branch_view_id':templateID,'make_new_link': true});
    }
    </script>

    <script src="/js/jquery-1.11.0.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/jquery.easing.min.js"></script>
    <script src="/js/classie.js"></script>
    <script src="/js/cbpAnimatedHeader.js"></script>
    <script src="/js/jqBootstrapValidation.js"></script>
    <script src="/js/contact_me_static.js"></script>
    <script src="/js/freelancer.js"></script>

    </body>
</html><commit_msg>grubhub<commit_after><!DOCTYPE html>
<html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Grubhub Demo Page</title>
    <meta name="viewport" content="width=device-width">
    <meta name="description" content="Branch Demo Page">
    <meta name="author" content="<NAME>">
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
    <link rel="stylesheet" href="/style.css">    
    <link rel="stylesheet" href="/css/font-awesome/css/font-awesome.min.css">
    <link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
    <link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">

    <!-- Branch Web SDK -->
    <script type="text/javascript">
    (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent".split(" "), 0);

    branch.init('key_live_cnChxhZYcC9rBMAG82xLNjdcFBokyGD0', function(err, data) {

        branch.setBranchViewData({
            data:{
                '$journeys_icon_image_url':'http://www.roamchicago.com/roam/grubhub.jpg',
                '$journeys_title':'Title was reset on load via JS',
                '$journeys_description':'Description reset on load via JS'
            }
        });

        console.log(data);
        console.log(err.message);
    });

    </script>


</head>
<body id="page-top" class="index">
       <!-- Navigation -->
    <nav class="navbar navbar-default navbar-fixed-top">

        <!-- Branch <div> that prevents banner from overlapping with a fixed|absolute positioned nav element, but adding a top-margin  -->
        <div class="branch-journeys-top" style="display:none;"></div>

        <div class="container">

            <div class="navbar-header page-scroll">

                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#page-top">Branch Demo</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li class="hidden">
                        <a href="#page-top"></a>
                    </li>
                    <li class="page-scroll">
                        <a href="#portfolio">Top Section</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#about">Middle Section</a>
                    </li>
                    <li class="page-scroll">
                        <a href="#contact">Bottom Section</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

        <!-- Header -->
    <header>
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="intro-text">
                        <span class="name">Grubhub Journeys Demo</span>
                        <hr class="star-light">
                        <span class="skills">Client-side banner controls</span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    
    <!-- Portfolio Grid Section -->
    <section id="portfolio">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="intro-text">
                        <button onclick="orderNoodles()" onmouseover="" style="cursor: pointer; border-radius: 12px; background-color: #008CBA; border: none; color: white; padding: 12px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); width:100%; margin: 5px 0px 5px 0px;">Order Noodles</button>
                        <button onclick="orderBurgers()" onmouseover="" style="cursor: pointer; border-radius: 12px; background-color: #008CBA; border: none; color: white; padding: 12px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); width:100%; margin: 5px 0px 5px 0px;">Order Burgers</button>
                        <button onclick="swapTemplate()" onmouseover="" style="cursor: pointer; border-radius: 12px; background-color: #008CBA; border: none; color: white; padding: 12px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); width:100%; margin: 5px 0px 5px 0px;">Swap template</button>
                        <p></p>
                    </div>
                </div>
            </div>
        </div>
    </section>
     <!-- About Section -->
    <section class="success" id="about">
        <div class="container">

            <!-- Section Header -->
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2>Filler Text</h2>
                    <hr class="star-light">
                </div>
            </div>

            <!-- Description Text -->
            <div class="row">
                <div class="col-lg-5 col-lg-offset-1 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
                <div class="col-lg-5 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
            </div>

        </div>
    </section>


    
    <!-- Contact Section -->
<section id="contact">
	<div class="container">
		<!-- Section Header -->
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2>Filler Text</h2>
                    <hr class="star-light">
                </div>
            </div>

            <!-- Description Text -->
            <div class="row">
                <div class="col-lg-5 col-lg-offset-1 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
                <div class="col-lg-5 col-md-6">
                    <p>Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem</p>
                </div>
            </div>
	</div>
</section>

    

        <!-- Footer -->
    <footer class="text-center">
        <div class="footer-above">
            <div class="container">
                <div class="row">
                    <div class="footer-col col-md-4">
                        <h3>Branch Demo Page</h3>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer-below">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        Contact <EMAIL> for questions
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) -->
    <div class="scroll-top page-scroll visible-xs visible-sm">
        <a class="btn btn-primary" href="#page-top">
            <i class="fa fa-chevron-up"></i>
        </a>
    </div>


    <!-- Branch javascript -->
    <script type="text/javascript">

    // Branch listener object that retrieves banner link data and prints it to console
    var listener = function(event, data) {
        console.log(event);
        console.log(data);
    };
    branch.addListener("willShowJourney", listener);
    branch.addListener("didShowJourney", listener);
    branch.addListener("willNotShowJourney", listener);
    branch.addListener("didClickJourneyCTA", listener);
    branch.addListener("didClickJourneyClose", listener);
    branch.addListener("willCloseJourney", listener);
    branch.addListener("didCloseJourney", listener);
    branch.addListener("didCallJourneyClose", listener);

    
    var templateID = '453238497136757764';
    var foodID = 'Food!'
    function orderNoodles(){
        branch.closeJourney(function(err) { console.log(err); });
        foodID = 'Noodles!'
        branch.setBranchViewData({
            data: {
                '$journeys_icon_image_url':'https://image.flaticon.com/icons/png/512/168/168564.png',
                '$journeys_button_get_no_app':foodID,
                '$journeys_button_get_has_app':foodID,
                '$journeys_title':'Hungry for ' + foodID,
                '$journeys_description':'Order ' + foodID + ' in the app!'
            }
        });
        branch.init('<KEY>', {'branch_view_id':templateID,'make_new_link': true});
    }

    function orderBurgers(){
        branch.closeJourney(function(err) { console.log(err); });
        foodID = 'Burgers!'
        branch.setBranchViewData({
            data: {
                '$journeys_icon_image_url':'https://cdn1.iconfinder.com/data/icons/jellycons-2-100-ios-8-app-icons/1024/Burger.png',
                '$journeys_button_get_no_app':foodID,
                '$journeys_button_get_has_app':foodID,
                '$journeys_title':'Hungry for ' + foodID,
                '$journeys_description':'Order ' + foodID + ' in the app!'
            }
        });
        branch.init('<KEY>', {'branch_view_id':templateID,'make_new_link': true});
    }

    function swapTemplate(){
        branch.closeJourney(function(err) { console.log(err); });
        if (templateID=='453238497136757764') {
            templateID='453238701065589764';
        } else if (templateID=='453238701065589764') {
            templateID='453238497136757764';
        };
        branch.init('<KEY>', {'branch_view_id':templateID,'make_new_link': true});
    }
    </script>

    <script src="/js/jquery-1.11.0.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/jquery.easing.min.js"></script>
    <script src="/js/classie.js"></script>
    <script src="/js/cbpAnimatedHeader.js"></script>
    <script src="/js/jqBootstrapValidation.js"></script>
    <script src="/js/contact_me_static.js"></script>
    <script src="/js/freelancer.js"></script>

    </body>
</html>
{'fraction_non_alphanumeric': 0.15500446827524575, 'fraction_numerical': 0.0258266309204647, 'mean_word_length': 2.063791923340178, 'pattern_counts': {'":': 0, '<': 406, '<?xml version=': 0, '>': 404, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '3909705', 'n_tokens_mistral': 7393, 'n_tokens_neox': 6722, 'n_words': 1360}