<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Snowflake.Utility;
using Snowflake.Plugin;
namespace Snowflake.Scraper
{
    [InheritedExport(typeof(IScraper))]
    public interface IScraper : IBasePlugin
    {
        BiDictionary<string, string> ScraperMap { get; }
        IList<IGameScrapeResult> GetSearchResults(string searchQuery);
        IList<IGameScrapeResult> GetSearchResults(string searchQuery, string platformId);
        Tuple<IDictionary<string, string>, IGameImagesResult> GetGameDetails(string id);
    }
}<commit_msg>partially document scraper api<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Snowflake.Utility;
using Snowflake.Plugin;
namespace Snowflake.Scraper
{
    /// <summary>
    /// Represents a scraper plugin that is able to grab information from a source
    /// </summary>
    [InheritedExport(typeof(IScraper))]
    public interface IScraper : IBasePlugin
    {
        /// <summary>
        /// A map of Snowflake's platform IDs to how the scraper source identifies platforms
        /// BiDictionary allows for backwards mapping from how the scraper source identifiers platforms to Snowflake's platform IDs
        /// </summary>
        BiDictionary<string, string> ScraperMap { get; }
        /// <summary>
        /// Gets the search results given a string query
        /// </summary>
        /// <param name="searchQuery">The string to search</param>
        /// <returns></returns>
        IList<IGameScrapeResult> GetSearchResults(string searchQuery);
        /// <summary>
        /// Gets the search results given a string query and the Snowflake platform ID of a platform
        /// </summary>
        /// <param name="searchQuery">The string to search</param>
        /// <param name="platformId">The Snowflake platform ID</param>
        /// <returns></returns>
        IList<IGameScrapeResult> GetSearchResults(string searchQuery, string platformId);
        /// <summary>
        /// Gets the details of 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Tuple<IDictionary<string, string>, IGameImagesResult> GetGameDetails(string id);
    }
}
{'fraction_non_alphanumeric': 0.10959507042253522, 'fraction_numerical': 0.0, 'mean_word_length': 2.9807355516637477, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '2742167', 'n_tokens_mistral': 616, 'n_tokens_neox': 601, 'n_words': 171}