<commit_before><?php




$CURRENT_VIEW_STATE = wpAPIPermissions::EditPage;

/**
 * Class wpAPIBasePage
 * The base page for the wpOOW application. Extended by PageTypes appropiately
 *
 * @package wpAPI\Core
 */
abstract class wpAPIBasePage
{

    protected $slug;
    protected $label;
    protected $parent_slug;
    private $viewState;

    function __construct($slug, $label)
    {
        $this->slug = $slug;
        $this->label = $label;
    }

    /**
     * Get the page slug/id
     * @return mixed
     */<commit_msg>slug id that had capital we not being mapped correctly, as wordpress would turn them to small caps<commit_after><?php




$CURRENT_VIEW_STATE = wpAPIPermissions::EditPage;

/**
 * Class wpAPIBasePage
 * The base page for the wpOOW application. Extended by PageTypes appropiately
 *
 * @package wpAPI\Core
 */
abstract class wpAPIBasePage
{

    protected $slug;
    protected $label;
    protected $parent_slug;
    private $viewState;

    function __construct($slug, $label)
    {
        $this->slug = sanitize_title_with_dashes($slug);
        $this->label = $label;
    }

    /**
     * Get the page slug/id
     * @return mixed
     */
{'fraction_non_alphanumeric': 0.10333048676345004, 'fraction_numerical': 0.0, 'mean_word_length': 2.880794701986755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3999902', 'n_tokens_mistral': 371, 'n_tokens_neox': 369, 'n_words': 101}