<commit_before>class alchemy.models.Node
    constructor: (node) ->
        _.merge(@, node)
        @_d3 = {}
        # Merge undefined nodeStyle keys from conf.
        # Works with undefined @nodeStyle
        conf = alchemy.conf
        @nodeStyle = _.merge(conf.nodeStyle, @nodeStyle)<commit_msg>Can find neighbor ids from node<commit_after>class alchemy.models.Node
    constructor: (node) ->
        _.merge(@, node)
        @_d3 = {}
        # Merge undefined nodeStyle keys from conf.
        # Works with undefined @nodeStyle
        conf = alchemy.conf
        @nodeStyle = _.merge(conf.nodeStyle, @nodeStyle)

    # Stores edge.id for easy edge lookup
    edges: []
    addEdge: (edge)-> @edges.push(edge)

    # Neighbors
    neighbors: ()->
        regex = new RegExp("[(#{@id}#{'\\'}-)(#{'\\'}-#{@id})]","g")
        _.map @edges, (edgeID)->  edgeID.replace(regex, "")
{'fraction_non_alphanumeric': 0.1551528878822197, 'fraction_numerical': 0.0022650056625141564, 'mean_word_length': 2.413127413127413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '5921613', 'n_tokens_mistral': 281, 'n_tokens_neox': 275, 'n_words': 67}