<commit_before><link rel="import" href='../../../../third_party/bower/polymer/polymer.html'>
<link rel="import" href='crypto.html'>
<link rel="import" href='start.html'>
<link rel="import" href='giver.html'>
<link rel="import" href='getter.html'>

<polymer-element name='copypaste-root'>

  <template>
    <style>
      button {
        text-decoration: none;
        padding: 0.5em;
        color: white;
        background-color: #50C0E0;
        border: 1px solid #40B0D0;
        border-radius: 0.5em;
      }
      button:hover {
        background-color: #60D0F0;
        border: 1px solid #50C0E0;
      }
      :host {
        position: absolute;
        width: 450px; height: 525px;
        border: none; margin: auto;
      }
      .centered {
        text-align: center;
      }
    </style>

    <div><p class='centered'>
      <select id='languageInput' on-change='{{ updateLanguage }}'>
        <option value='en' i18n-content='english'></option>
        <option value='it' i18n-content='italian'></option>
        <option value='ar' i18n-content='arabic'></option>
        <option value='fa' i18n-content='farsi'></option>
      </select>
    </p></div>

    <p class='centered'>
      <button on-tap='{{ useCrypto }}' hidden?='{{ model.usingCrypto }}'><bdi i18n-content='useCrypto'></bdi></button>
    </p>
    <copypaste-crypto id='crypto' hidden?='{{ !model.usingCrypto }}'></copypaste-crypto>

    <copypaste-start id='start' hidden?='{{ model.givingOrGetting !== null }}'></copypaste-start>

    <template if='{{ model.givingOrGetting === "giving" }}'>
      <copypaste-giver id='giver'></copypaste-giver>
    </template>

    <template if='{{ model.givingOrGetting === "getting" }}'>
      <copypaste-getter id='getter'></copypaste-getter>
    </template>
  </template>

  <script src='../i18n-util.js'>
  </script>

  <script src='root.js'></script>

</polymer-element><commit_msg>fix for translation strings on change to getter/giver view, as suggested by lucyhe<commit_after><link rel="import" href='../../../../third_party/bower/polymer/polymer.html'>
<link rel="import" href='crypto.html'>
<link rel="import" href='start.html'>
<link rel="import" href='giver.html'>
<link rel="import" href='getter.html'>

<polymer-element name='copypaste-root'>

  <template>
    <style>
      button {
        text-decoration: none;
        padding: 0.5em;
        color: white;
        background-color: #50C0E0;
        border: 1px solid #40B0D0;
        border-radius: 0.5em;
      }
      button:hover {
        background-color: #60D0F0;
        border: 1px solid #50C0E0;
      }
      :host {
        position: absolute;
        width: 450px; height: 525px;
        border: none; margin: auto;
      }
      .centered {
        text-align: center;
      }
    </style>

    <div><p class='centered'>
      <select id='languageInput' on-change='{{ updateLanguage }}'>
        <option value='en' i18n-content='english'></option>
        <option value='it' i18n-content='italian'></option>
        <option value='ar' i18n-content='arabic'></option>
        <option value='fa' i18n-content='farsi'></option>
      </select>
    </p></div>

    <p class='centered'>
      <button on-tap='{{ useCrypto }}' hidden?='{{ model.usingCrypto }}'><bdi i18n-content='useCrypto'></bdi></button>
    </p>
    <copypaste-crypto id='crypto' hidden?='{{ !model.usingCrypto }}'></copypaste-crypto>

    <copypaste-start id='start' hidden?='{{ model.givingOrGetting !== null }}'></copypaste-start>

    <copypaste-giver id='giver' hidden?='{{ model.givingOrGetting !== "giving" }}'></copypaste-giver>

    <copypaste-getter id='getter' hidden?='{{ model.givingOrGetting !== "getting" }}'></copypaste-getter>
  </template>

  <script src='../i18n-util.js'>
  </script>

  <script src='root.js'></script>

</polymer-element>
{'fraction_non_alphanumeric': 0.19219691018591253, 'fraction_numerical': 0.020947892118355592, 'mean_word_length': 2.99581589958159, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '3215668', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1276, 'n_words': 245}