<commit_before><?php
declare(strict_types=1);

namespace AppBundle\Entity;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
use FOS\UserBundle\Model\UserInterface;
use Symfony\Component\Serializer\Annotation\Groups;

/**
 * @ORM\Entity
 * @ApiResource(
 *      itemOperations={
 *          "get"={"method"="GET"},
 *          "put"={"method"="PUT"},
 *          "authenticate"={
 *              "route_name"="authenticate",
 *               "swagger_context" = {
 *                  "tags" = {"Authentication"},
 *                  "parameters" = {
 *                      {
 *                          "name" = "user",
 *                          "in" = "body",
 *                          "required" = "true",
 *                          "description" = "Your login credentials",
 *                          "schema" = {
 *                             "type" = "object",
 *                             "properties" = {
 *                                 "username" = {"type" = "string"},
 *                                 "password" = {"type" = "string"}
 *                              },
 *                             "message" = {"type" = "string"},
 *                             "default" = {
 *                                  "username" = "",
 *                                  "password" = ""
 *                              }
 *                          }
 *                      }
 *                  },
 *                  "responses" = {
 *                      "200" = {
 *                          "description" = "JWT authentication token",
 *                          "schema" =  {<commit_msg>try docs<commit_after><?php
declare(strict_types=1);

namespace AppBundle\Entity;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
use FOS\UserBundle\Model\UserInterface;
use Symfony\Component\Serializer\Annotation\Groups;

/**
 * @ORM\Entity
 * @ApiResource(
 *      itemOperations={
 *          "get"={"method"="GET"},
 *          "put"={"method"="PUT"},
 *          "authenticate"={
 *              "route_name"="authenticate",
 *               "swagger_context" = {
 *                  "tags" = {"Authentication"},
 *                  "parameters" = {
 *                      {
 *                          "name" = "user",
 *                          "in" = "body",
 *                          "required" = "true",
 *                          "description" = "Your login credentials",
 *                          "schema" = {
 *                             "type" = "object",
 *                             "description" = "User credentials",
 *                             "properties" = {
 *                                 "username" = {"type" = "string"},
 *                                 "password" = {"type" = "string"}
 *                              },
 *                             "message" = {"type" = "string"},
 *                             "default" = {
 *                                  "username" = "",
 *                                  "password" = ""
 *                              }
 *                          }
 *                      }
 *                  },
 *                  "responses" = {
 *                      "200" = {
 *                          "description" = "JWT authentication token",
 *                          "schema" =  {
{'fraction_non_alphanumeric': 0.13699825479930192, 'fraction_numerical': 0.002326934264107039, 'mean_word_length': 0.9169453734671126, 'pattern_counts': {'":': 0, '<': 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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '640937', 'n_tokens_mistral': 849, 'n_tokens_neox': 825, 'n_words': 128}