<commit_before>__resources__["/animation.js"] = {meta: {mimetype: "application/javascript"}, data: function(exports, require, module, __filename, __dirname) {

	/**
	 * Module dependencies
	 */

	var FrameAnimation = require('frameanimation').FrameAnimation
		, imgAndJsonUrl = require('config').IMAGE_URL
		, dataApi = require('dataApi')
		, app = require('app');

	/**
	 * Initialize a new 'Animation' with the given 'opts'
	 * 
	 * @param {Object} opts
	 * @api public
	 */

	var Animation = function(opts) {
		this.kindId = opts.kindId;
		this.type = opts.type;
		this.name = opts.name;
	};

	/**
	 * Create animation, each node owns four basic animations
	 * standAnimation, walkAnimation, diedAnimation and attackAnimation
	 *
	 * @api public
	 */
	Animation.prototype.create = function() {
		var animationData = this.getJsonData();
		var width = parseInt(animationData.width);
		var height = parseInt(animationData.height);
		var totalFrames = parseInt(animationData.totalFrame);
		var img = this.getImage(), ani;
		ani = new FrameAnimation({
			image: img,
			w: width - 5,
			h: height - 5,
			totalTime: totalFrames * 80,
			interval: 80,
			HSpan: width,
			VSpan: height
		});
		ani.name = this.name;<commit_msg>change interval to 50<commit_after>__resources__["/animation.js"] = {meta: {mimetype: "application/javascript"}, data: function(exports, require, module, __filename, __dirname) {

	/**
	 * Module dependencies
	 */

	var FrameAnimation = require('frameanimation').FrameAnimation
		, imgAndJsonUrl = require('config').IMAGE_URL
		, dataApi = require('dataApi')
		, app = require('app');

	/**
	 * Initialize a new 'Animation' with the given 'opts'
	 * 
	 * @param {Object} opts
	 * @api public
	 */

	var Animation = function(opts) {
		this.kindId = opts.kindId;
		this.type = opts.type;
		this.name = opts.name;
	};

	/**
	 * Create animation, each node owns four basic animations
	 * standAnimation, walkAnimation, diedAnimation and attackAnimation
	 *
	 * @api public
	 */
	Animation.prototype.create = function() {
		var animationData = this.getJsonData();
		var width = parseInt(animationData.width);
		var height = parseInt(animationData.height);
		var totalFrames = parseInt(animationData.totalFrame);
		var img = this.getImage(), ani;
		ani = new FrameAnimation({
			image: img,
			w: width - 5,
			h: height - 5,
			totalTime: totalFrames * 50,
			interval: 50,
			HSpan: width,
			VSpan: height
		});
		ani.name = this.name;
{'fraction_non_alphanumeric': 0.13436482084690554, 'fraction_numerical': 0.005700325732899023, 'mean_word_length': 3.798828125, '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': '2352401', 'n_tokens_mistral': 848, 'n_tokens_neox': 740, 'n_words': 198}