<commit_before><?php if($cardinality == '0..n'): ?>
   <lowerValue xmi:type="uml:LiteralInteger"          xmi:id="<?php print $object;?>_<?php print $property;?>_lower"/>
   <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="-1"/>                        
<?php endif; ?>
<?php if($cardinality == '1..n'): ?>
   <lowerValue xmi:type="uml:LiteralInteger"          xmi:id="<?php print $object;?>_<?php print $property;?>_lower" value="1"/>
   <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="-1"/>                        
<?php endif; ?>
<?php if($cardinality == '2..n'): ?>
   <lowerValue xmi:type="uml:LiteralInteger"          xmi:id="<?php print $object;?>_<?php print $property;?>_lower" value="2"/>
   <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="-1"/>                        
<?php endif; ?>   
<?php if($cardinality == '4..n'): ?>
   <lowerValue xmi:type="uml:LiteralInteger"          xmi:id="<?php print $object;?>_<?php print $property;?>_lower" value="4"/>
   <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="-1"/>                        
<?php endif; ?>
<?php if($cardinality == '0..1'): ?>
   <lowerValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_lower"/>
   <upperValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="1"/>                        
<?php endif; ?>                            
<?php if($cardinality == '1..1'): ?>
   <lowerValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_lower" value="1"/>
   <upperValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="1"/>                        
<?php endif; ?>    <commit_msg>first draft for issue #61<commit_after><?php $cardinality_parts = explode('..', $cardinality);?>

<?php if($cardinality_parts[0] == '0'):?>
    <lowerValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_lower"/>
<?php elseif(is_numeric($cardinality_parts[0])):?>
    <lowerValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_lower" value="<?php print $cardinality_parts[0];?>"/>
<?php endif;?>

<?php if($cardinality_parts[1] == 'n'):?>
    <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="-1"/>
<?php elseif(is_numeric($cardinality_parts[1])):?>
    <upperValue xmi:type="uml:LiteralInteger" xmi:id="<?php print $object;?>_<?php print $property;?>_upper" value="<?php print $cardinality_parts[1];?>"/> 
<?php endif;?> 
{'fraction_non_alphanumeric': 0.2222222222222222, 'fraction_numerical': 0.009691934925579786, 'mean_word_length': 4.700197238658777, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '5998200', 'n_tokens_mistral': 985, 'n_tokens_neox': 981, 'n_words': 181}