<commit_before><commit_msg>Started on get_st-link_info.py. Need to find a way to choose the new ST-Link (the debugger we're oing to update)<commit_after>import usb.core
import time


devices = usb.core.find(find_all=1, idVendor=0x0483, idProduct=0x3748)
for dev in devices:
    print "Found ST-Link V2"
    
{'fraction_non_alphanumeric': 0.09120521172638436, 'fraction_numerical': 0.03908794788273615, 'mean_word_length': 4.703703703703703, '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': '4134489', 'n_tokens_mistral': 116, 'n_tokens_neox': 108, 'n_words': 34}