<commit_before>#!/usr/bin/python
#
# HTML source analyzer
#
import sys

def main():
    _file = open(sys.argv[1], "r")
    i = 0
    print "HTML Analyze"
    print "============"
    print
    for _line in _file:
        i = i + 1
        _analyzeLine(_line, i)
        
# find interesting string(s)
def _analyzeLine(_line, i):
    if "<!--" in _line:
        print "comment found at line %d: %s" % (i, _line)
    if "admin" in _line:
        print "'admin' string found at line: %d" % (i)
    
    
# main program
if __name__ == "__main__":
    if len(sys.argv) == 2:
        main()
    else:<commit_msg>'debug' info searching in HTML<commit_after>#!/usr/bin/python
#
# HTML source analyzer
#
import sys

def main():
    _file = open(sys.argv[1], "r")
    i = 0
    print "HTML Analyze"
    print "============"
    print
    for _line in _file:
        i = i + 1
        _analyzeLine(_line, i)
        
# find interesting string(s)
def _analyzeLine(_line, i):
    if "<!--" in _line:
        print "comment found at line %d: %s" % (i, _line)
    if "admin" in _line:
        print "'admin' string found at line: %d" % (i)
    if "debug" in _line:
        print "debug information found at line %d" % (i)
    
# main program
if __name__ == "__main__":
    if len(sys.argv) == 2:
        main()
    else:
{'fraction_non_alphanumeric': 0.15567484662576686, 'fraction_numerical': 0.006134969325153374, 'mean_word_length': 2.254364089775561, 'pattern_counts': {'":': 2, '<': 5, '<?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': '2681182', 'n_tokens_mistral': 472, 'n_tokens_neox': 461, 'n_words': 149}