<commit_before>import sys
import ast
import re
import platform

indent_width = 4
header_titles = ['flag', 'library', 'executable', 'extension']
list_fields = ['sources', 'packages', 'modules', 'buildrequires']

class NextParser(Exception): pass

class ParseError(Exception): pass

def strip_indents(data):
    lines = [l.rstrip() for l in data]
    cur_indent = 0
    out = []
    for l in lines:
        if l.strip():
            first_char = l.lstrip()[0]
            if first_char in ['"', "'", "#"]:
                continue

            # If line is not a comment or a string, parse<commit_msg>BUG: platform is a list.<commit_after>import sys
import ast
import re
import platform

indent_width = 4
header_titles = ['flag', 'library', 'executable', 'extension']
list_fields = ['sources', 'packages', 'modules', 'buildrequires', 'platforms']

class NextParser(Exception): pass

class ParseError(Exception): pass

def strip_indents(data):
    lines = [l.rstrip() for l in data]
    cur_indent = 0
    out = []
    for l in lines:
        if l.strip():
            first_char = l.lstrip()[0]
            if first_char in ['"', "'", "#"]:
                continue

            # If line is not a comment or a string, parse
{'fraction_non_alphanumeric': 0.13175122749590834, 'fraction_numerical': 0.004909983633387889, 'mean_word_length': 2.8825396825396825, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4024793', 'n_tokens_mistral': 374, 'n_tokens_neox': 363, 'n_words': 122}