<commit_before>using System.Data.Entity;
using Core.DomainModel;
using Core.DomainModel.ItContract;
using Core.DomainModel.ItProject;
using Core.DomainModel.ItSystem;
using Infrastructure.DataAccess.Mapping;

namespace Infrastructure.DataAccess
{
    public class KitosContext : DbContext
    {
        static KitosContext()
        {

        }

        public KitosContext()
            : base("Name=KitosContext")
        {
        }

        public DbSet<AdminRight> AdminRights { get; set; }
        public DbSet<AdminRole> AdminRoles { get; set; }
        public DbSet<Agreement> Agreements { get; set; }
        public DbSet<AgreementElement> AgreementElements { get; set; }
        public DbSet<AppType> AppTypes { get; set; }
        public DbSet<ArchiveType> ArchiveTypes { get; set; }
        public DbSet<Activity> Activities { get; set; }
        public DbSet<BusinessType> BusinessTypes { get; set; }
        public DbSet<Communication> Communications { get; set; }
        public DbSet<Config> Configs { get; set; }
        public DbSet<ContractTemplate> ContractTemplates { get; set; }
        public DbSet<ContractType> ContractTypes { get; set; }
        public DbSet<DataType> DataTypes { get; set; }
        public DbSet<DataRow> DataRows { get; set; }
        public DbSet<DataRowUsage> DataRowUsages { get; set; }
        public DbSet<Economy> Economies { get; set; }
        public DbSet<EconomyYear> EconomyYears { get; set; }
        public DbSet<ExtReference> ExtReferences { get; set; }
        public DbSet<ExtReferenceType> ExtReferenceTypes { get; set; }
        public DbSet<ExtRefTypeLocale> ExtRefTypeLocales { get; set; }
        public DbSet<Frequency> Frequencies { get; set; }
        public DbSet<Goal> Goals { get; set; }
        public DbSet<GoalStatus> GoalStatus { get; set; }
        public DbSet<GoalType> GoalTypes { get; set; }
        public DbSet<Handover> Handovers { get; set; }
        public DbSet<HandoverTrial> HandoverTrials { get; set; }
        public DbSet<Hierarchy> Hierarchies { get; set; }
        public DbSet<Interface> Interfaces { get; set; }
        public DbSet<InterfaceUsage> InterfaceUsages { get; set; }
        public DbSet<InterfaceType> InterfaceTypes { get; set; }
        public DbSet<InterfaceCategory> InterfaceCategories { get; set; }
        public DbSet<ItContractModuleName> ItContractModuleNames { get; set; }
        public DbSet<ItContract> ItContracts { get; set; }
        public DbSet<ItContractRight> ItContractRights { get; set; }
        public DbSet<ItContractRole> ItContractRoles { get; set; }
        public DbSet<ItProjectModuleName> ItProjectModuleNames { get; set; }
        public DbSet<ItProject> ItProjects { get; set; }
        public DbSet<ItProjectRight> ItProjectRights { get; set; }
        public DbSet<ItProjectRole> ItProjectRoles { get; set; }
        public DbSet<ItSupportModuleName> ItSupportModuleNames { get; set; }
        public DbSet<ItSystemModuleName> ItSystemModuleNames { get; set; }
        public DbSet<ItSystem> ItSystems { get; set; }
        public DbSet<ItSystemUsage> ItSystemUsages { get; set; }
        public DbSet<ItSystemRight> ItSystemRights { get; set; }
        public DbSet<ItSystemRole> ItSystemRoles { get; set; }
        public DbSet<Localization> Localizations { get; set; }
        public DbSet<Method> Methods { get; set; }
        public DbSet<Milestone> Milestones { get; set; }
        public DbSet<Organization> Organizations { get; set; }
        public DbSet<OrgTab> OrgTabs { get; set; }
        public DbSet<OrganizationUnit> OrganizationUnits { get; set; }
        public DbSet<OrganizationRight> OrganizationRights { get; set; }
        public DbSet<OrganizationRole> OrganizationRoles { get; set; }
        public DbSet<PasswordResetRequest> PasswordResetRequests { get; set; }
        public DbSet<PaymentModel> PaymentModels { get; set; }
        public DbSet<Payment> Payments { get; set; }
        public DbSet<ItProjectCategory> ProjectCategories { get; set; }
        public DbSet<ProjectPhase> ProjectPhases { get; set; }
        public DbSet<ProjPhaseLocale> ProjectPhaseLocales { get; set; }
        public DbSet<ProjectStatus> ProjectStatus { get; set; }
        public DbSet<ItProjectType> ProjectTypes { get; set; }
        public DbSet<PurchaseForm> PurchaseForms { get; set; }
        public DbSet<Resource> Resources { get; set; }
        public DbSet<Risk> Risks { get; set; }
        public DbSet<SensitiveDataType> SensitiveDataTypes { get; set; }
        public DbSet<ShipNotice> ShipNotices { get; set; }
        public DbSet<Stakeholder> Stakeholders { get; set; }
        public DbSet<State> States { get; set; }
        public DbSet<Supplier> Suppliers { get; set; }
        public DbSet<TaskRef> TaskRefs { get; set; }
        public DbSet<TaskUsage> TaskUsages { get; set; }
        public DbSet<Text> Texts { get; set; }
        public DbSet<Tsa> Tsas { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<Wish> Wishes { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AdminRightMap());
            modelBuilder.Configurations.Add(new AdminRoleMap());
            modelBuilder.Configurations.Add(new AgreementMap());
            modelBuilder.Configurations.Add(new AgreementElementMap());
            modelBuilder.Configurations.Add(new AppTypeMap());
            modelBuilder.Configurations.Add(new ActivityMap());
            modelBuilder.Configurations.Add(new ArchiveTypeMap());
            modelBuilder.Configurations.Add(new BusinessTypeMap());
            modelBuilder.Configurations.Add(new CommunicationMap());
            modelBuilder.Configurations.Add(new ConfigMap());
            modelBuilder.Configurations.Add(new ContractTemplateMap());
            modelBuilder.Configurations.Add(new ContractTypeMap());
            modelBuilder.Configurations.Add(new DataTypeMap());
            modelBuilder.Configurations.Add(new DataRowMap());
            modelBuilder.Configurations.Add(new DataRowUsageMap());
            modelBuilder.Configurations.Add(new EconomyMap());
            modelBuilder.Configurations.Add(new EconomyYearMap());
            modelBuilder.Configurations.Add(new ExtReferenceMap());
            modelBuilder.Configurations.Add(new ExtReferenceTypeMap());
            modelBuilder.Configurations.Add(new ExtRefTypeLocaleMap());
            modelBuilder.Configurations.Add(new FrequencyMap());
            modelBuilder.Configurations.Add(new GoalMap());
            modelBuilder.Configurations.Add(new GoalStatusMap());
            modelBuilder.Configurations.Add(new GoalTypeMap());
            modelBuilder.Configurations.Add(new HandoverMap());
            modelBuilder.Configurations.Add(new HandoverTrialMap());
            modelBuilder.Configurations.Add(new HierarchyMap());
            modelBuilder.Configurations.Add(new InterfaceMap());
            modelBuilder.Configurations.Add(new InterfaceUsageMap());
            modelBuilder.Configurations.Add(new InterfaceTypeMap());
            modelBuilder.Configurations.Add(new InterfaceCategoryMap());
            modelBuilder.Configurations.Add(new ItContractMap());
            modelBuilder.Configurations.Add(new ItContractRightMap());
            modelBuilder.Configurations.Add(new ItContractRoleMap());
            modelBuilder.Configurations.Add(new ItContractModuleNameMap());
            modelBuilder.Configurations.Add(new ItProjectMap());
            modelBuilder.Configurations.Add(new ItProjectRightMap());<commit_msg>Added interface exposure to kitos context<commit_after>using System.Data.Entity;
using Core.DomainModel;
using Core.DomainModel.ItContract;
using Core.DomainModel.ItProject;
using Core.DomainModel.ItSystem;
using Infrastructure.DataAccess.Mapping;

namespace Infrastructure.DataAccess
{
    public class KitosContext : DbContext
    {
        static KitosContext()
        {

        }

        public KitosContext()
            : base("Name=KitosContext")
        {
        }

        public DbSet<AdminRight> AdminRights { get; set; }
        public DbSet<AdminRole> AdminRoles { get; set; }
        public DbSet<Agreement> Agreements { get; set; }
        public DbSet<AgreementElement> AgreementElements { get; set; }
        public DbSet<AppType> AppTypes { get; set; }
        public DbSet<ArchiveType> ArchiveTypes { get; set; }
        public DbSet<Activity> Activities { get; set; }
        public DbSet<BusinessType> BusinessTypes { get; set; }
        public DbSet<Communication> Communications { get; set; }
        public DbSet<Config> Configs { get; set; }
        public DbSet<ContractTemplate> ContractTemplates { get; set; }
        public DbSet<ContractType> ContractTypes { get; set; }
        public DbSet<DataType> DataTypes { get; set; }
        public DbSet<DataRow> DataRows { get; set; }
        public DbSet<DataRowUsage> DataRowUsages { get; set; }
        public DbSet<Economy> Economies { get; set; }
        public DbSet<EconomyYear> EconomyYears { get; set; }
        public DbSet<ExtReference> ExtReferences { get; set; }
        public DbSet<ExtReferenceType> ExtReferenceTypes { get; set; }
        public DbSet<ExtRefTypeLocale> ExtRefTypeLocales { get; set; }
        public DbSet<Frequency> Frequencies { get; set; }
        public DbSet<Goal> Goals { get; set; }
        public DbSet<GoalStatus> GoalStatus { get; set; }
        public DbSet<GoalType> GoalTypes { get; set; }
        public DbSet<Handover> Handovers { get; set; }
        public DbSet<HandoverTrial> HandoverTrials { get; set; }
        public DbSet<Hierarchy> Hierarchies { get; set; }
        public DbSet<Interface> Interfaces { get; set; }
        public DbSet<InterfaceUsage> InterfaceUsages { get; set; }
        public DbSet<InterfaceExposure> InterfaceExposure { get; set; }
        public DbSet<InterfaceType> InterfaceTypes { get; set; }
        public DbSet<InterfaceCategory> InterfaceCategories { get; set; }
        public DbSet<ItContractModuleName> ItContractModuleNames { get; set; }
        public DbSet<ItContract> ItContracts { get; set; }
        public DbSet<ItContractRight> ItContractRights { get; set; }
        public DbSet<ItContractRole> ItContractRoles { get; set; }
        public DbSet<ItProjectModuleName> ItProjectModuleNames { get; set; }
        public DbSet<ItProject> ItProjects { get; set; }
        public DbSet<ItProjectRight> ItProjectRights { get; set; }
        public DbSet<ItProjectRole> ItProjectRoles { get; set; }
        public DbSet<ItSupportModuleName> ItSupportModuleNames { get; set; }
        public DbSet<ItSystemModuleName> ItSystemModuleNames { get; set; }
        public DbSet<ItSystem> ItSystems { get; set; }
        public DbSet<ItSystemUsage> ItSystemUsages { get; set; }
        public DbSet<ItSystemRight> ItSystemRights { get; set; }
        public DbSet<ItSystemRole> ItSystemRoles { get; set; }
        public DbSet<Localization> Localizations { get; set; }
        public DbSet<Method> Methods { get; set; }
        public DbSet<Milestone> Milestones { get; set; }
        public DbSet<Organization> Organizations { get; set; }
        public DbSet<OrgTab> OrgTabs { get; set; }
        public DbSet<OrganizationUnit> OrganizationUnits { get; set; }
        public DbSet<OrganizationRight> OrganizationRights { get; set; }
        public DbSet<OrganizationRole> OrganizationRoles { get; set; }
        public DbSet<PasswordResetRequest> PasswordResetRequests { get; set; }
        public DbSet<PaymentModel> PaymentModels { get; set; }
        public DbSet<Payment> Payments { get; set; }
        public DbSet<ItProjectCategory> ProjectCategories { get; set; }
        public DbSet<ProjectPhase> ProjectPhases { get; set; }
        public DbSet<ProjPhaseLocale> ProjectPhaseLocales { get; set; }
        public DbSet<ProjectStatus> ProjectStatus { get; set; }
        public DbSet<ItProjectType> ProjectTypes { get; set; }
        public DbSet<PurchaseForm> PurchaseForms { get; set; }
        public DbSet<Resource> Resources { get; set; }
        public DbSet<Risk> Risks { get; set; }
        public DbSet<SensitiveDataType> SensitiveDataTypes { get; set; }
        public DbSet<ShipNotice> ShipNotices { get; set; }
        public DbSet<Stakeholder> Stakeholders { get; set; }
        public DbSet<State> States { get; set; }
        public DbSet<Supplier> Suppliers { get; set; }
        public DbSet<TaskRef> TaskRefs { get; set; }
        public DbSet<TaskUsage> TaskUsages { get; set; }
        public DbSet<Text> Texts { get; set; }
        public DbSet<Tsa> Tsas { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<Wish> Wishes { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AdminRightMap());
            modelBuilder.Configurations.Add(new AdminRoleMap());
            modelBuilder.Configurations.Add(new AgreementMap());
            modelBuilder.Configurations.Add(new AgreementElementMap());
            modelBuilder.Configurations.Add(new AppTypeMap());
            modelBuilder.Configurations.Add(new ActivityMap());
            modelBuilder.Configurations.Add(new ArchiveTypeMap());
            modelBuilder.Configurations.Add(new BusinessTypeMap());
            modelBuilder.Configurations.Add(new CommunicationMap());
            modelBuilder.Configurations.Add(new ConfigMap());
            modelBuilder.Configurations.Add(new ContractTemplateMap());
            modelBuilder.Configurations.Add(new ContractTypeMap());
            modelBuilder.Configurations.Add(new DataTypeMap());
            modelBuilder.Configurations.Add(new DataRowMap());
            modelBuilder.Configurations.Add(new DataRowUsageMap());
            modelBuilder.Configurations.Add(new EconomyMap());
            modelBuilder.Configurations.Add(new EconomyYearMap());
            modelBuilder.Configurations.Add(new ExtReferenceMap());
            modelBuilder.Configurations.Add(new ExtReferenceTypeMap());
            modelBuilder.Configurations.Add(new ExtRefTypeLocaleMap());
            modelBuilder.Configurations.Add(new FrequencyMap());
            modelBuilder.Configurations.Add(new GoalMap());
            modelBuilder.Configurations.Add(new GoalStatusMap());
            modelBuilder.Configurations.Add(new GoalTypeMap());
            modelBuilder.Configurations.Add(new HandoverMap());
            modelBuilder.Configurations.Add(new HandoverTrialMap());
            modelBuilder.Configurations.Add(new HierarchyMap());
            modelBuilder.Configurations.Add(new InterfaceMap());
            modelBuilder.Configurations.Add(new InterfaceUsageMap());
            modelBuilder.Configurations.Add(new InterfaceExposureMap());
            modelBuilder.Configurations.Add(new InterfaceTypeMap());
            modelBuilder.Configurations.Add(new InterfaceCategoryMap());
            modelBuilder.Configurations.Add(new ItContractMap());
            modelBuilder.Configurations.Add(new ItContractRightMap());
            modelBuilder.Configurations.Add(new ItContractRoleMap());
            modelBuilder.Configurations.Add(new ItContractModuleNameMap());
            modelBuilder.Configurations.Add(new ItProjectMap());
            modelBuilder.Configurations.Add(new ItProjectRightMap());
{'fraction_non_alphanumeric': 0.09806209086784626, 'fraction_numerical': 0.0, 'mean_word_length': 3.1201602136181577, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 154, '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': '4542063', 'n_tokens_mistral': 4382, 'n_tokens_neox': 4151, 'n_words': 965}