<commit_before>/*
 * builtin-list.c
 *
 * Builtin list command: list all event types
 *
 * Copyright (C) 2009, <NAME> <<EMAIL>>
 * Copyright (C) 2008-2009, Red Hat Inc, <NAME> <<EMAIL>>
 */
#include "builtin.h"

#include "perf.h"

#include "util/parse-options.h"
#include "util/parse-events.h"

int cmd_list(int argc __used, const char **argv __used, const char *prefix __used)
{
	print_events();
	return 0;
}<commit_msg>perf list: Fix large list output by using the pager<commit_after>/*
 * builtin-list.c
 *
 * Builtin list command: list all event types
 *
 * Copyright (C) 2009, <NAME> <<EMAIL>>
 * Copyright (C) 2008-2009, Red Hat Inc, <NAME> <<EMAIL>>
 */
#include "builtin.h"

#include "perf.h"

#include "util/parse-events.h"
#include "util/cache.h"

int cmd_list(int argc __used, const char **argv __used, const char *prefix __used)
{
	setup_pager();
	print_events();
	return 0;
}
{'fraction_non_alphanumeric': 0.15878378378378377, 'fraction_numerical': 0.02927927927927928, 'mean_word_length': 4.323353293413174, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3594991', 'n_tokens_mistral': 347, 'n_tokens_neox': 323, 'n_words': 100}