<commit_before>
package angular.service;

extern class Deferred<T> {
	public var promise : Promise<T>;
}

@:injectionName("$q")
extern class Q {

	public function all<T>(arr : Array<Promise<T> >) : Promise<Array<T> >;

	@:selfCall
	public function create<T, U>(resolve : T -> Void, reject : U -> Void) : Promise<T>;

	public function reject<T, U>(reason : U) : Promise<T>;

	public function defer<T>() : Deferred<T>;

	@:overload(function<T>(v : T) : Promise<T> {})
	public function when<T>(promise : Promise<T>) : Promise<T>;

}<commit_msg>add resolve/reject to Deferred<commit_after>
package angular.service;

extern class Deferred<T> {
	public var promise : Promise<T>;

	public function resolve(value : T) : Void;
	public function reject<U>(reason : U) : Void;
}

@:injectionName("$q")
extern class Q {

	public function all<T>(arr : Array<Promise<T> >) : Promise<Array<T> >;

	@:selfCall
	public function create<T, U>(resolve : T -> Void, reject : U -> Void) : Promise<T>;

	public function reject<T, U>(reason : U) : Promise<T>;

	public function defer<T>() : Deferred<T>;

	@:overload(function<T>(v : T) : Promise<T> {})
	public function when<T>(promise : Promise<T>) : Promise<T>;

}
{'fraction_non_alphanumeric': 0.17548278757346766, 'fraction_numerical': 0.0, 'mean_word_length': 5.02020202020202, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 44, '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': '3709933', 'n_tokens_mistral': 436, 'n_tokens_neox': 411, 'n_words': 109}