<commit_before>export function InfoLocationsComponent ({ generation, pokemon, region }) {
  const gen6 = (
    <div>
      <h3>Pokémon Omega Ruby</h3>
      <ul>
        {pokemon.or_locations.map((location) => <li key={location}>{location}</li>)}
      </ul>
      <h3>Pokémon Alpha Sapphire</h3>
      <ul>
        {pokemon.as_locations.map((location) => <li key={location}>{location}</li>)}
      </ul>
      <h3>Pokémon X</h3>
      <ul>
        {pokemon.x_locations.map((location) => <li key={location}>{location}</li>)}
      </ul>
      <h3>Pokémon Y</h3>
      <ul>
        {pokemon.y_locations.map((location) => <li key={location}>{location}</li>)}
      </ul>
    </div>
  );

  const gen7 = (
    <div>
      <h3>Pokémon Sun</h3>
      <ul>
        {pokemon.sun_locations.map((location) => <li key={location}>{location}</li>)}
      </ul>
      <h3>Pokémon Moon</h3>
      <ul>
        {pokemon.moon_locations.map((location) => <li key={location}>{location}</li>)}
      </ul>
    </div>
  );

  return (
    <div className="info-locations">
      {generation === 7 ? gen7 : null}
      {region === 'national' ? gen6 : null}
    </div>
  );
}<commit_msg>fix(locations): add empty state to locations<commit_after>export function InfoLocationsComponent ({ generation, pokemon, region }) {
  const orLocations = (
    pokemon.or_locations.length === 0 ? <li><i>Not available</i></li> : pokemon.or_locations.map((location) => <li key={location}>{location}</li>)
  );

  const asLocations = (
    pokemon.as_locations.length === 0 ? <li><i>Not available</i></li> : pokemon.as_locations.map((location) => <li key={location}>{location}</li>)
  );

  const xLocations = (
    pokemon.x_locations.length === 0 ? <li><i>Not available</i></li> : pokemon.x_locations.map((location) => <li key={location}>{location}</li>)
  );

  const yLocations = (
    pokemon.y_locations.length === 0 ? <li><i>Not available</i></li> : pokemon.y_locations.map((location) => <li key={location}>{location}</li>)
  );

  const sunLocations = (
    pokemon.sun_locations.length === 0 ? <li><i>Not available</i></li> : pokemon.sun_locations.map((location) => <li key={location}>{location}</li>)
  );

  const moonLocations = (
    pokemon.moon_locations.length === 0 ? <li><i>Not available</i></li> : pokemon.moon_locations.map((location) => <li key={location}>{location}</li>)
  );

  const gen6 = (
    <div>
      <h3>Pokémon Omega Ruby</h3>
      <ul>
        {orLocations}
      </ul>
      <h3>Pokémon Alpha Sapphire</h3>
      <ul>
        {asLocations}
      </ul>
      <h3>Pokémon X</h3>
      <ul>
        {xLocations}
      </ul>
      <h3>Pokémon Y</h3>
      <ul>
        {yLocations}
      </ul>
    </div>
  );

  const gen7 = (
    <div>
      <h3>Pokémon Sun</h3>
      <ul>
        {sunLocations}
      </ul>
      <h3>Pokémon Moon</h3>
      <ul>
        {moonLocations}
      </ul>
    </div>
  );

  return (
    <div className="info-locations">
      {generation === 7 ? gen7 : null}
      {region === 'national' ? gen6 : null}
    </div>
  );
}
{'fraction_non_alphanumeric': 0.1979645436638214, 'fraction_numerical': 0.013131976362442548, 'mean_word_length': 2.679951690821256, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 123, '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': '2742301', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1109, 'n_words': 187}