<commit_before># <?php

include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php";
$wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' );

$wgMWLoggerDefaultSpi['args'][0]['loggers']['CirrusSearchRequestSet'] = array(
	'handlers' => array( 'kafka' ),
	'processors' => array(),
	'calls' => array()
);

$wgMWLoggerDefaultSpi['args'][0]['handlers']['kafka'] = array(
	'factory' => '\\MediaWiki\\Logger\\Monolog\\KafkaHandler::factory',
	'args' => array(
		array( 'localhost:9092' ),
		array(
			'alias' => array(),
			'swallowExceptions' => false,
			'logExceptions' => null,
		)
	),
	'formatter' => 'avro',
);

$wgMWLoggerDefaultSpi['args'][0]['formatters']['avro'] = array(
	'class' => '\\MediaWiki\\Logger\\Monolog\\AvroFormatter',
	'args' => array(
		array(
			'CirrusSearchRequestSet' => array(
				'schema' => file_get_contents(
					"<%= scope['::service::root_dir'] %>/event-schemas/avro/mediawiki/CirrusSearchRequestSet/111448028943.avsc"
				),
				'revision' => 111448028943,
			),
		),
	),
);<commit_msg>Update CirrusSearchRequestSet schema to latest version<commit_after># <?php

include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php";
$wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' );

$wgMWLoggerDefaultSpi['args'][0]['loggers']['CirrusSearchRequestSet'] = array(
	'handlers' => array( 'kafka' ),
	'processors' => array(),
	'calls' => array()
);

$wgMWLoggerDefaultSpi['args'][0]['handlers']['kafka'] = array(
	'factory' => '\\MediaWiki\\Logger\\Monolog\\KafkaHandler::factory',
	'args' => array(
		array( 'localhost:9092' ),
		array(
			'alias' => array(),
			'swallowExceptions' => false,
			'logExceptions' => null,
		)
	),
	'formatter' => 'avro',
);

$wgMWLoggerDefaultSpi['args'][0]['formatters']['avro'] = array(
	'class' => '\\MediaWiki\\Logger\\Monolog\\AvroFormatter',
	'args' => array(
		array(
			'CirrusSearchRequestSet' => array(
				'schema' => file_get_contents(
					"<%= scope['::service::root_dir'] %>/event-schemas/avro/mediawiki/CirrusSearchRequestSet/121456865906.avsc"
				),
				'revision' => 121456865906,
			),
		),
	),
);
{'fraction_non_alphanumeric': 0.2109192720485301, 'fraction_numerical': 0.028931404573028466, 'mean_word_length': 5.380952380952381, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, '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': '7247590', 'n_tokens_mistral': 890, 'n_tokens_neox': 787, 'n_words': 103}