<commit_before><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 * 
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 * 
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\AttributeBundle\Repository;

use Symfony\Component\HttpFoundation\ParameterBag;
use WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroup;
use WellCommerce\Bundle\CoreBundle\Repository\RepositoryInterface;

/**
 * Interface AttributeRepositoryInterface
 *
 * @package WellCommerce\Bundle\AttributeBundle\Repository
 * @author  <NAME> <<EMAIL>>
 */
interface AttributeRepositoryInterface extends RepositoryInterface
{
    /**
     * Returns all groups with translations
     *
     * @return array
     */
    public function findAll();

    /**
     * Adds new attribute
     *
     * @param ParameterBag $parameters
     *
     * @return \WellCommerce\Bundle\AttributeBundle\Entity\Attribute
     */
    public function addAttribute($name);

    /**
     * Finds attribute entity by its id or creates a new one
     *
     * @param $data
     *
     * @return \WellCommerce\Bundle\AttributeBundle\Entity\Attribute
     */
    public function findOrCreate($data);

    /**
     * Returns all attributes by group id
     *
     * @param integer $id Attribute group id
     *
     * @return mixed
     */
    public function findAllByAttributeGroupId($id);

    /**
     * Creates new attribute and binds it to group
     *
     * @param AttributeGroup $group
     * @param                $name
     *
     * @return mixed
     */
    public function createNewAttribute(AttributeGroup $group, $name);
} <commit_msg>Doc fixes<commit_after><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 * 
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 * 
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\AttributeBundle\Repository;

use WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroup;
use WellCommerce\Bundle\CoreBundle\Repository\RepositoryInterface;

/**
 * Interface AttributeRepositoryInterface
 *
 * @package WellCommerce\Bundle\AttributeBundle\Repository
 * @author  <NAME> <<EMAIL>>
 */
interface AttributeRepositoryInterface extends RepositoryInterface
{
    /**
     * Returns all groups with translations
     *
     * @return array
     */
    public function findAll();

    /**
     * Adds new attribute
     *
     * @param string $name
     *
     * @return \WellCommerce\Bundle\AttributeBundle\Entity\Attribute
     */
    public function addAttribute($name);

    /**
     * Finds attribute entity by its id or creates a new one
     *
     * @param $data
     *
     * @return \WellCommerce\Bundle\AttributeBundle\Entity\Attribute
     */
    public function findOrCreate($data);

    /**
     * Returns all attributes by group id
     *
     * @param integer $id Attribute group id
     *
     * @return mixed
     */
    public function findAllByAttributeGroupId($id);

    /**
     * Creates new attribute and binds it to group
     *
     * @param AttributeGroup $group
     * @param string         $name
     *
     * @return \WellCommerce\Bundle\AttributeBundle\Entity\Attribute
     */
    public function createNewAttribute(AttributeGroup $group, $name);
} 
{'fraction_non_alphanumeric': 0.09585867361714451, 'fraction_numerical': 0.0, 'mean_word_length': 2.846325167037862, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '3113674', 'n_tokens_mistral': 930, 'n_tokens_neox': 911, 'n_words': 260}