<commit_before>using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CmsEngine.Data.Entities;
using Microsoft.EntityFrameworkCore;

namespace CmsEngine.Data.Repositories
{
    public class WebsiteRepository : Repository<Website>, IWebsiteRepository
    {
        public WebsiteRepository(CmsEngineContext context) : base(context)
        {

        }

        public async Task<IEnumerable<Website>> GetForDataTable()
        {
            return await Get().Select(w => new Website
            {
                VanityId = w.VanityId,
                Name = w.Name,
                Tagline = w.Tagline,
                Culture = w.Culture,
                UrlFormat = w.UrlFormat,
                DateFormat = w.DateFormat,
                SiteUrl = w.SiteUrl,
                GoogleAnalytics = w.GoogleAnalytics
            }).ToListAsync();
        }

        public async Task<Website> GetWebsiteInstanceByHost(string host)
        {
            return await Get(q => q.SiteUrl == host)
                            .Include(i => i.Categories)
                            .Include(i => i.Pages)
                            .Include(i => i.Posts)
                            .Include(i => i.Tags)
                            .SingleOrDefaultAsync();
        }
    }
}<commit_msg>Removed related tables and replaced SingleOrDefaultAsync() by SingleAsync()<commit_after>using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CmsEngine.Data.Entities;
using Microsoft.EntityFrameworkCore;

namespace CmsEngine.Data.Repositories
{
    public class WebsiteRepository : Repository<Website>, IWebsiteRepository
    {
        public WebsiteRepository(CmsEngineContext context) : base(context)
        {

        }

        public async Task<IEnumerable<Website>> GetForDataTable()
        {
            return await Get().Select(w => new Website
            {
                VanityId = w.VanityId,
                Name = w.Name,
                Tagline = w.Tagline,
                Culture = w.Culture,
                UrlFormat = w.UrlFormat,
                DateFormat = w.DateFormat,
                SiteUrl = w.SiteUrl,
                GoogleAnalytics = w.GoogleAnalytics
            }).ToListAsync();
        }

        public async Task<Website> GetWebsiteInstanceByHost(string host)
        {
            return await Get(q => q.SiteUrl == host)
                            .SingleAsync();
        }
    }
}
{'fraction_non_alphanumeric': 0.08720226079935406, 'fraction_numerical': 0.0, 'mean_word_length': 1.664516129032258, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '4884780', 'n_tokens_mistral': 653, 'n_tokens_neox': 619, 'n_words': 131}