<commit_before>def create_html_view(the_namespace, the_controller, the_model, the_fields)

    create_html_index(the_namespace, the_controller, the_model, the_fields)

    create_html_formnew(the_namespace, the_controller, the_model, the_fields)

    create_html_show(the_namespace, the_controller, the_model, the_fields)

    create_html_formedit(the_namespace, the_controller, the_model, the_fields)

end #create_html_view

def create_html_head
    @the_file_name = '_head.html.erb'
    dir_name = Rails.root.to_s + '/app/views/' + the_namespace.downcase + '/' + the_controller.downcase
    FileUtils.mkdir_p dir_name

    File.open(dir_name + '/' + @the_file_name, 'w') { |f|
        f.write '<div class="page-title">
	<div class="title_left">
		<h3><i class="fa fa-product-hunt"></i> ' + the_namespace + '/' + the_controller + '</h3>
	</div>
</div>

<div class="clearfix"></div>'
    end
end

def create_html_index(the_namespace, the_controller, the_model, the_fields)

    @the_file_name = 'index.html.erb'
    dir_name = Rails.root.to_s + '/app/views/' + the_namespace.downcase + '/' + the_controller.downcase
    FileUtils.mkdir_p dir_name

    # order
    @ths = ''
    the_fields.each do |thx|
        @ths = @ths + '<tr>
            <td>
                <%= show_th(\'' + thx.to_s + '\', \'' + thx.to_s + '\', @urlfor, @rows, @sort, @order, @filter_rules).html_safe %>
            </td>
        </tr>' + "\n"
    end

    # Filter
    @tds = ''
    the_fields.each do |tdx|
        @tds = @tds + '    <tr>
                <td>' + tdx.to_s + '</td>
                <td class="td_filter">
                    <%= show_td_filter(\'' + tdx.to_s + '\', [\'equal\', \'not equal\', \'contains\', \'l_contains\', \'less\', \'greater\']).html_safe %>
                </td>
            </tr>' + "\n"
    end
<commit_msg>perbaikan head<commit_after>def create_html_view(the_namespace, the_controller, the_model, the_fields)

    create_html_index(the_namespace, the_controller, the_model, the_fields)

    create_html_formnew(the_namespace, the_controller, the_model, the_fields)

    create_html_show(the_namespace, the_controller, the_model, the_fields)

    create_html_formedit(the_namespace, the_controller, the_model, the_fields)

end #create_html_view

def create_html_head
    @the_file_name = '_head.html.erb'
    dir_name = Rails.root.to_s + '/app/views/' + the_namespace.downcase + '/' + the_controller.downcase
    FileUtils.mkdir_p dir_name

    File.open(dir_name + '/' + @the_file_name, 'w') { |f|
        f.write '<div class="page-title">
	<div class="title_left">
		<h3><i class="fa fa-product-hunt"></i> ' + the_namespace + '/' + the_controller + '</h3>
	</div>
</div>

<div class="clearfix"></div>'
    }
end

def create_html_index(the_namespace, the_controller, the_model, the_fields)

    @the_file_name = 'index.html.erb'
    dir_name = Rails.root.to_s + '/app/views/' + the_namespace.downcase + '/' + the_controller.downcase
    FileUtils.mkdir_p dir_name

    # order
    @ths = ''
    the_fields.each do |thx|
        @ths = @ths + '<tr>
            <td>
                <%= show_th(\'' + thx.to_s + '\', \'' + thx.to_s + '\', @urlfor, @rows, @sort, @order, @filter_rules).html_safe %>
            </td>
        </tr>' + "\n"
    end

    # Filter
    @tds = ''
    the_fields.each do |tdx|
        @tds = @tds + '    <tr>
                <td>' + tdx.to_s + '</td>
                <td class="td_filter">
                    <%= show_td_filter(\'' + tdx.to_s + '\', [\'equal\', \'not equal\', \'contains\', \'l_contains\', \'less\', \'greater\']).html_safe %>
                </td>
            </tr>' + "\n"
    end

{'fraction_non_alphanumeric': 0.16735366859027206, 'fraction_numerical': 0.0010992030777686177, 'mean_word_length': 2.7295081967213113, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '3277878', 'n_tokens_mistral': 1374, 'n_tokens_neox': 1309, 'n_words': 232}