<commit_before><link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../tf-dashboard-common/tf-run-generator.html">
<link rel="import" href="../tf-dashboard-common/tf-url-generator.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="tf-image-grid.html">
<link rel="import" href="../tf-dashboard-common/warning-style.html">

<!--
tf-image-dashboard displays a dashboard that loads images from a TensorFlow run.

Right now it has very simple behavior: Creates a url-generator and run-generator
to talk to the backend, and then passes the runToImages map and urlGenerators into
a tf-image-grid for display.

Likely we will add more in the future, e.g. a sidebar like in the event
dashboard that allows filtering and organizing the tags and runs, and a
mechanism for loading older images rather than always getting the most recent one.
-->
<dom-module id="tf-image-dashboard">
  <template>
    <div id="plumbing">
      <tf-url-generator
        out-runs-url="{{runsUrl}}"
        out-images-url-generator="{{imagesUrlGen}}"
        out-individual-image-url-generator="{{individualImageUrlGen}}"
        id="urlGenerator"
      ></tf-url-generator>

      <tf-run-generator
        id="runGenerator"
        url="[[runsUrl]]"
        out-run-to-images="{{runToImages}}"<commit_msg>Fix the image dashboard Change: 111615936<commit_after><link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../tf-dashboard-common/tf-run-generator.html">
<link rel="import" href="../tf-dashboard-common/tf-url-generator.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="tf-image-grid.html">
<link rel="import" href="../tf-dashboard-common/warning-style.html">

<!--
tf-image-dashboard displays a dashboard that loads images from a TensorFlow run.

Right now it has very simple behavior: Creates a url-generator and run-generator
to talk to the backend, and then passes the runToImages map and urlGenerators into
a tf-image-grid for display.

Likely we will add more in the future, e.g. a sidebar like in the event
dashboard that allows filtering and organizing the tags and runs, and a
mechanism for loading older images rather than always getting the most recent one.
-->
<dom-module id="tf-image-dashboard">
  <template>
    <div id="plumbing">
      <tf-url-generator
        router="[[router]]"
        out-runs-url="{{runsUrl}}"
        out-images-url-generator="{{imagesUrlGen}}"
        out-individual-image-url-generator="{{individualImageUrlGen}}"
        id="urlGenerator"
      ></tf-url-generator>

      <tf-run-generator
        id="runGenerator"
        url="[[runsUrl]]"
        out-run-to-images="{{runToImages}}"
{'fraction_non_alphanumeric': 0.14513788098693758, 'fraction_numerical': 0.003265602322206096, 'mean_word_length': 3.81151832460733, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, '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': '985084', 'n_tokens_mistral': 833, 'n_tokens_neox': 813, 'n_words': 233}