<commit_before>!!!5
html(lang="en")
  head
    title JSON to YAML
    meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
    meta(name="description", content="For all the times you've wanted to convert from JSON to YAML... in your browser.")
    link(rel="stylesheet", type="text/css", href="./css/bootstrap.min.css")
    link(rel="stylesheet", type="text/css", href="./css/bootstrap-responsive.min.css")
    link(rel="stylesheet", type="text/css", href="./css/style.min.css")
    link(rel="stylesheet", type="text/css", href="./css/google_prettify/sons-of-obsidian.css")
    script.
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-42802552-1', 'jsontoyaml.com');
      ga('send', 'pageview');
    script(src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js")
    script(src="./js/bootstrap.min.js")
    script(src="./js/pakmanaged.min.js")
  body
    .container
      section.row
        .offset1.span5
          h2 JSON
          //- TODO will need JSONLint
          p Paste your JSON here
          textarea.span5.js-json(rows="20").
            {
              "foo": "bar",
              "baz": [
                "qux",
                "quxx"
              ],
              "corge": null,
              "grault": 1,
              "garply": true,
              "waldo": "false",
              "fred": "undefined",
              "emptyArray": [],
              "emptyObject": {},
              "emptyString": ""
            }
        .span5
          h2 YML
          p See the YML output here
          textarea.span5.js-yml(rows="20").
            ---

      .row
        .offset2.span4
          button.center.btn.btn-primary.btn-large.js-convert(type="button") Convert JSON to YAML

      section
        .row
          br
          .page-header
            h1 Converting from JSON to YAML
        .row
          .span12
            p Converting JSON to YAML is a two part process.
            p.
              First you have to convert a string of JSON into an object in whichever language you're using.
              This process is referred to as to <strong>parse</strong> or to <strong>deserialize</strong>.
            p.
              Next you'll need to convert that object into a YAML string.
              This process is referred to as to to <strong>emit</strong>,
              to <strong>serialize</strong>, or to <strong>stringify</strong>.
            p.
              Technically speaking, JSON already is YAML since YAML allows for the use
              of brackets and commas in the exact same way that JSON does.
              However, for the sake of human-readability, it's very convenient to use
              the whitespace syntax of YAML without any brackets.
      section
        .row
          .page-header
            h1 How do I convert from JSON to YAML in...
            ul
              li
                a(href="#bash") Bash
              li
                a(href="#javascript") JavaScript
              li
                a(href="#browser-javascript") JavaScript (browser only)
              li
                a(href="#ruby") Ruby
              li
                a(href="#python") Python
              li
                a(href="#other") Other languanges...

      article
        a(name="bash")
        include examples/bash
      article
        a(name="javascript")
        include examples/javascript-node
      article
        a(name="browser-javascript")
        include examples/javascript-browser
      article
        a(name="ruby")
        include examples/ruby
      article
        a(name="python")
        include examples/python

      section.row
        a(name="other")
        .span12
          h3 Other languages...
          p Want to see to to convert JSON to YAML in your favorite language?
          p 
            span Please 
            a(href="https://github.com/coolaj86/jsontoyaml.com/issues/new?title=Add%20example%20for%20LANG_X&body=Can%20you%20please%20post%20an%20example%20of%20how%20to%20do%20this%20in%20LANG_X?") request an example
            span  or  
            a(href="https://github.com/coolaj86/jsontoyaml.com/new/gh-pages/examples?filename=LANG_X.jade") add it yourself
            span  (you can use 
            a(href="https://github.com/coolaj86/jsontoyaml.com/blob/master/examples/ruby.jade") examples/ruby.jade
            span  as a template).

    footer.footer
      .container
        p
          span Built by 
          a(href="http://coolaj86.com") <NAME>
          span .
        p
          span Code licensed under 
          a(href="http://www.apache.org/licenses/LICENSE-2.0") Apache License v2.0
          span , documentation under 
          a(href="http://creativecommons.org/licenses/by/3.0/") CC BY 3.0
          span .
        ul.footer-links
          li
            a(href="https://github.com/coolaj86/jsontoyaml.com") Source
          li.muted •
          li
            a(href="https://github.com/coolaj86/jsontoyaml.com/issues") Issues
        ul
          li
            a(href="http://jsonlint.com/") JSON Lint
          li.muted •
          li
            a(href="http://yamltojson.com/") YAML to JSON
          li.muted •
          li
            a(href="http://yamllint.com/") YAML Lint
          li.muted •
          li
            a(href="http://marijnhaverbeke.nl//uglifyjs") UglifyJS
          li.muted •
          li
            a(href="http://jshint.com/") JSHint


    script(src="http://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js")
    script.
      var pres = document.getElementsByTagName("pre");
      for (var i=0; i < pres.length; ++i) {
        pres[i].className = "prettyprint linenums";<commit_msg>build.sh: YOLO<commit_after>!!!5
html(lang="en")
  head
    title JSON to YAML
    meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
    meta(name="description", content="For all the times you've wanted to convert from JSON to YAML... in your browser.")
    link(rel="stylesheet", type="text/css", href="./css/bootstrap.min.css")
    link(rel="stylesheet", type="text/css", href="./css/bootstrap-responsive.min.css")
    link(rel="stylesheet", type="text/css", href="./css/style.min.css")
    link(rel="stylesheet", type="text/css", href="./css/google_prettify/sons-of-obsidian.css")
    script.
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-42802552-1', 'jsontoyaml.com');
      ga('send', 'pageview');
    script(src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js")
    script(src="./js/bootstrap.min.js")
    script(src="./js/pakmanaged.min.js")
  body
    .container
      section.row
        .offset1.span5
          h2 JSON
          //- TODO will need JSONLint
          p Paste your JSON here
          textarea.span5.js-json(rows="20").
            {
              "foo": "bar",
              "baz": [
                "qux",
                "quxx"
              ],
              "corge": null,
              "grault": 1,
              "garply": true,
              "waldo": "false",
              "fred": "undefined",
              "emptyArray": [],
              "emptyObject": {},
              "emptyString": ""
            }
        .span5
          h2 YML
          p See the YML output here
          textarea.span5.js-yml(rows="20").
            ---

      .row
        .offset2.span4
          button.center.btn.btn-primary.btn-large.js-convert(type="button") Convert JSON to YAML

      section
        .row
          br
          .page-header
            h1 Converting from JSON to YAML
        .row
          .span12
            p Converting JSON to YAML is a two part process.
            p.
              First you have to convert a string of JSON into an object in whichever language you're using.
              This process is referred to as to <strong>parse</strong> or to <strong>deserialize</strong>.
            p.
              Next you'll need to convert that object into a YAML string.
              This process is referred to as to to <strong>emit</strong>,
              to <strong>serialize</strong>, or to <strong>stringify</strong>.
            p.
              Technically speaking, JSON already is YAML since YAML allows for the use
              of brackets and commas in the exact same way that JSON does.
              However, for the sake of human-readability, it's very convenient to use
              the whitespace syntax of YAML without any brackets.
      section
        .row
          .page-header
            h1 How do I convert from JSON to YAML in...
            ul
              li
                a(href="#bash") Bash
              li
                a(href="#javascript") JavaScript
              li
                a(href="#browser-javascript") JavaScript (browser only)
              li
                a(href="#ruby") Ruby
              li
                a(href="#python") Python
              li
                a(href="#other") Other languanges...

      article
        a(name="bash")
        include examples/bash
      article
        a(name="javascript")
        include examples/javascript-node
      article
        a(name="browser-javascript")
        include examples/javascript-browser
      article
        a(name="ruby")
        include examples/ruby
      article
        a(name="python")
        include examples/python

      section.row
        a(name="other")
        .span12
          h3 Other languages...
          p Want to see to to convert JSON to YAML in your favorite language?
          p 
            span Please 
            a(href="https://github.com/coolaj86/jsontoyaml.com/issues/new?title=Add%20example%20for%20LANG_X&body=Can%20you%20please%20post%20an%20example%20of%20how%20to%20do%20this%20in%20LANG_X?") request an example
            span  or  
            a(href="https://github.com/coolaj86/jsontoyaml.com/new/gh-pages/examples?filename=LANG_X.jade") add it yourself
            span  (you can use 
            a(href="https://github.com/coolaj86/jsontoyaml.com/blob/master/examples/ruby.jade") examples/ruby.jade
            span  as a template).

    footer.footer
      .container
        p
          span Built by 
          a(href="http://coolaj86.com") <NAME>
          span .
        p
          span Code licensed under 
          a(href="http://www.apache.org/licenses/LICENSE-2.0") Apache License v2.0
          span , documentation under 
          a(href="http://creativecommons.org/licenses/by/3.0/") CC BY 3.0
          span .

        ul.footer-links
          li
            a(href="https://github.com/coolaj86/jsontoyaml.com") Source
          li.muted •
          li
            a(href="https://github.com/coolaj86/jsontoyaml.com/issues") Issues

        ul.footer-links
          li
            a(href="http://jsonlint.com/") JSON Lint
          li.muted •
          li
            a(href="http://yamltojson.com/") YAML to JSON
          li.muted •
          li
            a(href="http://yamllint.com/") YAML Lint
          li.muted •
          li
            a(href="http://marijnhaverbeke.nl//uglifyjs") UglifyJS
          li.muted •
          li
            a(href="http://jshint.com/") JSHint


    script(src="http://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js")
    script.
      var pres = document.getElementsByTagName("pre");
      for (var i=0; i < pres.length; ++i) {
        pres[i].className = "prettyprint linenums";
{'fraction_non_alphanumeric': 0.12937062937062938, 'fraction_numerical': 0.015651015651015652, 'mean_word_length': 1.7345777373093558, 'pattern_counts': {'":': 20, '<': 27, '<?xml version=': 0, '>': 25, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, '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': '1003324', 'n_tokens_mistral': 3756, 'n_tokens_neox': 3542, 'n_words': 798}