<commit_before><link rel="import" href="../bower_components/polymer/polymer.html">

<dom-module id="catalog-preview-integration">
  <template>
    Preview allows you to view how code changes affect documentation/demo on this site. Preview requires access to your Github repository to publish status updates.
    <template is="dom-if" if="[[!queryParams.code]]">
      <a href="https://github.com/login/oauth/authorize?client_id=28539cb28f7d3e40fe1c&scope=write:repo_hook%20repo:status">Sign in with Github</a>
    </template>
    <template is="dom-if" if="[[queryParams.code]]">
      <form action="[[baseUrls.api]]/api/preview" method="post">
        <input type="hidden" name="code" value="[[queryParams.code]]">
        Enter the repo you want to use preview with: <input type="text" name="repo">
        <input type="submit" value="test">
      </form>
    </template>
  </template>

  <script>
    Polymer({

      is: 'catalog-preview-integration',

      properties: {
        queryParams: Object,

        baseUrls: Object
      },

    });
  </script>
</dom-module><commit_msg>Change Github client id for integration (#274)<commit_after><link rel="import" href="../bower_components/polymer/polymer.html">

<dom-module id="catalog-preview-integration">
  <template>
    Preview allows you to view how code changes affect documentation/demo on this site. Preview requires access to your Github repository to publish status updates.
    <template is="dom-if" if="[[!queryParams.code]]">
      <a href="https://github.com/login/oauth/authorize?client_id=54fc42e15038794b7011&scope=write:repo_hook%20repo:status">Sign in with Github</a>
    </template>
    <template is="dom-if" if="[[queryParams.code]]">
      <form action="[[baseUrls.api]]/api/preview" method="post">
        <input type="hidden" name="code" value="[[queryParams.code]]">
        Enter the repo you want to use preview with: <input type="text" name="repo">
        <input type="submit" value="test">
      </form>
    </template>
  </template>

  <script>
    Polymer({

      is: 'catalog-preview-integration',

      properties: {
        queryParams: Object,

        baseUrls: Object
      },

    });
  </script>
</dom-module>
{'fraction_non_alphanumeric': 0.15374149659863945, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 3.6442105263157893, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 2, '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': '5889650', 'n_tokens_mistral': 703, 'n_tokens_neox': 662, 'n_words': 161}