<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

using ISTS.Api.Model;

using ISTS.Application.Studios;

namespace ISTS.Api.Controllers
{
    [Route("api/[controller]")]
    public class StudiosController : Controller
    {
        private readonly IStudioService _studioService;

        public StudioController(
            IStudioService studioService)
        {
            _studioService = studioService;
        }
        
        // GET api/studio/1
        [HttpGet("{id}")]
        public ApiModelResult<StudioDto> Get(Guid id)
        {
            var studio = _studioService.Get(id);
            
            return studio != null
                ? ApiModelResult<StudioDto>.Ok(studio)
                : ApiModelResult<StudioDto>.NotFound(null);
        }
        
        // POST api/studio
        [HttpPost]
        public ApiModelResult<StudioDto> Post([FromBody]StudioDto model)
        {
            var studio = _studioService.Create(model);
            return ApiModelResult<StudioDto>.Ok(studio);
        }

        // PUT api/studio/1
        [HttpPut("{id}")]
        public ApiModelResult<StudioDto> Put([FromBody]StudioDto model)
        {
            var studio = _studioService.Update(model);
            return ApiModelResult<StudioDto>.Ok(studio);
        }
    }
}<commit_msg>Update comments<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

using ISTS.Api.Model;

using ISTS.Application.Studios;

namespace ISTS.Api.Controllers
{
    [Route("api/[controller]")]
    public class StudiosController : Controller
    {
        private readonly IStudioService _studioService;

        public StudiosController(
            IStudioService studioService)
        {
            _studioService = studioService;
        }
        
        // GET api/studios/1
        [HttpGet("{id}")]
        public ApiModelResult<StudioDto> Get(Guid id)
        {
            var studio = _studioService.Get(id);
            
            return studio != null
                ? ApiModelResult<StudioDto>.Ok(studio)
                : ApiModelResult<StudioDto>.NotFound(null);
        }
        
        // POST api/studios
        [HttpPost]
        public ApiModelResult<StudioDto> Post([FromBody]StudioDto model)
        {
            var studio = _studioService.Create(model);
            return ApiModelResult<StudioDto>.Ok(studio);
        }

        // PUT api/studios/1
        [HttpPut("{id}")]
        public ApiModelResult<StudioDto> Put([FromBody]StudioDto model)
        {
            var studio = _studioService.Update(model);
            return ApiModelResult<StudioDto>.Ok(studio);
        }
    }
}
{'fraction_non_alphanumeric': 0.09750889679715302, 'fraction_numerical': 0.0014234875444839859, 'mean_word_length': 2.075492341356674, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '355683', 'n_tokens_mistral': 804, 'n_tokens_neox': 806, 'n_words': 141}