<commit_before>!!!
%html
  %head
    %title Create a badge for your GitHub repo
    %script{:src => '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js'}
    %script{:src => '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js'}
    %link{:rel => 'stylesheet', :type => 'text/css', :href => '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'}/
    %link{:rel => 'stylesheet', :type => 'text/css', :href => '//cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css'}/
    :css
      #codeThingy #code {
        width: 100%;
        height: 100px;
        font-family: Consolas;
      }
    %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}
    %meta{:name => 'copyright', :content => '<NAME> <<EMAIL>>'}
    %meta{:name => 'description', :content => 'Generate a GitHub badge for your repository'}
    %meta{:name => 'keywords', :content => 'github,badge,github badges,github badge,svg badge,readme'}
    %meta{:name => 'robots', :content => 'index,follow'}
  %body
    #main-container.container
      %header
        %a{:href => 'https://github.com/ddavison/github-badges'}
          %img{:style => 'position:absolute;top:0;right:0;border:0;', :src => 'https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67',
               :alt => 'Fork me on GitHub',
               'data-canonical-src' => 'https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png'}
        %h1 GitHub SVG Buttons
        %address
          Generate your own star / fork badges...
          %a{:href => 'https://github.com/ddavison/github-badges'}
            %img{:alt => 'star this repo', :src => 'http://githubbadges.com/star.svg?user=ddavison&repo=github-badges'}/
          %a{:href => 'https://github.com/ddavison/github-badges/fork'}
            %img{:alt => 'fork this repo', :src => 'http://githubbadges.com/fork.svg?user=ddavison&repo=github-badges'}/
      %main
        #codeThingy.modal
          .modal-dialog.modal-lg
            .modal-content
              .modal-header
                %button.close{:type => 'button', 'data-dismiss' => 'modal'}
                  %span{'aria-hidden' => true} &times;
                  %span.sr-only Close
                %h4.modal-title SVG Buttons
              .modal-body
                %strong Preview:
                %img{:id => 'img-star', :alt => 'that repo doesnt exist'}/
                %img{:id => 'img-fork', :alt => 'that repo doesnt exist'}/
                %br/
                %br/
                %strong Code:
                %textarea{:id => 'code'}
              .modal-footer
                %button.btn.btn-default{:type => 'button', 'data-dismiss' => 'modal'} Close
        %form#form
          %label{:for => 'output-to'} Output to
          %select#output-to
            %option{:value => 'markdown'} Markdown
            %option{:value => 'html-image'} &lt;img .. /&gt;
            %option{:value => 'haml'} Haml
          %hr/
          .form-group
            %label{:for => 'user'} GitHub Username/Organization
            %input#user.form-control{:type => 'text', :placeholder => 'enter the username of the repo'}
            %label{:for => 'repo'} GitHub Repo
            %input#repo.form-control{:type => 'text', :placeholder => 'enter the repo name'}
            %label{:for => 'bg_color'} Background color (optional)
            %input#bg_color.form-control{:type => 'text', :value => '4c1'}
            %label{:for => 'color'} Color
            %input#color.form-control{:type => 'text', :value => 'fff'}
            %label{:for => 'style'} Style
            %select#style.form-control
              %option{:value => 'default', :selected => 'selected'}
                Default
              %option{:value => 'flat'}
                Flat
              %option{:value => 'flat-square'}
                FlatSquare


          %button.btn.btn-success{:id => 'btn-generate'}
            Generate!

    :javascript
      $(document).ready((function(){
        $("#codeThing").modal({
          keyboard: true
        });
        $("#btn-generate").on('click', function(e) {
          e.preventDefault();
          var user = $("#user").val();
          var repo = $("#repo").val();

          if (user == '' || repo == '')
            return showCodeThingy("You need to specify the user and repo to generate badges for");

          var bgColor = $("#bg_color").val();
          var color = $("#color").val();
          var style = $("#style").val();

          var colorChanged = !(bgColor == '4c1' && color == 'fff');

          var githubUrl = "https://github.com/" + user + "/" + repo;
          var forkUrl = githubUrl + "/fork";
          var baseUrl = "http://githubbadges.com/";
          var outputTo = $("#output-to").val();
<commit_msg>Use https<commit_after>!!!
%html
  %head
    %title Create a badge for your GitHub repo
    %script{:src => '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js'}
    %script{:src => '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js'}
    %link{:rel => 'stylesheet', :type => 'text/css', :href => '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'}/
    %link{:rel => 'stylesheet', :type => 'text/css', :href => '//cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css'}/
    :css
      #codeThingy #code {
        width: 100%;
        height: 100px;
        font-family: Consolas;
      }
    %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}
    %meta{:name => 'copyright', :content => '<NAME> <<EMAIL>>'}
    %meta{:name => 'description', :content => 'Generate a GitHub badge for your repository'}
    %meta{:name => 'keywords', :content => 'github,badge,github badges,github badge,svg badge,readme'}
    %meta{:name => 'robots', :content => 'index,follow'}
  %body
    #main-container.container
      %header
        %a{:href => 'https://github.com/ddavison/github-badges'}
          %img{:style => 'position:absolute;top:0;right:0;border:0;', :src => 'https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67',
               :alt => 'Fork me on GitHub',
               'data-canonical-src' => 'https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png'}
        %h1 GitHub SVG Buttons
        %address
          Generate your own star / fork badges...
          %a{:href => 'https://github.com/ddavison/github-badges'}
            %img{:alt => 'star this repo', :src => 'https://githubbadges.com/star.svg?user=ddavison&repo=github-badges'}/
          %a{:href => 'https://github.com/ddavison/github-badges/fork'}
            %img{:alt => 'fork this repo', :src => 'https://githubbadges.com/fork.svg?user=ddavison&repo=github-badges'}/
      %main
        #codeThingy.modal
          .modal-dialog.modal-lg
            .modal-content
              .modal-header
                %button.close{:type => 'button', 'data-dismiss' => 'modal'}
                  %span{'aria-hidden' => true} &times;
                  %span.sr-only Close
                %h4.modal-title SVG Buttons
              .modal-body
                %strong Preview:
                %img{:id => 'img-star', :alt => 'that repo doesnt exist'}/
                %img{:id => 'img-fork', :alt => 'that repo doesnt exist'}/
                %br/
                %br/
                %strong Code:
                %textarea{:id => 'code'}
              .modal-footer
                %button.btn.btn-default{:type => 'button', 'data-dismiss' => 'modal'} Close
        %form#form
          %label{:for => 'output-to'} Output to
          %select#output-to
            %option{:value => 'markdown'} Markdown
            %option{:value => 'html-image'} &lt;img .. /&gt;
            %option{:value => 'haml'} Haml
          %hr/
          .form-group
            %label{:for => 'user'} GitHub Username/Organization
            %input#user.form-control{:type => 'text', :placeholder => 'enter the username of the repo'}
            %label{:for => 'repo'} GitHub Repo
            %input#repo.form-control{:type => 'text', :placeholder => 'enter the repo name'}
            %label{:for => 'bg_color'} Background color (optional)
            %input#bg_color.form-control{:type => 'text', :value => '4c1'}
            %label{:for => 'color'} Color
            %input#color.form-control{:type => 'text', :value => 'fff'}
            %label{:for => 'style'} Style
            %select#style.form-control
              %option{:value => 'default', :selected => 'selected'}
                Default
              %option{:value => 'flat'}
                Flat
              %option{:value => 'flat-square'}
                FlatSquare


          %button.btn.btn-success{:id => 'btn-generate'}
            Generate!

    :javascript
      $(document).ready((function(){
        $("#codeThing").modal({
          keyboard: true
        });
        $("#btn-generate").on('click', function(e) {
          e.preventDefault();
          var user = $("#user").val();
          var repo = $("#repo").val();

          if (user == '' || repo == '')
            return showCodeThingy("You need to specify the user and repo to generate badges for");

          var bgColor = $("#bg_color").val();
          var color = $("#color").val();
          var style = $("#style").val();

          var colorChanged = !(bgColor == '4c1' && color == 'fff');

          var githubUrl = "https://github.com/" + user + "/" + repo;
          var forkUrl = githubUrl + "/fork";
          var baseUrl = "https://githubbadges.com/";
          var outputTo = $("#output-to").val();

{'fraction_non_alphanumeric': 0.1773527931555108, 'fraction_numerical': 0.035631605435329644, 'mean_word_length': 2.180537772087068, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 131, 'https://': 15, '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': '4355249', 'n_tokens_mistral': 3412, 'n_tokens_neox': 3131, 'n_words': 585}