<commit_before><%= javascript_include_tag "sharing.js" %>

<div class="breadcrumbs">
  <a href="/">Home</a> &gt;
  <%= link_to @run.workflow.category.name, main_app.workflows_path(:category_id => @run.workflow.category) -%> &gt;
  <%= link_to @run.workflow.title, main_app.workflow_path(@run.workflow) -%> &gt;
  <% if @run.sweep %>
    <%= link_to @run.sweep.name, main_app.sweep_path(@run.sweep) -%> &gt;
  <% end %>
  <%= link_to @run.name, taverna_player.run_path(@run) -%> &gt;
  Manage
</div>

<h1>Manage run: <%= @run.name %></h1>

<div class="show_basic">
  <%= form_for @run, :url => main_app.run_path(@run.id), :method => "put" do |f| -%>
    <div class="asset_form">
      <%= error_messages_for :run -%>
      <p>
        <b>Name:</b>
        <%= f.text_field :name, :size => 80 -%>
      </p>

      <% unless @run.using_sweep_policy? || current_user.guest_project_member?%>
        <p>
          <%= render :seek_partial => "assets/sharing_form" -%>
        </p>
      <% end %>

      <p>
        <%= submit_tag 'Save' -%>
        or
        <%= link_to 'Cancel', main_app.run_path(@run) -%>
      </p>
    </div>
  <% end %>
</div><commit_msg>Allow guest project members to change sharing on runs<commit_after><%= javascript_include_tag "sharing.js" %>

<div class="breadcrumbs">
  <a href="/">Home</a> &gt;
  <%= link_to @run.workflow.category.name, main_app.workflows_path(:category_id => @run.workflow.category) -%> &gt;
  <%= link_to @run.workflow.title, main_app.workflow_path(@run.workflow) -%> &gt;
  <% if @run.sweep %>
    <%= link_to @run.sweep.name, main_app.sweep_path(@run.sweep) -%> &gt;
  <% end %>
  <%= link_to @run.name, taverna_player.run_path(@run) -%> &gt;
  Manage
</div>

<h1>Manage run: <%= @run.name %></h1>

<div class="show_basic">
  <%= form_for @run, :url => main_app.run_path(@run.id), :method => "put" do |f| -%>
    <div class="asset_form">
      <%= error_messages_for :run -%>
      <p>
        <b>Name:</b>
        <%= f.text_field :name, :size => 80 -%>
      </p>

      <% unless @run.using_sweep_policy? %>
        <p>
          <%= render :seek_partial => "assets/sharing_form" -%>
        </p>
      <% end %>

      <p>
        <%= submit_tag 'Save' -%>
        or
        <%= link_to 'Cancel', main_app.run_path(@run) -%>
      </p>
    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.21887117621714777, 'fraction_numerical': 0.0034467901766479965, 'mean_word_length': 2.8253706754530477, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 83, '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': '2639516', 'n_tokens_mistral': 1004, 'n_tokens_neox': 932, 'n_words': 156}