<commit_before>

import pypm
import array
import time

class TriggerFinger(object):
    pads = range(1,17)
    faders = range(17, 21)
    dials = range(21, 29)


_initialized = False

def init():
    global _initialized
    if not _initialized:
        pypm.Initialize()
        _initialized = True


def printDevices():
    init()
    for deviceId in xrange(pypm.CountDevices()):
        interf, name, inp, outp, opened = pypm.GetDeviceInfo(deviceId)

        if inp:
            inOutType = '(input)'
        elif outp:
            inOutType = '(output)'
        else:<commit_msg>workaround import error by disabling pypm<commit_after>

#import pypm
import array
import time

class TriggerFinger(object):
    pads = range(1,17)
    faders = range(17, 21)
    dials = range(21, 29)


_initialized = False

def init():
    global _initialized
    if not _initialized:
        #pypm.Initialize()
        _initialized = True


def printDevices():
    init()
    for deviceId in xrange(pypm.CountDevices()):
        interf, name, inp, outp, opened = pypm.GetDeviceInfo(deviceId)

        if inp:
            inOutType = '(input)'
        elif outp:
            inOutType = '(output)'
        else:
{'fraction_non_alphanumeric': 0.10050251256281408, 'fraction_numerical': 0.018425460636515914, 'mean_word_length': 2.4738372093023258, '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': '2099346', 'n_tokens_mistral': 414, 'n_tokens_neox': 393, 'n_words': 106}