<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QuantumConcepts.Common.Extensions;

namespace JSM.Web.Controllers
{
    public class ExportController : BaseController
    {
        private const string DownloadVirtualPath = "~/Content/Download/";

        public FileResult PDF()
        {
            string downloadFilename = GetResumeDownloadFilename("pdf");

            return this.File(Server.MapPath("{0}{1}".FormatString(ExportController.DownloadVirtualPath, "Resume.pdf")), MimeMapping.GetMimeMapping(downloadFilename), downloadFilename);
        }

        public static string GetResumeDownloadFilename(string extension) {
            return "Josh McCullough's Resume {0}.{1}".FormatString(DateTime.Now, extension);
        }
    }
}<commit_msg>Changed filename of exported resume.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QuantumConcepts.Common.Extensions;

namespace JSM.Web.Controllers
{
    public class ExportController : BaseController
    {
        private const string DownloadVirtualPath = "~/Content/Download/";

        public FileResult PDF()
        {
            string downloadFilename = GetResumeDownloadFilename("pdf");

            return this.File(Server.MapPath("{0}{1}".FormatString(ExportController.DownloadVirtualPath, "Resume.pdf")), MimeMapping.GetMimeMapping(downloadFilename), downloadFilename);
        }

        public static string GetResumeDownloadFilename(string extension) {
            return "Resume of Josh McCullough {0:yyyyMMdd}.{1}".FormatString(DateTime.Now, extension);
        }
    }
}
{'fraction_non_alphanumeric': 0.10251903925014645, 'fraction_numerical': 0.0046865846514352666, 'mean_word_length': 3.731301939058172, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5819485', 'n_tokens_mistral': 461, 'n_tokens_neox': 449, 'n_words': 95}