<commit_before>/**
 * View class for Texts
 *
 * @copyright  2014-today Justso GmbH, Frankfurt, Germany
 * @author     <EMAIL>
 *
 * @package    Generator
 */

define([ "jquery", "backbone", "text!templates/TextEntry.html" ], function($, Backbone, template) {
    return Backbone.View.extend({
        tagName: 'li',
        className: "list-group-item",

        initialize: function() {
            this.model.on('change', this.render, this);
        },

        render: function(text) {
            this.$el.attr("id", text.cid);
            this.$el.html(_.template(template, text.attributes));<commit_msg>Configured JustGen + JustTexts. Added missing libraries.<commit_after>/**
 * View class for Texts
 *
 * @copyright  2014-today Justso GmbH, Frankfurt, Germany
 * @author     <EMAIL>
 *
 * @package    Generator
 */

define([ "jquery", "backbone", "text!templates/TextEntry.html" ], function($, Backbone, template) {
    var t = _.template(template);

    return Backbone.View.extend({
        tagName: 'li',
        className: "list-group-item",

        initialize: function() {
            this.model.on('change', this.render, this);
        },

        render: function(text) {
            this.$el.attr("id", text.cid);
            this.$el.html(t(text.attributes));
{'fraction_non_alphanumeric': 0.15793588741204065, 'fraction_numerical': 0.006254886630179828, 'mean_word_length': 2.646723646723647, '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': '1329927', 'n_tokens_mistral': 395, 'n_tokens_neox': 376, 'n_words': 84}