<commit_before>﻿using RelhaxModpack.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RelhaxModpack.Installer
{
    public abstract class Instruction : XmlDatabaseComponent
    {
        public Instruction() : base()
        {

        }

        public Instruction(Instruction instructionToCopy) : base(instructionToCopy)
        {

        }

        public abstract string[] PropertiesToSerialize();

        public abstract string RootObjectPath { get; }

        public string SchemaVersionLocal { get; set; }

        /// <summary>
        /// A single string with the filename of the processingNativeFile (needed for tracing work instructions after installation)
        /// </summary>
        public string NativeProcessingFile { get; set; } = string.Empty;

        /// <summary>
        /// the actual name of the original patch before processed
        /// </summary>
        public string ActualPatchName { get; set; } = string.Empty;

        public virtual string DumpInfoToLog
        {
            get
            {
                return string.Format("{0}={1}, {1}={2}", nameof(NativeProcessingFile), NativeProcessingFile, nameof(ActualPatchName), ActualPatchName);
            }
        }

        public abstract bool InstructionsEqual(Instruction instructionToCompare);
    }
}<commit_msg>add reference to Package for instructions<commit_after>﻿using RelhaxModpack.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RelhaxModpack.Installer
{
    public abstract class Instruction : XmlDatabaseComponent
    {
        public Instruction() : base()
        {

        }

        public Instruction(Instruction instructionToCopy) : base(instructionToCopy)
        {

        }

        public abstract string[] PropertiesToSerialize();

        public abstract string RootObjectPath { get; }

        public string SchemaVersionLocal { get; set; }

        /// <summary>
        /// A single string with the filename of the processingNativeFile (needed for tracing work instructions after installation)
        /// </summary>
        public string NativeProcessingFile { get; set; } = string.Empty;

        /// <summary>
        /// the actual name of the original patch before processed
        /// </summary>
        public string ActualPatchName { get; set; } = string.Empty;

        public DatabasePackage Package { get; set; }

        public virtual string DumpInfoToLog
        {
            get
            {
                return string.Format("{0}={1}, {1}={2}", nameof(NativeProcessingFile), NativeProcessingFile, nameof(ActualPatchName), ActualPatchName);
            }
        }

        public abstract bool InstructionsEqual(Instruction instructionToCompare);
    }
}
{'fraction_non_alphanumeric': 0.08831710709318498, 'fraction_numerical': 0.0027816411682892906, 'mean_word_length': 2.483050847457627, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '410515', 'n_tokens_mistral': 715, 'n_tokens_neox': 688, 'n_words': 206}