<commit_before><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <!-- JQuery -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
 
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
   
    <!-- Showdownjs for Markdown conversion -->
    <script src="https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js"></script>

    <!-- markdown extras -->
    <style> /* Use these "fitw<%>" attributes for the alt text to scale an image */
    img[alt=fitwidth] { width: 100%; float: center; display: block; margin-left: auto; margin-right: auto }
    img[alt=fitw100] { width: 100%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw75] { width: 75%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw50] { width: 50%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw25] { width: 25%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw10] { width: 10%; float: center; display: block; margin-left: auto; margin-right: auto}

    /* let the nav toggle show up */ 
    .icon-bar {
        background-color: black;
    } 
    </style>

</head>

<body>

<title class="main-title">GitStrap</title>

<div class="container"> <!-- all page content -->

    <!-- Navigation -->
    <nav class='navbar'>
        <div class="container-fluid">

            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>                        
                </button>
                <h2 class="text-muted main-title">GitStrap</h2>
            </div><!-- navbar-header -->

            <div class="collapse navbar-collapse navbar-right" id="myNavbar">
                <ul class="nav navbar-nav" id="nav-placeholder">
                <!-- <li class="active"><a data-toggle="tab" >Home</a></li>
                <li><a data-toggle="tab" >README</a></li> -->
                </ul>
            </div>

        </div><!-- container-fluid -->
    </nav>

    <!-- Running Header -->
    <div class="jumbotron" id="markdown_header" style="display: none;"></div>   

    <!-- Markdown Content -->
    <div id="markdown_body"> </div>

    <!-- Running Footer-->
    <hr>
    <footer class="footer text-center" id="markdown_footer" style="display: none;">
    </footer>

</div> <!-- /container -->

<script type="text/javascript">
    /* this script generates the navbar items */
    function populateNav() {

        /* get the title and nav from user config file */
        var options = [];
        var req = new XMLHttpRequest();
            req.onreadystatechange = function() {
              if (req.status==200 && req.readyState==4) {
                var words = req.responseText.split('\n');
                for (var i = 0; i < words.length; i++) {
                    if(! (words[i].match(/^#/) || (! words[i]))) {
                        if( words[i].match(/^>\S+/) ) {
                            options.push(words[i].replace(/^>/, ''));
                        }
                    }
                }
                //console.log(options);
                //console.log(options.length);
              }
        }
        req.open("GET","Config",false); // this must be loaded first
        req.send();

        /* line 0: title 
         * line 1: nav filenames
         * line 2: theme name or url
         * line 3: header filename
         * line 4: footer filename
         */
        //console.log(options);
        var title = options[0];
        var nav_items = options[1].split(' '); 
        var theme = options[2];
        var header = options[3];
        var footer = options[4];

        /* 0. TITLE change title to user config */
        $('.main-title').html(title);

        /* 1. THEME */
        /* check theme name or url */
        var direct_url = theme;
        var name_url = 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/' + theme + '/bootstrap.min.css'
    
        /* who knows if this actually validates a url? */
        var theme_url = '';
        function valid_url(url){
            return /^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i.test(url);
        }
        function add_style(url){
            new_style = '<link rel="stylesheet" href="'+url+'" type="text/css" media="screen" />';<commit_msg>Added github ribbon.<commit_after><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <!-- JQuery -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
 
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
   
    <!-- Showdownjs for Markdown conversion -->
    <script src="https://cdn.rawgit.com/showdownjs/showdown/1.3.0/dist/showdown.min.js"></script>

    <!-- markdown extras -->
    <style> /* Use these "fitw<%>" attributes for the alt text to scale an image */
    img[alt=fitwidth] { width: 100%; float: center; display: block; margin-left: auto; margin-right: auto }
    img[alt=fitw100] { width: 100%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw75] { width: 75%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw50] { width: 50%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw25] { width: 25%; float: center; display: block; margin-left: auto; margin-right: auto}
    img[alt=fitw10] { width: 10%; float: center; display: block; margin-left: auto; margin-right: auto}

    /* let the nav toggle show up */ 
    .icon-bar {
        background-color: black;
    } 
    </style>

</head>

<body>

<a href="https://github.com/nckz/GitStrap"><img style="display: none; 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" id="github_ribbon"></a>


<title class="main-title">GitStrap</title>

<div class="container"> <!-- all page content -->

    <!-- Navigation -->
    <nav class='navbar'>
        <div class="container-fluid">

            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>                        
                </button>
                <h2 class="text-muted main-title">GitStrap</h2>
            </div><!-- navbar-header -->

            <div class="collapse navbar-collapse navbar-right" id="myNavbar">
                <ul class="nav navbar-nav" id="nav-placeholder">
                <!-- <li class="active"><a data-toggle="tab" >Home</a></li>
                <li><a data-toggle="tab" >README</a></li> -->
                </ul>
            </div>

        </div><!-- container-fluid -->
    </nav>

    <!-- Running Header -->
    <div class="jumbotron" id="markdown_header" style="display: none;"></div>   

    <!-- Markdown Content -->
    <div id="markdown_body"> </div>

    <!-- Running Footer-->
    <hr>
    <footer class="footer text-center" id="markdown_footer" style="display: none;">
    </footer>

</div> <!-- /container -->

<script type="text/javascript">
    /* this script generates the navbar items */
    function populateNav() {

        /* get the title and nav from user config file */
        var options = [];
        var req = new XMLHttpRequest();
            req.onreadystatechange = function() {
              if (req.status==200 && req.readyState==4) {
                var words = req.responseText.split('\n');
                for (var i = 0; i < words.length; i++) {
                    if(! (words[i].match(/^#/) || (! words[i]))) {
                        if( words[i].match(/^>\S+/) ) {
                            options.push(words[i].replace(/^>/, ''));
                        }
                    }
                }
                //console.log(options);
                //console.log(options.length);
              }
        }
        req.open("GET","Config",false); // this must be loaded first
        req.send();

        /* line 0: title 
         * line 1: nav filenames
         * line 2: theme name or url
         * line 3: header filename
         * line 4: footer filename
         */
        //console.log(options);
        var title = options[0];
        var nav_items = options[1].split(' '); 
        var theme = options[2];
        var header = options[3];
        var footer = options[4];

        /* 0. TITLE change title to user config */
        $('.main-title').html(title);

        if (title == 'GitStrap') {
            $('#github_ribbon').show()
        }

        /* 1. THEME */
        /* check theme name or url */
        var direct_url = theme;
        var name_url = 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/' + theme + '/bootstrap.min.css'
    
        /* who knows if this actually validates a url? */
        var theme_url = '';
        function valid_url(url){
            return /^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i.test(url);
        }
        function add_style(url){
            new_style = '<link rel="stylesheet" href="'+url+'" type="text/css" media="screen" />';
{'fraction_non_alphanumeric': 0.17722112768552398, 'fraction_numerical': 0.028145229383619477, 'mean_word_length': 2.1279342723004695, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 156, 'https://': 9, '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': '589604', 'n_tokens_mistral': 3553, 'n_tokens_neox': 3246, 'n_words': 737}