<commit_before>#!/bin/env python3

from urllib.request import urlopen, Request
from json import load, dump
import re
import argparse
import os

namere = re.compile("""<td itemprop="name">(?P<name>[^<>]+)</td>""")
startinfore = re.compile("""<tr>[\n\s]*
                         <td>(?P<description>[^<>]*)</td>[\n\s]*
                         <td>(?P<executable>[^<>]*)</td>[\n\s]*
                         <td>(?P<arguments>[^<>]*)</td>[\n\s]*
                         <td>(?P<type>[^<>]*)</td>[\n\s]*
                         <td\ class="nowrap">[\n\s]*
                         <i\ class="[^"]+"\ aria-label="Windows">[\n\s]*
                         </i>[\n\s]*
                         </td>[\n\s]*<commit_msg>Fixes html parsing when os not specified<commit_after>#!/bin/env python3

from urllib.request import urlopen, Request
from json import load, dump
import re
import argparse
import os

namere = re.compile("""<td itemprop="name">(?P<name>[^<>]+)</td>""")
startinfore = re.compile("""<tr>[\n\s]*
                         <td>(?P<description>[^<>]*)</td>[\n\s]*
                         <td>(?P<executable>[^<>]*)</td>[\n\s]*
                         <td>(?P<arguments>[^<>]*)</td>[\n\s]*
                         <td>(?P<type>.*?)</td>[\n\s]*
                         <td\ class="nowrap">[\n\s]*
                         (?P<os><i\ class="[^"]+"\ aria-label="Windows">[\n\s]*
                         </i>[\n\s]*)?
                         </td>[\n\s]*
{'fraction_non_alphanumeric': 0.2535885167464115, 'fraction_numerical': 0.001367053998632946, 'mean_word_length': 1.6618181818181819, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '566517', 'n_tokens_mistral': 523, 'n_tokens_neox': 492, 'n_words': 73}