<commit_before>var React = require('react');

// Different text to display as a tagline in the header
var textblocks =
    ["Software Engineer, RIT Alumni",
        "JavaScript/Node Programmer",
        "Casual RuneScape Player",
        "RITLug/FOSS@MAGIC Member",
        "Casual Minecraft Player",
        "Runs Linux On Everything",
        "Raspberry Pi Enthusiast"];
var timer = null;

module.exports = React.createClass({
    getInitialState: function () {
        return { swapcount: 0 };
    },

    componentWillMount: function () {
        // Do something when the react component is about to be displayed for the first time
    },

    componentDidMount: function () {
        var that = this;

        // Get the current page from the window location
        var pagename = window.location.pathname;
        pagename = pagename.replace(new RegExp("/", 'g'), "");

        if (pagename === "") {
            pagename = "home";
        }

        console.log("The " + pagename + " page has been loaded");
        // Eventually log the current page maybe. But this API isnt ready yet.
        getreq("https://api.repkam09.com/api/lifeforce/heartbeat/site_" + pagename).then((response) => {
            // Logging worked
        }).catch((error) => {
            // Logging failed, but we dont care!
        });

        // Do something when the react component is first drawn to the screen

        timer = setInterval(function () {
            var tempcount = that.state.swapcount;

            tempcount = (tempcount + 1);
            if (tempcount >= textblocks.length) {
                tempcount = 0;
            }

            that.setState({ swapcount: tempcount });

        }, 3000);
    },

    componentWillUnmount: function () {
        // Do something when the react component is no longer needed
        clearInterval(timer);
    },

    render: function () {
        var swaptext = textblocks[this.state.swapcount];

<commit_msg>Change to use analytics endpoint<commit_after>var React = require('react');

// Different text to display as a tagline in the header
var textblocks =
    ["Software Engineer, RIT Alumni",
        "JavaScript/Node Programmer",
        "Casual RuneScape Player",
        "RITLug/FOSS@MAGIC Member",
        "Casual Minecraft Player",
        "Runs Linux On Everything",
        "Raspberry Pi Enthusiast"];
var timer = null;

module.exports = React.createClass({
    getInitialState: function () {
        return { swapcount: 0 };
    },

    componentWillMount: function () {
        // Do something when the react component is about to be displayed for the first time
    },

    componentDidMount: function () {
        var that = this;

        // Get the current page from the window location
        var pagename = window.location.pathname;
        pagename = pagename.replace(new RegExp("/", 'g'), "");

        if (pagename === "") {
            pagename = "home";
        }

        console.log("The " + pagename + " page has been loaded");
        // Eventually log the current page maybe. But this API isnt ready yet.
        getreq("https://api.repkam09.com/api/lifeforce/analytics/site_" + pagename).then((response) => {
            // Logging worked
        }).catch((error) => {
            // Logging failed, but we dont care!
        });

        // Do something when the react component is first drawn to the screen

        timer = setInterval(function () {
            var tempcount = that.state.swapcount;

            tempcount = (tempcount + 1);
            if (tempcount >= textblocks.length) {
                tempcount = 0;
            }

            that.setState({ swapcount: tempcount });

        }, 3000);
    },

    componentWillUnmount: function () {
        // Do something when the react component is no longer needed
        clearInterval(timer);
    },

    render: function () {
        var swaptext = textblocks[this.state.swapcount];


{'fraction_non_alphanumeric': 0.11051693404634581, 'fraction_numerical': 0.004583651642475172, 'mean_word_length': 2.090479937057435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '4699110', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1027, 'n_words': 330}