<commit_before>#!/usr/bin/python

# parse_header.py finds all exported exports in a GDK header and writes them 
# to a nice XML file. That file can be used to e.g. generate code for SA-MP natives.

import os
import re
import sys
import xml.dom.minidom

def parse_argument_list(string):
	""" For each entry of the arg_list returns a tuple made of
	    argument type and name. """
	for string in re.split(r"\s*,\s*", string):
		if len(string) == 0:
			continue
		match = re.match(r"([\w ]+ |[\w ]+\*)(\w+)$", string)
		if len(match.groups()) < 2:
			continue<commit_msg>parse_header: Fix comment<commit_after>#!/usr/bin/python

# parse_header.py finds all exported functions in a GDK header and writes them 
# to a nice XML file. That file can be used to e.g. generate code for SA-MP natives.

import os
import re
import sys
import xml.dom.minidom

def parse_argument_list(string):
	""" For each entry of the arg_list returns a tuple made of
	    argument type and name. """
	for string in re.split(r"\s*,\s*", string):
		if len(string) == 0:
			continue
		match = re.match(r"([\w ]+ |[\w ]+\*)(\w+)$", string)
		if len(match.groups()) < 2:
			continue
{'fraction_non_alphanumeric': 0.13478260869565217, 'fraction_numerical': 0.0034782608695652175, 'mean_word_length': 3.585657370517928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5796213', 'n_tokens_mistral': 414, 'n_tokens_neox': 385, 'n_words': 147}