<commit_before><?php

namespace Kisphp\OrderBundle\Model;

use Kisphp\Entity\AttachedInterface;
use Kisphp\Model\AbstractModel;
use Kisphp\OrderBundle\Entity\ProductInterface;
use Kisphp\OrderBundle\Entity\SalesEntityInterface;
use Kisphp\OrderBundle\Entity\SalesItemEntity;

abstract class SalesItemModel extends AbstractModel implements SalesItemModelInterface
{
    /**
     * @param ProductInterface $product
     * @param SalesEntityInterface $order
     *
     * @return SalesItemEntity
     */
    public function createFromProduct(ProductInterface $product, SalesEntityInterface $order)
    {
        $orderItem = $this->createSalesItem();<commit_msg>added interface<commit_after><?php

namespace Kisphp\OrderBundle\Model;

use Kisphp\Entity\AttachedInterface;
use Kisphp\Model\AbstractModel;
use Kisphp\OrderBundle\Entity\ProductInterface;
use Kisphp\OrderBundle\Entity\SalesEntityInterface;
use Kisphp\OrderBundle\Entity\SalesItemEntity;
use Kisphp\OrderBundle\Entity\SalesItemEntityInterface;

abstract class SalesItemModel extends AbstractModel implements SalesItemModelInterface
{
    /**
     * @param ProductInterface $product
     * @param SalesEntityInterface $order
     *
     * @return SalesItemEntity
     */
    public function createFromProduct(ProductInterface $product, SalesEntityInterface $order)
    {
        $orderItem = $this->createSalesItem();
{'fraction_non_alphanumeric': 0.08284883720930232, 'fraction_numerical': 0.0, 'mean_word_length': 5.066079295154185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4319805', 'n_tokens_mistral': 379, 'n_tokens_neox': 373, 'n_words': 74}