<commit_before><?php namespace Orchestra\Story;

use Illuminate\Support\Fluent;
use Orchestra\Extension\Plugin;
use Orchestra\Story\Model\Content;
use Illuminate\Contracts\Support\Arrayable;
use Orchestra\Story\Http\Handlers\StoryMenuHandler;
use Orchestra\Contracts\Html\Form\Builder as FormBuilder;

class StoryPlugin extends Plugin
{
    /**
     * Extension name.
     *
     * @var string
     */
    protected $extension = 'orchestra/story';

    /**
     * Configuration.
     *
     * @var array
     */
    protected $config = [
        'default_format' => 'orchestra/story::config.default_format',
        'default_page'   => 'orchestra/story::config.default_page',
        'per_page'       => 'orchestra/story::config.per_page',
        'page_permalink' => 'orchestra/story::config.permalink.page',
        'post_permalink' => 'orchestra/story::config.permalink.post',
    ];

    /**
     * Menu handler.
     *
     * @var object|null
     */
    protected $menu = StoryMenuHandler::class;

    /**
     * Validation rules.
     *
     * @var array
     */
    protected $rules = [
        'page_permalink' => ['required'],
        'post_permalink' => ['required'],
    ];

    /**
     * Sidebar placeholders.
     *
     * @var array
     */
    protected $sidebar = [
        'permalink-help' => 'orchestra/story::widgets.help',
    ];

    /**
     * Setup the form.
     *
     * @param  \Illuminate\Support\Fluent  $model
     * @param  \Orchestra\Contracts\Html\Form\Builder  $form
     *
     * @return void
     */
    public function form(Fluent $model, FormBuilder $form)
    {
        $form->extend(function ($form) use ($model) {
            $form->fieldset('Page Management', function ($fieldset) {
                $pages = Content::page()->publish()->lists('title', 'slug');

                if ($pages instanceof Arrayable) {
                    $pages = $pages->toArray();
                }
<commit_msg>Swap visibility.<commit_after><?php namespace Orchestra\Story;

use Illuminate\Support\Fluent;
use Orchestra\Extension\Plugin;
use Orchestra\Story\Model\Content;
use Illuminate\Contracts\Support\Arrayable;
use Orchestra\Story\Http\Handlers\StoryMenuHandler;
use Orchestra\Contracts\Html\Form\Builder as FormBuilder;

class StoryPlugin extends Plugin
{
    /**
     * Extension name.
     *
     * @var string
     */
    protected $extension = 'orchestra/story';

    /**
     * Configuration.
     *
     * @var array
     */
    protected $config = [
        'default_format' => 'orchestra/story::config.default_format',
        'default_page'   => 'orchestra/story::config.default_page',
        'per_page'       => 'orchestra/story::config.per_page',
        'page_permalink' => 'orchestra/story::config.permalink.page',
        'post_permalink' => 'orchestra/story::config.permalink.post',
    ];

    /**
     * Menu handler.
     *
     * @var object|null
     */
    protected $menu = StoryMenuHandler::class;

    /**
     * Validation rules.
     *
     * @var array
     */
    protected $rules = [
        'page_permalink' => ['required'],
        'post_permalink' => ['required'],
    ];

    /**
     * Sidebar placeholders.
     *
     * @var array
     */
    protected $sidebar = [
        'permalink-help' => 'orchestra/story::widgets.help',
    ];

    /**
     * Setup the form.
     *
     * @param  \Illuminate\Support\Fluent  $model
     * @param  \Orchestra\Contracts\Html\Form\Builder  $form
     *
     * @return void
     */
    protected function form(Fluent $model, FormBuilder $form)
    {
        $form->extend(function ($form) use ($model) {
            $form->fieldset('Page Management', function ($fieldset) {
                $pages = Content::page()->publish()->lists('title', 'slug');

                if ($pages instanceof Arrayable) {
                    $pages = $pages->toArray();
                }

{'fraction_non_alphanumeric': 0.1459194214876033, 'fraction_numerical': 0.0, 'mean_word_length': 2.2248126561199, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '7016015', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1176, 'n_words': 205}