<commit_before>declare module PIXI
{
	export var BaseTextureCache: any;
	export var texturesToUpdate: PIXI.BaseTexture[];
	export var TextureCache: any;

    	export function autoDetectRenderer(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean): PIXI.IRenderer;

	export class AssetLoader extends EventTarget
	{
		//properties
	    	assetURLs: string[];

	    	//constructor
	    	constructor(assetURLs: string[]);

            	//methods
	    	load(): void;

	    	//callbacks
	    	onComplete: () => void;
	    	onProgress: () => void;
	}

	export class BaseTexture extends EventTarget
	{
	    	//properties
	    	height: number;
	    	width: number;
	    	source: any;
		
	    	//constructor
	    	constructor(source: any);
		
	    	//static methods
	    	static fromImage(imageURL: string);
	}

	export class BitmapFontLoader extends EventTarget
	{
            	//constructor
	    	constructor(url: string, crossorigins?: boolean);

            	//methods
	    	load(): void;

            	//callbacks
	    	onLoaded: () => void;
	    	onXMLLoaded: () => void;
	}

	export class BitmapText extends DisplayObjectContainer
	{
			//properties -> they seem to be hidden, see example 10
	    	height: number;
	    	width: number;

           	//constructor
	    	constructor(text: string, style: any);

            	//methods
	    	setStyle(style: any):void;
	    	setText(text: string):void;
	}

	export class CanvasRenderer
	{
	    	//properties
	    	context: CanvasRenderingContext2D;
	    	height: number;
	    	view: HTMLCanvasElement;
	    	width: number;
 
   	        //constructor
		constructor(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean);
		
	    	//methods
	    	render(stage: Stage): void;
	}

	export class Circle {

		//properties
		radius: number;
    	x: number;
    	y: number;

    	constructor(x:number = 0, y:number = 0, radius:number = 0);

    	clone():Circle;
    	contains(x:number, y:number):boolean;

	}

	export class CustomRenderable extends DisplayObject
	{
	    	//properties
	    	context: CanvasRenderingContext2D;
	   		height: number;
	    	view: HTMLCanvasElement;
	    	width: number;
	    
            	//constructor
	    	constructor();

            	//methods unsure
            	render(stage: Stage): void;
	}


	export class DisplayObject
	{
	    	//properties
	    	alpha: number;
	    	buttonMode: boolean;
	    	hitArea: Rectangle;
	    	interactive: boolean;
	    	parent: DisplayObjectContainer;
	    	pivot: Point;
	    	position: Point;
	    	rotation: number;
	    	scale: Point;
	    	stage: Stage;
	    	visible: boolean;
		
	    	//constructor
	    	constructor();

	    	//methods
	    	updateTransform(): void;
		
	    	//callbacks
	    	click: (interactionData: InteractionData) => void;
	    	mousedown: (interactionData: InteractionData) => void;
			mouseout: (interactionData: InteractionData) => void;
			mouseover: (interactionData: InteractionData) => void;
			mouseup: (interactionData: InteractionData) => void;
			mouseupoutside: (interactionData: InteractionData) => void;
			tap: (interactionData: InteractionData) => void;
			touchend: (event: InteractionData) => void;
			touchendoutside: (event: InteractionData) => void;
			touchstart: (event: InteractionData) => void;

			// they seems to be kind of private? report to the example 8, they are not defined in DisplayObject class. 
			mousemove: (event: InteractionData) => void;
			touchmove: (event: InteractionData) => void;
	}


	export class DisplayObjectContainer extends DisplayObject
	{
		//properties
	    	children: DisplayObject[];
		
		//constructor
	    	constructor();

		//methods
	    	addChild(displayObject: DisplayObject): void;
	    	addChildAt(displayObject: DisplayObject, index: number): void;
	    	getChildAt(index: number): DisplayObject;
	    	removeChild(displayObject: DisplayObject): void;
	    	swapChildren(displayObject1: DisplayObject, displayObject2: DisplayObject): void;
	}

	export class Ellipse {

		//properties:
		x:number;
		y:number;
		width:number;
		height:number;

		constructor(x:number = 0, y:number = 0, width:number = 0, height:number = 0);

		clone():Ellipse;
		contains(x:number, y:number):boolean;
	}

	export class Graphics extends DisplayObjectContainer {

		constructor();

		beginFill(color:number, alpha:number):void;
		clear():void;
		drawCircle(x:number, y:number, radius:number):void;
		drawElipse(x:number, y:number, width:number, height:number):void;
		drawRect(x:number, y:number, width:number, height:number):void;
		endFill():void;
		lineStyle(lineWidth:number = 0, color:number = 0, alpha:number = 1):void;
		lineTo(x:number, y:number):void;
		moveTo(x:number, y:number):void;
	}
	
	export class ImageLoader extends EventTarget
	{
		//constructor
	    	constructor(url: string, crossorigin?: boolean);
		
		//methods<commit_msg>corrected "error TS2174: Default arguments are not allowed in an overload parameter."<commit_after>declare module PIXI
{
	export var BaseTextureCache: any;
	export var texturesToUpdate: PIXI.BaseTexture[];
	export var TextureCache: any;

    	export function autoDetectRenderer(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean): PIXI.IRenderer;

	export class AssetLoader extends EventTarget
	{
		//properties
	    	assetURLs: string[];

	    	//constructor
	    	constructor(assetURLs: string[]);

            	//methods
	    	load(): void;

	    	//callbacks
	    	onComplete: () => void;
	    	onProgress: () => void;
	}

	export class BaseTexture extends EventTarget
	{
	    	//properties
	    	height: number;
	    	width: number;
	    	source: any;
		
	    	//constructor
	    	constructor(source: any);
		
	    	//static methods
	    	static fromImage(imageURL: string);
	}

	export class BitmapFontLoader extends EventTarget
	{
            	//constructor
	    	constructor(url: string, crossorigins?: boolean);

            	//methods
	    	load(): void;

            	//callbacks
	    	onLoaded: () => void;
	    	onXMLLoaded: () => void;
	}

	export class BitmapText extends DisplayObjectContainer
	{
			//properties -> they seem to be hidden, see example 10
	    	height: number;
	    	width: number;

           	//constructor
	    	constructor(text: string, style: any);

            	//methods
	    	setStyle(style: any):void;
	    	setText(text: string):void;
	}

	export class CanvasRenderer
	{
	    	//properties
	    	context: CanvasRenderingContext2D;
	    	height: number;
	    	view: HTMLCanvasElement;
	    	width: number;
 
   	        //constructor
		constructor(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean);
		
	    	//methods
	    	render(stage: Stage): void;
	}

	export class Circle {

		//properties
		radius: number;
    	x: number;
    	y: number;

    	constructor(x?:number, y?:number, radius?:number);

    	clone():Circle;
    	contains(x:number, y:number):boolean;

	}

	export class CustomRenderable extends DisplayObject
	{
	    	//properties
	    	context: CanvasRenderingContext2D;
	   		height: number;
	    	view: HTMLCanvasElement;
	    	width: number;
	    
            	//constructor
	    	constructor();

            	//methods unsure
            	render(stage: Stage): void;
	}


	export class DisplayObject
	{
	    	//properties
	    	alpha: number;
	    	buttonMode: boolean;
	    	hitArea: Rectangle;
	    	interactive: boolean;
	    	parent: DisplayObjectContainer;
	    	pivot: Point;
	    	position: Point;
	    	rotation: number;
	    	scale: Point;
	    	stage: Stage;
	    	visible: boolean;
		
	    	//constructor
	    	constructor();

	    	//methods
	    	updateTransform(): void;
		
	    	//callbacks
	    	click: (interactionData: InteractionData) => void;
	    	mousedown: (interactionData: InteractionData) => void;
			mouseout: (interactionData: InteractionData) => void;
			mouseover: (interactionData: InteractionData) => void;
			mouseup: (interactionData: InteractionData) => void;
			mouseupoutside: (interactionData: InteractionData) => void;
			tap: (interactionData: InteractionData) => void;
			touchend: (event: InteractionData) => void;
			touchendoutside: (event: InteractionData) => void;
			touchstart: (event: InteractionData) => void;

			// they seems to be kind of private? report to the example 8, they are not defined in DisplayObject class. 
			mousemove: (event: InteractionData) => void;
			touchmove: (event: InteractionData) => void;
	}


	export class DisplayObjectContainer extends DisplayObject
	{
		//properties
	    	children: DisplayObject[];
		
		//constructor
	    	constructor();

		//methods
	    	addChild(displayObject: DisplayObject): void;
	    	addChildAt(displayObject: DisplayObject, index: number): void;
	    	getChildAt(index: number): DisplayObject;
	    	removeChild(displayObject: DisplayObject): void;
	    	swapChildren(displayObject1: DisplayObject, displayObject2: DisplayObject): void;
	}

	export class Ellipse {

		//properties:
		x:number;
		y:number;
		width:number;
		height:number;

		constructor(x?:number, y?:number, width?:number, height?:number);

		clone():Ellipse;
		contains(x:number, y:number):boolean;
	}

	export class Graphics extends DisplayObjectContainer {

		constructor();

		beginFill(color:number, alpha:number):void;
		clear():void;
		drawCircle(x:number, y:number, radius:number):void;
		drawElipse(x:number, y:number, width:number, height:number):void;
		drawRect(x:number, y:number, width:number, height:number):void;
		endFill():void;
		lineStyle(lineWidth?:number, color?:number, alpha?:number):void;
		lineTo(x:number, y:number):void;
		moveTo(x:number, y:number):void;
	}
	
	export class ImageLoader extends EventTarget
	{
		//constructor
	    	constructor(url: string, crossorigin?: boolean);
		
		//methods
{'fraction_non_alphanumeric': 0.10956947561722098, 'fraction_numerical': 0.0028565598857376046, 'mean_word_length': 3.0291820797369504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '7419837', 'n_tokens_mistral': 3281, 'n_tokens_neox': 2870, 'n_words': 732}