<commit_before>package com.mbzshajib.mining.processor.uncertain.model;

import com.mbzshajib.mining.util.Constant;

import java.util.ArrayList;
import java.util.List;

/**
 * *****************************************************************
 * Copyright  2015.
 *
 * @author - <NAME>
 * @email - <EMAIL>
 * @gitHub - https://github.com/mbzshajib
 * @date: 9/21/2015
 * @time: 3:59 PM
 * ****************************************************************
 */


class HeaderTableItem {
    private String itemId;
    private List<UNode> nodeList;

    HeaderTableItem(String itemId) {
        this.itemId = itemId;
        nodeList = new ArrayList<UNode>();
    }

    HeaderTableItem(String itemId, int nodeSize) {
        this.itemId = itemId;
        nodeList = new ArrayList<UNode>(nodeSize);
    }


    void updateHeaderData(UNode uNode) {
        nodeList.add(uNode);
    }

    String getItemId() {
        return itemId;
    }

    void setItemId(String itemId) {
        this.itemId = itemId;
    }

    List<UNode> getNodeList() {
        return nodeList;
    }

    double getItemPrefixValue() {
        double result = 0;
        for (UNode node : nodeList) {
            result = result+node.getNodePrefixValue();
        }
        return result;
    }

    double getItemProbabilityValue() {
        double result = 0;
        for (UNode node : nodeList) {
            result=result+node.getItemProbabilityValue();
<commit_msg>[Mining] - #FrequentSet# - new method for getting mining probability value.<commit_after>package com.mbzshajib.mining.processor.uncertain.model;

import com.mbzshajib.mining.util.Constant;

import java.util.ArrayList;
import java.util.List;

/**
 * *****************************************************************
 * Copyright  2015.
 *
 * @author - <NAME>
 * @email - <EMAIL>
 * @gitHub - https://github.com/mbzshajib
 * @date: 9/21/2015
 * @time: 3:59 PM
 * ****************************************************************
 */


class HeaderTableItem {
    private String itemId;
    private List<UNode> nodeList;

    HeaderTableItem(String itemId) {
        this.itemId = itemId;
        nodeList = new ArrayList<UNode>();
    }

    HeaderTableItem(String itemId, int nodeSize) {
        this.itemId = itemId;
        nodeList = new ArrayList<UNode>(nodeSize);
    }


    void updateHeaderData(UNode uNode) {
        nodeList.add(uNode);
    }

    String getItemId() {
        return itemId;
    }

    void setItemId(String itemId) {
        this.itemId = itemId;
    }

    List<UNode> getNodeList() {
        return nodeList;
    }

    double getItemPrefixValue() {
        double result = 0;
        for (UNode node : nodeList) {
            result = result + node.getNodePrefixValue();
        }
        return result;
    }

    double getItemProbabilityValue() {
        double result = 0;
        for (UNode node : nodeList) {
            result = result + node.getItemProbabilityValue();

        }
        return result;
    }

    double getMiningValue() {
        double result = 0;
        for (UNode node : nodeList) {
            result = result + node.getMiningProbability();

{'fraction_non_alphanumeric': 0.18509079324625677, 'fraction_numerical': 0.010512902198152279, 'mean_word_length': 2.580387685290764, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '382460', 'n_tokens_mistral': 980, 'n_tokens_neox': 913, 'n_words': 195}