<commit_before><?php
namespace Bolt\Tests\Content;

use Bolt\Content;
use Bolt\Tests\BoltUnitTest;

/**
 * Class to test src/Storage.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class ContentTest extends BoltUnitTest
{
    public function testgetValues()
    {
        $app = $this->getApp();
        $content = new Content($app, 'pages');

        $content->setValue('title', 'Test Page');
        $content->setValue('image', array('file' => 'image1.jpg', 'title' => 'Test image'));

        $values = $content->getValues(true);

        $this->assertEquals('Test Page', $values['title']);
        $this->assertEquals('{"file":"image1.jpg","title":"Test image"}', $values['image']);
    }

    public function testsetValues()
    {<commit_msg>[Tests] Use short array syntax in Bolt\Tests\Content<commit_after><?php
namespace Bolt\Tests\Content;

use Bolt\Content;
use Bolt\Tests\BoltUnitTest;

/**
 * Class to test src/Storage.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class ContentTest extends BoltUnitTest
{
    public function testgetValues()
    {
        $app = $this->getApp();
        $content = new Content($app, 'pages');

        $content->setValue('title', 'Test Page');
        $content->setValue('image', ['file' => 'image1.jpg', 'title' => 'Test image']);

        $values = $content->getValues(true);

        $this->assertEquals('Test Page', $values['title']);
        $this->assertEquals('{"file":"image1.jpg","title":"Test image"}', $values['image']);
    }

    public function testsetValues()
    {
{'fraction_non_alphanumeric': 0.1935897435897436, 'fraction_numerical': 0.002564102564102564, 'mean_word_length': 3.52463768115942, 'pattern_counts': {'":': 4, '<': 17, '<?xml version=': 0, '>': 31, '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': '4111645', 'n_tokens_mistral': 483, 'n_tokens_neox': 479, 'n_words': 106}