<commit_before>import React from 'react';
import {Link} from 'react-router';
import classnames from 'classnames';

import PublicActions from '../../actions/PublicActions';
import SessionStore from '../../stores/SessionStore';
import styles from '../../App.css';
import Map from '../shared/Map.jsx';
// import UserStore from '../../stores/UserStore_';

export default class Home extends React.Component {
  constructor(props) {
    super(props);
    this.getSession = this.getSession.bind(this);
    this.state = {
      currentUser: null,
      users: null
    };
  }

  componentDidMount() {
    PublicActions.setTitle('Home');
    SessionStore.listen(this.getSession);
    // UserStore.getState().then(this.getUser);
  }

  getSession({session}) {
    const currentUser = session;
    if (currentUser) {
      const users = Object.keys(currentUser.friends || {});
      users.unshift(currentUser.id);
      this.setState({
        currentUser,
        users
      });
    }
  }

  getUser() {
    // console.log(state);
  }

  render() {<commit_msg>[Delivers #126357295] Add Session fetching to get data for map<commit_after>import React from 'react';
import {Link} from 'react-router';
import classnames from 'classnames';

import PublicActions from '../../actions/PublicActions';
import SessionActions from '../../actions/SessionActions';
import SessionStore from '../../stores/SessionStore';
import styles from '../../App.css';
import Map from '../shared/Map.jsx';
// import UserStore from '../../stores/UserStore_';

export default class Home extends React.Component {
  constructor(props) {
    super(props);
    this.getSession = this.getSession.bind(this);
    this.state = {
      currentUser: null,
      users: null
    };
  }

  componentDidMount() {
    SessionStore.listen(this.getSession);
    PublicActions.setTitle('Home');
    SessionActions.getSession();
    // UserStore.getState().then(this.getUser);
  }

  getSession({session}) {
    const currentUser = session;
    if (currentUser) {
      const users = Object.keys(currentUser.friends || {});
      users.unshift(currentUser.id);
      this.setState({
        currentUser,
        users
      });
    }
  }

  getUser() {
    // console.log(state);
  }

  render() {
{'fraction_non_alphanumeric': 0.15113687026304057, 'fraction_numerical': 0.004012483281319661, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2462640', 'n_tokens_mistral': 660, 'n_tokens_neox': 653, 'n_words': 148}