<commit_before><h1><?php echo ucfirst($this->crudGenerator->getDisplayNames()); ?> list</h1>
<?php echo '<?php if (!empty($this->successMessages)): ?>' . "\n"; ?>
    <?php echo '<?php foreach ($this->successMessages as $successMessages): ?>' . "\n"; ?>
        <div class="alert alert-success">
            <?php echo '<?php echo $successMessages; ?>' . "\n"; ?>
        </div>
    <?php echo '<?php endforeach; ?>' . "\n"; ?>
<?php echo '<?php endif; ?>' . "\n"; ?>
<table class="table table-striped table-bordered">
    <thead>
        <tr>
        <?php foreach($this->crudGenerator->getMetadata()->getColumnCollection() as $metadata): ?>
    <th><?php echo $this->crudGenerator->getAttributeName($metadata->getName()); ?></th>
        <?php endforeach; ?>
    <th>Actions</th>
        </tr>
    </thead>
    <tbody>
    <?php echo '<?php foreach($this->list' . $this->ucFirstModelName . 's as $' . $this->modelName . '): ?>' . "\n"; ?>
        <tr>
<?php
            $fieldsCollection = $this->crudGenerator->getMetadata()->getColumnCollection();
            foreach($this->crudGenerator->getMetadata()->getColumnCollection() as $metadata):
                if($metadata == reset($fieldsCollection)): ?>
            <td>
                <a href="<?php echo '<?php echo $this->url("' . $this->showRoute . '", array("id" => $' . $this->modelName . '->getId())); ?>'; ?>">
                    <?php echo '<?php echo $' . $this->modelName . '->get' . $metadata->getName(true) . '(); ?>' . "\n"; ?>
                </a>
            </td>
<?php elseif(in_array($metadata->getType(), array("date", "datetime"))): ?>
            <td><?php echo '<?php echo $' . $this->modelName . '->get' . $metadata->getName(true) . '()->format(\'Y-m-d H:i:s\'); ?>'; ?></td>
<?php else: ?>
            <td><?php echo '<?php echo $' . $this->modelName . '->get' . $metadata->getName(true) . '(); ?>'; ?></td>
<?php endif;
 if($metadata == end($fieldsCollection)): ?>
            <td>
<?php echo $this->render(__DIR__ . '/others/', 'actions.phtml'); ?>
            </td>
                <?php endif; ?>
           <?php endforeach; ?>
        </tr>
    <?php echo '<?php endforeach; ?>'; ?>
    </tbody>
</table>

<ul>
    <li>
        <a href="<?php echo '<?php echo $this->url("' . $this->newRoute . '", array()); ?>'; ?>">
            Create a new entry<commit_msg>Fix array manipulation for HHVM<commit_after><h1><?php echo ucfirst($this->crudGenerator->getDisplayNames()); ?> list</h1>
<?php echo '<?php if (!empty($this->successMessages)): ?>' . "\n"; ?>
    <?php echo '<?php foreach ($this->successMessages as $successMessages): ?>' . "\n"; ?>
        <div class="alert alert-success">
            <?php echo '<?php echo $successMessages; ?>' . "\n"; ?>
        </div>
    <?php echo '<?php endforeach; ?>' . "\n"; ?>
<?php echo '<?php endif; ?>' . "\n"; ?>
<table class="table table-striped table-bordered">
    <thead>
        <tr>
        <?php foreach($this->crudGenerator->getMetadata()->getColumnCollection() as $metadata): ?>
    <th><?php echo $this->crudGenerator->getAttributeName($metadata->getName()); ?></th>
        <?php endforeach; ?>
    <th>Actions</th>
        </tr>
    </thead>
    <tbody>
    <?php echo '<?php foreach($this->list' . $this->ucFirstModelName . 's as $' . $this->modelName . '): ?>' . "\n"; ?>
        <tr>
<?php
            $fieldsCollection = $this->crudGenerator->getMetadata()->getColumnCollection();
            $columnIndex                    = array_values($this->crudGenerator->getMetadata()->getColumnCollection()->getArrayCopy());
            $firstColumnCollection          = $columnIndex[0];
            foreach($this->crudGenerator->getMetadata()->getColumnCollection() as $metadata):
                if($metadata == $firstColumnCollection): ?>
            <td>
                <a href="<?php echo '<?php echo $this->url("' . $this->showRoute . '", array("id" => $' . $this->modelName . '->getId())); ?>'; ?>">
                    <?php echo '<?php echo $' . $this->modelName . '->get' . $metadata->getName(true) . '(); ?>' . "\n"; ?>
                </a>
            </td>
<?php elseif(in_array($metadata->getType(), array("date", "datetime"))): ?>
            <td><?php echo '<?php echo $' . $this->modelName . '->get' . $metadata->getName(true) . '()->format(\'Y-m-d H:i:s\'); ?>'; ?></td>
<?php else: ?>
            <td><?php echo '<?php echo $' . $this->modelName . '->get' . $metadata->getName(true) . '(); ?>'; ?></td>
<?php endif;
 if($metadata == end($fieldsCollection)): ?>
            <td>
<?php echo $this->render(__DIR__ . '/others/', 'actions.phtml'); ?>
            </td>
                <?php endif; ?>
           <?php endforeach; ?>
        </tr>
    <?php echo '<?php endforeach; ?>'; ?>
    </tbody>
</table>

<ul>
    <li>
        <a href="<?php echo '<?php echo $this->url("' . $this->newRoute . '", array()); ?>'; ?>">
            Create a new entry
{'fraction_non_alphanumeric': 0.2464860460378896, 'fraction_numerical': 0.001018537380321858, 'mean_word_length': 2.524766690595836, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 215, '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': '5219538', 'n_tokens_mistral': 1531, 'n_tokens_neox': 1531, 'n_words': 321}