<commit_before>var graphics_core = (function (graphicsCore) {

    var models = graphicsCore.Models || {};

    // create the model for a Point
    var Point = Backbone.Model.extend({
        defaults: {
            x: 0,
            y: 0
        },
        getX: function () {
            return this.get('x');
        },
        getY: function () {
            return this.get('y');
        },
        setX: function (x) {
            return this.set('x', x);
        },
        setY: function (y) {
            return this.set('y', y);
        },
        absDistInXFrom: function (refPoint) {
            return Math.abs(this.getX() - refPoint.getX())
        },
        absDistInYFrom: function (refPoint) {
            return Math.abs(this.getY() - refPoint.getY())
        },
        distInXFrom: function(refPoint){
            return this.getX() - refPoint.getX();
        },
        distInYFrom: function(refPoint){
            return this.getY() - refPoint.getY();
        }
    });

    // set models
    models.Point = Point;

    graphicsCore.Models = models;

    return graphicsCore;

}(graphics_core || {}));<commit_msg>Adding JSDoc doclets for Point class<commit_after>var graphics_core = (function (graphicsCore) {

    var models = graphicsCore.Models || {};

    var Point = Backbone.Model.extend(
    /** @lends Point.prototype */
    {
        /**
         * @augments Backbone.Model
         * @constructs
         * @class Point Represents a point in paper.
         */
        initialize: function() {},

        /**
         * Default point is {0,0}.
          */
        defaults: {
            x: 0,
            y: 0
        },
        /**
         * Returns Y coordinate of the Point.
         * @returns {number} X coordinate of the Point
         */
        getX: function () {
            return this.get('x');
        },
        /**
         * Returns Y coordinate of the Point.
         * @returns {number} Y coordinate of the Point
         */
        getY: function () {
            return this.get('y');
        },
        /**
         * Sets X coordinate of the Point.
         * @param {number} x X coordinate of the Point
         */
        setX: function (x) {
            this.set('x', x);
        },
        /**
         * Sets Y coordinate of the Point.
         * @param {number} y Y coordinate of the Point
         */
        setY: function (y) {
            this.set('y', y);
        },
        /**
         * Returns absolute distance in X axis from a given Point to this point.
         * @param {Point} refPoint Referring point.
         * @returns {number} Absolute distance in X axis.
         */
        absDistInXFrom: function (refPoint) {
            return Math.abs(this.getX() - refPoint.getX())
        },
        /**
         * Returns absolute distance in Y axis from a given Point to this point.
         * @param {Point} refPoint Referring point.
         * @returns {number} Absolute distance in Y axis.
         */
        absDistInYFrom: function (refPoint) {
            return Math.abs(this.getY() - refPoint.getY())
        },
        /**
         * Returns distance in X axis from a given Point to this point.
         * @param {Point} refPoint Referring point.
         * @returns {number} Distance in X axis.
         */
        distInXFrom: function (refPoint) {
            return this.getX() - refPoint.getX();
        },
        /**
         * Returns distance in Y axis from a given Point to this point.
         * @param {Point} refPoint Referring point.
         * @returns {number} Distance in Y axis.
         */
        distInYFrom: function (refPoint) {
            return this.getY() - refPoint.getY();
        }
    });

    // set models
    models.Point = Point;

    graphicsCore.Models = models;

    return graphicsCore;

}(graphics_core || {}));
{'fraction_non_alphanumeric': 0.12089630015633142, 'fraction_numerical': 0.001563314226159458, 'mean_word_length': 1.5140798952193844, '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': '5614153', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1053, 'n_words': 311}