<commit_before><?php

namespace Oro\Bundle\TestFrameworkBundle\Pages;

use PHPUnit_Framework_Assert;

/**
 * Class AbstractPageGrid
 *
 * @package Oro\Bundle\TestFrameworkBundle\Pages
 * {@inheritdoc}
 */
abstract class AbstractPageGrid extends AbstractPage
{

    protected $gridPath = '';

    protected $filtersPath = '';


    /**
     * @param array $entityData
     *
     * @return mixed
     */
    abstract public function open($entityData = array());

    /**
     * Select random entity from current page
     *
     * @param int $pageSize
     * @return array<commit_msg>BAP-498: Investigate failed builds  - B2B changes<commit_after><?php

namespace Oro\Bundle\TestFrameworkBundle\Pages;

use PHPUnit_Framework_Assert;

/**
 * Class AbstractPageGrid
 *
 * @package Oro\Bundle\TestFrameworkBundle\Pages
 * {@inheritdoc}
 */
abstract class AbstractPageGrid extends AbstractPage
{

    protected $gridPath = '';

    protected $filtersPath = '';


    /**
     * @param array $entityData
     *
     * @return mixed
     */
    public function open($entityData = array())
    {
        $task = $this->getEntity($entityData, 1);
        $task->click();
        $this->waitPageToLoad();
        sleep(1);
        $this->waitForAjax();

        return $this;
    }

    /**
     * Select random entity from current page
     *
     * @param int $pageSize
     * @return array
{'fraction_non_alphanumeric': 0.12083936324167872, 'fraction_numerical': 0.004341534008683068, 'mean_word_length': 2.717741935483871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2651515', 'n_tokens_mistral': 407, 'n_tokens_neox': 394, 'n_words': 92}