<commit_before>//
//  processor-histogram.h
//

#ifndef rv_processor_histogram_h
#define rv_processor_histogram_h

namespace riscv {

	const size_t max_chars = 80;

	static std::string repeat_str(std::string str, size_t count)
	{
		std::string s;
		for (size_t i = 0; i < count; i++) s += str;
		return s;
	}

	template <typename P>
	void histogram_pc(P &proc, bool reverse_sort)<commit_msg>Adjust histogram bars to fit in 80 column terminal<commit_after>//
//  processor-histogram.h
//

#ifndef rv_processor_histogram_h
#define rv_processor_histogram_h

namespace riscv {

	const size_t max_chars = 40;

	static std::string repeat_str(std::string str, size_t count)
	{
		std::string s;
		for (size_t i = 0; i < count; i++) s += str;
		return s;
	}

	template <typename P>
	void histogram_pc(P &proc, bool reverse_sort)
{'fraction_non_alphanumeric': 0.11233211233211234, 'fraction_numerical': 0.009768009768009768, 'mean_word_length': 4.290322580645161, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4126022', 'n_tokens_mistral': 318, 'n_tokens_neox': 295, 'n_words': 85}