<commit_before>﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;

using SampleHttpApplication.BusinessLogicComponents.Code.Scheduling;
using SampleHttpApplication.BusinessLogicComponents.Interface.Scheduling;
using SampleHttpApplication.DataAccessComponents.Code;
using SampleHttpApplication.DataAccessComponents.Code.Session;
using SampleHttpApplication.DataAccessComponents.Interface;

namespace SampleHttpApplication.ServiceComponents.Code.Scheduling.Sessions
{
    /// <summary>
    /// Represents the Sessions controller.
    /// </summary>
    public partial class SessionsController : ApiController
    {
        /// <summary>
        /// The database connection provider.
        /// </summary>
        private readonly IDatabaseConnectionProvider databaseConnectionProvider;

        /// <summary>
        /// The business logic components.
        /// </summary>
        private readonly ISchedulingBusinessLogicComponent schedulingBusinessLogicComponent;

        /// <summary>
        /// Initialization conctructor.
        /// </summary>
        public SessionsController(IDatabaseConnectionProvider databaseConnectionProvider, ISchedulingBusinessLogicComponent schedulingBusinessLogicComponent)
        {
            // Initialize the database connection provider.
            this.databaseConnectionProvider = databaseConnectionProvider;

            // Initialize the business logic components.
            this.schedulingBusinessLogicComponent = schedulingBusinessLogicComponent;
        }

        /// <summary>
        /// Registers the HTTP routes.
        /// </summary>
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.MapHttpRoute(
                name: "AAA",
                routeTemplate: "{controller}",
                defaults: new { },
                constraints: new { httpMethods = new HttpMethodConstraint("GET", "POST") });
        }
    }
}<commit_msg>Issue 10004 - Layout the ServiceComponents<commit_after>﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;

using SampleHttpApplication.BusinessLogicComponents.Code.Scheduling;
using SampleHttpApplication.BusinessLogicComponents.Interface.Scheduling;
using SampleHttpApplication.DataAccessComponents.Code;
using SampleHttpApplication.DataAccessComponents.Code.Session;
using SampleHttpApplication.DataAccessComponents.Interface;

namespace SampleHttpApplication.ServiceComponents.Code.Scheduling.Sessions
{
    /// <summary>
    /// Represents the Sessions controller.
    /// </summary>
    public partial class SessionsController : ApiController
    {
        /// <summary>
        /// The database connection provider.
        /// </summary>
        private readonly IDatabaseConnectionProvider databaseConnectionProvider;

        /// <summary>
        /// The business logic components.
        /// </summary>
        private readonly ISchedulingBusinessLogicComponent schedulingBusinessLogicComponent;

        /// <summary>
        /// Initialization conctructor.
        /// </summary>
        public SessionsController(IDatabaseConnectionProvider databaseConnectionProvider, ISchedulingBusinessLogicComponent schedulingBusinessLogicComponent)
        {
            // Initialize the database connection provider.
            this.databaseConnectionProvider = databaseConnectionProvider;

            // Initialize the business logic components.
            this.schedulingBusinessLogicComponent = schedulingBusinessLogicComponent;
        }

        /// <summary>
        /// Registers the HTTP routes.
        /// </summary>
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.MapHttpRoute(
                name: "",
                routeTemplate: "api/scheduling/sessions",
                defaults: new { controller = "Sessions" },
                constraints: new { httpMethods = new HttpMethodConstraint("GET", "POST") });
        }
    }
}
{'fraction_non_alphanumeric': 0.084815988301243, 'fraction_numerical': 0.0012186205215695832, 'mean_word_length': 2.7720588235294117, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4440886', 'n_tokens_mistral': 959, 'n_tokens_neox': 908, 'n_words': 211}