<commit_before>#!/bin/python3
import cgi
import cgitb
import subprocess
cgitb.enable()

print("<pre>")
print(subprocess.check_output(['pip3', 'list']).decode('utf-8'))
print(subprocess.check_output(['npm', 'list', '-g']).decode('utf-8'))
print(subprocess.check_output('rpm -qa | sort', shell=True).decode('utf-8'))
print("</pre>")<commit_msg>fix manifest.py<commit_after>#!/bin/python3
import cgi
import cgitb
import subprocess
cgitb.enable()

def run_subprocess(arg, **kwargs):
    try:
        print(subprocess.check_output(arg, **kwargs).decode('utf-8'))
    except subprocess.CalledProcessError:
        pass

print("Content-type: text/html\n")
print("<pre>")

run_subprocess(['pip3', 'list'])
run_subprocess(['npm', 'list', '-g'])
run_subprocess('rpm -qa | sort', shell=True)
print("</pre>")
{'fraction_non_alphanumeric': 0.20728643216080403, 'fraction_numerical': 0.010050251256281407, 'mean_word_length': 6.37962962962963, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5890392', 'n_tokens_mistral': 286, 'n_tokens_neox': 282, 'n_words': 49}