<commit_before> 'use strict';
 var d3 = require('d3');

 function Tooltip(options, svg) {
     this.options = options;
     this.svg = svg;
     this.tooltip = this.createTooltip();

 }
 Tooltip.prototype = {
     createTooltip: function() {
         this.bindEvents();
         var tooltip = d3.select("body").append("div")
             .attr("class", "tooltip bs-tether-element bs-tether-element-attached-top fade bs-tether-enabled in")
             .style("opacity", 0);

         tooltip.append("div").attr("class", "tooltip-arrow");
         return tooltip;
     },
     bindEvents: function() {
         var self = this;
         this.svg.selectAll("circle").on("mouseover", function(d) {
             self.tooltip.transition()
                 .duration(200)
                 .style("opacity", 0.9);
             self.renderTooltipContent(d);
             self.positionTooltip();


         }).on("mouseout", function(d) {
             self.tooltip.transition()
                 .duration(200)
                 .style("opacity", 0);

         });

     },
     setHTML: function(d) {
         var tmpl = "<div>" + this.options.xAxisName +
             "<span> ( " + this.options.xAxisUnit + " ) </span>" +
             "</div>" +<commit_msg>added deploy status in tooltip<commit_after> 'use strict';
 var d3 = require('d3');

 function Tooltip(options, svg) {
     this.options = options;
     this.svg = svg;
     this.tooltip = this.createTooltip();

 }
 Tooltip.prototype = {
     createTooltip: function() {
         this.bindEvents();
         var tooltip = d3.select("body").append("div")
             .attr("class", "tooltip top")
             .style("opacity", 0);

         tooltip.append("div").attr("class", "tooltip-arrow");
         return tooltip;
     },
     bindEvents: function() {
         var self = this;
         this.svg.selectAll("circle").on("mouseover", function(d) {
             self.tooltip.transition()
                 .duration(200)
                 .style("opacity", 0.9);
             self.renderTooltipContent(d);
             self.positionTooltip();


         }).on("mouseout", function(d) {
             self.tooltip.transition()
                 .duration(200)
                 .style("opacity", 0);

         });

     },
     checkStatus: function(status) {
         return status.toLowerCase() === "deployed" ? "text-success" : "text-danger";
     },
     setHTML: function(d) {
         var tmpl = "<h5 class='" + this.checkStatus(d.SolArray_Status) + "'>" +
             "<strong>" + d.SolArray_Status + "</strong></h5>" +
             "<div>" + this.options.xAxisName +
             "<span> ( " + this.options.xAxisUnit + " ) </span>" +
             "</div>" +
{'fraction_non_alphanumeric': 0.16408554572271386, 'fraction_numerical': 0.01032448377581121, 'mean_word_length': 1.8648363252375924, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3856244', 'n_tokens_mistral': 800, 'n_tokens_neox': 778, 'n_words': 141}