<commit_before><?php
/**
 * @link https://github.com/LAV45/yii2-target-behavior
 * @copyright Copyright (c) 2015 LAV45!
 * @license http://opensource.org/licenses/BSD-3-Clause
 */

namespace lav45\behavior;

use yii\base\Behavior;
use yii\db\ActiveRecord;
use yii\helpers\ArrayHelper;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @property ActiveRecord $owner
 */
class Target extends Behavior
{
    /**
     * @var string
     */
    public $targetAttribute;
    /**
     * @var string
     */
    public $targetRelation = 'tags';
    /**
     * @var string
     */
    public $targetRelationAttribute = 'name';
    /**
     * @var string|boolean
     */
    public $delimiter = ',';
    /**
     * @var bool
     */
    public $deleteOldTarget = true;
    /**
     * @var \Closure|array
     */
    public $beforeUnlink;
    /**
     * @var \Closure|array
     */
    public $afterUnlink;
    /**
     * @var \Closure|array
     */
    public $beforeLink;
    /**
     * @var \Closure|array
     */<commit_msg>Add comment for $delimiter property<commit_after><?php
/**
 * @link https://github.com/LAV45/yii2-target-behavior
 * @copyright Copyright (c) 2015 LAV45!
 * @license http://opensource.org/licenses/BSD-3-Clause
 */

namespace lav45\behavior;

use yii\base\Behavior;
use yii\db\ActiveRecord;
use yii\helpers\ArrayHelper;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @property ActiveRecord $owner
 */
class Target extends Behavior
{
    /**
     * @var string
     */
    public $targetAttribute;
    /**
     * @var string
     */
    public $targetRelation = 'tags';
    /**
     * @var string
     */
    public $targetRelationAttribute = 'name';
    /**
     * @var string|boolean If the value is false then $targetAttribute will contain an array
     */
    public $delimiter = ',';
    /**
     * @var bool
     */
    public $deleteOldTarget = true;
    /**
     * @var \Closure|array
     */
    public $beforeUnlink;
    /**
     * @var \Closure|array
     */
    public $afterUnlink;
    /**
     * @var \Closure|array
     */
    public $beforeLink;
    /**
     * @var \Closure|array
     */
{'fraction_non_alphanumeric': 0.15619047619047619, 'fraction_numerical': 0.011428571428571429, 'mean_word_length': 2.173716012084592, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '699470', 'n_tokens_mistral': 718, 'n_tokens_neox': 695, 'n_words': 145}