<commit_before>import React from 'react';
import data from './data.json';
import Seleggtor from './Seleggtor'
import About from './About'

import 'mini.css'

class Eggs extends React.Component {
  constructor(props) {
    super(props);
    this.onSeleggtionChanged = this
      .onSeleggtionChanged
      .bind(this);
    this.state = {
      selectedZone: data["Pondry Hills"]
    }
  }
  render() {
    return (
      <div id='eggs'>
        <Seleggtor data={data} onChange={this.onSeleggtionChanged}/> 
        <div id="zones">
        {this.renderZone(this.state.selectedZone)}
        </div>
        <About />
      </div>
    );
  }
  onSeleggtionChanged(selectedZone) {
    this.setState({selectedZone: selectedZone});
  }
  renderAllZones(zones) {
    return Object
      .keys(zones)
      .map((i) => this.renderZone(zones[i]))
  }
  renderZone(zone) {
    return (
      <div className="zone">
        {this.renderRankContainer(zone.lowRankMonsters, "Low Rank", "lr-monsters")}
        {this.renderRankContainer(zone.highRankMonsters, "High Rank", "hr-monsters")}
      </div>
    );
  }
  renderRankContainer(monsters, rank, className) {
    if(!monsters || !monsters.length) return "";
    const fullClass = `monster-list ${className}`;
    return (
      <div className={fullClass}>
        <h3 className="rank">{rank}</h3>
        {this.renderMonsterList(monsters)}
      </div>
    );
  }
  renderMonsterList(monsters) {
    return (
      <ul>{monsters.map(this.renderMonster)}</ul>
    )
  }
  renderMonster(mon) {
    return (
      <li key={mon.name} className="single-monster">
        <h4>{mon.name}</h4>
        <img
          src={require(`./images/${mon.uri}`)}
          alt={`${mon.name} eggs`}
          className="eggmage"/>
      </li>
    );
  }
}

export default Eggs;<commit_msg>Adds new page title to Eggs<commit_after>import React from 'react';
import data from './data.json';
import Seleggtor from './Seleggtor'
import About from './About'

import 'mini.css'

class Eggs extends React.Component {
  constructor(props) {
    super(props);
    this.onSeleggtionChanged = this
      .onSeleggtionChanged
      .bind(this);
    this.state = {
      selectedZone: data["Pondry Hills"]
    }
  }
  componentDidMount() {
    document.title = this.props.title;
  }
  setTitle(to) {
    document.title = to;
  }
  render() {
    return (
      <div id='eggs'>
        <Seleggtor data={data} onChange={this.onSeleggtionChanged}/> 
        <div id="zones">
        {this.renderZone(this.state.selectedZone)}
        </div>
        <About />
      </div>
    );
  }
  onSeleggtionChanged(selectedZone) {
    this.setState({selectedZone: selectedZone});
  }
  renderAllZones(zones) {
    return Object
      .keys(zones)
      .map((i) => this.renderZone(zones[i]))
  }
  renderZone(zone) {
    return (
      <div className="zone">
        {this.renderRankContainer(zone.lowRankMonsters, "Low Rank", "lr-monsters")}
        {this.renderRankContainer(zone.highRankMonsters, "High Rank", "hr-monsters")}
      </div>
    );
  }
  renderRankContainer(monsters, rank, className) {
    if(!monsters || !monsters.length) return "";
    const fullClass = `monster-list ${className}`;
    return (
      <div className={fullClass}>
        <h3 className="rank">{rank}</h3>
        {this.renderMonsterList(monsters)}
      </div>
    );
  }
  renderMonsterList(monsters) {
    return (
      <ul>{monsters.map(this.renderMonster)}</ul>
    )
  }
  renderMonster(mon) {
    return (
      <li key={mon.name} className="single-monster">
        <h4>{mon.name}</h4>
        <img
          src={require(`./images/${mon.uri}`)}
          alt={`${mon.name} eggs`}
          className="eggmage"/>
      </li>
    );
  }
}
Eggs.defaultProps = {
  title:"MHST Egg Location Guide - PondryHills.com"
}
export default Eggs;
{'fraction_non_alphanumeric': 0.15708311552535284, 'fraction_numerical': 0.0020909566126502874, 'mean_word_length': 2.644761904761905, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 43, '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': '5853753', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1299, 'n_words': 220}