<commit_before>"""
Tests for dit.multivariate.secret_key_agreement.reduced_intrinsic_mutual_information
"""

import pytest

from dit.example_dists.intrinsic import *
from dit.multivariate import reduced_intrinsic_total_correlation

@pytest.skip
@pytest.mark.parametrize(('dist', 'val'), [(intrinsic_1, 0.0), (intrinsic_2, 1.0), (intrinsic_3, 1.0)])
def test_1(dist, val):
    """
    Test against known values.
    """
    rimi = reduced_intrinsic_total_correlation(dist, [[0], [1]], [2])
    assert rimi == pytest.approx(val, abs=1e-5)<commit_msg>fix decorator<commit_after>"""
Tests for dit.multivariate.secret_key_agreement.reduced_intrinsic_mutual_information
"""

import pytest

from dit.example_dists.intrinsic import *
from dit.multivariate import reduced_intrinsic_total_correlation

@pytest.mark.skip
@pytest.mark.parametrize(('dist', 'val'), [(intrinsic_1, 0.0), (intrinsic_2, 1.0), (intrinsic_3, 1.0)])
def test_1(dist, val):
    """
    Test against known values.
    """
    rimi = reduced_intrinsic_total_correlation(dist, [[0], [1]], [2])
    assert rimi == pytest.approx(val, abs=1e-5)
{'fraction_non_alphanumeric': 0.14623069936421434, 'fraction_numerical': 0.027247956403269755, 'mean_word_length': 5.678787878787879, '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': '1570229', 'n_tokens_mistral': 413, 'n_tokens_neox': 395, 'n_words': 76}