<commit_before>﻿using Newtonsoft.Json;
using SolrExpress.Search;
using SolrExpress.Search.Parameter;
using System;
using System.Collections.Generic;
using System.IO;

namespace SolrExpress.Benchmarks.Helper
{
    public class FakeSearchItemCollection<TDocument> : ISearchItemCollection<TDocument>
        where TDocument : Document
    {
        public void Add(ISearchItem item)
        {
        }

        public void AddRange(IEnumerable<ISearchItem> items)
        {
        }

        public bool Contains<TSearchItem>() where TSearchItem : ISearchItem
        {
            return false;
        }

        public bool Contains(Type searchItemType)
        {
            return false;
        }

        public JsonReader Execute(string requestHandler)
        {
            return new JsonTextReader(new StringReader("{}"));
        }

        public List<ISearchParameter> GetSearchParameters()
        {
            return new List<ISearchParameter>();
        }

        public List<Search.Result.ISearchResult<TDocument>> GetSearchResults()
        {
            return new List<Search.Result.ISearchResult<TDocument>>();
        }
    }
}<commit_msg>#309 #308<commit_after>﻿using Newtonsoft.Json;
using SolrExpress.Search;
using SolrExpress.Search.Parameter;
using System;
using System.Collections.Generic;
using System.IO;

namespace SolrExpress.Benchmarks.Helper
{
    public class FakeSearchItemCollection<TDocument> : ISearchItemCollection<TDocument>
        where TDocument : Document
    {
        public void Add(ISearchItem item)
        {
            // Test purpose only
        }

        public void AddRange(IEnumerable<ISearchItem> items)
        {
            // Test purpose only
        }

        public bool Contains<TSearchItem>() where TSearchItem : ISearchItem
        {
            return false;
        }

        public bool Contains(Type searchItemType)
        {
            return false;
        }

        public JsonReader Execute(string requestHandler)
        {
            return new JsonTextReader(new StringReader("{}"));
        }

        public List<ISearchParameter> GetSearchParameters()
        {
            return new List<ISearchParameter>();
        }

        public List<Search.Result.ISearchResult<TDocument>> GetSearchResults()
        {
            return new List<Search.Result.ISearchResult<TDocument>>();
        }
    }
}
{'fraction_non_alphanumeric': 0.08207705192629816, 'fraction_numerical': 0.002512562814070352, 'mean_word_length': 2.2283783783783786, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5136908', 'n_tokens_mistral': 630, 'n_tokens_neox': 612, 'n_words': 133}