<commit_before>﻿script(type='text/template', id='shortie-main')
  tr(data-bind="template : {name : 'shortie-edit', data: $data}, visible:isCurrent")
  tr(data-bind="template : {name : 'shortie-normal', data: $data}, visible:!isCurrent()")


script(type='text/template', id='shortie-edit')
  td
    input(type='text', placeholder='r<NAME>', data-bind="value:slug")
  td
    input(type='text', placeholder='really looong', data-bind='value: fullUrl')
  td
    .btn-group.pull-right
      button.btn.btn-default.btn-xs(data-bind='click: $parents[1].save')
        span.glyphicon.glyphicon-plus
        span.small save

script(type='text/template', id='shortie-normal')
  td(data-bind='text:slug')
  td(data-bind='text:fullUrl')
  td
    .btn-group.pull-right
      button.btn.btn-default.btn-xs(data-bind='click: $parents[1].select')
        span.glyphicon.glyphicon-plus
        span.small edit<commit_msg>Bind click handlers so 'this' doesn't get rebound<commit_after>﻿script(type='text/template', id='shortie-main')
  tr(data-bind="template : {name : 'shortie-edit', data: $data}, visible:isCurrent")
  tr(data-bind="template : {name : 'shortie-normal', data: $data}, visible:!isCurrent()")


script(type='text/template', id='shortie-edit')
  td
    input(type='text', placeholder='r<NAME>', data-bind="value:slug")
  td
    input(type='text', placeholder='really looong', data-bind='value: fullUrl')
  td
    .btn-group.pull-right
      button.btn.btn-default.btn-xs(data-bind='click: $parents[1].save.bind($parents[1])')
        span.glyphicon.glyphicon-plus
        span.small save

script(type='text/template', id='shortie-normal')
  td(data-bind='text:slug')
  td(data-bind='text:fullUrl')
  td
    .btn-group.pull-right
      button.btn.btn-default.btn-xs(data-bind='click: $parents[1].select.bind($parents[1])')
        span.glyphicon.glyphicon-plus
        span.small edit
{'fraction_non_alphanumeric': 0.18882978723404256, 'fraction_numerical': 0.0031914893617021275, 'mean_word_length': 4.3742857142857146, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5365647', 'n_tokens_mistral': 658, 'n_tokens_neox': 648, 'n_words': 94}