<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed');

?>
<table class="list">
<thead>
<tr>
<th>Subject</th>
<th style="width:15ex">School Year</th>
<th>Pass/Fail?</th>
<th></th>
</tr>
</thead>
<tbody>
<? foreach($grade_preferences as $preference):?>

<tr id="grade-preference-row_<?=$preference->id;?>">
<td><?=$preference->subject;?></td>
<td><?=format_schoolyear($preference->school_year);?></td>
<td><? if( $preference->pass_fail == 1):?>
Yes
<? else: ?>
No
<?endif;?>
</td>
<td><span class="button edit small edit-grade-preference" id="edit-grade-preference_<?=$preference->id;?>">Edit</span></td>
<td>
<span class="button small delete delete-grade-preference" id="delete-grade-preference_<?=$preference->id;?>">Delete</span><commit_msg>Cleanup display after adding delete grade preference buttons<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed');

?>
<table class="list">
<thead>
<tr>
<th>Subject</th>
<th style="width:15ex">School Year</th>
<th>Pass/Fail?</th>
<th></th>
</tr>
</thead>
<tbody>
<? foreach($grade_preferences as $preference):?>

<tr id="grade-preference-row_<?=$preference->id;?>">
<td><?=$preference->subject;?></td>
<td><?=format_schoolyear($preference->school_year);?></td>
<td><? if( $preference->pass_fail == 1):?>
Yes
<? else: ?>
No
<?endif;?>
</td>
<td style="width: 150px;">
<span class="button edit small edit-grade-preference" id="edit-grade-preference_<?=$preference->id;?>">Edit</span>&nbsp;
<span class="button small delete delete-grade-preference" style="float:none;" id="delete-grade-preference_<?=$preference->id;?>">Delete</span>
{'fraction_non_alphanumeric': 0.24448529411764705, 'fraction_numerical': 0.0055147058823529415, 'mean_word_length': 8.072222222222223, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 89, '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': '1550111', 'n_tokens_mistral': 594, 'n_tokens_neox': 587, 'n_words': 109}