<commit_before>const MOVE_X = -32;
const MOVE_Y = 16;

Crafty.c("OnHatch", {
  required: "Hideable",
  events: {
    Move: '_updateHatchHiding'
  },

  onAttach(parent) {
    this.hideBelow(parent._parent.y + 30)
  },

  _updateHatchHiding(old) {
    if (old._y !== this._y) {
      this.hideBelow(this._parent._parent.y + 30)
    }
  }

});

Crafty.c("CarrierHatch", {
  init() {
    this.requires("2D, WebGL, aircraftCarrierOpenHatch");
    this.attr({ z: -10 });
    this.crop(0, 2, 5 * 32, 32);

    this.wire = Crafty.e("2D, WebGL, aircraftCarrierWires");
    this.wire.attr({
      z: -14,
      x: this.x + 80,
      y: this.y - 20
    });
    this.attach(this.wire);

    this.lid = Crafty.e(
      "2D, WebGL, aircraftCarrierHatchLid, Hideable, TweenPromise, Delta2D"
    );
    this.lid.crop(0, 2, 5 * 32, 32);

    this.attach(this.lid);

    this.dust = Crafty.e("2D, WebGL, Explode, ColorEffects");
    this.dust.colorOverride("#808080");
    this.dust.attr({
      w: 150,
      alpha: 0,
      h: 30,<commit_msg>Prettier<commit_after>const MOVE_X = -32;
const MOVE_Y = 16;

Crafty.c("OnHatch", {
  required: "Hideable",
  events: {
    Move: "_updateHatchHiding"
  },

  onAttach(parent) {
    this.hideBelow(parent._parent.y + 30);
  },

  _updateHatchHiding(old) {
    if (old._y !== this._y) {
      this.hideBelow(this._parent._parent.y + 30);
    }
  }
});

Crafty.c("CarrierHatch", {
  init() {
    this.requires("2D, WebGL, aircraftCarrierOpenHatch");
    this.attr({ z: -10 });
    this.crop(0, 2, 5 * 32, 32);

    this.wire = Crafty.e("2D, WebGL, aircraftCarrierWires");
    this.wire.attr({
      z: -14,
      x: this.x + 80,
      y: this.y - 20
    });
    this.attach(this.wire);

    this.lid = Crafty.e(
      "2D, WebGL, aircraftCarrierHatchLid, Hideable, TweenPromise, Delta2D"
    );
    this.lid.crop(0, 2, 5 * 32, 32);

    this.attach(this.lid);

    this.dust = Crafty.e("2D, WebGL, Explode, ColorEffects");
    this.dust.colorOverride("#808080");
    this.dust.attr({
      w: 150,
      alpha: 0,
      h: 30,
{'fraction_non_alphanumeric': 0.17658536585365853, 'fraction_numerical': 0.045853658536585365, 'mean_word_length': 2.6109154929577465, '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': '6331276', 'n_tokens_mistral': 928, 'n_tokens_neox': 827, 'n_words': 149}