<commit_before><h1>GitHub Public Timeline feed</h1>

<div class="row">
  <div class="col-md-8">
    <div id='timeline'></div>
  </div>
  <div class="col-md-4">
    <h3>What is this?</h3>
    <p>
      This page is showing the real time public feed of activity on GitHub.
    </p>
    <p>
      See the code that powers it here: <a href="https://libraries.io/github/librariesio/github-firehose">https://libraries.io/github/librariesio/github-firehose</a>
    </p>
  </div>
</div>

<script type="text/javascript">
  var evtSource = new EventSource('https://github-firehose.herokuapp.com/events');
  var events = []

  var actionDescription = function(obj){
    switch (obj.type) {
      case 'PushEvent':
        return ' pushed to '
        break;
      case 'CommitCommentEvent':
        return ' commented on a commit in '
        break;
      case 'CreateEvent':
        return ' created a ' + obj.payload.ref_type + ' '
        break;
      case 'DeleteEvent':
        return ' deleted a ' + obj.payload.ref_type + ' on '
        break;
      case 'ForkEvent':
        return ' forked '
        break;
      case 'GollumEvent':
        return ' updated the wiki on '
        break;
      case 'IssueCommentEvent':
        return ' commented on a issue in '
        break;
      case 'IssuesEvent':
        return ' ' + obj.payload.action + ' an issue in '
        break;
      case 'MemberEvent':
        return ' added ' + obj.member.login + ' to '
        break;
      case 'PublicEvent':
        return ' open sourced '
        break;
      case 'PullRequestEvent':
        return ' ' + obj.payload.action + ' a pull request in '
        break;
      case 'PullRequestReviewCommentEvent':
        return ' commented on a pull request diff in '
        break;
      case 'ReleaseEvent':
        return ' published a new release of '
        break;
      case 'WatchEvent':
        return ' starred '
        break;
      default:
        return obj.type.toString()
    }
  }

  evtSource.addEventListener('event', function(evt) {
    data = JSON.parse(evt.data);
    console.debug('event:', data);
    events.push(data)
    trimmed = events.slice(Math.max(events.length - 30, 1))<commit_msg>Remove debug<commit_after><h1>GitHub Public Timeline feed</h1>

<div class="row">
  <div class="col-md-8">
    <div id='timeline'></div>
  </div>
  <div class="col-md-4">
    <h3>What is this?</h3>
    <p>
      This page is showing the real time public feed of activity on GitHub.
    </p>
    <p>
      See the code that powers it here: <a href="https://libraries.io/github/librariesio/github-firehose">https://libraries.io/github/librariesio/github-firehose</a>
    </p>
  </div>
</div>

<script type="text/javascript">
  var evtSource = new EventSource('https://github-firehose.herokuapp.com/events');
  var events = []

  var actionDescription = function(obj){
    switch (obj.type) {
      case 'PushEvent':
        return ' pushed to '
        break;
      case 'CommitCommentEvent':
        return ' commented on a commit in '
        break;
      case 'CreateEvent':
        return ' created a ' + obj.payload.ref_type + ' '
        break;
      case 'DeleteEvent':
        return ' deleted a ' + obj.payload.ref_type + ' on '
        break;
      case 'ForkEvent':
        return ' forked '
        break;
      case 'GollumEvent':
        return ' updated the wiki on '
        break;
      case 'IssueCommentEvent':
        return ' commented on a issue in '
        break;
      case 'IssuesEvent':
        return ' ' + obj.payload.action + ' an issue in '
        break;
      case 'MemberEvent':
        return ' added ' + obj.member.login + ' to '
        break;
      case 'PublicEvent':
        return ' open sourced '
        break;
      case 'PullRequestEvent':
        return ' ' + obj.payload.action + ' a pull request in '
        break;
      case 'PullRequestReviewCommentEvent':
        return ' commented on a pull request diff in '
        break;
      case 'ReleaseEvent':
        return ' published a new release of '
        break;
      case 'WatchEvent':
        return ' starred '
        break;
      default:
        return obj.type.toString()
    }
  }

  evtSource.addEventListener('event', function(evt) {
    data = JSON.parse(evt.data);
    events.push(data)
    trimmed = events.slice(Math.max(events.length - 30, 1))
{'fraction_non_alphanumeric': 0.12304866850321396, 'fraction_numerical': 0.004132231404958678, 'mean_word_length': 2.13678905687545, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 6, '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': '6073187', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1318, 'n_words': 354}