<commit_before>- if (team.includes(user, session.team) || admin)
  .edit: a.button( href: '/teams/' + team + '/edit' ) Edit

h1
  = title(team.entry.name || team.name)
  != partial('secrets')

- if (team.invited(session.invite))
  h2 You're invited to this team!
  p.accept
    a.button.scary( href: '/login/github' ) Accept Invitation
    |  via
    img( src: '/images/github.png', style: 'margin-bottom: -4px;' )
    | github

- if (admin || team.includes(user))
  ul.steps
    li( class: team.entry.name ? 'done' : 'pending' )
      a( href: '#entry' ) Entry info
    li( class: team.lastDeploy ? 'done' : 'pending' )
      a( href: '#deploy' ) Deploy
    li( class: team.entry.votable ? 'done' : 'pending' )
      a( href: '#votable' ) Submit for Voting

  .step#entry
    - if (!team.entry.name)
      h2.pending Entry Info Missing
      p Describe to judges what your entry is about.
        a.button( href: '/teams/' + team + '/edit' ) Add &raquo;
    - else
      h2.done Entry Info Complete
      p Change this information any time before coding ends.
        a.button( href: '/teams/' + team + '/edit' ) Edit &raquo;

  .step#deploy
    - if (lastDeploy = team.lastDeploy)
      h2.done Successfully Deployed
        .details
          - lastDeployedAt = new Date(lastDeploy._id.generationTime)
          time( datetime: lastDeployedAt.toISOString(),
                title: lastDeployedAt.toISOString() )
            = relativeDate(lastDeployedAt)
          |  &mdash;
          a( href: team.entry.url )= team.entry.url
    - else
      h2.pending Not Yet Deployed
    != partial('secrets')

    h3
      a( href:'http://blog.nodeknockout.com/post/9428533699/nko-quick-start' ) NKO Quick Start

    h4 Deploy check-in &mdash; 
      a( href: 'https://github.com/nko2/website/tree/master/module#readme' ) More info
    ul
      li require('nko')('
        b= team.code
        | '); \/\/ team code
      li export NODE_ENV=production

    h4 Joyent no.de &mdash; 
      a( href: 'http://blog.nodeknockout.com/post/9393790204/coundown-to-ko-20-no-de-getting-started-guide' ) More info

    h4 Heroku &mdash; 
      a( href: 'http://blog.nodeknockout.com/post/9262660989/countdown-to-ko-10-deploying-your-node-js-app-to' ) More info
    ul
      li heroku login
      li git remote add heroku <EMAIL>:nko2-#{team.slug}.git
      li git push heroku master

    h4 Linode &mdash; 
      a( href: 'http://blog.nodeknockout.com/post/9300619913/countdown-to-ko-14-deploying-your-node-js-app-to' ) More info
    ul
      li
        | Login to
        a( href: 'https://manager.linode.com/' ) Linode Manager
        table
          tr
            th Username
            td= team.linode.username
          tr
            th Password
            td= team.linode.password
          tr
            th IP
            td= team.linode.ip_address

  .step#votable
    form( method: 'POST', action: '/teams/' + team )
      != _csrf
      input( type: 'hidden', name: '_method', value: 'PUT' )

      - if (!team.entry.votable)
        h2.pending Not Officially Submitted
        p
          | Your app is not yet officially submitted for voting. When you
          | submit it for voting, judges will review it at:
          a( href: team.entry.url )= team.entry.url
          | .

        input( type: 'hidden', name: 'entry[votable]', value: 1 )
        .buttons: input.scary( type: 'submit', value: 'Submit for Voting' )

        p
          b Future deploys will not change your URL once your app is votable.
          |  You can submit your app for voting any time between now and
          | judging week. You can also change your mind and remove it from
          | voting later.

      - else
        h2.done Submitted for Voting
        p Judges will review your app at: 
          a( href: team.entry.url)= team.entry.url
          | .

        input( type: 'hidden', name: 'entry[votable]', value: 0 )
        .buttons: input( type: 'submit', value: 'Remove from Voting' )

        p: b Remove it from voting to deploy to a different URL.

        h3
          a( href: '/scores#' + team.slug ) Team Score

- if (team.entry.name)
  .entry-info
    - if (url = team.entry.url)
      a( href: url )
        img.screenshot( src: 'http://pinkyurl.com/i?url=' + encodeURIComponent(url) + '&out-format=png&resize=160x93' )
      h2: a( href: url )= team.entry.name
    - else
      img.screenshot( src: '/images/blank.png' )
      h2= team.entry.name
    h3= 'by ' + team.name
    a.button.vote.scary( href: '#votes' ) Vote
    .clear
    != markdown(team.entry.description)
    - if (team.entry.instructions)
      h4 Judging Instructions
      != markdown(team.entry.instructions)

- if (people.length)<commit_msg>don't let teams see their scores yet<commit_after>- if (team.includes(user, session.team) || admin)
  .edit: a.button( href: '/teams/' + team + '/edit' ) Edit

h1
  = title(team.entry.name || team.name)
  != partial('secrets')

- if (team.invited(session.invite))
  h2 You're invited to this team!
  p.accept
    a.button.scary( href: '/login/github' ) Accept Invitation
    |  via
    img( src: '/images/github.png', style: 'margin-bottom: -4px;' )
    | github

- if (admin || team.includes(user))
  ul.steps
    li( class: team.entry.name ? 'done' : 'pending' )
      a( href: '#entry' ) Entry info
    li( class: team.lastDeploy ? 'done' : 'pending' )
      a( href: '#deploy' ) Deploy
    li( class: team.entry.votable ? 'done' : 'pending' )
      a( href: '#votable' ) Submit for Voting

  .step#entry
    - if (!team.entry.name)
      h2.pending Entry Info Missing
      p Describe to judges what your entry is about.
        a.button( href: '/teams/' + team + '/edit' ) Add &raquo;
    - else
      h2.done Entry Info Complete
      p Change this information any time before coding ends.
        a.button( href: '/teams/' + team + '/edit' ) Edit &raquo;

  .step#deploy
    - if (lastDeploy = team.lastDeploy)
      h2.done Successfully Deployed
        .details
          - lastDeployedAt = new Date(lastDeploy._id.generationTime)
          time( datetime: lastDeployedAt.toISOString(),
                title: lastDeployedAt.toISOString() )
            = relativeDate(lastDeployedAt)
          |  &mdash;
          a( href: team.entry.url )= team.entry.url
    - else
      h2.pending Not Yet Deployed
    != partial('secrets')

    h3
      a( href:'http://blog.nodeknockout.com/post/9428533699/nko-quick-start' ) NKO Quick Start

    h4 Deploy check-in &mdash; 
      a( href: 'https://github.com/nko2/website/tree/master/module#readme' ) More info
    ul
      li require('nko')('
        b= team.code
        | '); \/\/ team code
      li export NODE_ENV=production

    h4 Joyent no.de &mdash; 
      a( href: 'http://blog.nodeknockout.com/post/9393790204/coundown-to-ko-20-no-de-getting-started-guide' ) More info

    h4 Heroku &mdash; 
      a( href: 'http://blog.nodeknockout.com/post/9262660989/countdown-to-ko-10-deploying-your-node-js-app-to' ) More info
    ul
      li heroku login
      li git remote add heroku <EMAIL>:nko2-#{team.slug}.git
      li git push heroku master

    h4 Linode &mdash; 
      a( href: 'http://blog.nodeknockout.com/post/9300619913/countdown-to-ko-14-deploying-your-node-js-app-to' ) More info
    ul
      li
        | Login to
        a( href: 'https://manager.linode.com/' ) Linode Manager
        table
          tr
            th Username
            td= team.linode.username
          tr
            th Password
            td= team.linode.password
          tr
            th IP
            td= team.linode.ip_address

  .step#votable
    form( method: 'POST', action: '/teams/' + team )
      != _csrf
      input( type: 'hidden', name: '_method', value: 'PUT' )

      - if (!team.entry.votable)
        h2.pending Not Officially Submitted
        p
          | Your app is not yet officially submitted for voting. When you
          | submit it for voting, judges will review it at:
          a( href: team.entry.url )= team.entry.url
          | .

        input( type: 'hidden', name: 'entry[votable]', value: 1 )
        .buttons: input.scary( type: 'submit', value: 'Submit for Voting' )

        p
          b Future deploys will not change your URL once your app is votable.
          |  You can submit your app for voting any time between now and
          | judging week. You can also change your mind and remove it from
          | voting later.

      - else
        h2.done Submitted for Voting
        p Judges will review your app at: 
          a( href: team.entry.url)= team.entry.url
          | .

        input( type: 'hidden', name: 'entry[votable]', value: 0 )
        .buttons: input( type: 'submit', value: 'Remove from Voting' )

        p: b Remove it from voting to deploy to a different URL.

- if (team.entry.name)
  .entry-info
    - if (url = team.entry.url)
      a( href: url )
        img.screenshot( src: 'http://pinkyurl.com/i?url=' + encodeURIComponent(url) + '&out-format=png&resize=160x93' )
      h2: a( href: url )= team.entry.name
    - else
      img.screenshot( src: '/images/blank.png' )
      h2= team.entry.name
    h3= 'by ' + team.name
    a.button.vote.scary( href: '#votes' ) Vote
    .clear
    != markdown(team.entry.description)
    - if (team.entry.instructions)
      h4 Judging Instructions
      != markdown(team.entry.instructions)

- if (people.length)
{'fraction_non_alphanumeric': 0.1284892392925634, 'fraction_numerical': 0.015661623694864693, 'mean_word_length': 2.1217159960093115, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '5286820', 'n_tokens_mistral': 3244, 'n_tokens_neox': 3099, 'n_words': 852}