<commit_before>(function(insight) {

    /*
     * The PointSeries is an abstract base class for all Cartesian classes representing points (E.g. Scatter, Bubbles
     * and Lines).
     * @class insight.PointSeries
     * @param {string} name - A uniquely identifying name for this chart
     * @param {DataSet} data - The DataSet containing this series' data
     * @param {insight.Scales.Scale} x - the x axis
     * @param {insight.Scales.Scale} y - the y axis
     */
    insight.PointSeries = function PointSeries(name, data, x, y) {

        insight.Series.call(this, name, data, x, y);

        var radiusFunction = d3.functor(3),
            self = this;

        var opacityFunction = function() {
            // If we are using selected/notSelected, then make selected more opaque than notSelected
            if (this.classList && this.classList.contains("selected")) {
                return 0.8;
            }

            if (this.classList && this.classList.contains("notselected")) {
                return 0.3;
            }

            //If not using selected/notSelected, make everything semi-transparent
            return 0.5;
        };

        // Internal functions -----------------------------------------------------------------------------------------

        self.cssClassName = d3.functor(insight.Constants.Point);

        self.selector = function() {
            return self.name + self.cssClassName();
        };

        // Internal variables -------------------------------------------------------------------------------------------

        self.classValues = [self.cssClassName()];

        self.rangeY = function(d) {
            return self.y.scale(self.valueFunction()(d));
        };

        self.rangeX = function(d, i) {
            return self.x.scale(self.keyFunction()(d));
        };


        self.draw = function(chart, isDragging) {

            self.initializeTooltip(chart.container.node());

            var duration = isDragging ? 0 : function(d, i) {
                return 200 + (i * 20);
            };

            function click(filter) {
                return self.click(self, filter);
            }

            var data = self.pointData(self.dataset());

            var points = chart.plotArea.selectAll('circle.' + self.selector())
                .data(data, self.keyFunction());

            function rad(d) {
                return d.radius;
            }

            points.enter()
                .append('circle')
                .attr('class', self.itemClassName)
                .on('mouseover', self.mouseOver)
                .on('mouseout', self.mouseOut)
                .on('click', click);

            points
                .attr('r', rad)
                .attr('cx', self.rangeX)
                .attr('cy', self.rangeY)<commit_msg>Fix missing transitions from scatter series<commit_after>(function(insight) {

    /*
     * The PointSeries is an abstract base class for all Cartesian classes representing points (E.g. Scatter, Bubbles
     * and Lines).
     * @class insight.PointSeries
     * @param {string} name - A uniquely identifying name for this chart
     * @param {DataSet} data - The DataSet containing this series' data
     * @param {insight.Scales.Scale} x - the x axis
     * @param {insight.Scales.Scale} y - the y axis
     */
    insight.PointSeries = function PointSeries(name, data, x, y) {

        insight.Series.call(this, name, data, x, y);

        var radiusFunction = d3.functor(3),
            self = this;

        var opacityFunction = function() {
            // If we are using selected/notSelected, then make selected more opaque than notSelected
            if (this.classList && this.classList.contains("selected")) {
                return 0.8;
            }

            if (this.classList && this.classList.contains("notselected")) {
                return 0.3;
            }

            //If not using selected/notSelected, make everything semi-transparent
            return 0.5;
        };

        // Internal functions -----------------------------------------------------------------------------------------

        self.cssClassName = d3.functor(insight.Constants.Point);

        self.selector = function() {
            return self.name + self.cssClassName();
        };

        // Internal variables -------------------------------------------------------------------------------------------

        self.classValues = [self.cssClassName()];

        self.rangeY = function(d) {
            return self.y.scale(self.valueFunction()(d));
        };

        self.rangeX = function(d, i) {
            return self.x.scale(self.keyFunction()(d));
        };


        self.draw = function(chart, isDragging) {

            self.initializeTooltip(chart.container.node());

            var duration = isDragging ? 0 : function(d, i) {
                return 200 + (i * 20);
            };

            function click(filter) {
                return self.click(self, filter);
            }

            var data = self.pointData(self.dataset());

            var points = chart.plotArea.selectAll('circle.' + self.selector())
                .data(data, self.keyFunction());

            function rad(d) {
                return d.radius;
            }

            points.enter()
                .append('circle')
                .attr('class', self.itemClassName)
                .on('mouseover', self.mouseOver)
                .on('mouseout', self.mouseOut)
                .on('click', click);

            points.transition()
                .duration(duration)
                .attr('r', rad)
                .attr('cx', self.rangeX)
                .attr('cy', self.rangeY)
{'fraction_non_alphanumeric': 0.1735175791499038, 'fraction_numerical': 0.0052475074339688645, 'mean_word_length': 1.4096080910240203, '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': '7535975', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1396, 'n_words': 351}