<commit_before>doctype html
html.no-js
  head
    meta(charset="utf-8")
    meta(http-equiv="X-UA-Compatible", content="IE=edge")

    title #{config.service.name}

    meta(name="description", content="#{ (page) ? page.title || config.service.name + ': ' + config.service.mission : config.service.name + ': ' + config.service.mission }")
    meta(name="viewport", content="width=device-width, initial-scale=1")

    link(rel="stylesheet", href="/css/semantic.min.css")
    link(rel="stylesheet", href="/css/highlight/maki.css")
    link(rel="stylesheet", href="/css/maki.css")
    link(rel="stylesheet", href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700")

    script(src="/js/jquery.js")
    script(src="/js/semantic.min.js")
    script(src="/js/lodash.min.js")

    script(src="/js/highlight.pack.js")
    script(src="/js/uuid.js")
    script(src="/js/jsonrpc.js")
    
    script(src="/js/maki.js")

    base(href="/")

  body
    block page
      .ui.page.grid
        .row
          block navbar
            include ../partials/navbar

        .row
          .column.content(data-for="viewport")
          
            include ../partials/flash
          
            block content
            
        .row
          form.ui.form(action="/contact", method="post")
            .field
              label Your Email Address
              input(type="text", placeholder="<EMAIL>", name="from")
            .field
              label Your Message
              textarea(name="message")

            button.ui.submit.button Send &raquo;

        .row
          .ui.one.column.stackable.center.aligned
            p
              small Built with <a href="http://github.com/martindale/maki">Maki</a>.

    script.
      $(document).on('click', '*[data-intent=edit]', function(e) {
        e.preventDefault();
        
        var $self = $(this);
        
        $.getJSON('/posts/'+$self.data('id'), function(post) {
          var editFunction = _.debounce(submitEdits, 250);
          
          var $form = $('<form class="ui form"><div class="field"><textarea rows="20"></textarea></field></form>');
          $form.find('textarea').val(post.content).on('keyup', editFunction);

          $('*[data-bind='+$self.data('target')+'][data-id='+$self.data('id')+']').replaceWith($form);
          
          function submitEdits() {<commit_msg>Add links, balance form.<commit_after>doctype html
html.no-js
  head
    meta(charset="utf-8")
    meta(http-equiv="X-UA-Compatible", content="IE=edge")

    title #{config.service.name}

    meta(name="description", content="#{ (page) ? page.title || config.service.name + ': ' + config.service.mission : config.service.name + ': ' + config.service.mission }")
    meta(name="viewport", content="width=device-width, initial-scale=1")

    link(rel="stylesheet", href="/css/semantic.min.css")
    link(rel="stylesheet", href="/css/highlight/maki.css")
    link(rel="stylesheet", href="/css/maki.css")
    link(rel="stylesheet", href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700")

    script(src="/js/jquery.js")
    script(src="/js/semantic.min.js")
    script(src="/js/lodash.min.js")

    script(src="/js/highlight.pack.js")
    script(src="/js/uuid.js")
    script(src="/js/jsonrpc.js")
    
    script(src="/js/maki.js")

    base(href="/")

  body
    block page
      .ui.page.grid
        .row
          block navbar
            include ../partials/navbar

        .row
          .column.content(data-for="viewport")
          
            include ../partials/flash
          
            block content
            
        .row
          .column.eight.wide
            h3 Get Connected
            
            h4
              i.icon.twitter
              | Twitter
            a(href="https://twitter.com/soundtrackio") @soundtrackio
            
            h4
              i.icon.github
              | GitHub
            a(href="https://github.com/martindale/soundtrack.io") martindale/soundtrack.io
            
            h4 ChangeTip
            a(href="http://soundtrack.tip.me") soundtrack.tip.me
            
          .column.eight.wide
            h3 Contact Us
            form.ui.form(action="/contact", method="post")
              .field
                label Your Email Address
                input(type="text", placeholder="<EMAIL>", name="from")
              .field
                label Your Message
                textarea(name="message", rows="3")

              button.ui.submit.button.primary.right.floated Send &raquo;

        .row
          .ui.one.column.stackable.center.aligned
            p
              small Built with <a href="http://github.com/martindale/maki">Maki</a>.

    script.
      $(document).on('click', '*[data-intent=edit]', function(e) {
        e.preventDefault();
        
        var $self = $(this);
        
        $.getJSON('/posts/'+$self.data('id'), function(post) {
          var editFunction = _.debounce(submitEdits, 250);
          
          var $form = $('<form class="ui form"><div class="field"><textarea rows="20"></textarea></field></form>');
          $form.find('textarea').val(post.content).on('keyup', editFunction);

          $('*[data-bind='+$self.data('target')+'][data-id='+$self.data('id')+']').replaceWith($form);
          
          function submitEdits() {
{'fraction_non_alphanumeric': 0.17296296296296296, 'fraction_numerical': 0.01037037037037037, 'mean_word_length': 2.0845231296402056, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '2103800', 'n_tokens_mistral': 1709, 'n_tokens_neox': 1605, 'n_words': 234}