<commit_before>steal("can/util","can/control","can/observe","can/view/mustache","can/view/bindings",function(can){
	
	var ignoreAttributesRegExp = /dataViewId|class|id/i
	/**
	 * @add can.Component
	 */
	var Component = can.Component = can.Construct.extend(
	/**
	 * @static
	 */
	{
		setup: function(){
			can.Construct.setup.apply( this, arguments );
			
			if(can.Component){
				var self = this;
				this.Control = can.Control.extend({
					_lookup: function(options){
						return [options.scope, options, window]
					}
				},can.extend({
					setup: function(el, options){
						var res = can.Control.prototype.setup.call(this, el, options)
						this.scope = options.scope;
						// call on() whenever scope changes
						var self = this;
						this.on(this.scope,"change",function(){
							self.on();
							self.on(this.scope,"change",arguments.callee);
						});
						return res;
					}
				},this.prototype.events));<commit_msg>Inside the eventHandler this.scope is not set (as it's called on the scope itself)<commit_after>steal("can/util","can/control","can/observe","can/view/mustache","can/view/bindings",function(can){
	
	var ignoreAttributesRegExp = /dataViewId|class|id/i
	/**
	 * @add can.Component
	 */
	var Component = can.Component = can.Construct.extend(
	/**
	 * @static
	 */
	{
		setup: function(){
			can.Construct.setup.apply( this, arguments );
			
			if(can.Component){
				var self = this;
				this.Control = can.Control.extend({
					_lookup: function(options){
						return [options.scope, options, window]
					}
				},can.extend({
					setup: function(el, options){
						var res = can.Control.prototype.setup.call(this, el, options)
						this.scope = options.scope;
						// call on() whenever scope changes
						var self = this;
						this.on(this.scope,"change",function(){
							self.on();
							self.on(self.scope,"change",arguments.callee);
						});
						return res;
					}
				},this.prototype.events));
{'fraction_non_alphanumeric': 0.1597542242703533, 'fraction_numerical': 0.0, 'mean_word_length': 2.9634888438133875, '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': '3672766', 'n_tokens_mistral': 794, 'n_tokens_neox': 602, 'n_words': 118}