<commit_before># -*- coding: utf-8 -*-

from __future__ import division, print_function

__all__ = ["test_normal_hmc", "test_normal_hmc_nd"]

from ... import moves
from .test_proposal import _test_normal


def test_normal_hmc(**kwargs):
    _test_normal(moves.HMCMove(10, 0.1), nsteps=200, check_acceptance=False)


def test_normal_hmc_nd(**kwargs):
    _test_normal(moves.HMCMove(10, 0.1), ndim=3, nsteps=200,
                 check_acceptance=False)<commit_msg>Adding test for adaptive HMC move<commit_after># -*- coding: utf-8 -*-

from __future__ import division, print_function

__all__ = ["test_normal_hmc", "test_normal_hmc_nd", "test_adaptive_hmc"]

from ... import moves
from .test_proposal import _test_normal


def test_normal_hmc(**kwargs):
    _test_normal(moves.HMCMove((10, 20), (0.05, 0.1)), nsteps=100,
                 check_acceptance=False)


def test_normal_hmc_nd(**kwargs):
    _test_normal(moves.HMCMove(10, 0.1), ndim=3, nsteps=100,
                 check_acceptance=False)


def test_adaptive_hmc(**kwargs):
    _test_normal(moves.AdaptiveHMCMove((10, 20), (0.05, 0.1)), nsteps=100,
                 check_acceptance=False)
{'fraction_non_alphanumeric': 0.13141862489120976, 'fraction_numerical': 0.04264577893820714, 'mean_word_length': 4.251141552511416, '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': '6329828', 'n_tokens_mistral': 456, 'n_tokens_neox': 413, 'n_words': 77}