<commit_before><!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script>
        var meetupCount = 20;
        var showMeetupSource = true;
    </script>
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>    
    <script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.js"></script>
    <script>
        require.config({
            paths: {
                "marked": "http://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked",
                "jquery": "http://code.jquery.com/jquery-1.11.1",
                "bootstrap": "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min"
            }
        });

        require(["marked","jquery"], function(marked, $) {

            $(document).ready(function () {
                var baseUrl = "https://dotnetweb.blob.core.windows.net/dotnetcatalog/";
                var catalogJson = "catalog.json";
                var requestUrl = baseUrl + catalogJson;

                $.support.cors = true;
                $.getJSON(requestUrl, function (data) {
                    document.title = data.name;

                    $.ajax(baseUrl + data.content).done(function(data) 
                    {
                        $("#intro").prepend(marked(data));
                    });

                    $.each(data.categories, function (key, category) {
                        var categoryName = category.name;
                        var cat = category.name +"/";
                        while(categoryName.indexOf(".") != -1)
                        {
                            categoryName = categoryName.replace(".","");
                        }

                        var target = "cat" + categoryName;
                        $("#features").append("<h2>" + category.name + " Features</h2><div class=feature id=" + target+"></div>");
                        $.each(category.items, function(key2,item) {
                            $.ajax(baseUrl + cat + item.content).done(function(data) 
                                {
                                    var icon = baseUrl + cat + item.tile;
                                    var renderer = new marked.Renderer();
                                    renderer.image = function (href, title, text) {
                                        return '<img src=\''+baseUrl+ category.name +'/' +href+'\'width=500/>';
                                    };
                                    renderer.heading = function (text, level) {
                                        var headingIcon = level == 1 ? "<img src=" + icon + " width=100 style=\"padding-right:20px;\"></img>" : "";
                                        return "<h" + level + ">" + headingIcon + text + "</h1>";
                                    };
                                    $("#" + target).append(marked(data,{renderer:renderer}));
                            });
                        });
                    });
                });
            });
        });
    </script>  
    <style>
        .feature h1 {font-size: 18px;}
    </style>      
</head>
<body>
<div id="intro"/>
<div id="features"/>

</body>
</html><commit_msg>switched to accomodate change in json format to icon from tile<commit_after><!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script>
        var meetupCount = 20;
        var showMeetupSource = true;
    </script>
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>    
    <script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.js"></script>
    <script>
        require.config({
            paths: {
                "marked": "http://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked",
                "jquery": "http://code.jquery.com/jquery-1.11.1",
                "bootstrap": "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min"
            }
        });

        require(["marked","jquery"], function(marked, $) {

            $(document).ready(function () {
                var baseUrl = "https://dotnetweb.blob.core.windows.net/dotnetcatalog/";
                var catalogJson = "catalog.json";
                var requestUrl = baseUrl + catalogJson;

                $.support.cors = true;
                $.getJSON(requestUrl, function (data) {
                    document.title = data.name;

                    $.ajax(baseUrl + data.content).done(function(data) 
                    {
                        $("#intro").prepend(marked(data));
                    });

                    $.each(data.categories, function (key, category) {
                        var categoryName = category.name;
                        var cat = category.name +"/";
                        while(categoryName.indexOf(".") != -1)
                        {
                            categoryName = categoryName.replace(".","");
                        }

                        var target = "cat" + categoryName;
                        $("#features").append("<h2>" + category.name + " Features</h2><div class=feature id=" + target+"></div>");
                        $.each(category.items, function(key2,item) {
                            $.ajax(baseUrl + cat + item.content).done(function(data) 
                                {
                                    var icon = baseUrl + cat + item.icon;
                                    var renderer = new marked.Renderer();
                                    renderer.image = function (href, title, text) {
                                        return '<img src=\''+baseUrl+ category.name +'/' +href+'\'width=500/>';
                                    };
                                    renderer.heading = function (text, level) {
                                        var headingIcon = level == 1 ? "<img src=" + icon + " width=100 style=\"padding-right:20px;\"></img>" : "";
                                        return "<h" + level + ">" + headingIcon + text + "</h1>";
                                    };
                                    $("#" + target).append(marked(data,{renderer:renderer}));
                            });
                        });
                    });
                });
            });
        });
    </script>  
    <style>
        .feature h1 {font-size: 18px;}
    </style>      
</head>
<body>
<div id="intro"/>
<div id="features"/>

</body>
</html>
{'fraction_non_alphanumeric': 0.15021913253740365, 'fraction_numerical': 0.01118331570197975, 'mean_word_length': 1.2170854271356784, 'pattern_counts': {'":': 6, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4785465', 'n_tokens_mistral': 1781, 'n_tokens_neox': 1638, 'n_words': 283}