<commit_before>import React from 'react';
import GameList from '../components/GameList.jsx';

import LobbyActions from '../actions/LobbyActions';
import LobbyStore from '../stores/LobbyStore';

class Lobby extends React.Component {

  render() {
    return (
        <div>
          <GameList />
        </div>
    );
  }

}

export default Lobby;<commit_msg>Add structure for auth validation<commit_after>import React from 'react';
import $ from 'jquery';
import GameList from '../components/GameList.jsx';

import LobbyActions from '../actions/LobbyActions';
import LobbyStore from '../stores/LobbyStore';

class Lobby extends React.Component {

  validate() {

    var redirect = '/auth/login?redirect=' + encodeURIComponent(window.location);

    $.ajax({
      type: 'GET',
      url: '/auth/me',
      statusCode: {
        401: function() { window.location = redirect; }
      }
    });

  }

  render() {
    //this.validate();

    return (
        <div>
          <GameList />
        </div>
    );
  }

}

export default Lobby;
{'fraction_non_alphanumeric': 0.14258188824662812, 'fraction_numerical': 0.002890173410404624, 'mean_word_length': 2.607638888888889, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '329905', 'n_tokens_mistral': 318, 'n_tokens_neox': 309, 'n_words': 78}