<commit_before><?php 
class ImportDnaXml implements IImportModels
{
  public function getName()
  {
    return "DNA XML";
  }

  public function getLevels()
  {
    $this->levels = array(
      'specimens'   => 'specimen',
      'individuals' => '  individuals',
      'parts'       => '    parts',
      'tissues'      => '      tissues',
      'samples'     => '         dna samples',
    );
    foreach($this->levels as $k=>$l)
      $this->levels[$k] = str_replace(' ', '&nbsp;',$l);
    return $this->levels ;
  }

  public function getColumnsForLevel($level)
  {
    switch($level)
    {
      case 'specimens':   return $this->getColumnsForSpecimens();
      case 'individuals': return $this->getColumnsForIndividuals();
      case 'parts':       return $this->getColumnsForParts();
      case 'tissues':     return $this->getColumnsForTissues();
      case 'samples':     return $this->getColumnsForSamples();
      default: throw new Exception ('Unable to get columns, Unknown Level');
    }
  }

  protected function getColumnsForSpecimens()
  {
     return array(
        'category',
        'expedition_name',
        'station_visible',
        'gtu',
        'taxon',
        'chrono',
        'litho',
        'lithology',
        'mineral',
        'ig',
        'acquisition',
      );
  }

  protected function getColumnsForIndividuals()
  {
    return array(
      'individual_type',
      'individual_sex',
      'individual_state',
      'individual_stage',
      'individual_social_status',
      'individual_rock_form',
      'individual_count_min',
      'individual_count_max',
    );
  }

  protected function getColumnsForParts()
  {
    return array(
      'part',
      'part_status',
      'building',
      'floor',
      'room',
      'row',
      'shelf',
      'container_type',
      'container_storage',
      'container',
      'sub_container_type',
      'sub_container_storage',
      'sub_container',
      'part_count_min',
      'part_count_max',
    );
  }

  protected function getColumnsForTissues()
  {<commit_msg>Brought tiny correction in ImportDnaXml.class.php<commit_after><?php 
class ImportDnaXml implements IImportModels
{
  public function getName()
  {
    return "DNA XML";
  }

  public function getLevels()
  {
    $this->levels = array(
      'specimens'   => 'specimen',
      'individuals' => '  individuals',
      'parts'       => '    parts',
      'tissues'      => '      tissues',
      'samples'     => '         dna samples',
    );
    foreach($this->levels as $k=>$l)
      $this->levels[$k] = str_replace(' ', '&nbsp;',$l);
    return $this->levels ;
  }

  public function getColumnsForLevel($level)
  {
    switch($level)
    {
      case 'specimens':   return $this->getColumnsForSpecimens();
      case 'individuals': return $this->getColumnsForIndividuals();
      case 'parts':       return $this->getColumnsForParts();
      case 'tissues':     return $this->getColumnsForTissues();
      case 'samples':     return $this->getColumnsForSamples();
      default: throw new Exception ('Unable to get columns, Unknown Level');
    }
  }

  protected function getColumnsForSpecimens()
  {
     return array(
        'category',
        'expedition_name',
        'station_visible',
        'gtu',
        'taxon',
        'chrono',
        'litho',
        'lithology',
        'mineral',
        'ig',
        'acquisition',
      );
  }

  protected function getColumnsForIndividuals()
  {
    return array(
      'individual_type',
      'individual_sex',
      'individual_state',
      'individual_stage',
      'individual_social_status',
      'individual_rock_form',
      'individual_count_min',
      'individual_count_max',
    );
  }

  protected function getColumnsForParts()
  {
    return array(
      'part',
      'specimen_status',
      'building',
      'floor',
      'room',
      'row',
      'shelf',
      'container_type',
      'container_storage',
      'container',
      'sub_container_type',
      'sub_container_storage',
      'sub_container',
      'part_count_min',
      'part_count_max',
    );
  }

  protected function getColumnsForTissues()
  {
{'fraction_non_alphanumeric': 0.13468013468013468, 'fraction_numerical': 0.0, 'mean_word_length': 2.3567393058918484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '5986361', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1263, 'n_words': 246}