<commit_before><?php

namespace VideoGamesRecords\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter;
use ApiPlatform\Core\Serializer\Filter\GroupFilter;

/**
 * TeamGame
 *
 * @ORM\Table(name="vgr_team_game")
 * @ORM\Entity(repositoryClass="VideoGamesRecords\CoreBundle\Repository\TeamGameRepository")
 * @ApiFilter(
 *     SearchFilter::class,
 *     properties={
 *          "team": "exact",
 *          "game": "exact",
 *          "game.badge": "exact",
 *     }
 * )
 * @ApiFilter(
 *     GroupFilter::class,
 *     arguments={
 *          "parameterName": "groups",
 *          "overrideDefaultGroups": true,
 *          "whitelist": {
 *              "game.read.mini",
 *              "teamGame.game",
 *              "teamGame.pointChart",
 *              "teamGame.medal",
 *              "game.stats",
 *          }
 *      }
 * )
 * @ApiFilter(
 *     OrderFilter::class,
 *     properties={
 *          "rankPointChart": "ASC",
 *          "chartRank0": "DESC",
 *          "chartRank1": "DESC",
 *          "chartRank2": "DESC",
 *          "chartRank3": "DESC",
 *          "pointGame": "DESC",
 *          "game.libGameEn" : "ASC",
 *          "game.libGameFr" : "ASC",
 *     },
 *     arguments={"orderParameterName"="order"}<commit_msg>Add group filters on TeamGame<commit_after><?php

namespace VideoGamesRecords\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter;
use ApiPlatform\Core\Serializer\Filter\GroupFilter;

/**
 * TeamGame
 *
 * @ORM\Table(name="vgr_team_game")
 * @ORM\Entity(repositoryClass="VideoGamesRecords\CoreBundle\Repository\TeamGameRepository")
 * @ApiFilter(
 *     SearchFilter::class,
 *     properties={
 *          "team": "exact",
 *          "game": "exact",
 *          "game.badge": "exact",
 *     }
 * )
 * @ApiFilter(
 *     GroupFilter::class,
 *     arguments={
 *          "parameterName": "groups",
 *          "overrideDefaultGroups": true,
 *          "whitelist": {
 *              "game.read.mini",
 *              "game.platforms",
 *              "platform.read",
 *              "teamGame.game",
 *              "teamGame.pointChart",
 *              "teamGame.medal",
 *              "game.stats",
 *          }
 *      }
 * )
 * @ApiFilter(
 *     OrderFilter::class,
 *     properties={
 *          "rankPointChart": "ASC",
 *          "chartRank0": "DESC",
 *          "chartRank1": "DESC",
 *          "chartRank2": "DESC",
 *          "chartRank3": "DESC",
 *          "pointGame": "DESC",
 *          "game.libGameEn" : "ASC",
 *          "game.libGameFr" : "ASC",
 *     },
 *     arguments={"orderParameterName"="order"}
{'fraction_non_alphanumeric': 0.1626238469422617, 'fraction_numerical': 0.0027331738981892723, 'mean_word_length': 2.2642140468227425, 'pattern_counts': {'":': 24, '<': 5, '<?xml version=': 0, '>': 3, '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': '5960387', 'n_tokens_mistral': 917, 'n_tokens_neox': 914, 'n_words': 125}