<commit_before>$('#component_properties_form')[0].reset();
$('.panel_component_properties').css('display', 'none');

var component_item = $('.panel_components').find('.component-row[data-component_id=#{@old_component_id}]')
component_item.attr('data-component_id', '#{@component.get_source_id}')
component_item.attr('data-name', '#{@component.get_source_name}')
component_item.find('.name').html('#{@component.get_source_name}')

alert(" '#{I18n.t('update_page_properties.success')}' ");<commit_msg>save component ajax fixed<commit_after>$('#component_properties_form')[0].reset();
$('.panel_component_properties').css('display', 'none');

var component_item = $('.panel_components').find('.component-row[data-source_id=#{@old_component_id}]')
component_item.attr('data-source_id', '#{@component.get_source_id}')
component_item.attr('data-name', '#{@component.get_source_name}')
component_item.find('.name').html('#{@component.get_source_name}')

alert(" '#{I18n.t('update_page_properties.success')}' ");
{'fraction_non_alphanumeric': 0.22310756972111553, 'fraction_numerical': 0.00597609561752988, 'mean_word_length': 12.223684210526315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '534380', 'n_tokens_mistral': 331, 'n_tokens_neox': 327, 'n_words': 29}