<commit_before>from _assign_common import Assign

Var = "%(name)s"
Fvar = "%(name)s.%(value)s"

def Cvar(node):
#      node.typeerror()
    return "%(name)s{", "}{", "}"

def Set(node):
#      node.typeerror()
    return "%(name)s(", ", ", ")"

def Cset(node):
    n_fields = node["n_fields"]

    out = "%(name)s{%("
    out = out + ")s}{%(".join(map(str, range(n_fields)))
    out = out + ")s}(%("
    out = out + ")s, %(".join(map(str, range(n_fields, len(node))))
    out = out + ")s)"
    return out

def Fset(node):
#      node.typeerror()
    return "%(name)s.%(value)s(", ", ", ")"

def Sset(node):
    return "%(name)s(", ", ", ").%(value)s"

def Nset(node):
#      node.typeerror()
    return "%(name)s.(", ", ", ")"

def Get(node):
#      node.typeerror()
    return "%(name)s(", ", ", ")"

def Cget(node):
    n_fields = node["n_fields"]

    out = "%(name)s{%("
    out = out + ")s}{%(".join(map(str, range(n_fields)))
    out = out + ")s}(%("
    out = out + ")s, %(".join(map(str, range(n_fields, len(node))))
    out = out + ")s)"
    return out

def Fget(node):
    return "%(name)s.%(value)s(", ", ", ")"<commit_msg>Pointer handler for struct arrays<commit_after>from _assign_common import Assign

Var = "%(name)s"
Fvar = "%(name)s.%(value)s"

def Cvar(node):
#      node.typeerror()
    return "%(name)s{", "}{", "}"

def Set(node):
#      node.typeerror()
    return "%(name)s(", ", ", ")"

def Cset(node):
    n_fields = node["n_fields"]

    out = "%(name)s{%("
    out = out + ")s}{%(".join(map(str, range(n_fields)))
    out = out + ")s}(%("
    out = out + ")s, %(".join(map(str, range(n_fields, len(node))))
    out = out + ")s)"
    return out

def Fset(node):
#      node.typeerror()
    return "%(name)s.%(value)s(", ", ", ")"

def Sset(node):
    node.pointer = 0
    return "%(name)s(", ", ", ").%(value)s"

def Nset(node):
#      node.typeerror()
    return "%(name)s.(", ", ", ")"

def Get(node):
#      node.typeerror()
    return "%(name)s(", ", ", ")"

def Cget(node):
    n_fields = node["n_fields"]

    out = "%(name)s{%("
    out = out + ")s}{%(".join(map(str, range(n_fields)))
    out = out + ")s}(%("
    out = out + ")s, %(".join(map(str, range(n_fields, len(node))))
    out = out + ")s)"
    return out

def Fget(node):
    return "%(name)s.%(value)s(", ", ", ")"
{'fraction_non_alphanumeric': 0.26764833261152016, 'fraction_numerical': 0.00043308791684711995, 'mean_word_length': 3.1772151898734178, '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': '239956', 'n_tokens_mistral': 937, 'n_tokens_neox': 929, 'n_words': 186}