<commit_before>from itertools import chain
from collections import defaultdict


class Field(object):

    def __init__(self, name):
        self.name = name

    def __repr__(self):
        return ':{}'.format(self.name)

    def accept(self, visitor):
        return visitor.visit_field(self)


class Link(object):

    def __init__(self, name, edge):
        self.name = name
        self.edge = edge

    def __repr__(self):
        return '{{:{} {!r}}}'.format(self.name, self.edge)

    def accept(self, visitor):
        return visitor.visit_link(self)


class Edge(object):

    def __init__(self, fields):
        self.fields = {field.name: field for field in fields}
<commit_msg>Added options attribute to the Field and Link classes to conform with Hiku query object representation.<commit_after>from itertools import chain
from collections import defaultdict


class Field(object):

    def __init__(self, name, options=None):
        self.name = name
        self.options = options

    def __repr__(self):
        return ':{}'.format(self.name)

    def accept(self, visitor):
        return visitor.visit_field(self)


class Link(object):

    def __init__(self, name, edge, options=None):
        self.name = name
        self.edge = edge
        self.options = options

    def __repr__(self):
        return '{{:{} {!r}}}'.format(self.name, self.edge)

    def accept(self, visitor):
        return visitor.visit_link(self)


class Edge(object):

    def __init__(self, fields):
        self.fields = {field.name: field for field in fields}

{'fraction_non_alphanumeric': 0.11360718870346598, 'fraction_numerical': 0.0, 'mean_word_length': 2.907268170426065, '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': '7410775', 'n_tokens_mistral': 467, 'n_tokens_neox': 446, 'n_words': 133}