<commit_before><?php
$buttons[] = array("text"=>"Attach File","class"=>"create inline btn-xs","style"=>"new","id"=>"new-file_$id","href"=>site_url("file/create/$entity_type/$id"));
echo create_button_bar($buttons,"toolbar");?>
<? foreach($files as $file):?>
<div class="row file-row" id="file-row_<?=$id;?>">
<a href="<?php echo base_url("uploads/$file->filename") ?>" target="_blank">
<?=$file->description?>
</a>

<? echo create_button(array("text"=>"Delete","style"=>"delete","class"=>"delete-file delete inline btn-xs","id"=>"delete-file_$file->id","href"=>site_url("file/delete/$file->id")));?>

</div>
<? endforeach;<commit_msg>Minor tweaks after update to attaching invoices.<commit_after><?php
$buttons[] = array("text"=>"Attach File","class"=>"create inline btn-xs","style"=>"new","id"=>"new-file_$id","href"=>site_url("file/create/$entity_type/$id"));
echo create_button_bar($buttons);?>
<ul class="list-group">
<? foreach($files as $file):?>
<li class="row file-row list-group-item" id="file-row_<?=$id;?>">
<a href="<?php echo base_url("uploads/$file->filename") ?>" target="_blank">
<?=$file->description?>&nbsp;<i class='fa fa-cloud-download'></i>
</a>

<? echo create_button_bar(array(array("text"=>"Delete","style"=>"delete","class"=>"delete-file delete inline btn-xs","id"=>"delete-file_$file->id","href"=>site_url("file/delete/$file->id"))));?>

</li>
<? endforeach;?>
</ul>
{'fraction_non_alphanumeric': 0.2823275862068966, 'fraction_numerical': 0.0, 'mean_word_length': 9.7984496124031, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2466408', 'n_tokens_mistral': 495, 'n_tokens_neox': 493, 'n_words': 69}