<commit_before>﻿using Cycling.Data;
using Cycling.Models.MSSQL;
using System.Collections.Generic;
using System.Linq;

namespace Cycling.Web.DataProviders
{
    public class DisplayCyclists
    {
       public IEnumerable<Cyclist> Display()
        {
            using (var dbContext = new CyclingDbContext())
            {
              return dbContext.Cyclists.ToList();
            }
        }
    }
}<commit_msg>display all cyclists done with repo<commit_after>﻿using Cycling.Data;
using Cycling.Data.Common;
using Cycling.Models.MSSQL;
using System.Collections.Generic;
using System.Linq;

namespace Cycling.Web.DataProviders
{
    public class DisplayCyclists
    {
        public IEnumerable<Cyclist> Display()
        {
            using (var unitOfWork = new EfUnitOfWork(new CyclingDbContext())) 
            {
                return unitOfWork.CyclistsRepository.GetAll().ToList();
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0, 'mean_word_length': 2.425925925925926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3632255', 'n_tokens_mistral': 271, 'n_tokens_neox': 260, 'n_words': 54}