<commit_before><?php
/**
 * @author @ct-jensschulze <<EMAIL>>
 */

namespace Commercetools\Core\Model\CustomField;

use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\Common\JsonObject;
use Commercetools\Core\Model\Type\TypeReference;

/**
 * @package Commercetools\Core\Model\CustomField
 *
 * @method TypeReference getType()
 * @method CustomFieldObjectDraft setType(TypeReference $type = null)
 * @method string getTypeKey()
 * @method CustomFieldObjectDraft setTypeKey(string $typeKey = null)
 * @method FieldContainer getFields()
 * @method CustomFieldObjectDraft setFields(FieldContainer $fields = null)
 */
class CustomFieldObjectDraft extends JsonObject
{
    public function fieldDefinitions()
    {
        return [
            'type' => [static::TYPE => '\Commercetools\Core\Model\Type\TypeReference'],
            'typeKey' => [static::TYPE => 'string'],
            'fields' => [static::TYPE => '\Commercetools\Core\Model\CustomField\FieldContainer']
        ];
    }

    /**
     * @param $typeKey
     * @param Context|callable $context
     * @return CustomFieldObjectDraft
     */
    public static function ofTypeKey($typeKey, $context = null)
    {
        $draft = static::of($context)->setTypeKey($typeKey);

        return $draft;
    }

    public static function ofType(TypeReference $type, $context = null)
    {
        $draft = static::of($context)->setType($type);

        return $draft;
    }<commit_msg>fix(CustomFieldObjectDraft): typo<commit_after><?php
/**
 * @author @ct-jensschulze <<EMAIL>>
 */

namespace Commercetools\Core\Model\CustomField;

use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\Common\JsonObject;
use Commercetools\Core\Model\Type\TypeReference;

/**
 * @package Commercetools\Core\Model\CustomField
 *
 * @method string getTypeKey()
 * @method CustomFieldObjectDraft setTypeKey(string $typeKey = null)
 * @method FieldContainer getFields()
 * @method CustomFieldObjectDraft setFields(FieldContainer $fields = null)
 * @method string getTypeId()
 * @method CustomFieldObjectDraft setTypeId(string $typeId = null)
 */
class CustomFieldObjectDraft extends JsonObject
{
    public function fieldDefinitions()
    {
        return [
            'typeId' => [static::TYPE => 'string'],
            'typeKey' => [static::TYPE => 'string'],
            'fields' => [static::TYPE => '\Commercetools\Core\Model\CustomField\FieldContainer']
        ];
    }

    /**
     * @param $typeKey
     * @param Context|callable $context
     * @return CustomFieldObjectDraft
     */
    public static function ofTypeKey($typeKey, $context = null)
    {
        $draft = static::of($context)->setTypeKey($typeKey);

        return $draft;
    }

    public static function ofType(TypeReference $type, $context = null)
    {
        $draft = static::of($context)->setType($type);

        return $draft;
    }
{'fraction_non_alphanumeric': 0.1334716459197787, 'fraction_numerical': 0.0, 'mean_word_length': 3.5273865414710484, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '3100378', 'n_tokens_mistral': 877, 'n_tokens_neox': 867, 'n_words': 167}