<commit_before>//Draw the actual position
jviz.modules.ideogram.prototype.positionDraw = function(x, y)
{
  //Get the second layer
  var canvas = this._canvas.layer(this._chromosome.position.layer);

  //Clear
  //canvas.Clear({ x: 0, y: 0, width: this._width, height: this._chromosome.utils.posy_end });
  canvas.Clear();

  //Rectangle position x
  var rect_x = x - this._chromosome.position.width/2;

  //Rectangle position y
  var rect_y = this._chromosome.position.posy;

  //Rectangle width
  var rect_width = this._chromosome.position.width;

  //Rectangle height
  var rect_height = this._chromosome.position.height;

  //Rectangle radius
  var rect_radius = this._chromosome.position.radius;

  //Draw the rectangle
  canvas.Rect({ x: rect_x, y: rect_y, width: rect_width, height: rect_height, radius: rect_radius });

  //Draw the fill color
  canvas.Fill(this._chromosome.position.fill);<commit_msg>js/positions.js: clear a chromosome view layer<commit_after>//Draw the actual position
jviz.modules.ideogram.prototype.positionDraw = function(x, y)
{
  //Get the second layer
  var canvas = this._canvas.el.layer(this._chromosome.position.layer);

  //Clear
  this.chromosomeClearLayer(this._chromosome.position.layer);

  //Rectangle position x
  var rect_x = x - this._chromosome.position.width/2;

  //Rectangle position y
  var rect_y = this._chromosome.position.posy;

  //Rectangle width
  var rect_width = this._chromosome.position.width;

  //Rectangle height
  var rect_height = this._chromosome.position.height;

  //Rectangle radius
  var rect_radius = this._chromosome.position.radius;

  //Draw the rectangle
  canvas.Rect({ x: rect_x, y: rect_y, width: rect_width, height: rect_height, radius: rect_radius });

  //Draw the fill color
  canvas.Fill(this._chromosome.position.fill);
{'fraction_non_alphanumeric': 0.1185595567867036, 'fraction_numerical': 0.00221606648199446, 'mean_word_length': 3.9209809264305178, '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': '755368', 'n_tokens_mistral': 623, 'n_tokens_neox': 567, 'n_words': 139}