<commit_before>﻿using CRM.EntityFrameWorkLib;
using CRM.WebApi.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using System.Web;

namespace CRM.WebApi.Infrastructure
{
    public class ApplicationManager: IDisposable
    {
        private CRMDataBaseModel db = new CRMDataBaseModel();

        public async Task<List<Contact>> GetAllContacts()
        {
            db.Configuration.LazyLoadingEnabled = false;
            return await db.Contacts.ToListAsync();
        }

        public List<ResponseContact> FromDbContactToResponseContact(List<Contact> contacts)
        {
            List<ResponseContact> MyContactList = new List<ResponseContact>();

            foreach (var contact in contacts)
            {
                MyContactList.Add(new ResponseContact(contact));
            }

            return MyContactList;
        }

        public async Task<List<Contact>> GetContactsByGuIdList(List<Guid> GuIdList)
        {
            List<Contact> ContactsList = new List<Contact>();
            foreach (var guid in GuIdList)
            {
                ContactsList.Add(await GetContactByGuId(guid));
            }

            return ContactsList;
        }

        public async Task<Contact> GetContactByGuId(Guid guid)
        {
            return await db.Contacts.FirstOrDefaultAsync(x => x.GuID == guid);
            // some comment
        }

        public async Task<bool> SendEmailToContacts(List<Contact> ContactsToSend, int TamplateId)
        {
            // send email to all contacts of ContactsToSend with text $"Hello {Contact.Name} your message is {TamplateId}"
            // testing
            throw new Exception();
        }

        public async Task<List<Contact>> GetContactsFromFile(byte[] byteArray)
        {
            // Get all contacts from file and give back
            throw new Exception();
        }


        public void Dispose()
        {
            db.Dispose();
        }
    }
}<commit_msg>Testing github<commit_after>﻿using CRM.EntityFrameWorkLib;
using CRM.WebApi.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using System.Web;

namespace CRM.WebApi.Infrastructure
{
    public class ApplicationManager: IDisposable
    {
        private CRMDataBaseModel db = new CRMDataBaseModel();

        public async Task<List<Contact>> GetAllContacts()
        {
            db.Configuration.LazyLoadingEnabled = false;
            return await db.Contacts.ToListAsync();
        }

        public List<ResponseContact> FromDbContactToResponseContact(List<Contact> contacts)
        {
            List<ResponseContact> MyContactList = new List<ResponseContact>();

            foreach (var contact in contacts)
            {
                MyContactList.Add(new ResponseContact(contact));
            }

            return MyContactList;
        }

        public async Task<List<Contact>> GetContactsByGuIdList(List<Guid> GuIdList)
        {
            List<Contact> ContactsList = new List<Contact>();
            foreach (var guid in GuIdList)
            {
                ContactsList.Add(await GetContactByGuId(guid));
            }

            return ContactsList;
        }

        public async Task<Contact> GetContactByGuId(Guid guid)
        {
            return await db.Contacts.FirstOrDefaultAsync(x => x.GuID == guid);
            // some comment
        }

        public async Task<bool> SendEmailToContacts(List<Contact> ContactsToSend, int TamplateId)
        {
            // send email to all contacts of ContactsToSend with text $"Hello {Contact.Name} your message is {TamplateId}"
            // //testing
            throw new Exception();
        }

        public async Task<List<Contact>> GetContactsFromFile(byte[] byteArray)
        {
            // Get all contacts from file and give back
            throw new Exception();
        }


        public void Dispose()
        {
            db.Dispose();
        }
    }
}
{'fraction_non_alphanumeric': 0.08562832677620921, 'fraction_numerical': 0.001388567461235825, 'mean_word_length': 2.1686217008797652, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '1089030', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1113, 'n_words': 275}