<commit_before>$ ->
    $body = $('body')
    bodyClass = $body.attr 'class'
    routes = ['startups-new', 'startups-edit']

    if bodyClass in ['startups-new', 'startups-edit']
        $markets = $("#startup_market_list")

        $('.upload-photo').click (event) ->
          event.preventDefault()
          $('#startup_image').click()

        $('#startup_image').change (event) ->
          if @files && @files[0]
              reader = new FileReader()

              reader.onload = (e) ->
                $('img.startuplogo').attr('src', e.target.result)

              reader.readAsDataURL(@files[0])

        $('.reset-photo').click (event) ->
          event.preventDefault()
          $('input#startup_default_logo').val('set_default')
          $('img.startuplogo').attr('src',
              "<%= asset_path('fallback/thumb_startup-default.png') %>")

        $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag",
          crossDomain: true,
          queryParam: "query",
          prePopulate: $markets.data('pre'),
          theme: "facebook",
          tokenLimit: 3,
          tokenValue: "name"
    else if bodyClass is 'startups-index'
        $(".startupcard").equalHeights()<commit_msg>Update asset_path to image_path in Startup coffee<commit_after>$ ->
    $body = $('body')
    bodyClass = $body.attr 'class'
    routes = ['startups-new', 'startups-edit']

    if bodyClass in ['startups-new', 'startups-edit']
        $markets = $("#startup_market_list")

        $('.upload-photo').click (event) ->
          event.preventDefault()
          $('#startup_image').click()

        $('#startup_image').change (event) ->
          if @files && @files[0]
              reader = new FileReader()

              reader.onload = (e) ->
                $('img.startuplogo').attr('src', e.target.result)

              reader.readAsDataURL(@files[0])

        $('.reset-photo').click (event) ->
          event.preventDefault()
          $('input#startup_default_logo').val('set_default')
          $('img.startuplogo').attr('src',
              "<%= image_path('fallback/thumb_startup-default.png') %>")

        $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag",
          crossDomain: true,
          queryParam: "query",
          prePopulate: $markets.data('pre'),
          theme: "facebook",
          tokenLimit: 3,
          tokenValue: "name"
    else if bodyClass is 'startups-index'
        $(".startupcard").equalHeights()
{'fraction_non_alphanumeric': 0.17405318291700242, 'fraction_numerical': 0.0032232070910556, 'mean_word_length': 2.2204928664072634, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6122905', 'n_tokens_mistral': 758, 'n_tokens_neox': 737, 'n_words': 123}