<commit_before>defaults =
    # Helpers
    afterLoad: 'drawingComplete'
    dataSource: null

    # Layout
    graphWidth: $("#graph").parent().width()
    graphHeight: () ->
        if $("#graph").parent().prop("tagName") == "BODY"
            return window.innerHeight
        else 
            return $("#graph").parent().height()
   
    alpha: .5
    cluster: true # defaults to false fix to take a string
    clusterColours: d3.shuffle(["#DD79FF", "#FFFC00",
                         "#00FF30", "#5168FF",
                         "#00C0FF", "#FF004B",
                         "#00CDCD", "#f83f00",
                         "#f800df", "#ff8d8f",
                         "#ffcd00", "#184fff",
                         "#ff7e00"])
    fixNodes: false
    fixRootNodes: false
    forceLocked: true
    linkDistance: 2000
    nodePositions: null # not currently implemented

    # Editing
    captionToggle: false # not currently implemented
    edgesToggle: false # not currently implemented
    nodesToggle: false # not currently implemented
    removeNodes: false # not currently implemented

    # Filtering
    edgeFilters: false # not currently implemented
    nodeFilters: false



    # Nodes
    caption: 'caption'
    nodeMouseOver: 'caption' # partially implemented<commit_msg>select based on .alchemy class + move towards d3 and away from jquery<commit_after>defaults =
    # Helpers
    afterLoad: 'drawingComplete'
    dataSource: null

    # Layout
    graphWidth: d3.select(".alchemy").node().parentElement.clientWidth
    graphHeight: () ->
        if d3.select(".alchemy").node().parentElement.nodeName == "BODY"
            return window.innerHeight
        else 
            return d3.select(".alchemy").node().parentElement.clientHeight
   
    alpha: .5
    cluster: true # defaults to false fix to take a string
    clusterColours: d3.shuffle(["#DD79FF", "#FFFC00",
                         "#00FF30", "#5168FF",
                         "#00C0FF", "#FF004B",
                         "#00CDCD", "#f83f00",
                         "#f800df", "#ff8d8f",
                         "#ffcd00", "#184fff",
                         "#ff7e00"])
    fixNodes: false
    fixRootNodes: false
    forceLocked: true
    linkDistance: 2000
    nodePositions: null # not currently implemented

    # Editing
    captionToggle: false # not currently implemented
    edgesToggle: false # not currently implemented
    nodesToggle: false # not currently implemented
    removeNodes: false # not currently implemented

    # Filtering
    edgeFilters: false # not currently implemented
    nodeFilters: false



    # Nodes
    caption: 'caption'
    nodeMouseOver: 'caption' # partially implemented
{'fraction_non_alphanumeric': 0.10741971207087486, 'fraction_numerical': 0.03322259136212625, 'mean_word_length': 2.1402085747392814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5092808', 'n_tokens_mistral': 786, 'n_tokens_neox': 710, 'n_words': 196}