<commit_before>chart = '#material_chart'
overview = '#material_overview'

option =
  xaxis: { mode: 'time', timezone: 'browser' }
  yaxes: [{}, { alignTicksWithAxis: 1, position: 'right' }]
  selection: { mode: 'x' }
optionO =
  series: { lines: { show: true, lineWidth: 1 }, shadowSize: 0 }
  xaxis: { mode: 'time', timezone: 'browser' }
  yaxes: [{}, { alignTicksWithAxis: 1, position: 'right' }]
  selection: { mode: 'x' }

plot = null
table = []

$(document).ready ->
  userid = $('#userid').val()
  button()
  $.getJSON "/rest/v1/#{userid}/materials", (data) ->
    table = translate(data)

    param = fromURLParameter(location.hash.replace(/^\#/, ''))<commit_msg>Fix Material Legend Position<commit_after>chart = '#material_chart'
overview = '#material_overview'

option =
  xaxis: { mode: 'time', timezone: 'browser' }
  yaxes: [{}, { alignTicksWithAxis: 1, position: 'right' }]
  selection: { mode: 'x' }
  legend: { position: 'nw' }
optionO =
  series: { lines: { show: true, lineWidth: 1 }, shadowSize: 0 }
  xaxis: { mode: 'time', timezone: 'browser' }
  yaxes: [{}, { alignTicksWithAxis: 1, position: 'right' }]
  selection: { mode: 'x' }
  legend: { position: 'nw' }

plot = null
table = []

$(document).ready ->
  userid = $('#userid').val()
  button()
  $.getJSON "/rest/v1/#{userid}/materials", (data) ->
    table = translate(data)

    param = fromURLParameter(location.hash.replace(/^\#/, ''))
{'fraction_non_alphanumeric': 0.20382165605095542, 'fraction_numerical': 0.007077140835102618, 'mean_word_length': 4.086330935251799, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5775345', 'n_tokens_mistral': 520, 'n_tokens_neox': 497, 'n_words': 117}