<commit_before>import unittest, os, sys, subprocess
from MuseParse.helpers import setupLilypond


class testLilySetup(unittest.TestCase):
    def setUp(self):
        pass

    def testSetup(self):
        path = ''
        if sys.platform != 'win32':
            path = '~/bin'
        setupLilypond(path)
        batcmd = 'lilypond'

        output = subprocess.Popen(["lilypond"], stderr=subprocess.PIPE, shell=True).communicate()[0]
        self.assertIsNone(output)<commit_msg>modified to work with windows<commit_after>import unittest, os, sys, subprocess
from MuseParse.helpers import setupLilypond


class testLilySetup(unittest.TestCase):
    def setUp(self):
        pass

    def testSetup(self):
        path = ''
        if sys.platform != 'win32':
            path = '~/bin'
        else:
            path = 'C:/Program Files (x86)/LilyPond/usr/bin'
        setupLilypond(path)
        batcmd = 'lilypond'

        output = subprocess.Popen(["lilypond"], stderr=subprocess.PIPE, shell=True).communicate()[0]
        self.assertIsNone(output)
{'fraction_non_alphanumeric': 0.11848341232227488, 'fraction_numerical': 0.007582938388625593, 'mean_word_length': 2.7580071174377223, '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': '5740894', 'n_tokens_mistral': 337, 'n_tokens_neox': 333, 'n_words': 68}