<commit_before>import React from 'react';

import {default as Game} from '../../game/game/game.jsx';

import {GameActions} from '../../../stores/game-store';
import {SceneActions} from '../../../actions/scene-actions';
import {LobbyActions} from '../../../stores/lobby-store';

import {audio} from "../../../audio";

export default React.createClass({

  handleClick(e) {
    e.preventDefault();

    audio.button.play();

    if (this.props.username.trim() === '') {
      return;
    }

    // join game
    LobbyActions.join(
      this.props.gameId,
      this.props.username
    );

    // transition screen
    SceneActions.transition(<Game />);
    
    GameActions.setGame(this.props.gameId, 2);
  },

  render() {
    return (
      <div className="clearfix">
        <div className="lobby__item">
          <span className="lobby__item-username">{this.props.otherUsername}</span>

          <button className="gild-btn lobby__item-btn" onClick={this.handleClick}>Join</button>
        </div>
      </div>
    );
  }
});<commit_msg>More button sounds<commit_after>import React from 'react';

import {default as Game} from '../../game/game/game.jsx';

import {GameActions} from '../../../stores/game-store';
import {SceneActions} from '../../../actions/scene-actions';
import {LobbyActions} from '../../../stores/lobby-store';

import {audio} from '../../../audio';

export default React.createClass({

  handleClick(e) {
    e.preventDefault();

    audio.button.play();

    if (this.props.username.trim() === '') {
      return;
    }

    // join game
    LobbyActions.join(
      this.props.gameId,
      this.props.username
    );

    // transition screen
    SceneActions.transition(<Game />);
    audio.chant.loop = false;
    GameActions.setGame(this.props.gameId, 2);
  },

  render() {
    return (
      <div className="clearfix">
        <div className="lobby__item">
          <span className="lobby__item-username">{this.props.otherUsername}</span>

          <button className="gild-btn lobby__item-btn" onClick={this.handleClick}>Join</button>
        </div>
      </div>
    );
  }
});
{'fraction_non_alphanumeric': 0.1856060606060606, 'fraction_numerical': 0.000946969696969697, 'mean_word_length': 2.563237774030354, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '1363698', 'n_tokens_mistral': 657, 'n_tokens_neox': 648, 'n_words': 122}