<commit_before><?php

/**
 * Core class that implements a Papi property.
 */
class Papi_Core_Property {

	/**
	 * The conditional class.
	 *
	 * @var Papi_Core_Conditional
	 */
	protected $conditional;

	/**
	 * The convert type.
	 *
	 * @var string
	 */
	public $convert_type = 'string';

	/**
	 * Default import settings.
	 *
	 * @var array
	 */
	private $default_import_settings = [
		'property_array_slugs' => false
	];

	/**
	 * Default options.
	 *
	 * @var array
	 */
	protected $default_options = [
		'after_class'  => '',
		'after_html'   => '',
		'before_class' => '',
		'before_html'  => '',
		'capabilities' => [],
		'default'      => null,
		'description'  => '',
		'disabled'     => false,
		'display'      => true,
		'lang'         => false,
		'layout'       => 'horizontal', // or 'vertical'
		'overwrite'    => false,
		'post_type'    => '',
		'raw'          => false,
		'required'     => false,
		'rules'        => [],
		'settings'     => [],
		'sidebar'      => true,
		'slug'         => '',
		'sort_order'   => -1,
		'title'        => '',
		'type'         => '',
		'value'        => null
	];

	/**
	 * Default value.
	 *
	 * @var null
	 */
	public $default_value;

	/**
	 * Display the property in WordPress admin.
	 *
	 * @var bool
	 */
	protected $display = true;

	/**
	 * Current property options object.
	 *
	 * @var stdClass
	 */
	private $options;

	/**
	 * The post id.
	 *
	 * @var int
	 */
	private $post_id;
<commit_msg>Add `show_in_rest` to core property class<commit_after><?php

/**
 * Core class that implements a Papi property.
 */
class Papi_Core_Property {

	/**
	 * The conditional class.
	 *
	 * @var Papi_Core_Conditional
	 */
	protected $conditional;

	/**
	 * The convert type.
	 *
	 * @var string
	 */
	public $convert_type = 'string';

	/**
	 * Default import settings.
	 *
	 * @var array
	 */
	private $default_import_settings = [
		'property_array_slugs' => false
	];

	/**
	 * Default options.
	 *
	 * @var array
	 */
	protected $default_options = [
		'after_class'   => '',
		'after_html'    => '',
		'before_class'  => '',
		'before_html'   => '',
		'capabilities'  => [],
		'default'       => null,
		'description'   => '',
		'disabled'      => false,
		'display'       => true,
		'lang'          => false,
		'layout'        => 'horizontal', // or 'vertical'
		'overwrite'     => false,
		'post_type'     => '',
		'raw'           => false,
		'required'      => false,
		'rules'         => [],
		'settings'      => [],
		'sidebar'       => true,
		'show_in_rest'  => true,
		'slug'          => '',
		'sort_order'    => -1,
		'title'         => '',
		'type'          => '',
		'value'         => null
	];

	/**
	 * Default value.
	 *
	 * @var null
	 */
	public $default_value;

	/**
	 * Display the property in WordPress admin.
	 *
	 * @var bool
	 */
	protected $display = true;

	/**
	 * Current property options object.
	 *
	 * @var stdClass
	 */
	private $options;

	/**
	 * The post id.
	 *
	 * @var int
	 */
	private $post_id;

{'fraction_non_alphanumeric': 0.18221476510067114, 'fraction_numerical': 0.0006711409395973154, 'mean_word_length': 2.070030895983522, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 52, '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': '4424834', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1012, 'n_words': 223}