<commit_before>doctype html
html(lang='en')
  head
    meta(http-equiv="Content-Type", content="text/html; charset=UTF-8")
    meta(charset="utf-8")
    title= page.title + ' - ' + config.site
    meta(name="viewport", content="width=device-width, initial-scale=1.0")

    if config.noCDN

      link(href="/stylesheet/bootstrap.min.css", rel="stylesheet")
      link(href="/stylesheet/bootstrap-responsive.min.css", rel="stylesheet")
      link(href="/stylesheet/fineuploader.css", rel="stylesheet")
      link(href="/stylesheet/select2.css", rel="stylesheet")

    else

      link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css", rel="stylesheet")
      link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.min.css", rel="stylesheet")
      link(href="//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.1.1/fineuploader.css", rel="stylesheet")
      link(href="//cdnjs.cloudflare.com/ajax/libs/select2/3.4.1/select2.min.css", rel="stylesheet")

    link(href="/stylesheet/bootstrap-wysihtml5.css", rel="stylesheet")
    link(href="/stylesheet/bootstrap-lightbox.min.css", rel="stylesheet")

    // Finally, our own override sheet

    link(href="/stylesheet/pumpio.css", rel="stylesheet")

    <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

  body

    .navbar.navbar-inverse.navbar-fixed-top
      .navbar-inner
          if page.nologin
            include ./nav-nologin.jade
          else if principalUser
            include nav-loggedin.jade
          else if principal
            include nav-remote.jade
          else
            include nav-anonymous.jade

    .container

      #content!= body

      hr

      footer
        if config.owner
          p
            b #{config.site} 
            | brought to you by 
            if config.ownerURL
              a(href="#{config.ownerURL}") #{config.owner}
            else
              | #{config.owner}
        p
          a(href="http://pump.io/") pump.io
          |  available under the Apache License 2.0.
        p
          a(href="/javascript/about.html", data-jslicense="1") JavaScript license information

    if config.debugClient
      script(src="/javascript/libs/jquery-1.10.2.js")
      script(src="/javascript/libs/jquery.easydate-0.2.4.js")
      script(src="/javascript/libs/json2.js")
      script(src="/javascript/libs/bootstrap.js")
      script(src="/shared/underscore.js")
      script(src="/javascript/libs/backbone.js")
      script(src="/javascript/libs/oauth.js")
      script(src="/javascript/libs/sha1.js")
      script(src="/javascript/libs/spin.js")
      script(src="/javascript/libs/jquery-spin.js")
      script(src="/javascript/libs/jquery.fineuploader.js")
      script(src="/javascript/libs/wysihtml5-0.3.0.js")
      script(src="/javascript/libs/bootstrap-wysihtml5.js")
      script(src="/javascript/libs/select2.js")
      script(src="/javascript/libs/bootstrap-lightbox.js")
      if config.sockjs
        script(src="/javascript/libs/sockjs.js")
    else
      if config.noCDN
        script(src="/javascript/libs/jquery-1.10.2.min.js")
        script(src="/javascript/libs/json2.min.js")
        script(src="/javascript/libs/bootstrap.min.js")
        script(src="/shared/underscore-min.js")
        script(src="/javascript/libs/backbone-min.js")
        script(src="/javascript/libs/spin.min.js")
        script(src="/javascript/libs/jquery.fineuploader.min.js")
        script(src="/javascript/libs/wysihtml5-0.3.0.min.js")
        script(src="/javascript/libs/select2.min.js")
        if config.sockjs
          script(src="/javascript/libs/sockjs.min.js")
      else
        script(src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/spin.js/1.2.7/spin.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.1.1/jquery.fineuploader.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/wysihtml5/0.3.0/wysihtml5.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/select2/3.4.1/select2.min.js")
        if config.sockjs
          script(src="//cdnjs.cloudflare.com/ajax/libs/sockjs-client/0.3.2/sockjs-min.js")
      script(src="/javascript/libs/jquery.easydate-0.2.4.min.js")
      script(src="/javascript/libs/oauth.min.js")
      script(src="/javascript/libs/sha1.min.js")
      script(src="/javascript/libs/jquery-spin.js")
      script(src="/javascript/libs/bootstrap-wysihtml5.js")
      script(src="/javascript/libs/bootstrap-lightbox.min.js")
    script(src="/shared/jade-runtime.js")
    script(src="/javascript/pump.js")
    script(src="/javascript/pump/auth.js")
    script(src="/javascript/pump/model.js")
    script(src="/javascript/pump/router.js")
    script(src="/javascript/pump/socket.js")
    script(src="/javascript/pump/view.js")

    each script in config.scripts
      script(src="#{script}")

    script.
      /* @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0 */
      if (!Pump) {
          Pump = {};
      }
      if (!Pump.config) {
          Pump.config = {};
      }
      _.extend(Pump.config, {
          site: "#{config.site}",
          haveEmail: #{config.haveEmail || false},
          requireEmail: #{config.requireEmail || false},
          disableRegistration: #{config.disableRegistration || false},
          canUpload: #{config.canUpload || false},
          debugClient: #{config.debugClient || false},
          sockjs: #{config.sockjs || false}
      });

      Pump.initialData = #{data ? JSON.stringify(defang(data)) : 'null'};

      Pump.principal = #{principal ? JSON.stringify(defang(principal)) : 'null'};

      Pump.principalUser = #{principalUser ? JSON.stringify(defang(principalUser)) : 'null'};

      /* @license-end */
<commit_msg>Don't escape the JS in the inline <script> tag<commit_after>doctype html
html(lang='en')
  head
    meta(http-equiv="Content-Type", content="text/html; charset=UTF-8")
    meta(charset="utf-8")
    title= page.title + ' - ' + config.site
    meta(name="viewport", content="width=device-width, initial-scale=1.0")

    if config.noCDN

      link(href="/stylesheet/bootstrap.min.css", rel="stylesheet")
      link(href="/stylesheet/bootstrap-responsive.min.css", rel="stylesheet")
      link(href="/stylesheet/fineuploader.css", rel="stylesheet")
      link(href="/stylesheet/select2.css", rel="stylesheet")

    else

      link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css", rel="stylesheet")
      link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.min.css", rel="stylesheet")
      link(href="//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.1.1/fineuploader.css", rel="stylesheet")
      link(href="//cdnjs.cloudflare.com/ajax/libs/select2/3.4.1/select2.min.css", rel="stylesheet")

    link(href="/stylesheet/bootstrap-wysihtml5.css", rel="stylesheet")
    link(href="/stylesheet/bootstrap-lightbox.min.css", rel="stylesheet")

    // Finally, our own override sheet

    link(href="/stylesheet/pumpio.css", rel="stylesheet")

    <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

  body

    .navbar.navbar-inverse.navbar-fixed-top
      .navbar-inner
          if page.nologin
            include ./nav-nologin.jade
          else if principalUser
            include nav-loggedin.jade
          else if principal
            include nav-remote.jade
          else
            include nav-anonymous.jade

    .container

      #content!= body

      hr

      footer
        if config.owner
          p
            b #{config.site} 
            | brought to you by 
            if config.ownerURL
              a(href="#{config.ownerURL}") #{config.owner}
            else
              | #{config.owner}
        p
          a(href="http://pump.io/") pump.io
          |  available under the Apache License 2.0.
        p
          a(href="/javascript/about.html", data-jslicense="1") JavaScript license information

    if config.debugClient
      script(src="/javascript/libs/jquery-1.10.2.js")
      script(src="/javascript/libs/jquery.easydate-0.2.4.js")
      script(src="/javascript/libs/json2.js")
      script(src="/javascript/libs/bootstrap.js")
      script(src="/shared/underscore.js")
      script(src="/javascript/libs/backbone.js")
      script(src="/javascript/libs/oauth.js")
      script(src="/javascript/libs/sha1.js")
      script(src="/javascript/libs/spin.js")
      script(src="/javascript/libs/jquery-spin.js")
      script(src="/javascript/libs/jquery.fineuploader.js")
      script(src="/javascript/libs/wysihtml5-0.3.0.js")
      script(src="/javascript/libs/bootstrap-wysihtml5.js")
      script(src="/javascript/libs/select2.js")
      script(src="/javascript/libs/bootstrap-lightbox.js")
      if config.sockjs
        script(src="/javascript/libs/sockjs.js")
    else
      if config.noCDN
        script(src="/javascript/libs/jquery-1.10.2.min.js")
        script(src="/javascript/libs/json2.min.js")
        script(src="/javascript/libs/bootstrap.min.js")
        script(src="/shared/underscore-min.js")
        script(src="/javascript/libs/backbone-min.js")
        script(src="/javascript/libs/spin.min.js")
        script(src="/javascript/libs/jquery.fineuploader.min.js")
        script(src="/javascript/libs/wysihtml5-0.3.0.min.js")
        script(src="/javascript/libs/select2.min.js")
        if config.sockjs
          script(src="/javascript/libs/sockjs.min.js")
      else
        script(src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/spin.js/1.2.7/spin.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.1.1/jquery.fineuploader.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/wysihtml5/0.3.0/wysihtml5.min.js")
        script(src="//cdnjs.cloudflare.com/ajax/libs/select2/3.4.1/select2.min.js")
        if config.sockjs
          script(src="//cdnjs.cloudflare.com/ajax/libs/sockjs-client/0.3.2/sockjs-min.js")
      script(src="/javascript/libs/jquery.easydate-0.2.4.min.js")
      script(src="/javascript/libs/oauth.min.js")
      script(src="/javascript/libs/sha1.min.js")
      script(src="/javascript/libs/jquery-spin.js")
      script(src="/javascript/libs/bootstrap-wysihtml5.js")
      script(src="/javascript/libs/bootstrap-lightbox.min.js")
    script(src="/shared/jade-runtime.js")
    script(src="/javascript/pump.js")
    script(src="/javascript/pump/auth.js")
    script(src="/javascript/pump/model.js")
    script(src="/javascript/pump/router.js")
    script(src="/javascript/pump/socket.js")
    script(src="/javascript/pump/view.js")

    each script in config.scripts
      script(src="#{script}")

    script.
      /* @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0 */
      if (!Pump) {
          Pump = {};
      }
      if (!Pump.config) {
          Pump.config = {};
      }
      _.extend(Pump.config, {
          site: "!{config.site}",
          haveEmail: !{config.haveEmail || false},
          requireEmail: !{config.requireEmail || false},
          disableRegistration: !{config.disableRegistration || false},
          canUpload: !{config.canUpload || false},
          debugClient: !{config.debugClient || false},
          sockjs: !{config.sockjs || false}
      });

      Pump.initialData = !{data ? JSON.stringify(defang(data)) : 'null'};

      Pump.principal = !{principal ? JSON.stringify(defang(principal)) : 'null'};

      Pump.principalUser = !{principalUser ? JSON.stringify(defang(principalUser)) : 'null'};

      /* @license-end */

{'fraction_non_alphanumeric': 0.17331422657431733, 'fraction_numerical': 0.020539765942202054, 'mean_word_length': 2.722074074074074, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '1047549', 'n_tokens_mistral': 4415, 'n_tokens_neox': 4139, 'n_words': 436}