<commit_before>class StartTabAppThumbView extends KDCustomHTMLView

  constructor:(options, data)->

    options.tagName    = 'figure'

    if data.disabled?
      options.cssClass += ' disabled'
    else if data.catalog?
      options.cssClass += ' appcatalog'

    super options, data

    {icns, name, version, author, description, authorNick, additionalinfo} = manifest = @getData()

    additionalinfo or= ''
    description    or= ''
    version        or= ''

    if not authorNick
      authorNick = KD.whoami().profile.nickname

    proxifyUrl=(url)->
      "https://api.koding.com/1.0/image.php?url="+ encodeURIComponent(url)

    resourceRoot = "#{KD.appsUri}/#{authorNick}/#{name}/#{version}/"

    if authorNick is KD.whoami().profile.nickname and manifest.devMode?
      resourceRoot = "http://#{authorNick}.koding.com/.applications/#{__utils.slugify name}/"

    if icns and (icns['256'] or icns['512'] or icns['128'] or icns['160'] or icns['64'])
      thumb = "#{resourceRoot}/#{if icns then icns['256'] or icns['512'] or icns['128'] or icns['160'] or icns['64']}"
      if authorNick is KD.whoami().profile.nickname and manifest.devMode?
        thumb = proxifyUrl thumb
    else
      thumb = "#{KD.apiUri + '/images/default.app.listthumb.png'}"
<commit_msg>Just devMode check is enough<commit_after>class StartTabAppThumbView extends KDCustomHTMLView

  constructor:(options, data)->

    options.tagName    = 'figure'

    if data.disabled?
      options.cssClass += ' disabled'
    else if data.catalog?
      options.cssClass += ' appcatalog'

    super options, data

    {icns, name, version, author, description, authorNick, additionalinfo} = manifest = @getData()

    additionalinfo or= ''
    description    or= ''
    version        or= ''

    if not authorNick
      authorNick = KD.whoami().profile.nickname

    proxifyUrl=(url)->
      "https://api.koding.com/1.0/image.php?url="+ encodeURIComponent(url)

    resourceRoot = "#{KD.appsUri}/#{authorNick}/#{name}/#{version}/"

    if manifest.devMode?
      resourceRoot = "http://#{authorNick}.koding.com/.applications/#{__utils.slugify name}/"

    if icns and (icns['256'] or icns['512'] or icns['128'] or icns['160'] or icns['64'])
      thumb = "#{resourceRoot}/#{if icns then icns['256'] or icns['512'] or icns['128'] or icns['160'] or icns['64']}"
      if manifest.devMode?
        thumb = proxifyUrl thumb
    else
      thumb = "#{KD.apiUri + '/images/default.app.listthumb.png'}"

{'fraction_non_alphanumeric': 0.15595959595959596, 'fraction_numerical': 0.024242424242424242, 'mean_word_length': 3.2763385146804835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1566930', 'n_tokens_mistral': 856, 'n_tokens_neox': 793, 'n_words': 180}