<commit_before>﻿using System;
using System.Web.Mvc;
using Tigwi.Storage.Library;
using Tigwi.API.Models;

namespace Tigwi.API.Controllers
{
    public class InfoAccountByIdController : InfoAccountController
    {
        // TEST
        // GET: /infoaccountbyid/test/{accountId}
        public string Test(Guid accountId)
        {
            return accountId + " accessed test successfully !";
        }

        //
        // GET: /infoaccount/messages/{accountId}/{number}
        public ActionResult Messages(Guid accountId, int number)
        {
            Answer output;

            try
            {
                output = AnswerMessages(accountId, number);
            }

            catch (StorageLibException exception)
            {<commit_msg>resolving exception due to bad Guid passed by the user<commit_after>﻿using System;
using System.Web.Mvc;
using Tigwi.Storage.Library;
using Tigwi.API.Models;

namespace Tigwi.API.Controllers
{
    public class InfoAccountByIdController : InfoAccountController
    {

        //
        // GET: /infoaccount/messages/{accountId}/{number}
        public ActionResult Messages(Guid? accountId, int number)
        {
            Answer output;

            try
            {
                output = accountId == null ? new Answer(new Error("Not a valid Guid")) : AnswerMessages(accountId.GetValueOrDefault(), number);
            }

            catch (StorageLibException exception)
            {
{'fraction_non_alphanumeric': 0.08740536820371644, 'fraction_numerical': 0.0, 'mean_word_length': 2.0546218487394956, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4623179', 'n_tokens_mistral': 374, 'n_tokens_neox': 367, 'n_words': 91}