<commit_before>{% embed 'InstitutionBundle:Widgets:tabbedContent.base.html.twig' %}
    {% block tabbedContent %}
    <form id="modal_specialist_form" action="{{ path('institution_medicalCenter_ajaxAddSpecialistService', {'imcId': institutionMedicalCenter.id, 'institutionId': institution.id} ) }}">
        {{ form_label(form.firstName) }}
        {{ form_widget(form.firstName) }}
         <table class="table table-striped table-bordered specialist_table">
         <thead>
            <tr>    
				<th>Medical Specialist</th>
				<th>Specializations</th>
				<th>Actions</th>
    		</tr>
         </thead>
         <tbody>
    		<tr style="display:none;" class="loader"><td colspan="2">Loading...</td></tr>
    		    {% include 'InstitutionBundle:MedicalCenter:tableRow.specialist.html.twig' %}
        </tbody>
    	</table>
    	
         {{ form_widget(form._token) }}
    </form>
    {% endblock %}
{% endembed %}

{% block inlineJavascriptCode %}
<script type="text/javascript">
<!--
(function($){
    $(function(){

    	InstitutionSpecialistAutocomplete.removePropertyUri = '{{ path("institution_medicalCenter_ajaxRemoveSpecialistService", {"imcId" : institutionMedicalCenter.id, "institutionId" : institution.id} ) }}';

        InstitutionSpecialistAutocomplete
        .setLoadHtmlContentUri('{{ path("institution_medicalCenter_ajaxAddSpecialistService", {"imcId": institutionMedicalCenter.id, "institutionId": institution.id}) }}') 
        .setAutocompleteOptions('specialist', {
            source: '{{ path("admin_institution_medicalCenter_loadMedicalSpecialist", {"imcId": institutionMedicalCenter.id, "institutionId": institution.id}) }}',//$.parseJSON('{{ doctorsJSON | raw }}'),
            target: $('#institutionDoctorSearch_firstName'),
            selectedDataContainer: $('table.specialist_table tbody'),
            loader: $('table.specialist_table tbody tr.loader'),
            field: $('#institutionDoctorSearch_firstName')
        })
        .autocomplete();
    });
    
})(jQuery);
//-->
</script>
{% endblock %}<commit_msg>Fixed bug<commit_after>{% embed 'InstitutionBundle:Widgets:tabbedContent.base.html.twig' %}
    {% block tabbedContent %}
    <form id="modal_specialist_form" action="{{ path('institution_medicalCenter_ajaxAddSpecialistService', {'imcId': institutionMedicalCenter.id, 'institutionId': institution.id} ) }}">
        {{ form_label(form.firstName) }}
        {{ form_widget(form.firstName) }}
         <table class="table table-striped table-bordered specialist_table">
         <thead>
            <tr>    
				<th>Medical Specialist</th>
				<th>Specializations</th>
				<th>Actions</th>
    		</tr>
         </thead>
         <tbody>
    		<tr style="display:none;" class="loader"><td colspan="2">Loading...</td></tr>
    		    {% include 'InstitutionBundle:MedicalCenter:tableRow.specialist.html.twig' %}
        </tbody>
    	</table>
    	
         {{ form_widget(form._token) }}
    </form>
    {% endblock %}
{% endembed %}

{% block inlineJavascriptCode %}
<script type="text/javascript">
<!--
(function($){
    $(function(){

    	InstitutionSpecialistAutocomplete.removePropertyUri = '{{ path("institution_medicalCenter_ajaxRemoveSpecialistService", {"imcId" : institutionMedicalCenter.id, "institutionId" : institution.id} ) }}';

    	InstitutionSpecialistAutocomplete
        .setLoadHtmlContentUri('{{ path("institution_medicalCenter_ajaxAddSpecialistService", {"imcId": institutionMedicalCenter.id, "institutionId": institution.id}) }}') 
        .setLoadMedicalSpecialistUri('{{ path("institution_medicalCenter_loadMedicalSpecialist", {"imcId": institutionMedicalCenter.id}) }}')
        .setAutocompleteOptions('specialist', {
            source: '',
            target: $('#institutionDoctorSearch_firstName'),
            selectedDataContainer: $('table.specialist_table tbody'),
            loader: $('table.specialist_table tbody tr.loader'),
            field: $('#institutionDoctorSearch_firstName')
        })
        .autocomplete();
    });
    
})(jQuery);
//-->
</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.1581532416502947, 'fraction_numerical': 0.0004911591355599214, 'mean_word_length': 3.654857142857143, 'pattern_counts': {'":': 7, '<': 49, '<?xml version=': 0, '>': 49, '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': '4270181', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1157, 'n_words': 167}