<commit_before>
// FEATURE VIS
epeek.genome.feature = function () {

    // Placeholders
    var create_cbak = function () {throw "create_elem is not defined in the base feature object"};
    var move_cbak = function () {throw "move_elem is not defined in the base feature object"};
    var update_cbak = function () {};

    var feature = {};

    feature.reset = function () {
	var track = this;
	track.g.selectAll("*").remove();
    }

    feature.plot = function (new_elem, track, xScale) {
	new_elem.on("click", track.info_callback());
	create_cbak.call(track, new_elem, xScale); // new_elem is a g element where the feature is inserted
    };

    feature.update = function (xScale) {<commit_msg>reset was too aggressive. It now only removes ePeek_elems<commit_after>
// FEATURE VIS
epeek.genome.feature = function () {

    // Placeholders
    var create_cbak = function () {throw "create_elem is not defined in the base feature object"};
    var move_cbak = function () {throw "move_elem is not defined in the base feature object"};
    var update_cbak = function () {};

    var feature = {};

    feature.reset = function () {
    	var track = this;
    	track.g.selectAll(".ePeek_elem").remove();
    }

    feature.plot = function (new_elem, track, xScale) {
	new_elem.on("click", track.info_callback());
	create_cbak.call(track, new_elem, xScale); // new_elem is a g element where the feature is inserted
    };

    feature.update = function (xScale) {
{'fraction_non_alphanumeric': 0.12346521145975443, 'fraction_numerical': 0.0, 'mean_word_length': 3.43202416918429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1419651', 'n_tokens_mistral': 458, 'n_tokens_neox': 440, 'n_words': 140}