<commit_before>module.exports = {
  borderWidth: 5,
  strokeWidth: 0.1,
  // in percentage of borderWidth
  outlineWidth: 0.2,
  outlineStyle: "#FFF",

  /**
   * Provide a custom stroke function that draws a fat white line THEN a
   * narrower colored line on top.
   */
  _stroke: function (ctx) {
    var myScale = this.scaleX;
    var outline = this._outlineWidth();
    function scale(x) {
      return Math.round(x) / myScale;
    }
    ctx.lineWidth = scale(this.borderWidth + outline);
    ctx.strokeStyle = this.outlineStyle;
    ctx.stroke();

    ctx.lineWidth = scale(this.borderWidth - outline);
    ctx.strokeStyle = this.stroke;
    ctx.stroke();
  },

  _outlineWidth: function () {
    return Math.max(1, Math.round(this.borderWidth * this.outlineWidth));<commit_msg>Change custom stroke override method<commit_after>module.exports = {
  borderWidth: 5,
  strokeWidth: 0.1,
  // in percentage of borderWidth
  outlineWidth: 0.2,
  outlineStyle: "#FFF",

  /**
   * Provide a custom stroke function that draws a fat white line THEN a
   * narrower colored line on top.
   */
  _renderStroke: function (ctx) {
    var myScale = this.scaleX;
    var outline = this._outlineWidth();
    function scale(x) {
      return Math.round(x) / myScale;
    }
    ctx.lineWidth = scale(this.borderWidth + outline);
    ctx.strokeStyle = this.outlineStyle;
    ctx.stroke();

    ctx.lineWidth = scale(this.borderWidth - outline);
    ctx.strokeStyle = this.stroke;
    ctx.stroke();
  },

  _outlineWidth: function () {
    return Math.max(1, Math.round(this.borderWidth * this.outlineWidth));
{'fraction_non_alphanumeric': 0.12147777082028804, 'fraction_numerical': 0.007514088916718848, 'mean_word_length': 3.107969151670951, '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': '1766352', 'n_tokens_mistral': 519, 'n_tokens_neox': 504, 'n_words': 129}