<commit_before>﻿using Chat.Models;
using Chat.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace Chat.Services.Controllers
{
    public class ValuesController : ApiController
    {
        private MessageRepository messageRepository;


        public ValuesController()
        {
            this.messageRepository = new MessageRepository(new Chat.Data.ChatContext());
        }

        // GET api/values
        public IQueryable<MessageModel> Get()
        {
            var messages = this.messageRepository.All();<commit_msg>Modify ValuesController<commit_after>﻿using Chat.Models;
using Chat.Repository;
using Chat.Services.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace Chat.Services.Controllers
{
    public class ValuesController : ApiController
    {
        private MessageRepository messageRepository;


        public ValuesController()
        {
            this.messageRepository = new MessageRepository(new Chat.Data.ChatContext());
        }

        // GET api/values
        public IQueryable<MessageModel> Get()
        {
            var messages = this.messageRepository.All()
                .Select(m => new MessageModel 
                {
                    Id = m.Id,
                    Content = m.Content
                });
{'fraction_non_alphanumeric': 0.08567511994516792, 'fraction_numerical': 0.0, 'mean_word_length': 2.411214953271028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6886440', 'n_tokens_mistral': 372, 'n_tokens_neox': 360, 'n_words': 87}