<commit_before>/*global define*/
define([
        '../Core/defaultValue',
        '../Core/defined',
        '../Core/Cartesian2',
        '../Core/Cartesian3',
        '../Core/Event',
        '../Core/Matrix4',
        '../Core/Math',
        '../Core/JulianDate',
        '../Core/Color',
        './BillboardCollection',
        './Particle',
        './CircleEmitter'
    ], function(
        defaultValue,
        defined,
        Cartesian2,
        Cartesian3,
        Event,
        Matrix4,
        CesiumMath,
        JulianDate,
        Color,
        BillboardCollection,
        Particle,
        CircleEmitter) {
    "use strict";

    var ParticleSystem = function(options) {
        options = defaultValue(options, defaultValue.EMPTY_OBJECT);

        this.particles = defaultValue(options.particles, []);
        this.forces = defaultValue(options.forces, []);

        this.emitter = defaultValue(options.emitter, new CircleEmitter({radius: 0.5}));

        this.modelMatrix = Matrix4.clone(defaultValue(options.modelMatrix, Matrix4.IDENTITY));
        this.emitterModelMatrix = Matrix4.clone(defaultValue(options.emitterModelMatrix, Matrix4.IDENTITY));

        this.startColor = defaultValue(options.startColor, Color.clone(Color.WHITE));
        this.endColor = defaultValue(options.endColor, Color.clone(Color.WHITE));

        this.startScale = defaultValue(options.startScale, 1.0);
        this.endScale = defaultValue(options.endScale, 1.0);

        this.rate = defaultValue(options.rate, 5);
        this.bursts = defaultValue(options.bursts, null);

        this.loop = defaultValue(options.loop, true);

        var speed = defaultValue(options.speed, undefined);
        if (speed) {
            this.minimumSpeed = speed;
            this.maximumSpeed = speed;
        }
        else {
            this.minimumSpeed = defaultValue(options.minimumSpeed, 1.0);
            this.maximumSpeed = defaultValue(options.maximumSpeed, 1.0);
        }

        var life = defaultValue(options.life, undefined);
        if (life) {
            this.minimumLife = life;
            this.maximumLife = life;
        }
        else {
            this.minimumLife = defaultValue(options.minimumLife, 5.0);
            this.maximumLife = defaultValue(options.maximumLife, 5.0);
        }

        var mass = defaultValue(options.mass, undefined);
        if (mass) {
            this.minimumMass = mass;
            this.maximumMass = mass;
        }
        else {
            this.minimumMass = defaultValue(options.minimumMass, 1.0);
            this.maximumMass = defaultValue(options.maximumMass, 1.0);
        }

        this.image = defaultValue(options.image, null);

        var width = defaultValue(options.width, undefined);
        if (width) {
            this.minimumWidth = width;
            this.maximumWidth = width;
        }
        else {
            this.minimumWidth = defaultValue(options.minimumWidth, 1.0);
            this.maximumWidth = defaultValue(options.maximumWidth, 1.0);
        }

        var height = defaultValue(options.height, undefined);
        if (height) {
            this.minimumHeight = height;
            this.maximumHeight = height;
        }
        else {
            this.minimumHeight = defaultValue(options.minimumHeight, 1.0);
            this.maximumHeight = defaultValue(options.maximumHeight, 1.0);
        }

        this.lifeTime = defaultValue(options.lifeTime, Number.MAX_VALUE);

        this.complete = new Event();
        this.isComplete = false;

        this.show = defaultValue(options.show, true);

        this.carryOver = 0.0;<commit_msg>Removed unnecessary use of defaultValue in ParticleSystem constructor<commit_after>/*global define*/
define([
        '../Core/defaultValue',
        '../Core/defined',
        '../Core/Cartesian2',
        '../Core/Cartesian3',
        '../Core/Event',
        '../Core/Matrix4',
        '../Core/Math',
        '../Core/JulianDate',
        '../Core/Color',
        './BillboardCollection',
        './Particle',
        './CircleEmitter'
    ], function(
        defaultValue,
        defined,
        Cartesian2,
        Cartesian3,
        Event,
        Matrix4,
        CesiumMath,
        JulianDate,
        Color,
        BillboardCollection,
        Particle,
        CircleEmitter) {
    "use strict";

    var ParticleSystem = function(options) {
        options = defaultValue(options, defaultValue.EMPTY_OBJECT);

        this.particles = defaultValue(options.particles, []);
        this.forces = defaultValue(options.forces, []);

        this.emitter = defaultValue(options.emitter, new CircleEmitter({radius: 0.5}));

        this.modelMatrix = Matrix4.clone(defaultValue(options.modelMatrix, Matrix4.IDENTITY));
        this.emitterModelMatrix = Matrix4.clone(defaultValue(options.emitterModelMatrix, Matrix4.IDENTITY));

        this.startColor = defaultValue(options.startColor, Color.clone(Color.WHITE));
        this.endColor = defaultValue(options.endColor, Color.clone(Color.WHITE));

        this.startScale = defaultValue(options.startScale, 1.0);
        this.endScale = defaultValue(options.endScale, 1.0);

        this.rate = defaultValue(options.rate, 5);
        this.bursts = options.bursts;

        this.loop = defaultValue(options.loop, true);

        var speed = options.speed;
        if (speed !== undefined) {
            this.minimumSpeed = speed;
            this.maximumSpeed = speed;
        }
        else {
            this.minimumSpeed = defaultValue(options.minimumSpeed, 1.0);
            this.maximumSpeed = defaultValue(options.maximumSpeed, 1.0);
        }

        var life = options.life;
        if (life !== undefined) {
            this.minimumLife = life;
            this.maximumLife = life;
        }
        else {
            this.minimumLife = defaultValue(options.minimumLife, 5.0);
            this.maximumLife = defaultValue(options.maximumLife, 5.0);
        }

        var mass = options.mass;
        if (mass !== undefined) {
            this.minimumMass = mass;
            this.maximumMass = mass;
        }
        else {
            this.minimumMass = defaultValue(options.minimumMass, 1.0);
            this.maximumMass = defaultValue(options.maximumMass, 1.0);
        }

        this.image = defaultValue(options.image, null);

        var width = options.width;
        if (width !== undefined) {
            this.minimumWidth = width;
            this.maximumWidth = width;
        }
        else {
            this.minimumWidth = defaultValue(options.minimumWidth, 1.0);
            this.maximumWidth = defaultValue(options.maximumWidth, 1.0);
        }

        var height = options.height;
        if (height !== undefined) {
            this.minimumHeight = height;
            this.maximumHeight = height;
        }
        else {
            this.minimumHeight = defaultValue(options.minimumHeight, 1.0);
            this.maximumHeight = defaultValue(options.maximumHeight, 1.0);
        }

        this.lifeTime = defaultValue(options.lifeTime, Number.MAX_VALUE);

        this.complete = new Event();
        this.isComplete = false;

        this.show = defaultValue(options.show, true);

        this.carryOver = 0.0;
{'fraction_non_alphanumeric': 0.11869559209617245, 'fraction_numerical': 0.010777946662981899, 'mean_word_length': 2.0208681135225377, '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': '6319267', 'n_tokens_mistral': 2062, 'n_tokens_neox': 1958, 'n_words': 351}