<commit_before>import unittest

from openquake.hazardlib import scalerel


class AvailableScaleRelTestCase(unittest.TestCase):

    def test_get_available_scalerel(self):
        self.assertEqual({'WC1994': scalerel.wc1994.WC1994,
                          'PeerMSR': scalerel.peer.PeerMSR,
						  'CEUS2011': scalerel.ceus2011.CEUS2011},
                         dict(scalerel.get_available_scalerel()))

    def test_get_available_area_scalerel(self):
        self.assertEqual({'WC1994': scalerel.wc1994.WC1994},
                         dict(scalerel.get_available_area_scalerel()))

    def test_get_available_magnitude_scalerel(self):
        self.assertEqual({'PeerMSR': scalerel.peer.PeerMSR,
                          'WC1994': scalerel.wc1994.WC1994},
                         dict(scalerel.get_available_magnitude_scalerel()))
<commit_msg>CEUS2011 msr<commit_after>import unittest

from openquake.hazardlib import scalerel


class AvailableScaleRelTestCase(unittest.TestCase):

    def test_get_available_scalerel(self):
        self.assertEqual({'WC1994': scalerel.wc1994.WC1994,
                          'PeerMSR': scalerel.peer.PeerMSR,
                          'CEUS2011': scalerel.ceus2011.CEUS2011},
                         dict(scalerel.get_available_scalerel()))

    def test_get_available_area_scalerel(self):
        self.assertEqual({'WC1994': scalerel.wc1994.WC1994},
                         dict(scalerel.get_available_area_scalerel()))

    def test_get_available_magnitude_scalerel(self):
        self.assertEqual({'PeerMSR': scalerel.peer.PeerMSR,
                          'WC1994': scalerel.wc1994.WC1994,
                          'CEUS2011': scalerel.ceus2011.CEUS2011},
                         dict(scalerel.get_available_magnitude_scalerel()))

{'fraction_non_alphanumeric': 0.09646662927650028, 'fraction_numerical': 0.0628154795288839, 'mean_word_length': 2.553784860557769, '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': '6123255', 'n_tokens_mistral': 650, 'n_tokens_neox': 506, 'n_words': 61}