<commit_before>﻿using System.Collections.Generic;
using System.Linq;
using Slp.Evi.Storage.Query;
using Slp.Evi.Storage.Sparql.Algebra;
using Slp.Evi.Storage.Sparql.Algebra.Patterns;
using Slp.Evi.Storage.Sparql.PostProcess;
using Slp.Evi.Storage.Sparql.Utils;
using TCode.r2rml4net.Mapping;

namespace Slp.Evi.Storage.Mapping
{
    /// <summary>
    /// Mapping transformer
    /// </summary>
    public class MappingTransformer
        : BaseSparqlTransformer<QueryContext>, ISparqlPostProcess
    {
        /// <summary>
        /// Processes the specified query.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="context">The context.</param>
        public ISparqlQuery Process(ISparqlQuery query, QueryContext context)
        {
            return TransformSparqlQuery(query, context);
        }

        /// <summary>
        /// The mapping processor
        /// </summary>
        private readonly MappingProcessor _mappingProcessor;

        /// <summary>
        /// Initializes a new instance of the <see cref="MappingTransformer"/> class.
        /// </summary>
        /// <param name="mappingProcessor">The mapping processor.</param>
        public MappingTransformer(MappingProcessor mappingProcessor)
        {
            _mappingProcessor = mappingProcessor;<commit_msg>Correcting base type usage.<commit_after>﻿using System.Collections.Generic;
using System.Linq;
using Slp.Evi.Storage.Query;
using Slp.Evi.Storage.Sparql.Algebra;
using Slp.Evi.Storage.Sparql.Algebra.Patterns;
using Slp.Evi.Storage.Sparql.PostProcess;
using Slp.Evi.Storage.Sparql.Utils;
using TCode.r2rml4net.Mapping;

namespace Slp.Evi.Storage.Mapping
{
    /// <summary>
    /// Mapping transformer
    /// </summary>
    public class MappingTransformer
        : BaseSparqlTransformer<QueryContext>, ISparqlPostProcess
    {
        /// <summary>
        /// Processes the specified query.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="context">The context.</param>
        public ISparqlQuery Process(ISparqlQuery query, QueryContext context)
        {
            return TransformSparqlQuery(query, context);
        }

        /// <summary>
        /// The mapping processor
        /// </summary>
        private readonly IMappingProcessor _mappingProcessor;

        /// <summary>
        /// Initializes a new instance of the <see cref="MappingTransformer"/> class.
        /// </summary>
        /// <param name="mappingProcessor">The mapping processor.</param>
        public MappingTransformer(IMappingProcessor mappingProcessor)
        {
            _mappingProcessor = mappingProcessor;
{'fraction_non_alphanumeric': 0.1199851411589896, 'fraction_numerical': 0.0014858841010401188, 'mean_word_length': 2.4928664072632944, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3315608', 'n_tokens_mistral': 751, 'n_tokens_neox': 742, 'n_words': 156}