<commit_before>import React, { Component } from 'react';
import '~/assets/stylesheets/Header.scss';
import '~/assets/stylesheets/Utility.scss';

class MultiHeader extends Component {
  constructor() {
    super();

    this.state = { showFaq: false };
    this.onToggleInstructions = this.onToggleInstructions.bind(this);
  }

  onToggleInstructions() {
    this.setState({
      showFaq: !this.state.showFaq,
    });
  }

  render() {
    const buttonText = this.state.showFaq ? 'hide faq' : 'show faq';
    const button = (
      <button className="btn btn-lrg button-item" onClick={this.onToggleInstructions}>
        {buttonText}
      </button>
    );
    const faqClass = this.state.showFaq ? 'new-section' : 'new-section hide';

    return (
      <div className="section">
          <h1>iv.multi</h1>
          determine a pokémon's potential faster in a group.<p />
          <b>this only works for wild pokémon that have been caught in the same spot (and not
          via incense).</b>

          <div className="new-section">
            {button}
          </div>
          <div className={faqClass}>
            <h5><u>what is this?</u></h5>
            this page is used for quick referencing how good your pokémon is. when you are out and
            about, there's no time to manually enter each pokémon's stats, so this will give you
            a rough estimate as to wheter it's closer to the lower or higher end of the spectrum.
            <h5><u>what about hatched pokémon?</u></h5>
            hatched pokémon have a maximum level of 39. there may be a toggle later to help you
            keep track of that.
            <div className="new-section">{button}</div>
          </div>
      </div>
    );
  }
}

export default MultiHeader;<commit_msg>fix up faq<commit_after>import React, { Component } from 'react';
import '~/assets/stylesheets/Header.scss';
import '~/assets/stylesheets/Utility.scss';

class MultiHeader extends Component {
  constructor() {
    super();

    this.state = { showFaq: false };
    this.onToggleInstructions = this.onToggleInstructions.bind(this);
  }

  onToggleInstructions() {
    this.setState({
      showFaq: !this.state.showFaq,
    });
  }

  render() {
    const buttonText = this.state.showFaq ? 'hide faq' : 'show faq';
    const button = (
      <button className="btn btn-lrg button-item" onClick={this.onToggleInstructions}>
        {buttonText}
      </button>
    );
    const faqClass = this.state.showFaq ? 'new-section' : 'new-section hide';

    return (
      <div className="section">
          <h1>iv.multi</h1>
          determine a pokémon's potential faster in a group.<p />
          <b>this only works for wild pokémon that have been caught in the same spot (and not
          via incense).</b>

          <div className="new-section">
            {button}
          </div>
          <div className={faqClass}>
            faq coming soon
            <div className="new-section">{button}</div>
          </div>
      </div>
    );
  }
}

export default MultiHeader;
{'fraction_non_alphanumeric': 0.12102328632338472, 'fraction_numerical': 0.0032797638570022957, 'mean_word_length': 2.377630121816168, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '7302363', 'n_tokens_mistral': 941, 'n_tokens_neox': 901, 'n_words': 261}