<commit_before><template>
  <div id="app" class="pa3 center" style="max-width: 1152px;">
    <h1 class="mt0 pb2 bb b--black-10">Flex.io Javascript SDK v{{version}}</h1>

    <h2>API Key</h2>

    <p class="lh-copy">Flexio SDK calls require an API key. A default API key is provided to test the following calls. Feel free to <a href="https://www.flex.io/app/signup" target="_blank">sign up for Flex.io</a> to use your own API key in order to test these calls with your Flex.io account:</p class="lh-copy">
    <form>
      <div class="flex flex-row items-center mt2">
        <label class="mr2">Use this API key:</label>
        <input type="text" class="border-box ttl ba b--black-20 f6 pa2 w5 code" v-model="api_key">
      </div>
    </form>

    <h2>Setup</h2>

    <example
      title="Initialize Flex.io JS SDK with your API key"
      code="Flexio.setup('YOUR API KEY GOES HERE')"
      :show-run="false"
    ></example>

    <h2>Collections</h2>

    <example
      v-for="(example, index) in list_examples"
      :title="example.title"
      :code="example.code"
      :fn="example.fn"
      :api-key="api_key"
    ></example>

    <h2>Pipes</h2>

    <example
      v-for="(example, index) in pipe_examples"
      :title="example.title"
      :code="example.code"
      :fn="example.fn"
      :api-key="api_key"
    ></example>
  </div>
</template>

<script>
  import Flexio from '../src/flexio'
  import Example from './Example.vue'
  import list_examples from './examples/list'
  import pipe_examples from './examples/pipe'

  Flexio.setBaseUrl('https://localhost:8080/api/v1')

  var version = Flexio.version
  var api_key = 'bdvjdkkzftggngfccsqn'

  export default {
    name: 'app',
    components: {
      Example
    },
    data() {
      return {
        version,
        api_key,
        list_examples,<commit_msg>Reverted to test.flex.io for base url and respective api key.<commit_after><template>
  <div id="app" class="pa3 center" style="max-width: 1152px;">
    <h1 class="mt0 pb2 bb b--black-10">Flex.io Javascript SDK v{{version}}</h1>

    <h2>API Key</h2>

    <p class="lh-copy">Flexio SDK calls require an API key. A default API key is provided to test the following calls. Feel free to <a href="https://www.flex.io/app/signup" target="_blank">sign up for Flex.io</a> to use your own API key in order to test these calls with your Flex.io account:</p class="lh-copy">
    <form>
      <div class="flex flex-row items-center mt2">
        <label class="mr2">Use this API key:</label>
        <input type="text" class="border-box ttl ba b--black-20 f6 pa2 w5 code" v-model="api_key">
      </div>
    </form>

    <h2>Setup</h2>

    <example
      title="Initialize Flex.io JS SDK with your API key"
      code="Flexio.setup('YOUR API KEY GOES HERE')"
      :show-run="false"
    ></example>

    <h2>Collections</h2>

    <example
      v-for="(example, index) in list_examples"
      :title="example.title"
      :code="example.code"
      :fn="example.fn"
      :api-key="api_key"
    ></example>

    <h2>Pipes</h2>

    <example
      v-for="(example, index) in pipe_examples"
      :title="example.title"
      :code="example.code"
      :fn="example.fn"
      :api-key="api_key"
    ></example>
  </div>
</template>

<script>
  import Flexio from '../src/flexio'
  import Example from './Example.vue'
  import list_examples from './examples/list'
  import pipe_examples from './examples/pipe'

  Flexio.setBaseUrl('https://test.flex.io/api/v1')

  var version = Flexio.version
  var api_key = '<KEY>'

  export default {
    name: 'app',
    components: {
      Example
    },
    data() {
      return {
        version,
        api_key,
        list_examples,
{'fraction_non_alphanumeric': 0.15201514741682445, 'fraction_numerical': 0.015688395996754124, 'mean_word_length': 2.7543147208121828, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 68, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '72824', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1252, 'n_words': 332}