<commit_before>/**
 * T'MediaArt library for JavaScript
 *  - MajVj extension - frame plugin - nicofarre3d - beams module
 *  @param options options
 */
MajVj.frame.nicofarre3d.modules.beams = function (options) {
    this._container = new TmaParticle.Container(
            MajVj.frame.nicofarre3d.modules.beams.Particle);
    this._period = options.period || 1000;
    this._unit = options.unit || 20;
    this._dir = options.dir || MajVj.frame.nicofarre3d.modules.beams.DIR_ALL;
    this._tick = 0;
    this._nextTime = 0;
    this._beams = [];
    this._size = 8192 * 2;
    this._speed = this._size / 200;
    this._maxParticles = 10000;
    this._lastParticles = 0;
    this._model = TmaModelPrimitives.createPoints(
            new Array(this._maxParticles * 3));
};

/**
 * Particle prototype
 *
 * This prototype controls a particle.
 */
MajVj.frame.nicofarre3d.modules.beams.Particle = function () {
    TmaParticle.apply(this, arguments);
};

// Inherits TmaParticle.
MajVj.frame.nicofarre3d.modules.beams.Particle.prototype =
        new TmaParticle(null, 0);
MajVj.frame.nicofarre3d.modules.beams.Particle.prototype.constructor =
        MajVj.frame.nicofarre3d.modules.beams.Particle;

MajVj.frame.nicofarre3d.modules.beams.DIR_ALL = [0, 1, 2, 3];<commit_msg>MajVj nicofarre3d frame: accept speed option<commit_after>/**
 * T'MediaArt library for JavaScript
 *  - MajVj extension - frame plugin - nicofarre3d - beams module
 *  @param options options
 */
MajVj.frame.nicofarre3d.modules.beams = function (options) {
    this._container = new TmaParticle.Container(
            MajVj.frame.nicofarre3d.modules.beams.Particle);
    this._period = options.period || 1000;
    this._unit = options.unit || 20;
    this._dir = options.dir || MajVj.frame.nicofarre3d.modules.beams.DIR_ALL;
    this._tick = 0;
    this._nextTime = 0;
    this._beams = [];
    this._size = 8192 * 2;
    this._speed = options.speed || this._size / 200;
    this._maxParticles = 10000;
    this._lastParticles = 0;
    this._model = TmaModelPrimitives.createPoints(
            new Array(this._maxParticles * 3));
};

/**
 * Particle prototype
 *
 * This prototype controls a particle.
 */
MajVj.frame.nicofarre3d.modules.beams.Particle = function () {
    TmaParticle.apply(this, arguments);
};

// Inherits TmaParticle.
MajVj.frame.nicofarre3d.modules.beams.Particle.prototype =
        new TmaParticle(null, 0);
MajVj.frame.nicofarre3d.modules.beams.Particle.prototype.constructor =
        MajVj.frame.nicofarre3d.modules.beams.Particle;

MajVj.frame.nicofarre3d.modules.beams.DIR_ALL = [0, 1, 2, 3];
{'fraction_non_alphanumeric': 0.1264456437933693, 'fraction_numerical': 0.028912875867386275, 'mean_word_length': 3.3034825870646767, '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': '907787', 'n_tokens_mistral': 989, 'n_tokens_neox': 936, 'n_words': 155}