<commit_before><% if @office["success"] %>

<h1><%= @office["office"]["name"] %></h1>
<b>Stakeholder For:</b> <br />
<ul><% @office["stakes"].each do |stakeholder| %>
	<li><a href="../terms/<%= stakeholder["name"] %>"><%= stakeholder["name"] %></a>: <%= stakeholder["stake"] %></li>
<% end %></ul>

<% else %>

Error: <%= @office["message"] %>

<% end %><commit_msg>added office detail page with options for update and delete<commit_after> <script>
    office_detail_json = <%=  @office["office"].to_json.to_s.html_safe %>
</script>

<div class="row">
  <div class="large-8 columns">
    <div data-alert class="alert-box alert radius" style="display:none">
      <ul class="error_list"></ul>
      <a href="#" class="close">&times;</a>
    </div>
    <div data-alert class="alert-box warning radius" style="display:none">
      <ul class="error_list"></ul>
      <a href="#" class="close">&times;</a>
    </div>
    <div data-alert class="alert-box success radius" style="display:none">
      <span class="success_msg"></span>
      <a href="#" class="close">&times;</a>
    </div>
  </div>
</div>

<div class="row">
  <div class="large-12 columns">
       <div class="reveal-modal tiny" id="mytinyDelete" data-reveal="">
         <h2>Deleting Office</h2> <br>
         <b> Are you sure? <b> <br> <br>
         <input type="button" class ="tiny button" value="Yes" id="deleteConfirm" />
         <input type="button" class ="tiny button" value="No" id="deleteCancel" />
         <a class="close-reveal-modal">×</a>
     </div>   
   </div>
  </div>
 
<% if @office["success"] %>

<div id ="office_detail">
   <div class="row">
    <div class="large-12 columns">
     <div class="small-12 large-12 columns">
        <input type="button" class ="tiny button"   value="Update Office" id="updateOfficeButton" />
        <input type="button"  class ="tiny button" value="Delete Office" data-reveal-id="mytinyDelete" id="deleteOfficeButton" />
    </div>
   </div>
  </div>
</div>


  <div class="row">
    <div class="large-12 columns">
        <div id="name" class="editable">
        <h2 class="page-title">
      <%= @office["office"]["name"].html_safe %>  
      </h2>
    </div>
       </div>
</div>
 <div class="row">
    <div class="large-12 columns">
       <h5 class="page-title">Stakeholder Information</h5> <br />
			 <ul><% @office["stakes"].each do |stakeholder| %>
        
				<strong> <li><a href="../terms/<%= stakeholder["name"] %>"><%= stakeholder["name"] %></a>: </strong> <%= stakeholder["stake"] %></li>  <br>
       
			<% end %></ul>
     
    </div>
  </div>
</div>
<% else %>

Error: <%=@office["message"] %>

<% end %>
{'fraction_non_alphanumeric': 0.2337121212121212, 'fraction_numerical': 0.007954545454545454, 'mean_word_length': 3.365289256198347, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '4016438', 'n_tokens_mistral': 982, 'n_tokens_neox': 912, 'n_words': 204}