<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Call_Logger.Models;
using Call_Logger.Data;

namespace Call_Logger.Controllers
{
    public class CallLogController : Controller
    {
        public ActionResult Detail()
        {
            return View(call);
        }
    }<commit_msg>Updated CallLog Controller to use CallLog Repositotry.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Call_Logger.Models;
using Call_Logger.Data;

namespace Call_Logger.Controllers
{
    public class CallLogController : Controller
    {
        private CallLogRepository _callLogRepository = null;

        public CallLogController()
        {
            _callLogRepository = new CallLogRepository();
        }
        public ActionResult Detail(int? ID)
        {
            if (ID == null)
            {
                return HttpNotFound();
            }

            var call = _callLogRepository.GetCall((int)ID);
            return View(call);
        }
    }
{'fraction_non_alphanumeric': 0.08057296329453895, 'fraction_numerical': 0.0, 'mean_word_length': 2.4828660436137073, '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': '2360831', 'n_tokens_mistral': 301, 'n_tokens_neox': 300, 'n_words': 74}