<commit_before><?php

namespace bizley\quill;

use yii\base\InvalidConfigException;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\web\JsExpression;
use yii\web\View;
use yii\widgets\InputWidget;

/**
 * Quill 1.0 editor implementation for Yii 2.
 * 
 * Use it as an active field:
 * <?= $form->field($model, $attribute)->widget(\bizley\quill\Quill::className(), []) ?>
 * or as a standalone widget:
 * <?= \bizley\quill\Quill::widget(['name' => 'editor']) ?>
 * 
 * See the documentation for more details.
 * 
 * @author <NAME>
 * @version 2.0
 * @license Apache 2.0
 * https://github.com/bizley/yii2-quill
 * 
 * Quill can be found at
 * https://quilljs.com/
 * https://github.com/quilljs/quill/
 * 
 * For previous Quill beta version install bizley/quill ^1.0.
 */
class Quill extends InputWidget
{
    const THEME_SNOW = 'snow';
    const THEME_BUBBLE = 'bubble';
    
    /**
     * @var string Theme to be set.
     * See https://quilljs.com/docs/themes/ for more info.
     * Set it to 'snow' [Quill::THEME_SNOW] to get snow theme.
     * Set it to 'bubble' [Quill::THEME_BUBBLE] to get bubble theme.
     * Set it to false or null to remove theme.
     * This property is skipped if $configuration is set.
     */
    public $theme = self::THEME_SNOW;
    
    const TOOLBAR_FULL = 'FULL';
    const TOOLBAR_BASIC = 'BASIC';
    
    /**
     * @var bool|string|array Toolbar buttons.
     * Set true to get theme default buttons.
     * You can use above constants for predefined set of buttons.
     * For other options see README and https://quilljs.com/docs/modules/toolbar/
     * @since 2.0
     */
    public $toolbarOptions = true;
    
    /**
     * @var string Placeholder text to be displayed in the editor field.
     * Leave empty for default value.
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $placeholder;
    
    /**
     * @var string DOM Element that editor ui elements, such as tooltips, should be confined within.
     * It will be automatically wrapped in JsExpression.
     * Leave empty for default value.
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $bounds;
    
    /**
     * @var string Static method enabling logging messages at a given level: 'error', 'warn', 'log', or 'info'.
     * Leave empty for default value (false).
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $debug;
    
    /**
     * @var array Whitelist of formats to allow in the editor.
     * Leave empty for default list (all allowed).
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $formats;
    
    /**
     * @var array Collection of modules to include and respective options.
     * This property is skipped if $configuration is set.
     * Notice: if you set 'toolbar' module it will replace $toolbarOptions configuration.
     * @since 2.0
     */
    public $modules;
    
    /**
     * @var bool Whether to instantiate the editor in read-only mode.
     * Leave empty for default value (false).
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $readOnly;
    
    /**
     * @var string Additional JS code to be called with the editor.
     * Use placeholder {quill} to get the current editor object variable's name.
     * @since 1.1
     */
    public $js;
    
    /**
     * @var string Quill version to fetch from https://cdn.quilljs.com
     * Version different from default for this release might not work correctly.
     * @since 2.0
     */
    public $quillVersion = '1.0.6';
    
    /**
     * @var array Quill options.
     * Set this to override all other parameters and configure Quill manually.
     * See https://quilljs.com/docs/configuration/ for details.
     * @since 2.0
     */
    public $configuration;
    
    /**
     * @var string KaTeX version to fetch from https://cdnjs.cloudflare.com
     * Used when Formula module is added.
     * @since 2.0
     */
    public $katexVersion = '0.6.0';
    
    /**
     * @var string Highlight.js version to fetch from https://cdnjs.cloudflare.com
     * Used when Syntax module is added.
     * @since 2.0
     */
    public $highlightVersion = '9.7.0';
    
    /**
     * @var string Highlight.js stylesheet to fetch from https://cdnjs.cloudflare.com
     * See https://github.com/isagalaev/highlight.js/tree/master/src/styles
     * Used when Syntax module is added.
     * @since 2.0
     */
    public $highlightStyle = 'default.min.css';
    
    /**
     * @var array HTML attributes for the input tag.
     * @see Html::renderTagAttributes() for details on how attributes are being rendered.
     */
    public $options = ['style' => 'min-height:150px;'];
    
    /**
     * @var string HTML tag for the editor.
     * @since 2.0
     */
    public $tag = 'div';<commit_msg>Quill 1.1.5<commit_after><?php

namespace bizley\quill;

use yii\base\InvalidConfigException;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\web\JsExpression;
use yii\web\View;
use yii\widgets\InputWidget;

/**
 * Quill 1.1 editor implementation for Yii 2.
 * 
 * Use it as an active field:
 * <?= $form->field($model, $attribute)->widget(\bizley\quill\Quill::className(), []) ?>
 * or as a standalone widget:
 * <?= \bizley\quill\Quill::widget(['name' => 'editor']) ?>
 * 
 * See the documentation for more details.
 * 
 * @author <NAME>
 * @version 2.0.1
 * @license Apache 2.0
 * https://github.com/bizley/yii2-quill
 * 
 * Quill can be found at
 * https://quilljs.com/
 * https://github.com/quilljs/quill/
 * 
 * For previous Quill beta version install bizley/quill ^1.0.
 */
class Quill extends InputWidget
{
    const THEME_SNOW = 'snow';
    const THEME_BUBBLE = 'bubble';
    
    /**
     * @var string Theme to be set.
     * See https://quilljs.com/docs/themes/ for more info.
     * Set it to 'snow' [Quill::THEME_SNOW] to get snow theme.
     * Set it to 'bubble' [Quill::THEME_BUBBLE] to get bubble theme.
     * Set it to false or null to remove theme.
     * This property is skipped if $configuration is set.
     */
    public $theme = self::THEME_SNOW;
    
    const TOOLBAR_FULL = 'FULL';
    const TOOLBAR_BASIC = 'BASIC';
    
    /**
     * @var bool|string|array Toolbar buttons.
     * Set true to get theme default buttons.
     * You can use above constants for predefined set of buttons.
     * For other options see README and https://quilljs.com/docs/modules/toolbar/
     * @since 2.0
     */
    public $toolbarOptions = true;
    
    /**
     * @var string Placeholder text to be displayed in the editor field.
     * Leave empty for default value.
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $placeholder;
    
    /**
     * @var string DOM Element that editor ui elements, such as tooltips, should be confined within.
     * It will be automatically wrapped in JsExpression.
     * Leave empty for default value.
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $bounds;
    
    /**
     * @var string Static method enabling logging messages at a given level: 'error', 'warn', 'log', or 'info'.
     * Leave empty for default value (false).
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $debug;
    
    /**
     * @var array Whitelist of formats to allow in the editor.
     * Leave empty for default list (all allowed).
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $formats;
    
    /**
     * @var array Collection of modules to include and respective options.
     * This property is skipped if $configuration is set.
     * Notice: if you set 'toolbar' module it will replace $toolbarOptions configuration.
     * @since 2.0
     */
    public $modules;
    
    /**
     * @var bool Whether to instantiate the editor in read-only mode.
     * Leave empty for default value (false).
     * This property is skipped if $configuration is set.
     * @since 2.0
     */
    public $readOnly;
    
    /**
     * @var string Additional JS code to be called with the editor.
     * Use placeholder {quill} to get the current editor object variable's name.
     * @since 1.1
     */
    public $js;
    
    /**
     * @var string Quill version to fetch from https://cdn.quilljs.com
     * Version different from default for this release might not work correctly.
     * @since 2.0
     */
    public $quillVersion = '1.1.5';
    
    /**
     * @var array Quill options.
     * Set this to override all other parameters and configure Quill manually.
     * See https://quilljs.com/docs/configuration/ for details.
     * @since 2.0
     */
    public $configuration;
    
    /**
     * @var string KaTeX version to fetch from https://cdnjs.cloudflare.com
     * Used when Formula module is added.
     * @since 2.0
     */
    public $katexVersion = '0.6.0';
    
    /**
     * @var string Highlight.js version to fetch from https://cdnjs.cloudflare.com
     * Used when Syntax module is added.
     * @since 2.0
     */
    public $highlightVersion = '9.8.0';
    
    /**
     * @var string Highlight.js stylesheet to fetch from https://cdnjs.cloudflare.com
     * See https://github.com/isagalaev/highlight.js/tree/master/src/styles
     * Used when Syntax module is added.
     * @since 2.0
     */
    public $highlightStyle = 'default.min.css';
    
    /**
     * @var array HTML attributes for the input tag.
     * @see Html::renderTagAttributes() for details on how attributes are being rendered.
     */
    public $options = ['style' => 'min-height:150px;'];
    
    /**
     * @var string HTML tag for the editor.
     * @since 2.0
     */
    public $tag = 'div';
{'fraction_non_alphanumeric': 0.11247713879292827, 'fraction_numerical': 0.010566957935378988, 'mean_word_length': 2.3197301854974706, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, 'https://': 22, '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': '3446025', 'n_tokens_mistral': 3100, 'n_tokens_neox': 2980, 'n_words': 1042}