<commit_before>doctype html
html
  head
    include includes/head
    script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js")
    script.
      var myApp = angular.module('mayOne',[]);

      function addCommas(nStr) {
        nStr += '';
        x = nStr.split('.');
        x1 = x[0];
        x2 = x.length > 1 ? '.' + x[1] : '';
        var rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
           x1 = x1.replace(rgx, '$1' + ',' + '$2');
        }
        return x1 + x2;
      }

      myApp.controller('IndexController',
                       ['$scope', '$http', function($scope, $http) {

        // javascript is so awesome. this is how you write June 1st. Cause June is the
        // 5th month, indexed by zero. thanks javascript!
        var date_its_over = Date.UTC(2014,05,01,10,00,00,00);
        var days_left = Math.floor((date_its_over - Date.now())/(1000*24*60*60));
        var days_left_message = '' + days_left + ' days left';
        if (days_left == 1) {
          days_left_message = '' + days_left + ' day left';
        }

        $scope.ctrl = {
          daysLeftMsg: days_left_message,
          totalCents: 0,
          init: function() {
            $http.get('/total').success(function(data) {
              $scope.ctrl.totalCents = parseInt(data);
            });
          },
          moneyString: function() {
            return '$' + addCommas(Math.floor($scope.ctrl.totalCents / 100)) +
                " raised";
          },
          percentFunded: function() {
            return '' + $scope.ctrl.percent() + '% funded';
          },
          percent: function() {
            // Times 100 divided by 100
            return Math.floor($scope.ctrl.totalCents / 1000000);
          }
        };
      }]);

  body(ng-app="mayOne", ng-controller="IndexController",ng-init="ctrl.init()")#index
    include includes/header
    #primary
      #images
        img.active(src="/static/12-bridge.jpg", alt="Crumbling Bridge")
        img(src="/static/05-midwest.jpg", alt="Midwest")
        img(src="/static/06-cement.jpg", alt="Industry")
        img(src="/static/07-arizona.jpg", alt="Arizona")
        img(src="/static/02-decay1.jpg", alt="Decay")
        img(src="/static/11-goldengate.jpg", alt="Golden Gate Bridge")
      script.
        window.mayOneSelectedImg = 0;
        window.setInterval(function() {
          var imgs = document.getElementById("images");
          imgs.children[window.mayOneSelectedImg].className = "";
          window.mayOneSelectedImg = (window.mayOneSelectedImg + 1) % 6;
          imgs.children[window.mayOneSelectedImg].className = "active";
        }, 3000);
      .overlay
        .slogan Help <span class="u">U</span>.<span class="s">S</span>. kickstart fundamental reform.
        .progress.progress-lg.progress-striped.active(ng-show="ctrl.totalCents != 0")
          .progress-bar.progress-bar-danger(role="progressbar",
            aria-valuenow="ctrl.percent()",
            aria-valuemin="0", aria-valuemax="100",
            ng-style="{width: ctrl.percent() + '%'}",
            style="position:absolute;top:0;left:0;")
          .progress-text
            div(style="text-align:left;") {{ctrl.percentFunded()}}
            div(style="text-align:center;") {{ctrl.moneyString()}}
            div(style="text-align:right;") {{ctrl.daysLeftMsg}}
        include includes/pledge
        .share-row
          .share
            span.text Spread the Word:
            span.buttons
              a(ng-href="https://twitter.com/intent/tweet?text=Only+{{ctrl.daysLeftMsg}}+to+support+MayOne.us%3A+Mayday+for+the+Republic+https%3A%2F%2Fmayone.us",
                target="_blank")
                span.entypo-social.twitter
              a(href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.mayone.us%2F", target="_blank", onclick="javascript:window.open('http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.mayone.us%2F','','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600'); return false;")
                span.entypo-social.facebook
              a(ng-href="https://plus.google.com/share?url=https://mayone.us/campaigns/may-one/&comment=Only+{{ctrl.daysLeftMsg}}+to+support+MayOne.us%3A+Mayday+for+the+Republic+https%3A%2F%2Fmayone.us%2Fcampaigns%2Fmay-one%2F", target="_blank")
                span.entypo-social.gplus
              // a.fancybox(href="#share-widget", target="_blank")
              // span.entypo.code

    section#moonshot
      .container
        h3 "...a moonshot."
        .video
          <iframe src="//player.vimeo.com/video/93299391" width="900" height="506" frameborder="0" title="Mayday PAC Launch" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
        p You can also <a href="https://www.youtube.com/watch?v=qCcqkyRJl7M">view the video here</a>
        include includes/pledge

    section#idea
      .container
        h3 the Idea
        .text
          p Government has failed us. More than 90% of Americans link that failure to the influence of money in politics.
          p Yet the politicians ignore this influence. While America flounders, they spend endless time with their funders.<commit_msg>Apparently 'founders' is intentional<commit_after>doctype html
html
  head
    include includes/head
    script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js")
    script.
      var myApp = angular.module('mayOne',[]);

      function addCommas(nStr) {
        nStr += '';
        x = nStr.split('.');
        x1 = x[0];
        x2 = x.length > 1 ? '.' + x[1] : '';
        var rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
           x1 = x1.replace(rgx, '$1' + ',' + '$2');
        }
        return x1 + x2;
      }

      myApp.controller('IndexController',
                       ['$scope', '$http', function($scope, $http) {

        // javascript is so awesome. this is how you write June 1st. Cause June is the
        // 5th month, indexed by zero. thanks javascript!
        var date_its_over = Date.UTC(2014,05,01,10,00,00,00);
        var days_left = Math.floor((date_its_over - Date.now())/(1000*24*60*60));
        var days_left_message = '' + days_left + ' days left';
        if (days_left == 1) {
          days_left_message = '' + days_left + ' day left';
        }

        $scope.ctrl = {
          daysLeftMsg: days_left_message,
          totalCents: 0,
          init: function() {
            $http.get('/total').success(function(data) {
              $scope.ctrl.totalCents = parseInt(data);
            });
          },
          moneyString: function() {
            return '$' + addCommas(Math.floor($scope.ctrl.totalCents / 100)) +
                " raised";
          },
          percentFunded: function() {
            return '' + $scope.ctrl.percent() + '% funded';
          },
          percent: function() {
            // Times 100 divided by 100
            return Math.floor($scope.ctrl.totalCents / 1000000);
          }
        };
      }]);

  body(ng-app="mayOne", ng-controller="IndexController",ng-init="ctrl.init()")#index
    include includes/header
    #primary
      #images
        img.active(src="/static/12-bridge.jpg", alt="Crumbling Bridge")
        img(src="/static/05-midwest.jpg", alt="Midwest")
        img(src="/static/06-cement.jpg", alt="Industry")
        img(src="/static/07-arizona.jpg", alt="Arizona")
        img(src="/static/02-decay1.jpg", alt="Decay")
        img(src="/static/11-goldengate.jpg", alt="Golden Gate Bridge")
      script.
        window.mayOneSelectedImg = 0;
        window.setInterval(function() {
          var imgs = document.getElementById("images");
          imgs.children[window.mayOneSelectedImg].className = "";
          window.mayOneSelectedImg = (window.mayOneSelectedImg + 1) % 6;
          imgs.children[window.mayOneSelectedImg].className = "active";
        }, 3000);
      .overlay
        .slogan Help <span class="u">U</span>.<span class="s">S</span>. kickstart fundamental reform.
        .progress.progress-lg.progress-striped.active(ng-show="ctrl.totalCents != 0")
          .progress-bar.progress-bar-danger(role="progressbar",
            aria-valuenow="ctrl.percent()",
            aria-valuemin="0", aria-valuemax="100",
            ng-style="{width: ctrl.percent() + '%'}",
            style="position:absolute;top:0;left:0;")
          .progress-text
            div(style="text-align:left;") {{ctrl.percentFunded()}}
            div(style="text-align:center;") {{ctrl.moneyString()}}
            div(style="text-align:right;") {{ctrl.daysLeftMsg}}
        include includes/pledge
        .share-row
          .share
            span.text Spread the Word:
            span.buttons
              a(ng-href="https://twitter.com/intent/tweet?text=Only+{{ctrl.daysLeftMsg}}+to+support+MayOne.us%3A+Mayday+for+the+Republic+https%3A%2F%2Fmayone.us",
                target="_blank")
                span.entypo-social.twitter
              a(href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.mayone.us%2F", target="_blank", onclick="javascript:window.open('http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.mayone.us%2F','','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600'); return false;")
                span.entypo-social.facebook
              a(ng-href="https://plus.google.com/share?url=https://mayone.us/campaigns/may-one/&comment=Only+{{ctrl.daysLeftMsg}}+to+support+MayOne.us%3A+Mayday+for+the+Republic+https%3A%2F%2Fmayone.us%2Fcampaigns%2Fmay-one%2F", target="_blank")
                span.entypo-social.gplus
              // a.fancybox(href="#share-widget", target="_blank")
              // span.entypo.code

    section#moonshot
      .container
        h3 "...a moonshot."
        .video
          <iframe src="//player.vimeo.com/video/93299391" width="900" height="506" frameborder="0" title="Mayday PAC Launch" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
        p You can also <a href="https://www.youtube.com/watch?v=qCcqkyRJl7M">view the video here</a>
        include includes/pledge

    section#idea
      .container
        h3 the Idea
        .text
          p Government has failed us. More than 90% of Americans link that failure to the influence of money in politics.
          p Yet the politicians ignore this influence. While America founders, they spend endless time with their funders.
{'fraction_non_alphanumeric': 0.15912576687116564, 'fraction_numerical': 0.025881901840490797, 'mean_word_length': 2.365483870967742, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 8, 'lorem ipsum': 0, 'www.': 10, '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': '4579787', 'n_tokens_mistral': 3479, 'n_tokens_neox': 3257, 'n_words': 536}