<commit_before>﻿
// Les routes pour transmettre les informations aux controllers ;

using System.Web.Mvc;
using System.Web.Routing;

namespace Tigwi_API
{
    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");


            //routes to InfoAccount

            routes.MapRoute("InfoAccountMessages",
                            "infoaccount/messages/{accountName}/{numberOfMessages}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "Messages",
                                    accountName = "",
                                    numberOfMessages = "20" // Par défaut le nombre de messages est 20
                                } 
                );
            
            routes.MapRoute("InfoAccountPublicSubscription",
                            "infoaccount/publicsubscriptions/{accountName}/{numberOfSubscriptions}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "PublicSubscriptions",
                                    accountName = "",
                                    numberOfSubscriptions = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscription",
                            "infoaccount/subscriptions/{accountName}/{numberOfSubscriptions}",
                            new
                            {
                                controller = "InfoAccountController",
                                action = "Subscriptions",
                                accountName = "",
                                numberOfSubscriptions = "20"
                            }
                );

            routes.MapRoute("InfoAccountSubscribers",
                            "infoaccount/subscribers/{accountName}/{numberOfSubscribers}",
                            new
                                {
                                    controller = "InfoAcountController",
                                    action = "Subscribers",
                                    accountName = "",
                                    numberOfSubscribers = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscribedPublicList",
                            "infoaccout/subscribedpubliclists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "SubscribedPublicLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscribedList",
                            "infoaccout/subscribedlists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "SubscribedLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );

            routes.MapRoute("InfoAccountOwnedPublicList",
                            "infoaccout/ownedpubliclists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "OwnedPublicLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscribedPublicList",
                            "infoaccout/ownedlists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "OwnedLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );



<commit_msg>correcting bugs in API route names. NB : still doesn't work<commit_after>﻿
// Les routes pour transmettre les informations aux controllers ;

using System.Web.Mvc;
using System.Web.Routing;

namespace Tigwi_API
{
    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");


            //routes to InfoAccount

            routes.MapRoute("InfoAccountMessages",
                            "infoaccount/messages/{accountName}/{numberOfMessages}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "Messages",
                                    accountName = "",
                                    numberOfMessages = "20" // Par défaut le nombre de messages est 20
                                } 
                );
            
            routes.MapRoute("InfoAccountPublicSubscriptions",
                            "infoaccount/publicsubscriptions/{accountName}/{numberOfSubscriptions}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "PublicSubscriptions",
                                    accountName = "",
                                    numberOfSubscriptions = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscriptions",
                            "infoaccount/subscriptions/{accountName}/{numberOfSubscriptions}",
                            new
                            {
                                controller = "InfoAccountController",
                                action = "Subscriptions",
                                accountName = "",
                                numberOfSubscriptions = "20"
                            }
                );

            routes.MapRoute("InfoAccountSubscribers",
                            "infoaccount/subscribers/{accountName}/{numberOfSubscribers}",
                            new
                                {
                                    controller = "InfoAcountController",
                                    action = "Subscribers",
                                    accountName = "",
                                    numberOfSubscribers = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscribedPublicList",
                            "infoaccout/subscribedpubliclists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "SubscribedPublicLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );

            routes.MapRoute("InfoAccountSubscribedList",
                            "infoaccout/subscribedlists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "SubscribedLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );

            routes.MapRoute("InfoAccountOwnedPublicList",
                            "infoaccout/ownedpubliclists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "OwnedPublicLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );

            routes.MapRoute("InfoAccountOwnedList",
                            "infoaccout/ownedlists/{accountName}/{numberOfLists}",
                            new
                                {
                                    controller = "InfoAccountController",
                                    action = "OwnedLists",
                                    accountName = "",
                                    numberOfLists = "20"
                                }
                );




{'fraction_non_alphanumeric': 0.06763652155032027, 'fraction_numerical': 0.003908370426663772, 'mean_word_length': 0.762724837351703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4411982', 'n_tokens_mistral': 1801, 'n_tokens_neox': 1641, 'n_words': 241}