<commit_before><?php $sep=';';?>
Category<?php echo $sep;?>
Collection ID<?php echo $sep;?>
Collection Name<?php echo $sep;?>
Taxonomy ID<?php echo $sep;?>
Taxonomy Name<?php echo $sep;?>
With Types<?php echo $sep;?>
Sampling Location ID<?php echo $sep;?>
Sampling Location Code<?php echo $sep;?>
Country<?php echo $sep;?>
Specimens Codes<?php echo $sep;?>
Chronostratigraphy ID<?php echo $sep;?>
Chronostratigraphy Name<?php echo $sep;?>
I.G. ID<?php echo $sep;?>
I.G. Number<?php echo $sep;?>
Lithostratigraphy ID<?php echo $sep;?>
Lithostratigraphy Name<?php echo $sep;?>
Lithology ID<?php echo $sep;?>
Lithology Name<?php echo $sep;?>
Mineralogy ID<?php echo $sep;?>
Mineralogy Name<?php echo $sep;?>
Expedition ID<?php echo $sep;?>
Expedition Name<?php echo $sep;?>
Acquisition Category<?php echo $sep;?>
<?php if($source != 'specimen'):?>
Type Grouped<?php echo $sep;?>
Sex<?php echo $sep;?>
Developpement State<?php echo $sep;?>
Individual Stage<?php echo $sep;?>
SocialStatus<?php echo $sep;?>
RockForm<?php echo $sep;?>
Ind Count Min<?php echo $sep;?>
Ind Count Max<?php echo $sep;?>
<?php elseif($source =='part'):?>
Part<?php echo $sep;?>
Part Status<?php echo $sep;?>
<?php if ($sf_user->isAtLeast(Users::ENCODER)) : ?>
Building<?php echo $sep;?>
Floor<?php echo $sep;?>
Room<?php echo $sep;?>
Row<?php echo $sep;?>
Shelf<?php echo $sep;?>
Container<?php echo $sep;?>
Container Type<?php echo $sep;?>
Container Storage<?php echo $sep;?>
Sub Container<?php echo $sep;?>
Sub Container Type<?php echo $sep;?>
Sub Container Storage<?php echo $sep;?>
Part Codes<?php echo $sep;?>
<?php endif;?>
<?php endif;?>

<?php foreach($specimensearch as $item):?>
<?php $item = $item->getRawValue();?>
<?php echo $item->getCategory().$sep;?>
<?php echo $item->getCollectionRef().$sep;?>
<?php echo $item->getCollectionName().$sep;?>
<?php echo $item->getTaxonRef().$sep;?>
<?php echo $item->getTaxonName().$sep;?>
<?php echo ($item->getWithTypes()? 'yes':'no').$sep;?>
<?php echo $item->getGtuRef().$sep;?>
<?php echo $item->getGtuCode().$sep;?>
<?php echo str_replace(';', ',', $item->getGtuCountryTagValue('')).$sep; ?>
<?php if(isset($codes[$item->getSpecRef()])) foreach($codes[$item->getSpecRef()] as $code) echo $code->getFullCode().',';?><?php echo $sep;?>
<?php echo $item->getChronoRef().$sep;?>
<?php echo $item->getChronoName().$sep;?>
<?php echo $item->getIgRef().$sep;?>
<?php echo $item->getIgNum().$sep;?>
<?php echo $item->getLithoRef().$sep;?>
<?php echo $item->getLithoName().$sep;?>
<?php echo $item->getLithologyRef().$sep;?>
<?php echo $item->getLithologyName().$sep;?>
<?php echo $item->getMineralRef().$sep;?>
<?php echo $item->getMineralName().$sep;?>
<?php echo $item->getExpeditionRef().$sep;?>
<?php echo $item->getExpeditionName().$sep;?>
<?php echo $item->getAcquisitionCategory().$sep;?>
<?php if($source != 'specimen'):?>
<?php echo $item->getIndividualTypeGroup().$sep;;?>
<?php echo $item->getIndividualSex().$sep;?>
<?php echo $item->getIndividualState().$sep;?>
<?php echo $item->getIndividualStage().$sep;?>
<?php echo $item->getIndividualSocialStatus().$sep;?>
<?php echo $item->getIndividualRockForm().$sep;?>
<?php echo $item->getIndividualCountMin().$sep;?>
<?php echo $item->getIndividualCountMax().$sep;?>
<?php elseif($source =='part'):?>
<?php echo $specimen->getPart();?>
<?php echo $specimen->getPartStatus();?>
<?php if ($sf_user->isAtLeast(Users::ENCODER)) : ?>
<?php echo $specimen->getBuilding();?>
<?php echo $specimen->getFloor();?>
<?php echo $specimen->getRoom();?>
<?php echo $specimen->getRow();?>
<?php echo $specimen->getShelf();?>
<?php echo $specimen->getContainer();?>
<?php echo $specimen->getContainerType();?>
<?php echo $specimen->getContainerStorage();?>
<?php echo $specimen->getSubContainer();?>
<?php echo $specimen->getSubContainerType();?>
<?php echo $specimen->getSubContainerStorage();?>
<?php if(isset($part_codes[$item->getSpecRef()])) foreach($part_codes[$item->getSpecRef()] as $code) echo $code->getFullCode().',';?><?php echo $sep;?>
<?php endif;?>
<?php endif;?>

<?php endforeach;?><commit_msg>Correct csv export for parts<commit_after><?php $sep=';';?>
Category<?php echo $sep;?>
Collection ID<?php echo $sep;?>
Collection Name<?php echo $sep;?>
Taxonomy ID<?php echo $sep;?>
Taxonomy Name<?php echo $sep;?>
With Types<?php echo $sep;?>
Sampling Location ID<?php echo $sep;?>
Sampling Location Code<?php echo $sep;?>
Country<?php echo $sep;?>
Specimens Codes<?php echo $sep;?>
Chronostratigraphy ID<?php echo $sep;?>
Chronostratigraphy Name<?php echo $sep;?>
I.G. ID<?php echo $sep;?>
I.G. Number<?php echo $sep;?>
Lithostratigraphy ID<?php echo $sep;?>
Lithostratigraphy Name<?php echo $sep;?>
Lithology ID<?php echo $sep;?>
Lithology Name<?php echo $sep;?>
Mineralogy ID<?php echo $sep;?>
Mineralogy Name<?php echo $sep;?>
Expedition ID<?php echo $sep;?>
Expedition Name<?php echo $sep;?>
Acquisition Category<?php echo $sep;?>
<?php if($source != 'specimen'):?>
Type Grouped<?php echo $sep;?>
Sex<?php echo $sep;?>
Developpement State<?php echo $sep;?>
Individual Stage<?php echo $sep;?>
SocialStatus<?php echo $sep;?>
RockForm<?php echo $sep;?>
Ind Count Min<?php echo $sep;?>
Ind Count Max<?php echo $sep;?>
<?php if($source =='part'):?>
Part<?php echo $sep;?>
Part Status<?php echo $sep;?>
<?php if ($sf_user->isAtLeast(Users::ENCODER)) : ?>
Building<?php echo $sep;?>
Floor<?php echo $sep;?>
Room<?php echo $sep;?>
Row<?php echo $sep;?>
Shelf<?php echo $sep;?>
Container<?php echo $sep;?>
Container Type<?php echo $sep;?>
Container Storage<?php echo $sep;?>
Sub Container<?php echo $sep;?>
Sub Container Type<?php echo $sep;?>
Sub Container Storage<?php echo $sep;?>
Part Codes<?php echo $sep;?>
<?php endif;?>
<?php endif;?>
<?php endif;?>

<?php foreach($specimensearch as $item):?>
<?php $item = $item->getRawValue();?>
<?php echo $item->getCategory().$sep;?>
<?php echo $item->getCollectionRef().$sep;?>
<?php echo $item->getCollectionName().$sep;?>
<?php echo $item->getTaxonRef().$sep;?>
<?php echo $item->getTaxonName().$sep;?>
<?php echo ($item->getWithTypes()? 'yes':'no').$sep;?>
<?php echo $item->getGtuRef().$sep;?>
<?php echo $item->getGtuCode().$sep;?>
<?php echo str_replace(';', ',', $item->getGtuCountryTagValue('')).$sep; ?>
<?php if(isset($codes[$item->getSpecRef()])) foreach($codes[$item->getSpecRef()] as $code) echo $code->getFullCode().',';?><?php echo $sep;?>
<?php echo $item->getChronoRef().$sep;?>
<?php echo $item->getChronoName().$sep;?>
<?php echo $item->getIgRef().$sep;?>
<?php echo $item->getIgNum().$sep;?>
<?php echo $item->getLithoRef().$sep;?>
<?php echo $item->getLithoName().$sep;?>
<?php echo $item->getLithologyRef().$sep;?>
<?php echo $item->getLithologyName().$sep;?>
<?php echo $item->getMineralRef().$sep;?>
<?php echo $item->getMineralName().$sep;?>
<?php echo $item->getExpeditionRef().$sep;?>
<?php echo $item->getExpeditionName().$sep;?>
<?php echo $item->getAcquisitionCategory().$sep;?>
<?php if($source != 'specimen'):?>
<?php echo $item->getIndividualTypeGroup().$sep;;?>
<?php echo $item->getIndividualSex().$sep;?>
<?php echo $item->getIndividualState().$sep;?>
<?php echo $item->getIndividualStage().$sep;?>
<?php echo $item->getIndividualSocialStatus().$sep;?>
<?php echo $item->getIndividualRockForm().$sep;?>
<?php echo $item->getIndividualCountMin().$sep;?>
<?php echo $item->getIndividualCountMax().$sep;?>
<?php if($source =='part'):?>
<?php echo $item->getPart().$sep;?>
<?php echo $item->getPartStatus().$sep;?>
<?php if ($sf_user->isAtLeast(Users::ENCODER)) : ?>
<?php echo $item->getBuilding().$sep;?>
<?php echo $item->getFloor().$sep;?>
<?php echo $item->getRoom().$sep;?>
<?php echo $item->getRow().$sep;?>
<?php echo $item->getShelf().$sep;?>
<?php echo $item->getContainer().$sep;?>
<?php echo $item->getContainerType().$sep;?>
<?php echo $item->getContainerStorage().$sep;?>
<?php echo $item->getSubContainer().$sep;?>
<?php echo $item->getSubContainerType().$sep;?>
<?php echo $item->getSubContainerStorage().$sep;?>
<?php if(isset($part_codes[$item->getSpecRef()])) foreach($part_codes[$item->getSpecRef()] as $code) echo $code->getFullCode().',';?><?php echo $sep;?>
<?php endif;?>
<?php endif;?>
<?php endif;?>

<?php endforeach;?>
{'fraction_non_alphanumeric': 0.2499389797412741, 'fraction_numerical': 0.0, 'mean_word_length': 7.7366737739872065, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 321, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1088340', 'n_tokens_mistral': 2989, 'n_tokens_neox': 2898, 'n_words': 727}