<commit_before>#######
# Start the app!
#
# Determines which application to run.
#
# These are the available applications at this time: 
#
#     franklin: The main considerit application
#     saas_landing_page: The considerit homepage for marketing considerit
#

( ->

  # The server indicates which application should be run based on a 
  # meta tag it outputs to the base layout. 
  app = null
  metas = document.getElementsByTagName('meta')
  for meta in metas
    if meta.getAttribute('name') == 'app'
      app = meta.getAttribute 'content'

  if !app
    throw "Application not defined"

  # Add defined styles
  style = document.createElement('style')
  style.type = 'text/css'
  if style.styleSheet
    style.styleSheet.cssText = css
  else
    style.appendChild document.createTextNode(window.styles)

  document.body.appendChild style

  switch app
    when 'franklin'      
      if 'ontouchend' in document #detect touch support
        React.initializeTouchEvents(true)

      React.renderComponent Franklin({key: 'root'}), document.getElementById('content')

    when 'saas_landing_page'
      React.renderComponent Saas({key: 'saas_root'}), document.getElementById('content')

)()<commit_msg>fix for IE styling<commit_after>#######
# Start the app!
#
# Determines which application to run.
#
# These are the available applications at this time: 
#
#     franklin: The main considerit application
#     saas_landing_page: The considerit homepage for marketing considerit
#

( ->

  # The server indicates which application should be run based on a 
  # meta tag it outputs to the base layout. 
  app = null
  metas = document.getElementsByTagName('meta')
  for meta in metas
    if meta.getAttribute('name') == 'app'
      app = meta.getAttribute 'content'

  if !app
    throw "Application not defined"

  # Add defined styles

  style = document.createElement('style')
  style.type = 'text/css'
  if style.styleSheet
    style.styleSheet.cssText = window.styles
  else
    style.appendChild document.createTextNode(window.styles)

  document.body.appendChild style

  switch app
    when 'franklin'      
      if 'ontouchend' in document #detect touch support
        React.initializeTouchEvents(true)

      React.renderComponent Franklin({key: 'root'}), document.getElementById('content')

    when 'saas_landing_page'
      React.renderComponent Saas({key: 'saas_root'}), document.getElementById('content')

)()
{'fraction_non_alphanumeric': 0.09662828947368421, 'fraction_numerical': 0.0, 'mean_word_length': 3.6788461538461537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4098457', 'n_tokens_mistral': 704, 'n_tokens_neox': 691, 'n_words': 215}