<commit_before>﻿using System.Linq;
using System.Web.Mvc;
using EmpleoDotNet.Models;
using Microsoft.Owin.Security.Provider;

namespace EmpleoDotNet.Controllers
{
    public class JobOpportunityController : Controller
    {
        private readonly Database _databaseContext;

        public JobOpportunityController()
        {
            _databaseContext = new Database();
        }

        // GET: Vacantes
        public ActionResult Index()
        {
            var vmJobList = _databaseContext.JobOpportunities
                .OrderByDescending(e => e.Created)
                .ToList();

            if (!vmJobList.Any())
                return RedirectToAction("Index", "Home");

            return View(vmJobList.ToList());
        }

        public ActionResult Detail(int? id)
        {
            if (!id.HasValue)
                return View("Index");
<commit_msg>Update JobOpportunityController.cs<commit_after>﻿using System.Linq;
using System.Web.Mvc;
using EmpleoDotNet.Models;
using Microsoft.Owin.Security.Provider;

namespace EmpleoDotNet.Controllers
{
    public class JobOpportunityController : Controller
    {
        private readonly Database _databaseContext;

        public JobOpportunityController()
        {
            _databaseContext = new Database();
        }

        // GET: Vacantes
        public ActionResult Index()
        {
            var vmJobList = _databaseContext.JobOpportunities
                .OrderByDescending(e => e.Created)
                .ToList();

            if (!vmJobList.Any())
                return RedirectToAction("Index", "Home");

            return View(vmJobList);
        }

        public ActionResult Detail(int? id)
        {
            if (!id.HasValue)
                return View("Index");

{'fraction_non_alphanumeric': 0.08906426155580609, 'fraction_numerical': 0.0, 'mean_word_length': 1.9882154882154883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1456193', 'n_tokens_mistral': 475, 'n_tokens_neox': 455, 'n_words': 99}