<commit_before>(function (root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define([], function () {
      return (root.returnExportsGlobal = factory());
    });
  } else if (typeof exports === 'object') {
    // Node. Does not work with strict CommonJS, but
    // only CommonJS-like enviroments that support module.exports,
    // like Node.
    module.exports = factory();
  } else {
    root['Chartist.plugins.ctCrosshair'] = factory();
  }
}(this, function () {

  /**
   * Chartist.js plugin to display a data label on top of the points in a line chart.
   *
   */
  /* global Chartist */
  (function(window, document, Chartist) {
    'use strict';

    var defaultOptions = {
     
      crossLine:'ct-cross-line' 
    };

    Chartist.plugins = Chartist.plugins || {};
    Chartist.plugins.ctCrosshair = function(options) {

      options = Chartist.extend({}, defaultOptions, options);

      return function ctCrosshair(chart) {
        if(chart instanceof Chartist.Line) {
         var $chart = $(chart.container);
         var $lgd = $chart
         .append('<div class="ct-legend">yuiyuiu</div>')
          .find('.ct-legend').show(); 
           
          var $xtoolTip = $chart.append('<div class="arrow_box"></div>').find('.arrow_box').hide();
          var $ytoolTip = $chart.append('<div class="arrow_rbox"></div>').find('.arrow_rbox').hide();  
          var x,y,zl,ofx,ofy;
          var cxp,ctx,hl,vl,low,lft,yy,nule;
          var dlt=5,snm=" ";
          ofx=$chart.position().left;
          ofy=$chart.position().top;

          chart.on('draw', function(data) {
            if(data.type === 'grid') {
                   zl=[];
                   zl[data.index]=data.element;
                  if (x===undefined && data.index==0){
                      x=data.element.attr('x1');
                      y=data.element.attr('y1');
                      data.element.addClass("axis");
                  };    
                  // var x=data.element.attr('class');
              }else if(data.type === 'label') {
                 var z=data.text.replace(/\D/g,'');
                  if (z==0){
                      zl[data.index].addClass("axis");
              };
            };
            $lgd.css({left: x*1.177 ,top:y*5.23333 }); 
          }).on('created',function(context){
            var dt='2010-01-23'
                $lgd.html('<span class="ct-label-val">:<span class="ct-label-val"> </span></span>'); 
                ctx=context;
                low=ctx.chartRect.y1;
                lft=ctx.chartRect.x1;<commit_msg>may be it is also bug<commit_after>(function (root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define([], function () {
      return (root.returnExportsGlobal = factory());
    });
  } else if (typeof exports === 'object') {
    // Node. Does not work with strict CommonJS, but
    // only CommonJS-like enviroments that support module.exports,
    // like Node.
    module.exports = factory();
  } else {
    root['Chartist.plugins.ctCrosshair'] = factory();
  }
}(this, function () {

  /**
   * Chartist.js plugin to display a data label on top of the points in a line chart.
   *
   */
  /* global Chartist */
  (function(window, document, Chartist) {
    'use strict';

    var defaultOptions = {
     
      crossLine:'ct-cross-line' 
    };

    Chartist.plugins = Chartist.plugins || {};
    Chartist.plugins.ctCrosshair = function(options) {

      options = Chartist.extend({}, defaultOptions, options);

      return function ctCrosshair(chart) {
        if(chart instanceof Chartist.Line) {
         var $chart = $(chart.container);
         var $lgd = $chart
         .append('<div class="ct-legend">yuiyuiu</div>')
          .find('.ct-legend').show(); 
           
          var $xtoolTip = $chart.append('<div class="arrow_box"></div>').find('.arrow_box').hide();
          var $ytoolTip = $chart.append('<div class="arrow_rbox"></div>').find('.arrow_rbox').hide();  
          var x,y,zl,ofx,ofy;
          var cxp,ctx,hl,vl,low,lft,yy,nule;
          var dlt=5,snm=" ";
          ofx=$chart.position().left;
          ofy=$chart.position().top;

          chart.on('draw', function(data) {
            if(data.type === 'grid') {
                   zl=[];
                   zl[data.index]=data.element;
                  if (x===undefined && data.index==0){
                      x=data.element.attr('x1');
                      y=data.element.attr('y1');
                      data.element.addClass("axis");
                  };    
                  // var x=data.element.attr('class');
              }else if(data.type === 'label') {
                 var z=data.text.replace(/\D/g,'');
                  if (z==0){
                      zl[data.index].addClass("axis");
              };
            };
            $lgd.css({left: x*1.177 ,top:y*5.23333 }); 
          }).on('created',function(context){
                $lgd.html('<span class="ct-label-val">:<span class="ct-label-val"> </span></span>'); 
                ctx=context;
                low=ctx.chartRect.y1;
                lft=ctx.chartRect.x1;
{'fraction_non_alphanumeric': 0.16985829184220605, 'fraction_numerical': 0.00804289544235925, 'mean_word_length': 1.8540983606557377, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '798752', 'n_tokens_mistral': 1630, 'n_tokens_neox': 1547, 'n_words': 296}