<commit_before>/*
 *	Copyright (C) 2012 <NAME> all rights reserved
 *	Licensed under the MIT public license for the full license see the LICENSE file
 *
 */
define([ "..", ".", "lib", "./Piece" ], function( chess, pieces, lib, Piece ){

	pieces.Knight = lib.declare( [ Piece ], {
		type: "Knight",
		
		movement: function( ){
			return this.inherited( arguments, [[
				[ this.x + 2, this.y + 1 ],
				[ this.x + 2, this.y - 1 ],
				[ this.x - 2, this.y + 1 ],
				[ this.x - 2, this.y - 1 ],
				[ this.x + 1, this.y + 2 ],
				[ this.x + 1, this.y - 2 ],
				[ this.x - 1, this.y + 2 ],
				[ this.x - 1, this.y - 2 ]
			]]);			
		}
	});
	
	return pieces.Knight;
});<commit_msg>Converted the Knight to compose model<commit_after>/*
 *	Copyright (C) 2012 <NAME> all rights reserved
 *	Licensed under the MIT public license for the full license see the LICENSE file
 *
 */
var Compose = require( "compose" ),
    Piece   = require( "./Piece" );
    
module.exports = Compose(

    Piece,
    
    {
		type: "Knight",
		
		movement: Compose.around( function( base ){
			return function( ){
			    base.call( this, [
    				[ this.x + 2, this.y + 1 ],
    				[ this.x + 2, this.y - 1 ],
    				[ this.x - 2, this.y + 1 ],
    				[ this.x - 2, this.y - 1 ],
    				[ this.x + 1, this.y + 2 ],
    				[ this.x + 1, this.y - 2 ],
    				[ this.x - 1, this.y + 2 ],
    				[ this.x - 1, this.y - 2 ]
    			]);			
    	    };
		})
	}  
);
{'fraction_non_alphanumeric': 0.18043025676613464, 'fraction_numerical': 0.027758501040943788, 'mean_word_length': 1.81640625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7425650', 'n_tokens_mistral': 662, 'n_tokens_neox': 544, 'n_words': 153}