<commit_before>CollisionResponse = (I={}, self) ->
    # Handle multi-include
  self.unbind ".Movable"

  self.bind 'update.Movable', (dt) ->
    
  self.bind 'update', (elapsedTime) ->
    t = (elapsedTime * I.velocity.x).abs()
    unit = I.velocity.x.sign()

    # x dimension
    t.times ->
      if self.collide(unit, 0, ".solid")
        I.velocity.x = 0
      else
        I.x += unit

    t = (elapsedTime * I.velocity.y).abs()
    unit = I.velocity.y.sign()
    # y dimension
    t.times ->
      if self.collide(0, unit, ".solid")
        I.velocity.y = 0
      else
        I.y += unit

  self.extend
    collide: (xOffset, yOffset, className) ->
      engine.find(className).inject false, (hit, block) -><commit_msg>Modified in browser at pixie.strd6.com<commit_after>CollisionResponse = (I={}, self) ->
    # Handle multi-include
  self.unbind ".Movable"
    
  self.bind 'update', (elapsedTime) ->
    t = (elapsedTime * I.velocity.x).abs()
    unit = I.velocity.x.sign()

    # x dimension
    t.times ->
      if self.collide(unit, 0, ".solid")
        I.velocity.x = 0
      else
        I.x += unit

    t = (elapsedTime * I.velocity.y).abs()
    unit = I.velocity.y.sign()
    # y dimension
    t.times ->
      if self.collide(0, unit, ".solid")
        I.velocity.y = 0
      else
        I.y += unit

  self.extend
    collide: (xOffset, yOffset, className) ->
      engine.find(className).inject false, (hit, block) ->
{'fraction_non_alphanumeric': 0.16041666666666668, 'fraction_numerical': 0.00625, 'mean_word_length': 2.0856531049250537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '2109365', 'n_tokens_mistral': 530, 'n_tokens_neox': 500, 'n_words': 113}