<commit_before>import React, { Component } from 'react';
import { Button } from 'react-materialize';
import { Link } from 'react-router';


export default class FetchBar extends Component {

  constructor(props) {
    super(props);
    this.roomGenerator = this.props.roomGenerator.bind(this);
    this.joinRoom = this.props.joinRoom.bind(this);
    this.getInput = this.props.getInput.bind(this);
  }
  render() {

    let html = {
      roomCreated: (
          <div>
            <br></br>
            <h4>You Joined Room: {this.props.roomCreated}</h4>
            <h5>Invite your friend to play !!!</h5>
          </div>),
        generateButton: (
          <Button tooltip="Click here to create new room" onClick={this.roomGenerator}>Generate room</Button>
        ),

        joinButton : (
          <Link to={this.props.roomValid ? "/multiplayer" : "/"} onClick={this.joinRoom}>
            <Button waves='light'>Join room</Button>
          </Link>
        ),
    }
    return (
      <div className="room-input">
        <form >
          {this.props.roomCreated ? null : html.generateButton}
          {this.props.roomCreated ? html.roomCreated : null}
        </form>
        <input

          type="text"<commit_msg>(fix) Remove tooltip on Generate room<commit_after>import React, { Component } from 'react';
import { Button } from 'react-materialize';
import { Link } from 'react-router';


export default class FetchBar extends Component {

  constructor(props) {
    super(props);
    this.roomGenerator = this.props.roomGenerator.bind(this);
    this.joinRoom = this.props.joinRoom.bind(this);
    this.getInput = this.props.getInput.bind(this);
  }
  render() {

    let html = {
      roomCreated: (
          <div>
            <br></br>
            <h4>You Joined Room: {this.props.roomCreated}</h4>
            <h5>Invite your friend to play !!!</h5>
          </div>),
        generateButton: (
          <Button onClick={this.roomGenerator}>Generate room</Button>
        ),

        joinButton : (
          <Link to={this.props.roomValid ? "/multiplayer" : "/"} onClick={this.joinRoom}>
            <Button waves='light'>Join room</Button>
          </Link>
        ),
    }
    return (
      <div className="room-input">
        <form >
          {this.props.roomCreated ? null : html.generateButton}
          {this.props.roomCreated ? html.roomCreated : null}
        </form>
        <input

          type="text"
{'fraction_non_alphanumeric': 0.13963963963963963, 'fraction_numerical': 0.003276003276003276, 'mean_word_length': 2.2229551451187337, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 37, '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': '118814', 'n_tokens_mistral': 722, 'n_tokens_neox': 711, 'n_words': 150}