<commit_before>﻿using System.Net.Http;
using System.Web.Http;
using BeyondEarthApp.Common;
using BeyondEarthApp.Data.QueryProcessors;
using BeyondEarthApp.Web.Api.InquiryProcessing;
using BeyondEarthApp.Web.Api.MaintenanceProcessing;
using BeyondEarthApp.Web.Api.Models;
using BeyondEarthApp.Web.Api.Models.Initial;
using BeyondEarthApp.Web.Api.Models.Paging;
using BeyondEarthApp.Web.Common;
using BeyondEarthApp.Web.Common.Routing;
using BeyondEarthApp.Web.Common.Validation;

namespace BeyondEarthApp.Web.Api.Controllers.V1
{
    [ApiVersion1RoutePrefix("games")]
    [UnitOfWorkActionFilter]
    [Authorize(Roles = Constants.RoleNames.User)]
    public class GamesController : ApiController
    {
        private readonly IPagedDataRequestFactory _pagedDataRequestFactory;
        private readonly IUpdateGameMaintenanceProcessor _updateGameMaintenanceProcessor;
        private readonly IAddGameMaintenanceProcessor _addGameMaintenanceProcessor;
        private readonly IDeleteGameQueryProcessor _deleteGameQueryProcessor;
        private readonly IGameByIdProcessor _gameByIdProcessor;
        private readonly IAllGamesProcessor _allGamesProcessor;

        public GamesController(<commit_msg>enable CORS for BeyondEarthAppAngular<commit_after>﻿using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Cors;
using BeyondEarthApp.Common;
using BeyondEarthApp.Data.QueryProcessors;
using BeyondEarthApp.Web.Api.InquiryProcessing;
using BeyondEarthApp.Web.Api.MaintenanceProcessing;
using BeyondEarthApp.Web.Api.Models;
using BeyondEarthApp.Web.Api.Models.Initial;
using BeyondEarthApp.Web.Api.Models.Paging;
using BeyondEarthApp.Web.Common;
using BeyondEarthApp.Web.Common.Routing;
using BeyondEarthApp.Web.Common.Validation;

namespace BeyondEarthApp.Web.Api.Controllers.V1
{
    [ApiVersion1RoutePrefix("games")]
    [UnitOfWorkActionFilter]
    [Authorize(Roles = Constants.RoleNames.User)]
    [EnableCors("http://127.0.0.1:8080", "*", "*")]
    public class GamesController : ApiController
    {
        private readonly IPagedDataRequestFactory _pagedDataRequestFactory;
        private readonly IUpdateGameMaintenanceProcessor _updateGameMaintenanceProcessor;
        private readonly IAddGameMaintenanceProcessor _addGameMaintenanceProcessor;
        private readonly IDeleteGameQueryProcessor _deleteGameQueryProcessor;
        private readonly IGameByIdProcessor _gameByIdProcessor;
        private readonly IAllGamesProcessor _allGamesProcessor;

        public GamesController(
{'fraction_non_alphanumeric': 0.07142857142857142, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 5.614775725593668, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4370287', 'n_tokens_mistral': 703, 'n_tokens_neox': 673, 'n_words': 125}