<commit_before><div class="row subHeader">
  <div class="currentApp">
    <h2 class="page-title">
      {{active_app.label}}
    </h2>
  </div>
  <div class=" subHeaderContent">
    <div class="pull-right sharebuttonDiv">
      <a href="#sharingSettingsModal" class="btn blue jfk-button jfk-button-action" data-toggle="modal">
        <i class="icon-lock"></i>
        {{ _("Share") }}
      </a>
    </div>
    <h2 class="page-title" >
      <a href="/#/opportunities/" data-toggle="tooltip" id='testEdit' data-placement="bottom" title="Back to Cases">
        <img onload="this.__gwtLastUnhandledEvent=&quot;load&quot;;" src="/static/img/clear.cache.gif" style="width: 21px; height: 21px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAP0lEQVR42mNgGAXDApRT28AGIP5PCwP/08LA/9QKw/9kYLyggxaGYjMYHyApiBpoYSixSYqsyGwYzf+jgDQAAJylMNOnx10yAAAAAElFTkSuQmCC); background-position: 0px 0px; background-repeat: no-repeat no-repeat;" border="0" class="gwt-Image GI4HA0EPK cbarOpacity" aria-hidden="false">
      </a>
      {{_("Opportunities")}} >
      <a editable-text="opportunity.name"  onbeforesave="inlinePatch('Opportunity','', 'name',opportunity.entityKey,$data)">
        <%= opportunity.name%>
      </a>
    </h2>
  </div>
</div>
<div  class="page-content">
  <div class="loader-container row" ng-show="isLoading">
    <div class="loader-dialog col-md-4 col-md-offset-4 ">
      <div class="loader-content">
        Loading...
      </div>
    </div>
  </div>
  <div class="container" ng-show="immediateFailed">
    <div class="col-md-12">
      <h1>{{ _("Sign-in Button;") }}</h1>
      <span id="signin">
        <span id="myGsignin"></span>
      </span>
    </div>
  </div>
  <div ng-show="isContentLoaded" class="row">
    <div class="col-md-9">
      <div class="row">
        <div class="showPage custom-show margin-bottom-15  col-md-12">
          <div class="row margin-bottom-10">

            <div class="col-md-12">
              <div class="row">
                <div class="col-md-12">
                  <div class="oppRelatedTo">
                     <span ng-show="opportunity.account.name" style="">
                        Account name:
                        <a class="tag ng-binding" href="http://localhost:8090/#/accounts/show/<%= opportunity.account.id %>">
                          <%= opportunity.account.name %>
                        </a>
                      </span>
                      <br>
                      <span  style="">
                        Contact name:
                        <a class="tag ng-binding" href="http://localhost:8090/#/accounts/show/<%= opportunity.account.id %>">
                          <%= opportunity.contact.firstname %>
                        </a>
                      </span>
                  </div>
                  <span class="page-meta pull-right">
                    <i class="icon-pencil">
                      <a ng-click="editaccount()" class="btn-link addAnotherPhone" data-toggle="modal">
                        Edit
                      </a>
                    </i>
                     |
                    <i class="icon-trash">
                      <a ng-click="beforedeleteOpportunity()" class="btn-link addAnotherPhone">  Delete
                      </a>
                    </i>
                  </span>

                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <div class="tags-section hidden" ng-class="{hidden: account.tags==null}">
                    <div class="section-content">
                      <span class="pull-left">Tags: </span>
                       <!-- ngRepeat: tag in account.tags -->
                      <a ng-repeat="tag in opportunity.tags" href="/#/search/type:Opportunity tags:<%=tag.id%>">
                        <span class="pull-left task-label task-tag badge ng-scope ng-binding" style="background-color: <%=tag.color%>;color:<%=idealTextColor(tag.color)%>;">
                          <%= tag.name %>
                        </span>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <div class="tabbable tabbable-custom">
                <ul class="nav nav-tabs">
                  <li class="ng-tab" ng-class="{active: selectedTab == 2}">
                    <a ng-click="selectedTab = 2;renderMaps();">About</a>
                  </li>
                  <li class="ng-tab" ng-class="{active: selectedTab == 1}">
                    <a ng-click="selectedTab = 1;">Notes</a>
                  </li>
                  <li class="ng-tab sm-menu" ng-class="{active: selectedTab ==8}">
                    <a ng-click="selectedTab = 8;">Send an Email</a>
                  </li>
                  <li class="ng-tab sm-menu" ng-class="{active: selectedTab == 7}">
                    <a ng-click="waterfall();selectedTab = 7;">Attach Documents</a>
                  </li>
                  <li class="dropdown md-menu-inv">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      More <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                      <li class="ng-tab sm-menu-inv" ng-class="{active: selectedTab ==8}"><a ng-click="selectedTab = 8;">Send an Email</a></li>
                      <li class="ng-tab sm-menu-inv" ng-class="{active: selectedTab == 7}"><a ng-click="selectedTab = 7;">Attach Documents</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="col-md-12">
          <div class="row">
            <div class="">
              <div class="tab-content">
                <div class="tab-pane active" id="tab_1_1" ng-show="selectedTab == 1">
                  <div class="showPage">
                    <div class="row">
                      <div class="col-md-12  margin-bottom-10">
                        <p class⁼"lead"="">
                          To add an outside email to this account, forward or BCC to:
                          <a href="mailto:<EMAIL>">
                            <EMAIL>
                          </a>
                          <br>
                          Or just add notes to remember what's important.
                          <br>
                        </p>
                        <form id="addNote" ng-submit="addNote(note)" class="ng-pristine ng-valid">
                          <div class="form-group">
                            <input class="form-control ng-pristine ng-valid" autofocus="" type="text" placeholder="Add a new subject" id="messageSubject" ng-model="note.title">
                          </div>
                          <div class="form-group">
                            <textarea id="noteBody" class="form-control ng-pristine ng-valid" rows="3" ng-model="note.content"></textarea>
                          </div>
                          <div class="pull-right">
                            <input ng-disabled="isLoading" type="submit" class="btn green" value="Add this note">
                          </div>
                        </form>
                      </div>
                    </div>
                    <ul class="chats">
                      <li class="in" ng-repeat="topic in topics" id="topic_<%=$index%>">
                        <img class="avatar" alt="" ng-src="<%= topic.last_updater.photo%>" />
                        <div class="message">
                          <span class="arrow"></span>
                          <a href="#" class="name">
                            <%= topic.last_updater.display_name%>
                          </a>
                          <span class="datetime">
                            at <%=topic.updated_at | date:'yyyy-MM-dd - HH:mm:ss '  %>
                          </span>
                          <span class="body">
                            <a href="<%=getTopicUrl(topic.topic_kind,topic.id)%>" class="discussion-content"><strong class="ng-binding">
                              <%= topic.title%></strong> - <span class="excerpt ng-binding" ng-bind-html-unsafe="topic.excerpt"></span><span class="chat-meta pull-right" ng-show="topic.comments"><i class="icon-comment"></i> <%= topic.comments%> comments</span>
                            </a>
                          </span>
                        </div>
                      </li>
                    </ul>

                  </div>
                </div>

                      <!--HKA 06.03.2014 About -->
                      <div class="tab-pane active" id="tab_1_2" ng-show="selectedTab == 2">
                  <div class="row">
                    <div class="col-md-6">
                      <div class="news-blocks blank-card blank-card-yellow newsCard">
                        <h3>Opportunity Details</h3>
                        <div class="stage-chart-block">
                          <div class="col-md-5 ">
                            <div class="stage" >
                              <div easypiechart class="chart"  options="chartOptions" percent="opportunity.current_stage.probability"></div>
                              <div class="oppStage  col-md-12">
                                <span><%=opportunity.current_stage.name%></span><br>
                                <span><%=opportunity.current_stage.probability%> %</span>
                              </div>
                            </div>
                          </div>
                           <div class="oppPrice col-md-7">
                                  <span><%= opportunity.currency %></span>
                                  <span><%= opportunity.amount_total | customCurrency:"":",":".":0 %></span>
                                  <p class="amount-details" ng-show="opportunity.duration_unit!='fixed'">
                                      <%= opportunity.duration %> × <%= opportunity.amount_per_unit| customCurrency:"":",":".":0 %>/<%= opportunity.duration_unit %>
                                  </p>
                                  <div class="oppEstDate">
                                     Estimated close date:
                                  </div>
                                  <div class="oppEstDate">
                                    <%=opportunity.closed_date | date:'MMMM dd, yyyy'%>
                                  </div>

                           </div>

                        </div>
                        <div class="row padding-bottom-15">
                          <div class="col-md-12">
                            <div class="form-group">

                                <div class="col-md-12"><commit_msg>pull from iogrow<commit_after><div class="row subHeader">
  <div class="currentApp">
    <h2 class="page-title">
      {{active_app.label}}
    </h2>
  </div>
  <div class=" subHeaderContent">
    <div class="pull-right sharebuttonDiv">
      <a href="#sharingSettingsModal" class="btn blue jfk-button jfk-button-action" data-toggle="modal">
        <i class="icon-lock"></i>
        {{ _("Share") }}
      </a>
    </div>
    <h2 class="page-title" >
      <a href="/#/opportunities/" data-toggle="tooltip" id='testEdit' data-placement="bottom" title="Back to Cases">
        <img onload="this.__gwtLastUnhandledEvent=&quot;load&quot;;" src="/static/img/clear.cache.gif" style="width: 21px; height: 21px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAP0lEQVR42mNgGAXDApRT28AGIP5PCwP/08LA/9QKw/9kYLyggxaGYjMYHyApiBpoYSixSYqsyGwYzf+jgDQAAJylMNOnx10yAAAAAElFTkSuQmCC); background-position: 0px 0px; background-repeat: no-repeat no-repeat;" border="0" class="gwt-Image GI4HA0EPK cbarOpacity" aria-hidden="false">
      </a>
      {{_("Opportunities")}} >
      <a editable-text="opportunity.name"  onbeforesave="inlinePatch('Opportunity','', 'name',opportunity.entityKey,$data)">
        <%= opportunity.name%>
      </a>
    </h2>
  </div>
</div>
<div  class="page-content">
  <div class="loader-container row" ng-show="isLoading">
    <div class="loader-dialog col-md-4 col-md-offset-4 ">
      <div class="loader-content">
        Loading...
      </div>
    </div>
  </div>
  <div class="container" ng-show="immediateFailed">
    <div class="col-md-12">
      <h1>{{ _("Sign-in Button;") }}</h1>
      <span id="signin">
        <span id="myGsignin"></span>
      </span>
    </div>
  </div>
  <div ng-show="isContentLoaded" class="row">
    <div class="col-md-9">
      <div class="row">
        <div class="showPage custom-show margin-bottom-15  col-md-12">
          <div class="row margin-bottom-10">

            <div class="col-md-12">
              <div class="row">
                <div class="col-md-12">
                  <div class="oppRelatedTo">
                     <span ng-show="opportunity.account.name" style="">
                        Account name:
                        <a class="tag ng-binding" href="http://localhost:8090/#/accounts/show/<%= opportunity.account.id %>">
                          <%= opportunity.account.name %>
                        </a>
                      </span>
                      <br>
                      <span  style="">
                        Contact name:
                        <a class="tag ng-binding" href="http://localhost:8090/#/accounts/show/<%= opportunity.account.id %>">
                          <%= opportunity.contact.firstname %> <%= opportunity.contact.firstname %>
                        </a>
                      </span>
                  </div>
                  <span class="page-meta pull-right">
                    <i class="icon-pencil">
                      <a ng-click="editaccount()" class="btn-link addAnotherPhone" data-toggle="modal">
                        Edit
                      </a>
                    </i>
                     |
                    <i class="icon-trash">
                      <a ng-click="beforedeleteOpportunity()" class="btn-link addAnotherPhone">  Delete
                      </a>
                    </i>
                  </span>

                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <div class="tags-section hidden" ng-class="{hidden: account.tags==null}">
                    <div class="section-content">
                      <span class="pull-left">Tags: </span>
                       <!-- ngRepeat: tag in account.tags -->
                      <a ng-repeat="tag in opportunity.tags" href="/#/search/type:Opportunity tags:<%=tag.id%>">
                        <span class="pull-left task-label task-tag badge ng-scope ng-binding" style="background-color: <%=tag.color%>;color:<%=idealTextColor(tag.color)%>;">
                          <%= tag.name %>
                        </span>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <div class="tabbable tabbable-custom">
                <ul class="nav nav-tabs">
                  <li class="ng-tab" ng-class="{active: selectedTab == 2}">
                    <a ng-click="selectedTab = 2;renderMaps();">About</a>
                  </li>
                  <li class="ng-tab" ng-class="{active: selectedTab == 1}">
                    <a ng-click="selectedTab = 1;">Notes</a>
                  </li>
                  <li class="ng-tab sm-menu" ng-class="{active: selectedTab ==8}">
                    <a ng-click="selectedTab = 8;">Send an Email</a>
                  </li>
                  <li class="ng-tab sm-menu" ng-class="{active: selectedTab == 7}">
                    <a ng-click="waterfall();selectedTab = 7;">Attach Documents</a>
                  </li>
                  <li class="dropdown md-menu-inv">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      More <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                      <li class="ng-tab sm-menu-inv" ng-class="{active: selectedTab ==8}"><a ng-click="selectedTab = 8;">Send an Email</a></li>
                      <li class="ng-tab sm-menu-inv" ng-class="{active: selectedTab == 7}"><a ng-click="selectedTab = 7;">Attach Documents</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="col-md-12">
          <div class="row">
            <div class="">
              <div class="tab-content">
                <div class="tab-pane active" id="tab_1_1" ng-show="selectedTab == 1">
                  <div class="showPage">
                    <div class="row">
                      <div class="col-md-12  margin-bottom-10">
                        <p class⁼"lead"="">
                          To add an outside email to this account, forward or BCC to:
                          <a href="mailto:<EMAIL>">
                            <EMAIL>
                          </a>
                          <br>
                          Or just add notes to remember what's important.
                          <br>
                        </p>
                        <form id="addNote" ng-submit="addNote(note)" class="ng-pristine ng-valid">
                          <div class="form-group">
                            <input class="form-control ng-pristine ng-valid" autofocus="" type="text" placeholder="Add a new subject" id="messageSubject" ng-model="note.title">
                          </div>
                          <div class="form-group">
                            <textarea id="noteBody" class="form-control ng-pristine ng-valid" rows="3" ng-model="note.content"></textarea>
                          </div>
                          <div class="pull-right">
                            <input ng-disabled="isLoading" type="submit" class="btn green" value="Add this note">
                          </div>
                        </form>
                      </div>
                    </div>
                    <ul class="chats">
                      <li class="in" ng-repeat="topic in topics" id="topic_<%=$index%>">
                        <img class="avatar" alt="" ng-src="<%= topic.last_updater.photo%>" />
                        <div class="message">
                          <span class="arrow"></span>
                          <a href="#" class="name">
                            <%= topic.last_updater.display_name%>
                          </a>
                          <span class="datetime">
                            at <%=topic.updated_at | date:'yyyy-MM-dd - HH:mm:ss '  %>
                          </span>
                          <span class="body">
                            <a href="<%=getTopicUrl(topic.topic_kind,topic.id)%>" class="discussion-content"><strong class="ng-binding">
                              <%= topic.title%></strong> - <span class="excerpt ng-binding" ng-bind-html-unsafe="topic.excerpt"></span><span class="chat-meta pull-right" ng-show="topic.comments"><i class="icon-comment"></i> <%= topic.comments%> comments</span>
                            </a>
                          </span>
                        </div>
                      </li>
                    </ul>

                  </div>
                </div>

                      <!--HKA 06.03.2014 About -->
                      <div class="tab-pane active" id="tab_1_2" ng-show="selectedTab == 2">
                  <div class="row">
                    <div class="col-md-6">
                      <div class="news-blocks blank-card blank-card-yellow newsCard">
                        <h3>Opportunity Details</h3>
                        <div class="stage-chart-block">
                          <div class="col-md-5 ">
                            <div class="stage" >
                              <div easypiechart class="chart"  options="chartOptions" percent="opportunity.current_stage.probability"></div>
                              <div class="oppStage  col-md-12">
                                <span><%=opportunity.current_stage.name%></span><br>
                                <span><%=opportunity.current_stage.probability%> %</span>
                              </div>
                            </div>
                          </div>
                           <div class="oppPrice col-md-7">
                                  <span><%= opportunity.currency %></span>
                                  <span  editable-text="opportunity.amount_total"  ><%= opportunity.amount_total | customCurrency:"":",":".":0 %></span>
                                  <p class="amount-details" ng-show="opportunity.duration_unit!='fixed'">
                                      <%= opportunity.duration %> × <%= opportunity.amount_per_unit| customCurrency:"":",":".":0 %>/<%= opportunity.duration_unit %>
                                  </p>
                                  <div class="oppEstDate">
                                     Estimated close date:
                                  </div>
                                  <div class="oppEstDate">
                                    <%=opportunity.closed_date | date:'MMMM dd, yyyy'%>
                                  </div>

                           </div>

                        </div>
                        <div class="row padding-bottom-15">
                          <div class="col-md-12">
                            <div class="form-group">

                                <div class="col-md-12">
{'fraction_non_alphanumeric': 0.15070486584811277, 'fraction_numerical': 0.009640745793542519, 'mean_word_length': 1.2601233299075025, 'pattern_counts': {'":': 12, '<': 496, '<?xml version=': 0, '>': 498, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3824356', 'n_tokens_mistral': 6345, 'n_tokens_neox': 5815, 'n_words': 1083}