<commit_before><span id="plan_name" style="font-size:18px;font-weight:bold;"> <%= @plan.name %> </span>
<script type="text/javascript">
//<![CDATA[
new Ajax.InPlaceEditor('plan_name','<%= plan_path(@plan)%>',
                        {
                          ajaxOptions: { method: 'put' }, 
                          paramName: 'plan[name]', 
                          cancelText: 'Cancel', 
                          okText: 'Save', 
                          callback:function(form){
                            return Form.serialize(form) 
                              + '&authenticity_token=' 
                              + encodeURIComponent('<%=form_authenticity_token%>');
                          }
                        })
//]]>
</script>
<%= link_to 'Test Plans', plans_path %>

<br/><br/>
<div id="add_scenario">
  <%= render :partial => 'scenarios/add_scenario'-%>
</div>
<br/>
<div id="add_feature">
  <%= render :partial => 'features/add_feature' -%>
</div>
<br/>
<div id="scenario_list">
  <%= render :partial => 'scenarios/scenario_list'-%>
</div><commit_msg>inplace edit test plan title with external control<commit_after><span id="plan_name" style="font-size:18px;font-weight:bold;"> <%= @plan.name %> </span>
<a href="#" id="edit_plan_name">Edit<a>
<script type="text/javascript">
//<![CDATA[
new Ajax.InPlaceEditor('plan_name','<%= plan_path(@plan)%>',
                        {
                          ajaxOptions: { method: 'put' }, 
                          paramName: 'plan[name]', 
                          externalControl: 'edit_plan_name',
                          externalControlOnly: true,
                          highlightcolor: "#FFFFFF",
                          callback:function(form){
                            return Form.serialize(form) 
                              + '&authenticity_token=' 
                              + encodeURIComponent('<%=form_authenticity_token%>');
                          }
                        })
//]]>
</script>
<br/>
<%= link_to 'Test Plans', plans_path %>

<br/><br/>
<div id="add_scenario">
  <%= render :partial => 'scenarios/add_scenario'-%>
</div>
<br/>
<div id="add_feature">
  <%= render :partial => 'features/add_feature' -%>
</div>
<br/>
<div id="scenario_list">
  <%= render :partial => 'scenarios/scenario_list'-%>
</div>
{'fraction_non_alphanumeric': 0.17153912295786758, 'fraction_numerical': 0.0017196904557179708, 'mean_word_length': 1.7801672640382318, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 56, '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': '1854677', 'n_tokens_mistral': 722, 'n_tokens_neox': 675, 'n_words': 114}