<commit_before><?php
/*
 * File:
 *   src/Templates/Users/Files/edit.ctp
 * Description:
 *   Form to edit a file
 * Layout element:
 *   defaultform.ctp
 */

// Page title
$this->assign('title', __d('posts', 'Edit file  "{0}"', $file->name));


// Actions block
// -------------
$this->start('pageActions');
echo $this->Form->postLink(__d('elabs', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-trash"></span>', 'Delete']), ['action' => 'delete', $file->id], ['confirm' => __d('elabs', 'Are you sure you want to delete # {0}?', $file->id), 'escape' => false, 'class' => 'btn btn-danger btn-sm btn-block']);
$this->end();

// Related links block
// -------------------
$this->start('pageLinks');
$linkOptions = ['class' => 'list-group-item', 'escape' => false];
echo $this->Html->link(__d('files', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-list"></span>', 'Your files']), ['action' => 'index'], $linkOptions);
echo $this->Html->link(__d('files', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-plus"></span>', 'New file']), ['action' => 'add'], $linkOptions);
echo $this->Html->link(__d('licenses', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-list"></span>', 'List available licenses']), ['prefix' => false, 'controller' => 'Licenses', 'action' => 'index'], $linkOptions);<commit_msg>Minor fix<commit_after><?php
/*
 * File:
 *   src/Templates/Users/Files/edit.ctp
 * Description:
 *   Form to edit a file
 * Layout element:
 *   defaultform.ctp
 */

// Page title
$this->assign('title', __d('posts', 'Edit file  "{0}"', $file->name));

// Actions block
// -------------
$this->start('pageActions');
echo $this->Form->postLink(__d('elabs', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-trash"></span>', 'Delete']), ['action' => 'delete', $file->id], ['confirm' => __d('elabs', 'Are you sure you want to delete # {0}?', $file->id), 'escape' => false, 'class' => 'btn btn-danger btn-sm btn-block']);
$this->end();

// Related links block
// -------------------
$this->start('pageLinks');
$linkOptions = ['class' => 'list-group-item', 'escape' => false];
echo $this->Html->link(__d('files', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-list"></span>', 'Your files']), ['action' => 'index'], $linkOptions);
echo $this->Html->link(__d('files', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-plus"></span>', 'New file']), ['action' => 'add'], $linkOptions);
echo $this->Html->link(__d('licenses', '{0}&nbsp;{1}', ['<span class="fa fa-fw fa-list"></span>', 'List available licenses']), ['prefix' => false, 'controller' => 'Licenses', 'action' => 'index'], $linkOptions);
{'fraction_non_alphanumeric': 0.2994106090373281, 'fraction_numerical': 0.007858546168958742, 'mean_word_length': 4.522776572668112, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 71, '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': '2114844', 'n_tokens_mistral': 868, 'n_tokens_neox': 878, 'n_words': 206}