<commit_before>define ['chaplin'], (Chaplin) ->
  'use strict'

  # The application object
  # Choose a meaningful name for your application
  class JoatuApplication extends Chaplin.Application
    # Create aditional mediator properties
    # ------------------------------------
    initMediator: ->
      # Create a user property
      Chaplin.mediator.user = null

      # This is used by the modal view
      # to ensure only one modal displays
      # at a time.
      Chaplin.mediator.modal = null

      # Create an api_base_url property
      # Chaplin.mediator.api_base_url = configs().api_base_url
      Chaplin.mediator.api_base_url = <%= "'http://#{ENV["API_ENDPOINT"]}'" || "'http://local.api.joatu.com'" %>

      # Seal the mediator
      Chaplin.mediator.seal()
<commit_msg>Fix joatu api endpoint in JS.<commit_after>define ['chaplin'], (Chaplin) ->
  'use strict'

  # The application object
  # Choose a meaningful name for your application
  class JoatuApplication extends Chaplin.Application
    # Create aditional mediator properties
    # ------------------------------------
    initMediator: ->
      # Create a user property
      Chaplin.mediator.user = null

      # This is used by the modal view
      # to ensure only one modal displays
      # at a time.
      Chaplin.mediator.modal = null

      # Create an api_base_url property
      # Chaplin.mediator.api_base_url = configs().api_base_url
      Chaplin.mediator.api_base_url = <%= ENV["API_ENDPOINT"] ? "'http://#{ENV["API_ENDPOINT"]}'" : "'http://local.api.joatu.com'" %>

      # Seal the mediator
      Chaplin.mediator.seal()

{'fraction_non_alphanumeric': 0.14656771799628943, 'fraction_numerical': 0.0, 'mean_word_length': 2.449893390191898, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6341449', 'n_tokens_mistral': 478, 'n_tokens_neox': 477, 'n_words': 128}