<commit_before>﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Hello React</title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    </head>
<body>
    <div id="content" class="container"></div>

<script type="text/jsx">

        var mockdata = [
            {id: 1, title: "Test Title 1", content: "Test Content 1"},
            {id: 2, title: "Test Title 2", content: "Test Content 2"}
        ];

        var BlogSummary = React.createClass({
            render: function() {
                return(<div class="row">
                        <div>{this.props.blog.title}</div>
                        <div>{this.props.blog.content}</div>
                    </div>);
            }
        });

        var BlogList = React.createClass({
            render: function() {
                var rows = [];

                if (this.props.blogs == undefined) { return false; }

                this.props.blogs.forEach(function(blog) {
                    rows.push(<BlogSummary blog={blog} />);
                }.bind(this));
                return (<div>
                    {rows}
                </div>
                );
            }
        });

        React.render(
        <BlogList blogs={ mockdata } />, document.getElementById('content'));

    </script>
</body>
</html><commit_msg>some links for the blogs<commit_after>﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Hello React</title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    </head>
<body>
    <div>
        <h2>Blogs</h2>
    </div>
    <div id="content" class="container"></div>

    <script type="text/jsx">

        var mockdata = [
            {id: 1, title: "Test Title 1", content: "Test Content 1"},
            {id: 2, title: "Test Title 2", content: "Test Content 2"}
        ];

        var BlogSummary = React.createClass({
            render: function() {
                return(<div class="row">
                        <div><a href="blog.html?id={this.props.blog.id}">{this.props.blog.title}</a></div>
                        <div><a href="blog.html?id={this.props.blog.id}">{this.props.blog.content}</a></div>
                    </div>);
            }
        });

        var BlogList = React.createClass({
            render: function() {
                var rows = [];

                if (this.props.blogs == undefined) { return false; }

                this.props.blogs.forEach(function(blog) {
                    rows.push(<BlogSummary blog={blog} />);
                }.bind(this));
                return (<div>
                    {rows}
                </div>
                );
            }
        });

        React.render(
        <BlogList blogs={ mockdata } />, document.getElementById('content'));

    </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.1745416989413891, 'fraction_numerical': 0.013426284533953009, 'mean_word_length': 1.8031837916063675, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 10, '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': '1039127', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1141, 'n_words': 188}