<commit_before>#!/usr/bin/python

## Binary Analysis Tool
## Copyright 2012 <NAME> for Tjaldur Software Governance Solutions
## Licensed under Apache 2.0, see LICENSE file for details

'''
This is a plugin for the Binary Analysis Tool. It generates a HTML file which
contains unique function names that were matched, with links to pretty printed
source code, which can be displayed in the BAT GUI.

This should be run as a postrun scan
'''

import os, os.path, sys, gzip, cgi

def generateHTML(filename, unpackreport, leafscans, scantempdir, toplevelscandir, envvars={}):<commit_msg>add doc<commit_after>#!/usr/bin/python

## Binary Analysis Tool
## Copyright 2012 <NAME> for Tjaldur Software Governance Solutions
## Licensed under Apache 2.0, see LICENSE file for details

'''
This is a plugin for the Binary Analysis Tool. It generates a HTML file which
contains unique function names that were matched, with links to pretty printed
source code, which can be displayed in the BAT GUI.

This should be run as a postrun scan

WARNING: THIS CODE DOES NOT WORK YET
'''

import os, os.path, sys, gzip, cgi

def generateHTML(filename, unpackreport, leafscans, scantempdir, toplevelscandir, envvars={}):
{'fraction_non_alphanumeric': 0.07429048414023372, 'fraction_numerical': 0.01001669449081803, 'mean_word_length': 4.995, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2218776', 'n_tokens_mistral': 356, 'n_tokens_neox': 329, 'n_words': 165}