<commit_before>var React = require('react'),
    BadgeInstanceList = require('../components/badgeInstanceList.jsx'),
    Page = require('../components/page.jsx'),
    orcidRe = /\/users\/(\d{4}-\d{4}-\d{4}-\d{3}[\dX])/,
    doiRe = /\/papers\/(10\.\d{3}\d+)\/([^\/]*)\//,
    badgeRe = /\/badges\/([a-z_]*)\b/;

var viewBadges = React.createClass({
  componentDidMount: function() {
    document.title = "Contributorship Badges";
    window.onhashchange = this.updateUrl;
    this.updateUrl();
  },
  updateUrl: function(){
    var url =  (window.location.href.split('#')[1] || ''),
        orcid = orcidRe.exec(url),
        doi = doiRe.exec(url),
        badge = badgeRe.exec(url);

    orcid = orcid && orcid[1];
    doi = doi && [doi[1], decodeURIComponent(doi[2])];
    badge = badge && badge[1];

    this.setState({ url: url,
                    orcid: orcid,
                    doi: doi,
                    badge: badge }, function(){console.log(this.state)});
  },
  getInitialState: function() {
    return { };
  },
  render: function() {
    var orcid, badge, doi;
    if(this.state.orcid) {
      orcid = (<p>Badges for user <a href={ 'http://orcid.org/' + this.state.orcid}>{this.state.orcid}</a></p>);<commit_msg>remove console.log statement... * oops<commit_after>var React = require('react'),
    BadgeInstanceList = require('../components/badgeInstanceList.jsx'),
    Page = require('../components/page.jsx'),
    orcidRe = /\/users\/(\d{4}-\d{4}-\d{4}-\d{3}[\dX])/,
    doiRe = /\/papers\/(10\.\d{3}\d+)\/([^\/]*)\//,
    badgeRe = /\/badges\/([a-z_]*)\b/;

var viewBadges = React.createClass({
  componentDidMount: function() {
    document.title = "Contributorship Badges";
    window.onhashchange = this.updateUrl;
    this.updateUrl();
  },
  updateUrl: function(){
    var url =  (window.location.href.split('#')[1] || ''),
        orcid = orcidRe.exec(url),
        doi = doiRe.exec(url),
        badge = badgeRe.exec(url);

    orcid = orcid && orcid[1];
    doi = doi && [doi[1], decodeURIComponent(doi[2])];
    badge = badge && badge[1];

    this.setState({ url: url,
                    orcid: orcid,
                    doi: doi,
                    badge: badge });
  },
  getInitialState: function() {
    return { };
  },
  render: function() {
    var orcid, badge, doi;
    if(this.state.orcid) {
      orcid = (<p>Badges for user <a href={ 'http://orcid.org/' + this.state.orcid}>{this.state.orcid}</a></p>);
{'fraction_non_alphanumeric': 0.21405228758169934, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 2.459039548022599, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '3186729', 'n_tokens_mistral': 912, 'n_tokens_neox': 879, 'n_words': 147}