<commit_before>﻿using Degrees1400.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;

namespace Degrees1400.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Products/

        public ActionResult Index([FromUri] string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                var model = new CuratorViewModel
                {
                    Timestamp = (int)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds)
                };

                return View(model);
            }

            try
            {
                GoogleAnalytics ga = new GoogleAnalytics(this.HttpContext.Request);
                ga.TrackPage(id);
            }
            catch (Exception ex)
            {
            }

            string url = "http://quarterly.co/products/" + id;
            return Redirect(url);
        }

    }
}
<commit_msg>added logic to forward querystring values to quarterly.co<commit_after>﻿using Degrees1400.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;

namespace Degrees1400.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Products/

        public ActionResult Index([FromUri] string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                var model = new CuratorViewModel
                {
                    Timestamp = (int)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds)
                };

                return View(model);
            }

            try
            {
                GoogleAnalytics ga = new GoogleAnalytics(this.HttpContext.Request);
                ga.TrackPage(id);
            }
            catch (Exception ex)
            {
            }

            string url = "http://quarterly.co/products/" + id + (Request.Url.Query ?? "");
            return Redirect(url);
        }

    }
}

{'fraction_non_alphanumeric': 0.09695817490494296, 'fraction_numerical': 0.013307984790874524, 'mean_word_length': 1.5149342891278375, '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': '2356934', 'n_tokens_mistral': 591, 'n_tokens_neox': 547, 'n_words': 118}