<commit_before>.spacer
.col-xs-12
    script.
      var main = window.main || { init: [] };
      main.storyURL = !{JSON.stringify(storyURL)};
      main.storyTitle = !{JSON.stringify(storyTitle)};
      main.storyImage = !{JSON.stringify(storyImage)};
      main.storyMetaDescription = !{JSON.stringify(storyMetaDescription)};

    form.form-horizontal.control-label-story-submission#story-submission-form(name="submitStory")
        .col-xs-12
            .form-group
                .col-xs-12.col-md-1
                    label.control-label.control-label-story-submission(for='name') Link
                .col-xs-12.col-md-11
                  input#story-url.form-control(name='Link', disabled, value='#{storyURL}')
            .form-group
                .col-xs-12.col-md-1
                    label.control-label.control-label-story-submission(for='name') Title
                .col-xs-12.col-md-11
                  input#story-title.form-control(value='#{storyTitle}', name='Title', maxlength='90', autocomplete="off", autofocus, required)
            .form-group
                .col-xs-12.col-md-offset-1
                    span.pull-left#textarea_feedback
            .form-group
                .col-xs-11.col-md-offset-1
                    .hidden-element#image-display
                        .media
                            .media-left
                                img.url-preview.media-object(src="#{storyImage}", alt="#{storyMetaDescription}")
                            .media-body
                                .col-xs-12
                                    p= storyMetaDescription
            .spacer
            .row
                .form-group

                    button.btn.btn-big.btn-block.btn-primary#story-submit(type='submit') Submit
    script.
      if (main.storyImage) {
        $('#image-display').removeClass('hidden-element');
      }<commit_msg>fixes no url supplied on successful submission<commit_after>.spacer
.col-xs-12
    script.
      var main = window.main || { init: [] };
      main.storyURL = !{JSON.stringify(storyURL)};
      main.storyTitle = !{JSON.stringify(storyTitle)};
      main.storyImage = !{JSON.stringify(storyImage)};
      main.storyMetaDescription = !{JSON.stringify(storyMetaDescription)};

    form.form-horizontal.control-label-story-submission#story-submission-form(name="submitStory")
        .col-xs-12
            .form-group
                .col-xs-12.col-md-1
                    label.control-label.control-label-story-submission(for='name') Link
                .col-xs-12.col-md-11
                  input#story-url.form-control(name='Link', disabled, value='#{storyURL}')
            .form-group
                .col-xs-12.col-md-1
                    label.control-label.control-label-story-submission(for='name') Title
                .col-xs-12.col-md-11
                  input#story-title.form-control(value='#{storyTitle}', name='Title', maxlength='90', autocomplete="off", autofocus, required)
            .form-group
                .col-xs-12.col-md-offset-1
                    span.pull-left#textarea_feedback
            .form-group
                .col-xs-11.col-md-offset-1
                    .hidden-element#image-display
                        .media
                            .media-left
                                img.url-preview.media-object(src="#{storyImage}", alt="#{storyMetaDescription}")
                            .media-body
                                .col-xs-12
                                    p= storyMetaDescription
            .spacer
            .row
                .form-group

                    button.btn.btn-big.btn-block.btn-primary#story-submit(type='submit', onclick="return false;") Submit
    script.
      if (main.storyImage) {
        $('#image-display').removeClass('hidden-element');
      }
{'fraction_non_alphanumeric': 0.13376623376623376, 'fraction_numerical': 0.014545454545454545, 'mean_word_length': 1.505530253741054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '352721', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1056, 'n_words': 126}