<commit_before><?php
// auto-generated by sfPropelAdmin
// date: 2017/03/31 19:11:08
/** @var sfContext $sf_context */
/** @var sfParameterHolder $sf_flash */
/** @var sfParameterHolder $sf_params */
/** @var myWebRequest $sf_request */
/** @var myUser $sf_user */
/** @var sfPartialView $sf_view */
/** @var Agent $agent */
?>
<td>
  <ul class="sf_admin_td_actions">
    <li> <?php echo auth()->user()->can('edit', \App\Models\Project::find($agent->getId())) ?
          sf_link_to(image_tag('/jpAdminPlugin/images/edit_icon.png',
                               [ 'alt' => __s('edit'), 'title' => __s('edit') ]),
                     '@agent_edit?id=' . $agent->getId()) : '&nbsp;' ?></li>
  </ul>
</td><commit_msg>make sure there’s no error if user is not logged in<commit_after><?php
// auto-generated by sfPropelAdmin
// date: 2017/03/31 19:11:08
/** @var sfContext $sf_context */
/** @var sfParameterHolder $sf_flash */
/** @var sfParameterHolder $sf_params */
/** @var myWebRequest $sf_request */
/** @var myUser $sf_user */
/** @var sfPartialView $sf_view */
/** @var Agent $agent */
?>
<td>
  <ul class="sf_admin_td_actions">
    <li> <?php echo auth()->user() && auth()->user()->can('edit', \App\Models\Project::find($agent->getId())) ?
          sf_link_to(image_tag('/jpAdminPlugin/images/edit_icon.png',
                               [ 'alt' => __s('edit'), 'title' => __s('edit') ]),
                     '@agent_edit?id=' . $agent->getId()) : '&nbsp;' ?></li>
  </ul>
</td>
{'fraction_non_alphanumeric': 0.22244623655913978, 'fraction_numerical': 0.01881720430107527, 'mean_word_length': 3.068306010928962, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '371170', 'n_tokens_mistral': 525, 'n_tokens_neox': 510, 'n_words': 104}