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

namespace Entities.Models {

    /// <summary>
    /// FlowPropertyMagnitude - associates Flow Property with Magnitude.
    /// Embedded in FragmentFlowResource model.
    /// </summary>
    public class FlowPropertyMagnitude {
        public int FlowPropertyID { get; set; }
        public double Magnitude { get; set; }  // NodeCache.FlowMagnitude * FlowFlowProperty.MeanValue

    }

    /// <summary>
    /// A FragmentFlowResource is a FragmentFlow merged with related Node data
    /// Contains collection of FlowMagnitude objects - one for every property of the flow
    /// </summary>
    public class FragmentFlowResource {
        //
        // FragmentFlow Properties
        //
        public int FragmentFlowID { get; set; }
        public string Name { get; set; }
        public string ShortName { get; set; }        
        public int NodeTypeID { get; set; }
        public int? FlowID { get; set; }
        public int DirectionID { get; set; }
        public int? ParentFragmentFlowID { get; set; }
        //
        // Properties from entities related to FragmentFlow
        //
        public int? ProcessID { get; set; }     // FragmentNodeProcess.ProcessID, when NodeType is Process
        public int? SubFragmentID { get; set; } // FragmentNodeFragment.SubFragmentID, when NodeType is Fragment

        public ICollection<FlowPropertyMagnitude> FlowPropertyMagnitudes { get; set; }
    }
    
}<commit_msg>Build: Add NodeWeight property to FragmentFlowResource (#68)<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities.Models {

    /// <summary>
    /// FlowPropertyMagnitude - associates Flow Property with Magnitude.
    /// Embedded in FragmentFlowResource model.
    /// </summary>
    public class FlowPropertyMagnitude {
        public int FlowPropertyID { get; set; }
        public double Magnitude { get; set; }  // NodeCache.FlowMagnitude * FlowFlowProperty.MeanValue

    }

    /// <summary>
    /// A FragmentFlowResource is a FragmentFlow merged with related Node data
    /// Contains collection of FlowMagnitude objects - one for every property of the flow
    /// </summary>
    public class FragmentFlowResource {
        //
        // FragmentFlow Properties
        //
        public int FragmentFlowID { get; set; }
        public string Name { get; set; }
        public string ShortName { get; set; }        
        public int NodeTypeID { get; set; }
        public double NodeWeight { get; set; }
        public int? FlowID { get; set; }
        public int DirectionID { get; set; }
        public int? ParentFragmentFlowID { get; set; }
        //
        // Properties from entities related to FragmentFlow
        //
        public int? ProcessID { get; set; }     // FragmentNodeProcess.ProcessID, when NodeType is Process
        public int? SubFragmentID { get; set; } // FragmentNodeFragment.SubFragmentID, when NodeType is Fragment

        public ICollection<FlowPropertyMagnitude> FlowPropertyMagnitudes { get; set; }
    }
    
}
{'fraction_non_alphanumeric': 0.08870967741935484, 'fraction_numerical': 0.0006203473945409429, 'mean_word_length': 2.4455128205128207, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4147560', 'n_tokens_mistral': 864, 'n_tokens_neox': 818, 'n_words': 279}