<commit_before><?php

namespace Ddeboer\DataImport\Writer;

/**
 * This class writes an item into an array that was passed by reference
 *
 * Class ArrayWriter
 */
class ArrayWriter implements WriterInterface
{
	/**
	 * @var array
	 */
	protected $data;

	/**
	 * Constructor
	 *
	 * @param array $data
	 */
	public function __construct(array &$data)
	{
		$this->data = &$data;
	}

	/**
	 * Prepare the writer before writing the items
	 *
	 * @return Writer
	 */
	public function prepare()
	{
		$this->data = array();
	}

	/**
	 * Write one data item
	 *
	 * @param array $item         The data item with converted values
	 * @param array $originalItem The data item with its original values
	 *
	 * @return Writer
	 */
	public function writeItem(array $item, array $originalItem = array())
	{
		$this->data[] = $item;
	}

	/**
	 * Wrap up the writer after all items have been written
	 *
	 * @return Writer
	 */
	public function finish()
	{

	}
}<commit_msg>Fix CS.<commit_after><?php

namespace Ddeboer\DataImport\Writer;

/**
 * This class writes an item into an array that was passed by reference
 *
 * Class ArrayWriter
 */
class ArrayWriter implements WriterInterface
{
    /**
     * @var array
     */
    protected $data;

    /**
     * Constructor
     *
     * @param array $data
     */
    public function __construct(array &$data)
    {
        $this->data = &$data;
    }

    /**
     * Prepare the writer before writing the items
     *
     * @return Writer
     */
    public function prepare()
    {
        $this->data = array();
    }

    /**
     * Write one data item
     *
     * @param array $item         The data item with converted values
     * @param array $originalItem The data item with its original values
     *
     * @return Writer
     */
    public function writeItem(array $item, array $originalItem = array())
    {
        $this->data[] = $item;
    }

    /**
     * Wrap up the writer after all items have been written
     *
     * @return Writer
     */
    public function finish()
    {

    }
}
{'fraction_non_alphanumeric': 0.11480214948705422, 'fraction_numerical': 0.0, 'mean_word_length': 2.261146496815287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6072451', 'n_tokens_mistral': 631, 'n_tokens_neox': 593, 'n_words': 199}