<commit_before>{{! Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
    for details. All rights reserved. Use of this source code is governed by a
    BSD-style license that can be found in the LICENSE file. }}

<h1>
  {{package.name}}
  <span class="version">{{package.selected_version.version}}</span>
  <span class="version" style="font-weight: normal">
    {{#package.latest.should_show}}
    (latest:
      <a href="/packages/{{package.name}}/versions/{{package.latest.stable_href}}">{{package.latest.stable_name}}</a>
    {{#package.latest.should_show_dev}}
     /
      <a href="/packages/{{package.name}}/versions/{{package.latest.dev_href}}">{{package.latest.dev_name}}</a>
    {{/package.latest.should_show_dev}}
    )
    {{/package.latest.should_show}}
  </span>
</h1>
<div class="row-fluid">
  <div class="span8">
    <ul class="nav nav-tabs">
      {{#readme}}
        <li class="active">
          <a href="#readme" data-toggle="tab">{{readme_filename}}</a>
        </li>
      {{/readme}}
      {{#changelog}}
        <li class="{{^readme}}active{{/readme}}">
          <a href="#changelog" data-toggle="tab">{{changelog_filename}}</a>
        </li>
      {{/changelog}}
      <li class="{{^readme}}{{^changelog}}active{{/changelog}}{{/readme}}">
        <a href="#installing" data-toggle="tab">Installing</a>
      </li>
      <li><a href="#versions" data-toggle="tab">Versions</a></li>
    </ul>

    <div class="tab-content">
      {{#readme}}
        <div class="tab-pane active" id="readme">
          {{&readme}}
        </div>
      {{/readme}}
      {{#changelog}}
      <div class="tab-pane {{^readme}}active{{/readme}}" id="changelog">
        {{&changelog}}
      </div>
      {{/changelog}}
      <div class="tab-pane {{^readme}}{{^changelog}}active{{/changelog}}{{/readme}}" id="installing">
        <h3>1. Depend on it</h3>
        <p>Add this to your package's pubspec.yaml file:</p>
<pre>
dependencies:
  <strong>{{package.name}}: {{package.latest_version.example_version_constraint}}</strong>
</pre>
        <h3>2. Install it</h3>
        <p>You can install packages from the command line:</p>
<pre>
$ <strong>pub get</strong>
</pre>
        <p>Alternatively, your editor might support pub. Check the docs for your editor to learn more.</p>
        {{#package.latest_version.has_libraries}}
          <h3>3. Import it</h3>
          <p>Now in your Dart code, you can use:
          </p>
<pre class="highlight">{{#package.latest_version.import_examples}}
<span class="import-example"><span class="k">import</span> <span class="s">'package:<strong>{{package}}</strong>/<wbr/><strong>{{library}}</strong>'</span>;</span>{{/package.latest_version.import_examples}}
</pre>
        {{/package.latest_version.has_libraries}}
      </div>

      <div class="tab-pane" id="versions">
        <table>
          <thead>
            <tr>
              <th>Version</th>
              <th>Uploaded</th>
              <th class="documentation" width="60">Documentation</th>
              <th class="archive" width="60">Archive</th>
            </tr>
          </thead>
          {{#versions}}
            <tr>
              <th>{{version}}</th>
              <td>{{short_created}}</td>
              <td class="documentation">
                <a href="{{documentation}}"
                   title="Go to the documentation of {{package.name}} {{version}}"><commit_msg>Rename latest_version to selected_version in show.markdown, fixes #69. AFAICT it was broken by https://github.com/dart-lang/pub-dartlang-dart/commit/2f42611ec0a0a73116dff570f36e5adc573234c3<commit_after>{{! Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
    for details. All rights reserved. Use of this source code is governed by a
    BSD-style license that can be found in the LICENSE file. }}

<h1>
  {{package.name}}
  <span class="version">{{package.selected_version.version}}</span>
  <span class="version" style="font-weight: normal">
    {{#package.latest.should_show}}
    (latest:
      <a href="/packages/{{package.name}}/versions/{{package.latest.stable_href}}">{{package.latest.stable_name}}</a>
    {{#package.latest.should_show_dev}}
     /
      <a href="/packages/{{package.name}}/versions/{{package.latest.dev_href}}">{{package.latest.dev_name}}</a>
    {{/package.latest.should_show_dev}}
    )
    {{/package.latest.should_show}}
  </span>
</h1>
<div class="row-fluid">
  <div class="span8">
    <ul class="nav nav-tabs">
      {{#readme}}
        <li class="active">
          <a href="#readme" data-toggle="tab">{{readme_filename}}</a>
        </li>
      {{/readme}}
      {{#changelog}}
        <li class="{{^readme}}active{{/readme}}">
          <a href="#changelog" data-toggle="tab">{{changelog_filename}}</a>
        </li>
      {{/changelog}}
      <li class="{{^readme}}{{^changelog}}active{{/changelog}}{{/readme}}">
        <a href="#installing" data-toggle="tab">Installing</a>
      </li>
      <li><a href="#versions" data-toggle="tab">Versions</a></li>
    </ul>

    <div class="tab-content">
      {{#readme}}
        <div class="tab-pane active" id="readme">
          {{&readme}}
        </div>
      {{/readme}}
      {{#changelog}}
      <div class="tab-pane {{^readme}}active{{/readme}}" id="changelog">
        {{&changelog}}
      </div>
      {{/changelog}}
      <div class="tab-pane {{^readme}}{{^changelog}}active{{/changelog}}{{/readme}}" id="installing">
        <h3>1. Depend on it</h3>
        <p>Add this to your package's pubspec.yaml file:</p>
<pre>
dependencies:
  <strong>{{package.name}}: {{package.selected_version.example_version_constraint}}</strong>
</pre>
        <h3>2. Install it</h3>
        <p>You can install packages from the command line:</p>
<pre>
$ <strong>pub get</strong>
</pre>
        <p>Alternatively, your editor might support pub. Check the docs for your editor to learn more.</p>
        {{#package.selected_version.has_libraries}}
          <h3>3. Import it</h3>
          <p>Now in your Dart code, you can use:
          </p>
<pre class="highlight">{{#package.selected_version.import_examples}}
<span class="import-example"><span class="k">import</span> <span class="s">'package:<strong>{{package}}</strong>/<wbr/><strong>{{library}}</strong>'</span>;</span>{{/package.selected_version.import_examples}}
</pre>
        {{/package.selected_version.has_libraries}}
      </div>

      <div class="tab-pane" id="versions">
        <table>
          <thead>
            <tr>
              <th>Version</th>
              <th>Uploaded</th>
              <th class="documentation" width="60">Documentation</th>
              <th class="archive" width="60">Archive</th>
            </tr>
          </thead>
          {{#versions}}
            <tr>
              <th>{{version}}</th>
              <td>{{short_created}}</td>
              <td class="documentation">
                <a href="{{documentation}}"
                   title="Go to the documentation of {{package.name}} {{version}}">
{'fraction_non_alphanumeric': 0.19511846988295747, 'fraction_numerical': 0.009705966314587497, 'mean_word_length': 2.8457738748627883, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, 'https://': 1, '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': '5802015', 'n_tokens_mistral': 2344, 'n_tokens_neox': 2234, 'n_words': 434}