<commit_before><html>

<head>
  <title>tsante-tiler demo</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
  <script src="../../webcomponentsjs/webcomponents-lite.js"></script>

  <link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
  <link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
  <link rel="import" href="../zdkelt-calendar.html">
  <link rel="import" href="../../paper-styles/default-theme.html">
</head>

<body>
  <div class="vertical-section-container centered">
    <demo-snippet>
      <template>
        <style>
        </style>
        <zdkelt-calendar id="cal" i18n="fr" value="2018-02-15"></zdkelt-calendar>
      <script>
        const cal = document.getElementById('cal')
        cal.addEventListener('change', (evt) => {
          console.log(evt.target.value)
          console.log(evt.detail)
        })
      </script>
      </template>
    </demo-snippet>

    <demo-snippet>
        <template>
          <style>
            zdkelt-calendar.small {
              height: 240px;
              width: 210px;
              display: inline-block;
            }
          </style>
          <zdkelt-calendar class="small" id="cal1" i18n="fr" initDate="2018-02-15"></zdkelt-calendar>
          <zdkelt-calendar class="small" id="cal2" i18n="fr" initDate="2018-03-15"></zdkelt-calendar>
        <script>
          const cal1 = document.getElementById('cal1')
          const cal2 = document.getElementById('cal2')
          cal1.addEventListener('date-change', (evt) => {
            cal2.initDate = moment(evt.detail).add(1, 'M').format()
          }, false)
          cal2.addEventListener('date-change', (evt) => {
            cal1.initDate = moment(evt.detail).add(-1, 'M').format()
          }, false)
          cal1.addEventListener('change', (evt) => {
            cal2.value = cal1.value
          }, false)
          cal2.addEventListener('change', (evt) => {
            console.log(cal2.value, cal1.value)
            cal1.value = cal2.value
          }, false)
        </script>
        </template>
      </demo-snippet>
  </div>
</body>

<commit_msg>fix demo<commit_after><html>

<head>
  <title>tsante-tiler demo</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
  <script src="../../webcomponentsjs/webcomponents-lite.js"></script>

  <link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
  <link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
  <link rel="import" href="../zdkelt-calendar.html">
  <link rel="import" href="../../paper-styles/default-theme.html">
</head>

<body>
  <div class="vertical-section-container centered">
    <demo-snippet>
      <template>
        <style>
        </style>
        <zdkelt-calendar id="cal" i18n="fr" value="2018-03-15"></zdkelt-calendar>
      <script>
        const cal = document.getElementById('cal')
        cal.addEventListener('change', (evt) => {
          console.log(evt.target.value)
          console.log(evt.detail)
        })
      </script>
      </template>
    </demo-snippet>

    <demo-snippet>
        <template>
          <style>
            zdkelt-calendar.small {
              height: 240px;
              width: 210px;
              display: inline-block;
            }
          </style>
          <zdkelt-calendar class="small" id="cal1" i18n="en-US" initDate="2018-02-15" value="2018-04-02"></zdkelt-calendar>
          <zdkelt-calendar class="small" id="cal2" i18n="en-US" initDate="2018-03-15" value="2018-04-02"></zdkelt-calendar>
        <script>
          const cal1 = document.getElementById('cal1')
          const cal2 = document.getElementById('cal2')
          cal1.addEventListener('date-change', (evt) => {
            cal2.initDate = moment(evt.detail).add(1, 'M').format()
          }, false)
          cal2.addEventListener('date-change', (evt) => {
            cal1.initDate = moment(evt.detail).add(-1, 'M').format()
          }, false)
          cal1.addEventListener('change', (evt) => {
            console.log(cal1.value, cal2.value)
            cal2.value = cal1.value
          }, false)
          cal2.addEventListener('change', (evt) => {
            console.log(cal2.value, cal1.value)
            cal1.value = cal2.value
          }, false)
        </script>
        </template>
      </demo-snippet>
  </div>
</body>


{'fraction_non_alphanumeric': 0.17820030952907362, 'fraction_numerical': 0.030510722971479106, 'mean_word_length': 2.229122055674518, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 91, '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': '3462142', 'n_tokens_mistral': 1484, 'n_tokens_neox': 1438, 'n_words': 219}