<commit_before># module setup stuff
if this.Continuum
  Continuum = this.Continuum
else
  Continuum = {}
  this.Continuum = Continuum

class DataTableView extends ContinuumView
  initialize : (options) ->
    super(options)
    safebind(this, @model, 'destroy', @remove)
    safebind(this, @model, 'change', @render)

  className: 'div'

  render : () ->
    table_template = """
		<table class='table table-striped table-bordered table-condensed' id='tableid_na'></table>
    """
    header_template = """
      <thead id ='header_id_na'></thead>
    """
    header_column = """
      <th><a href="#" onClick="cdxSortByColumn()" class='link'>{{column_name}}</a></th>
    """
    row_template = """
      <tr></tr>
    """
    datacell_template = """
      <td>{{data}}</td>
    """

    table = $(table_template)
    header = $(header_template)
    html = _.template(header_column, {'column_name' : '#'})
    header.append($(html))
    for colname in @mget('columns')
      html = _.template(header_column, {'column_name' : colname})
      header.append($(html))
    table.append(header)
    rowCount = @mget('offset')<commit_msg>datatableview should render on initialie<commit_after># module setup stuff
if this.Continuum
  Continuum = this.Continuum
else
  Continuum = {}
  this.Continuum = Continuum

class DataTableView extends ContinuumView
  initialize : (options) ->
    super(options)
    safebind(this, @model, 'destroy', @remove)
    safebind(this, @model, 'change', @render)
    @render()

  className: 'div'

  render : () ->
    table_template = """
		<table class='table table-striped table-bordered table-condensed' id='tableid_na'></table>
    """
    header_template = """
      <thead id ='header_id_na'></thead>
    """
    header_column = """
      <th><a href="#" onClick="cdxSortByColumn()" class='link'>{{column_name}}</a></th>
    """
    row_template = """
      <tr></tr>
    """
    datacell_template = """
      <td>{{data}}</td>
    """

    table = $(table_template)
    header = $(header_template)
    html = _.template(header_column, {'column_name' : '#'})
    header.append($(html))
    for colname in @mget('columns')
      html = _.template(header_column, {'column_name' : colname})
      header.append($(html))
    table.append(header)
    rowCount = @mget('offset')
{'fraction_non_alphanumeric': 0.1741207121146331, 'fraction_numerical': 0.0, 'mean_word_length': 3.447876447876448, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 31, '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': '3707965', 'n_tokens_mistral': 765, 'n_tokens_neox': 740, 'n_words': 144}