<commit_before>class Dashing.DoughnutChart extends Dashing.Widget

  ready: ->
    # Margins: zero if not set or the same as the opposite margin
    # (you likely want this to keep the chart centered within the widget)
    left = @get('leftMargin') || 0
    right = if @get('rightMargin')? then @get('rightMargin') else left
    top = @get('topMargin') || 0
    bottom = if @get('bottomMargin')? then @get('bottomMargin') else top

    container = $(@node).parent()<commit_msg>fix calculation for right+bottom margins<commit_after>class Dashing.DoughnutChart extends Dashing.Widget

  ready: ->
    # Margins: zero if not set or the same as the opposite margin
    # (you likely want this to keep the chart centered within the widget)
    left = @get('leftMargin') || 0
    right = @get('rightMargin') || left
    top = @get('topMargin') || 0
    bottom = @get('bottomMargin') || top

    container = $(@node).parent()
{'fraction_non_alphanumeric': 0.12527233115468409, 'fraction_numerical': 0.004357298474945534, 'mean_word_length': 3.81151832460733, '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': '2091432', 'n_tokens_mistral': 272, 'n_tokens_neox': 276, 'n_words': 97}