<commit_before>﻿using System;
using System.Web.Mvc;

using TeacherPouch.Repositories;
using TeacherPouch.Utilities.Extensions;
using TeacherPouch.Providers;
using TeacherPouch.Models;

namespace TeacherPouch.Web.Controllers
{
    public partial class SearchController : RepositoryControllerBase
    {
        public SearchController(IRepository repository)
        {
            base.Repository = repository;
        }


        // GET: /Search?q=spring&op=and
        public virtual ViewResult Search(string q, string op)
        {
            if (String.IsNullOrWhiteSpace(q) || q.Length <= 2)
                return base.View(Views.NoneFound);

            ViewBag.SearchTerm = q;<commit_msg>Search query new minimum of 2 characters.<commit_after>﻿using System;
using System.Web.Mvc;

using TeacherPouch.Models;
using TeacherPouch.Providers;
using TeacherPouch.Repositories;

namespace TeacherPouch.Web.Controllers
{
    public partial class SearchController : RepositoryControllerBase
    {
        public SearchController(IRepository repository)
        {
            base.Repository = repository;
        }


        // GET: /Search?q=spring&op=and
        public virtual ViewResult Search(string q, string op)
        {
            if (String.IsNullOrWhiteSpace(q) || q.Length < 2)
                return base.View(Views.NoneFound);

            ViewBag.SearchTerm = q;
{'fraction_non_alphanumeric': 0.08357558139534883, 'fraction_numerical': 0.002180232558139535, 'mean_word_length': 2.7418478260869565, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1684025', 'n_tokens_mistral': 387, 'n_tokens_neox': 372, 'n_words': 85}