<commit_before>/*
 *  enemy.js
 *  2015/12/23
 *  @auther minimo  
 *  This Program is MIT license.
 */

phina.define('Enemy', {
  superClass: 'phina.display.Sprite',

  pattern: 0,
  speed: 2,

  init: function(assetName) {
    this.superInit(assetName, 32, 32);
    this.setScale(2).setOrigin(0.5, 1.0);

    this.ss = phina.accessory.FrameAnimation('hiyoco')
        .attachTo(this)
        .gotoAndPlay('walk');
  },

  update: function(app) {
    this.x -= this.speed;
  },
});
<commit_msg>bug fix<commit_after>/*
 *  enemy.js
 *  2015/12/23
 *  @auther minimo  
 *  This Program is MIT license.
 */

phina.define('Enemy', {
  superClass: 'phina.display.Sprite',

  pattern: 0,
  speed: 2,

  init: function(assetName) {
    assetName = assetName || 'waru';
    this.superInit(assetName, 32, 32);
    this.setScale(2).setOrigin(0.5, 1.0);

    this.ss = phina.accessory.FrameAnimation('hiyoco')
        .attachTo(this)
        .gotoAndPlay('walk');
  },

  update: function(app) {
    this.x -= this.speed;
  },
});

{'fraction_non_alphanumeric': 0.17238001958863858, 'fraction_numerical': 0.03721841332027424, 'mean_word_length': 2.799256505576208, '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': '2584696', 'n_tokens_mistral': 420, 'n_tokens_neox': 391, 'n_words': 68}