<commit_before>extends ../layout-wide
block content
    link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
    link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
    link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
    link(rel='stylesheet', href='/css/ubuntu.css')

    .row
        .col-md-4.col-lg-3
            .scroll-locker(id = "scroll-locker")
              .innerMarginFix(style=' width: 99%')
                #testCreatePanel.well
                    h3.text-center.negative-10= name
                    .row
                        .col-xs-12
                            .bonfire-instructions
                                for sentence in details
                                    p.wrappable.negative-10!= sentence
                                .negative-30-bottom
                                    #MDN-links
                                        p.negative-10 Here are some helpful links:
                                        for link, index in MDNlinks
                                            .negative-10
                                                ul: li: a(href=""+link, target="_blank") !{MDNkeys[index]}

                if (user)
                label.negative-10.btn.btn-primary.btn-block.btn-lg#submitButton
                    i.fa.fa-play
                        | &nbsp; Run tests (ctrl + enter)
                .button-spacer
                .btn-group.input-group.btn-group-justified
                    label.btn.btn-success#trigger-reset-modal
                        i.fa.fa-refresh
                            | &nbsp; Reset
                    label.btn.btn-success#challenge-help-btn
                        i.fa.fa-medkit
                            | &nbsp; Help
                    label.btn.btn-success#trigger-issue-modal
                        i.fa.fa-bug
                            | &nbsp; Bug
                if (!user)
                    .button-spacer
                    a.btn.signup-btn.btn-block.btn-block(href='/login') Sign in so you can save your progress
                        script.
                            var userLoggedIn = false;
                .button-spacer
                form.code
                    .form-group.codeMirrorView
                        textarea#codeOutput(style='display: none;')
                br
                #testSuite.negative-10
                br

        .col-md-8.col-lg-9
            .editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
                #mainEditorPanel
                    form.code
                        .form-group.codeMirrorView
                            textarea#codeEditor(autofocus=true, style='display: none;')


    #complete-courseware-dialog.modal(tabindex='-1')
        .modal-dialog.animated.fadeIn.fast-animation
            .modal-content
                .modal-header.challenge-list-header= compliment
                    a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
                .modal-body
                    .text-center
                      #checkmark-container.row
                          #challenge-checkmark.animated.zoomInDown.delay-half
                              span.completion-icon.ion-checkmark-circled.text-primary
                      .spacer
                      .row
                      if (user)
                          #submit-challenge.animated.fadeIn.btn.btn-lg.btn-primary.btn-block Submit and go to my next challenge (ctrl + enter)
                          a.btn.btn-lg.btn-block.btn-twitter(target="_blank", href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{dashedName}&hashtags=LearnToCode, JavaScript", onclick="ga('send', 'event', 'twitter', 'share', 'challenge completion share');")
                              i.fa.fa-twitter &thinsp;
                                  = phrase
                      else
                          a#next-challenge.btn.btn-lg.btn-primary.btn-block(href="/challenges/next-challenge?id="+challengeId) Go to my next challenge (ctrl + enter)
                          a.btn.btn-lg.btn-danger.btn-block#gist-share Share your solution as a GitHub gist
    include ../partials/challenge-modals
    script(type="text/javascript").
      var common = window.common = window.common || { init: [] };

      common.tests = !{JSON.stringify(tests)};
      common.head = !{JSON.stringify(head)};
      common.tail = !{JSON.stringify(tail)};

      common.challengeId = !{JSON.stringify(challengeId)};
      common.challengeName = !{JSON.stringify(name)};
      common.challengeSeed = !{JSON.stringify(challengeSeed)};
      common.challengeType = !{JSON.stringify(challengeType)};
      common.dashedName = !{JSON.stringify(dashedName)};

      common.started = Math.floor(Date.now());
      common.username = !{JSON.stringify(user && user.username || '')};

    include ../partials/challenge-footer
    script.
      document.addEventListener('gitter-sidecar-ready', function(e) {
        if (window.main) {<commit_msg>remove additional gist button<commit_after>extends ../layout-wide
block content
    link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
    link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
    link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
    link(rel='stylesheet', href='/css/ubuntu.css')

    .row
        .col-md-4.col-lg-3
            .scroll-locker(id = "scroll-locker")
              .innerMarginFix(style=' width: 99%')
                #testCreatePanel.well
                    h3.text-center.negative-10= name
                    .row
                        .col-xs-12
                            .bonfire-instructions
                                for sentence in details
                                    p.wrappable.negative-10!= sentence
                                .negative-30-bottom
                                    #MDN-links
                                        p.negative-10 Here are some helpful links:
                                        for link, index in MDNlinks
                                            .negative-10
                                                ul: li: a(href=""+link, target="_blank") !{MDNkeys[index]}

                if (user)
                label.negative-10.btn.btn-primary.btn-block.btn-lg#submitButton
                    i.fa.fa-play
                        | &nbsp; Run tests (ctrl + enter)
                .button-spacer
                .btn-group.input-group.btn-group-justified
                    label.btn.btn-success#trigger-reset-modal
                        i.fa.fa-refresh
                            | &nbsp; Reset
                    label.btn.btn-success#challenge-help-btn
                        i.fa.fa-medkit
                            | &nbsp; Help
                    label.btn.btn-success#trigger-issue-modal
                        i.fa.fa-bug
                            | &nbsp; Bug
                if (!user)
                    .button-spacer
                    a.btn.signup-btn.btn-block.btn-block(href='/login') Sign in so you can save your progress
                        script.
                            var userLoggedIn = false;
                .button-spacer
                form.code
                    .form-group.codeMirrorView
                        textarea#codeOutput(style='display: none;')
                br
                #testSuite.negative-10
                br

        .col-md-8.col-lg-9
            .editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
                #mainEditorPanel
                    form.code
                        .form-group.codeMirrorView
                            textarea#codeEditor(autofocus=true, style='display: none;')


    #complete-courseware-dialog.modal(tabindex='-1')
        .modal-dialog.animated.fadeIn.fast-animation
            .modal-content
                .modal-header.challenge-list-header= compliment
                    a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
                .modal-body
                    .text-center
                      #checkmark-container.row
                          #challenge-checkmark.animated.zoomInDown.delay-half
                              span.completion-icon.ion-checkmark-circled.text-primary
                      .spacer
                      .row
                      if (user)
                          #submit-challenge.animated.fadeIn.btn.btn-lg.btn-primary.btn-block Submit and go to my next challenge (ctrl + enter)
                          a.btn.btn-lg.btn-block.btn-twitter(target="_blank", href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{dashedName}&hashtags=LearnToCode, JavaScript", onclick="ga('send', 'event', 'twitter', 'share', 'challenge completion share');")
                              i.fa.fa-twitter &thinsp;
                                  = phrase
                      else
                          a#next-challenge.btn.btn-lg.btn-primary.btn-block(href="/challenges/next-challenge?id="+challengeId) Go to my next challenge (ctrl + enter)
    include ../partials/challenge-modals
    script(type="text/javascript").
      var common = window.common = window.common || { init: [] };

      common.tests = !{JSON.stringify(tests)};
      common.head = !{JSON.stringify(head)};
      common.tail = !{JSON.stringify(tail)};

      common.challengeId = !{JSON.stringify(challengeId)};
      common.challengeName = !{JSON.stringify(name)};
      common.challengeSeed = !{JSON.stringify(challengeSeed)};
      common.challengeType = !{JSON.stringify(challengeType)};
      common.dashedName = !{JSON.stringify(dashedName)};

      common.started = Math.floor(Date.now());
      common.username = !{JSON.stringify(user && user.username || '')};

    include ../partials/challenge-footer
    script.
      document.addEventListener('gitter-sidecar-ready', function(e) {
        if (window.main) {
{'fraction_non_alphanumeric': 0.1162722472129865, 'fraction_numerical': 0.00723645609231371, 'mean_word_length': 1.3816953889147647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3735956', 'n_tokens_mistral': 2870, 'n_tokens_neox': 2617, 'n_words': 401}