<commit_before>import React from 'react';
import {KoboMatrix} from './build.kobomatrix';

/*
Initially, this KoboMatrixRow class will be an intermediary between
the react interface and the backbone `model.row` code.
*/
class KoboMatrixRow {
  constructor (model) {
    this._original = model;
    this.label = model.getValue('label');
    this.items = this._original.items.options;
    this.cols = this._original._kobomatrix_columns.models;
  }
}

export function renderKobomatrix (view) {
  let $el = view.$el;
  let model = view.model;
  React.render(<KoboMatrix model={new KoboMatrixRow(model)} />, $el.get(0));
}
<commit_msg>using ReactDOM.render instead of React.render(...)<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import {KoboMatrix} from './build.kobomatrix';

/*
Initially, this KoboMatrixRow class will be an intermediary between
the react interface and the backbone `model.row` code.
*/
class KoboMatrixRow {
  constructor (model) {
    this._original = model;
    this.label = model.getValue('label');
    this.items = this._original.items.options;
    this.cols = this._original._kobomatrix_columns.models;
  }
}

export function renderKobomatrix (view) {
  let $el = view.$el;
  let model = view.model;
  ReactDOM.render(<KoboMatrix model={new KoboMatrixRow(model)} />, $el.get(0));
}

{'fraction_non_alphanumeric': 0.12987987987987987, 'fraction_numerical': 0.0015015015015015015, 'mean_word_length': 4.353413654618474, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3855463', 'n_tokens_mistral': 445, 'n_tokens_neox': 424, 'n_words': 110}