<commit_before>import unittest

from context import html2md
from assertions import assertEq


class ParagraphBreaksText(unittest.TestCase):
    def test_linebreak(self):
        in_html = '''<p>This is a paragraph with<br />
a forced line break<br />
used in 2 places.'''
        out_md = '''This is a paragraph with
a forced line break
used in 2 places.'''
        assertEq(out_md, html2md.html2md(in_html))



if  __name__ == '__main__':
    unittest.main()<commit_msg>fixed line breaks and hr<commit_after>import unittest

from context import html2md
from assertions import assertEq


class ParagraphBreaksText(unittest.TestCase):
    def test_linebreak(self):
        in_html = '''<p>This is a paragraph with<br />
a forced line break<br />
used in 2 places.'''
        out_md = u'''This is a paragraph with  
a forced line break  
used in 2 places.'''
        assertEq(out_md, html2md.html2md(in_html))


    def test_hr(self):
        in_html = u'''<p>Some text.</p>
<hr/>
<p>Follow up text.</p>'''
        out_md = u'''Some text.

-----

Follow up text.'''
        assertEq(out_md, html2md.html2md(in_html))


if  __name__ == '__main__':
    unittest.main()

{'fraction_non_alphanumeric': 0.12103004291845494, 'fraction_numerical': 0.010300429184549357, 'mean_word_length': 3.3185185185185184, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '879426', 'n_tokens_mistral': 398, 'n_tokens_neox': 384, 'n_words': 116}