<commit_before>class ScoreManager
  constructor: (selector) ->
    @displayer = $(selector)
    @currentScore = 0

    EventBus.get('RideEngine').register PickupZoneVanishedEvent.NAME, (z) => @onMissedPickup(z)
    EventBus.get('RideEngine').register DropZoneVanishedEvent.NAME, (z) => @onMissedDrop(z)
    EventBus.get('RideEngine').register DropEvent.NAME, (z) => @onDrop(z)

  _refreshScore: () ->
    if @currentScore < 0
      EventBus.get('ScoreManager').post GameOverEvent.NAME, new GameOverEvent()
    else
      @displayer.text "$#{@currentScore}"
      @displayer.fadeOut(200, () => @displayer.fadeIn(200))

  getMissedPickupFare: () ->
    @missedPickupFare

  setMissedPickupFare: (v) ->
    @missedPickupFare = v

  getMissedDropFare: () ->
    @missedDropFare

  setMissedDropFare: (v) ->
    @missedDropFare = v

  getSuccessfulDropFare: () ->
    @successfulDropFare

  setSuccessfulDropFare: (v) ->
    @successfulDropFare = v

  getBonusTip: () ->
    @bonusTip
<commit_msg>Changes to right bus<commit_after>class ScoreManager
  constructor: (selector) ->
    @displayer = $(selector)
    @currentScore = 0

    EventBus.get('Zone').register PickupZoneVanishedEvent.NAME, (z) => @onMissedPickup(z)
    EventBus.get('Zone').register DropZoneVanishedEvent.NAME, (z) => @onMissedDrop(z)
    EventBus.get('RideEngine').register DropEvent.NAME, (z) => @onDrop(z)

  _refreshScore: () ->
    if @currentScore < 0
      EventBus.get('ScoreManager').post GameOverEvent.NAME, new GameOverEvent()
    else
      @displayer.text "$#{@currentScore}"
      @displayer.fadeOut(200, () => @displayer.fadeIn(200))

  getMissedPickupFare: () ->
    @missedPickupFare

  setMissedPickupFare: (v) ->
    @missedPickupFare = v

  getMissedDropFare: () ->
    @missedDropFare

  setMissedDropFare: (v) ->
    @missedDropFare = v

  getSuccessfulDropFare: () ->
    @successfulDropFare

  setSuccessfulDropFare: (v) ->
    @successfulDropFare = v

  getBonusTip: () ->
    @bonusTip

{'fraction_non_alphanumeric': 0.14552804446690248, 'fraction_numerical': 0.00808489135927236, 'mean_word_length': 3.8292682926829267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '5264169', 'n_tokens_mistral': 744, 'n_tokens_neox': 701, 'n_words': 109}