<commit_before><?php
/**
 * User: <NAME> <<EMAIL>>
 */

namespace Praxigento\Pv\Repo\Entity;

use Praxigento\Pv\Data\Entity\Sale as Entity;

interface ISale extends \Praxigento\Core\Repo\IEntity
{
    /**
     * @param array|Entity $data
     * @return Entity
     */
    public function create($data);

    /**
     * Generic method to get data from repository.
     *
     * @param null $where
     * @param null $order
     * @param null $limit
     * @param null $offset
     * @param null $columns
     * @param null $group
     * @param null $having
     * @return Entity[] Found data or empty array if no data found.
     */
    public function get(
        $where = null,
        $order = null,
        $limit = null,
        $offset = null,
        $columns = null,
        $group = null,
        $having = null
    );

    /**
     * Get the data instance by ID.
     *
     * @param int $id
     * @return Entity|bool Found instance data or 'false'
     */
    public function getById($id);

}<commit_msg>MOBI-404 - Unit tests for Odoo module (service)<commit_after><?php
/**
 * User: <NAME> <<EMAIL>>
 */
namespace Praxigento\Pv\Repo\Entity;

interface ISale
    extends \Praxigento\Core\Repo\IEntity
{
    /**
     * @param \Praxigento\Pv\Data\Entity\Sale|array $data
     * @return \Praxigento\Pv\Data\Entity\Sale
     */
    public function create($data);

    /**
     * Generic method to get data from repository.
     *
     * @param null $where
     * @param null $order
     * @param null $limit
     * @param null $offset
     * @param null $columns
     * @param null $group
     * @param null $having
     * @return \Praxigento\Pv\Data\Entity\Sale[] Found data or empty array if no data found.
     */
    public function get(
        $where = null,
        $order = null,
        $limit = null,
        $offset = null,
        $columns = null,
        $group = null,
        $having = null
    );

    /**
     * Get the data instance by ID.
     *
     * @param int $id
     * @return \Praxigento\Pv\Data\Entity\Sale|bool Found instance data or 'false'
     */
    public function getById($id);

}
{'fraction_non_alphanumeric': 0.12676720075400566, 'fraction_numerical': 0.001413760603204524, 'mean_word_length': 2.015625, 'pattern_counts': {'":': 0, '<': 11, '<?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': '631700', 'n_tokens_mistral': 694, 'n_tokens_neox': 682, 'n_words': 196}