<commit_before><?php
/**
 * List all registered (and user added) image sizes
 *
 * Created by PhpStorm.
 * User: alpipego
 * Date: 25.06.2017
 * Time: 12:42
 */
?>
<table class="widefat rzf-image-sizes">
    <thead>
    <tr>
        <th><?= __( 'Active', 'resizefly' ); ?></th>
        <th><?= __( 'Width', 'resizefly' ); ?></th>
        <th><?= __( 'Height', 'resizefly' ); ?></th>
        <th><?= __( 'Crop', 'resizefly' ); ?></th>
        <th><?= __( 'Name', 'resizefly' ); ?></th>
    </tr>
    </thead>
    <tfoot>
    <tr>
        <th><?= __( 'Active', 'resizefly' ); ?></th>
        <th><?= __( 'Width', 'resizefly' ); ?></th>
        <th><?= __( 'Height', 'resizefly' ); ?></th>
        <th><?= __( 'Crop', 'resizefly' ); ?></th>
        <th><?= __( 'Name', 'resizefly' ); ?></th>
    </tr>
    </tfoot>
    <tbody>
	<?php
	foreach ( $args['image_sizes'] as $name => $size ) :
		?>
        <tr>
            <td>
                <input type="checkbox" name="resizefly_sizes[<?= $name; ?>][active]" <?php checked( $size['active'], 1 ); ?>>
            </td>
            <td>
				<?= $size['width']; ?>
                <input type="hidden" name="resizefly_sizes[<?= $name; ?>][width]" value="<?= $size['width']; ?>">
            </td>
            <td>
				<?= $size['height']; ?>
                <input type="hidden" name="resizefly_sizes[<?= $name; ?>][height]" value="<?= $size['height']; ?>">
            </td>
            <td>
				<?php
				if ( $size['crop'] ) {
					if ( is_array( $size['crop'] ) ) {
						printf( '%s, %s', $size['crop'][0], $size['crop'][1] );
					} else {
						echo 'center, center';
					}
				}
				?>
                <input type="hidden" name="resizefly_sizes[<?= $name; ?>][crop]" value="<?= implode( ', ', (array) $size['crop'] ); ?>">
            </td>
            <td><?= $name; ?></td>
        </tr>
		<?php
	endforeach;
	?>
    </tbody>
</table>
<commit_msg>add id to table, improve code<commit_after><?php
/**
 * List all registered (and user added) image sizes
 *
 * Created by PhpStorm.
 * User: alpipego
 * Date: 25.06.2017
 * Time: 12:42
 *
 * @var array $args passed view arguments
 */
?>
<table class="widefat rzf-image-sizes" id="rzf-image-sizes">
    <thead>
    <tr>
        <th><?= __('Active', 'resizefly'); ?></th>
        <th><?= __('Width', 'resizefly'); ?></th>
        <th><?= __('Height', 'resizefly'); ?></th>
        <th><?= __('Crop', 'resizefly'); ?></th>
        <th><?= __('Name', 'resizefly'); ?></th>
    </tr>
    </thead>
    <tfoot>
    <tr>
        <th><?= __('Active', 'resizefly'); ?></th>
        <th><?= __('Width', 'resizefly'); ?></th>
        <th><?= __('Height', 'resizefly'); ?></th>
        <th><?= __('Crop', 'resizefly'); ?></th>
        <th><?= __('Name', 'resizefly'); ?></th>
    </tr>
    </tfoot>
    <tbody>
    <?php
    foreach ($args['image_sizes'] as $name => $size) :
        ?>
        <tr>
            <td>
                <input type="checkbox" name="resizefly_sizes[<?= $name; ?>][active]" <?php checked($size['active'], 1); ?>>
            </td>
            <td>
                <?= $size['width']; ?>
                <input type="hidden" name="resizefly_sizes[<?= $name; ?>][width]" value="<?= $size['width']; ?>">
            </td>
            <td>
                <?= $size['height']; ?>
                <input type="hidden" name="resizefly_sizes[<?= $name; ?>][height]" value="<?= $size['height']; ?>">
            </td>
            <td>
                <?php
                if ($size['crop']) {
                    if (is_array($size['crop'])) {
                        printf('%s, %s', $size['crop'][0], $size['crop'][1]);
                    } else {
                        echo 'center, center';
                    }
                }
                ?>
                <input type="hidden" name="resizefly_sizes[<?= $name; ?>][crop]" value="<?= implode(', ', (array)$size['crop']); ?>">
            </td>
            <td><?= $name; ?></td>
        </tr>
    <?php
    endforeach;
    ?>
    </tbody>
</table>

{'fraction_non_alphanumeric': 0.2585778219791149, 'fraction_numerical': 0.007458975634012929, 'mean_word_length': 1.9429407461594732, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 151, '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': '3287742', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1476, 'n_words': 292}