<commit_before>(function() {
	'use strict';

	/**
	 * This module contains the resumable.js service.
	 */
	angular.module('resumable.js-services', [])
		/**
		 * @ngdoc service
		 * @name resumableJsFactory
		 *
		 * @description
		 * Wraps the resumable.js API and adds scope management.
		 */
		.provider('resumableJsFactory', [function() {
			// define the default properties send to resumable.js
			var defaults = {},
				globalOptions = {};

			// The `options({})` allows global configuration of all resumable.js instances.
			//
			//      var app = angular.module('App', ['resumable.js-services'], function(resumableJsFactoryProvider){
			//        resumableJsFactoryProvider.options({target: '/'});
			//      });
			this['options'] = function(value){
				globalOptions = value;
			};

			// return the actual resumableJsFactory that is injected in controllers
			this['$get'] = [function() {
				/**
				 * Constructor of the AngularResumable class.
				 * @param {Object} opts A hash object of the configuration passed to the Resumable.js instance.
				 */
				function AngularResumable(opts) {
					this.opts = angular.extend({}, defaults, globalOptions, opts);
					//this.r = new Resumable(this.opts);
				}

				// returnt the public api of the resumableJsFactory.
				return {
					/**
					 * Creates an instance of the {AngularResumable} class.
					 * @param  {Object}           opts A hash object of the configuration passed to the Resumable.js instance.
					 * @return {AngularResumable}      Returns the created {AngularResumable} instance, which wraps {Resumable}.
					 */
					'create': function(opts) {
						return new AngularResumable(opts);
					}
				};
			}];
		}]);
}());<commit_msg>+ inherit AngularResumable from Resumable<commit_after>(function() {
	'use strict';

	/**
	 * This module contains the resumable.js service.
	 */
	angular.module('resumable.js-services', [])
		/**
		 * @ngdoc service
		 * @name resumableJsFactory
		 *
		 * @description
		 * Wraps the resumable.js API and adds scope management.
		 */
		.provider('resumableJsFactory', [function() {
			// define the default properties send to resumable.js
			var defaults = {},
				globalOptions = {};

			// The `options({})` allows global configuration of all resumable.js instances.
			//
			//      var app = angular.module('App', ['resumable.js-services'], function(resumableJsFactoryProvider){
			//        resumableJsFactoryProvider.options({target: '/'});
			//      });
			this['options'] = function(value){
				globalOptions = value;
			};

			// return the actual resumableJsFactory that is injected in controllers
			this['$get'] = [function() {
				/**
				 * Constructor of the AngularResumable class.
				 * @param {Object} opts A hash object of the configuration passed to the Resumable.js instance.
				 */
				function AngularResumable(opts) {
					// combine default options with global options and options
					opts = angular.extend({}, defaults, globalOptions, opts);

					// invoke super constructor
					Resumable.call(this, opts);
				}
				AngularResumable.prototype = new Resumable();
				AngularResumable.prototype.constructor = AngularResumable;

				// returnt the public api of the resumableJsFactory.
				return {
					/**
					 * Creates an instance of the {AngularResumable} class.
					 * @param  {Object}           opts A hash object of the configuration passed to the Resumable.js instance.
					 * @return {AngularResumable}      Returns the created {AngularResumable} instance, which wraps {Resumable}.
					 */
					'create': function(opts) {
						return new AngularResumable(opts);
					}
				};
			}];
		}]);
}());
{'fraction_non_alphanumeric': 0.12469237079573421, 'fraction_numerical': 0.0, 'mean_word_length': 2.870899470899471, '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': '2214475', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1026, 'n_words': 295}