<commit_before>#!/usr/bin/env python3
"""Contains the different formats of CPDs used in PGM"""

import numpy as np


class TabularCPD():
    """
    Represents the CPD of a node in tabular form
    """
    def __init__(self, cpd):
        self.table = np.array(cpd)<commit_msg>add get_cpd method to TabularCPD<commit_after>#!/usr/bin/env python3
"""Contains the different formats of CPDs used in PGM"""

import numpy as np


class TabularCPD():
    """
    Represents the CPD of a node in tabular form
    """
    def __init__(self, cpd):
        self.table = np.array(cpd)

    def get_cpd(self):
        return self.table
{'fraction_non_alphanumeric': 0.10914927768860354, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 3.0784313725490198, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6404344', 'n_tokens_mistral': 212, 'n_tokens_neox': 205, 'n_words': 69}