<commit_before>define(["Tone/core/Tone", "Tone/source/Source", "Tone/source/Oscillator", "Tone/signal/Signal", "Tone/signal/Threshold"],
function(Tone){

	"use strict";

	/**
	 *  
	 *  @static 
	 *  @private
	 *  @type {Float32Array}
	 */
	var pulseCurve = new Float32Array(256);

	for(var i=0; i < 128; i++) {
		pulseCurve[i] = -1;
		pulseCurve[i+128] = 1;
	}

	/**
	 *  @class Pulse Oscillator with control over width
	 *
	 *  @constructor
	 *  @extends {Tone.Source}
	 *  @param {number=} frequency the frequency of the oscillator
	 *  @param {number=} [width = 0.5] the width of the pulse
	 */
	Tone.PulseOscillator = function(frequency, width){

		Tone.Source.call(this);

		/**
		 *  the width of the pulse
		 *  @type {Tone.Signal}
		 */
		this.width = new Tone.Signal(this.defaultArg(width, 0.5));

		/**
		 *  the sawtooth oscillator
		 *  @type {Tone.Oscillator}
		 */
		this._sawtooth = new Tone.Oscillator(frequency, "sawtooth");

		/**
		 *  the oscillators frequency
		 *  @type {Tone.Signal}
		 */
		this.frequency = this._sawtooth.frequency;

		/**
		 *  the oscillators detune
		 *  @type {Tone.Signal}
		 */
		this.detune = this._sawtooth.detune;

		/**
		 *  threshold the signal to turn it into a square
		 *  
		 *  @type {WaveShaperNode}
		 *  @private
		 */
		this._thresh = this.context.createWaveShaper();
		this._thresh.curve = pulseCurve;<commit_msg>made the sawtooth private in pulse oscillator<commit_after>define(["Tone/core/Tone", "Tone/source/Source", "Tone/source/Oscillator", "Tone/signal/Signal", "Tone/signal/Threshold"],
function(Tone){

	"use strict";

	/**
	 *  
	 *  @static 
	 *  @private
	 *  @type {Float32Array}
	 */
	var pulseCurve = new Float32Array(256);

	for(var i=0; i < 128; i++) {
		pulseCurve[i] = -1;
		pulseCurve[i+128] = 1;
	}

	/**
	 *  @class Pulse Oscillator with control over width
	 *
	 *  @constructor
	 *  @extends {Tone.Source}
	 *  @param {number=} frequency the frequency of the oscillator
	 *  @param {number=} [width = 0.5] the width of the pulse
	 */
	Tone.PulseOscillator = function(frequency, width){

		Tone.Source.call(this);

		/**
		 *  the width of the pulse
		 *  @type {Tone.Signal}
		 */
		this.width = new Tone.Signal(this.defaultArg(width, 0.5));

		/**
		 *  the sawtooth oscillator
		 *  @type {Tone.Oscillator}
		 *  @private
		 */
		this._sawtooth = new Tone.Oscillator(frequency, "sawtooth");

		/**
		 *  the oscillators frequency
		 *  @type {Tone.Signal}
		 */
		this.frequency = this._sawtooth.frequency;

		/**
		 *  the oscillators detune
		 *  @type {Tone.Signal}
		 */
		this.detune = this._sawtooth.detune;

		/**
		 *  threshold the signal to turn it into a square
		 *  
		 *  @type {WaveShaperNode}
		 *  @private
		 */
		this._thresh = this.context.createWaveShaper();
		this._thresh.curve = pulseCurve;
{'fraction_non_alphanumeric': 0.15269354263289334, 'fraction_numerical': 0.014270424545130217, 'mean_word_length': 2.932678821879383, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2620936', 'n_tokens_mistral': 1189, 'n_tokens_neox': 994, 'n_words': 218}