<commit_before>/*
 * Copyright 2015 Red Hat, Inc.
 *
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  and Apache License v2.0 which accompanies this distribution.
 *
 *  The Eclipse Public License is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  The Apache License v2.0 is available at
 *  http://www.opensource.org/licenses/apache2.0.php
 *
 *  You may elect to redistribute this code under either of these licenses.
 */

/**
 * = Hawkular Metrics
 *
 * This project is an implementation of the Vert.x Metrics Service Provider Interface (SPI): metrics built from Vert.x
 * events will be sent to Hawkular, an http://www.hawkular.org[open source monitoring and management solution].
 *
 * == Features
 *
 * * Vert.x core tools monitoring: TCP/HTTP client and servers, {@link io.vertx.core.datagram.DatagramSocket},
 * {@link io.vertx.core.eventbus.EventBus} and handlers
 * * User defined metrics via an {@link io.vertx.core.eventbus.EventBus} bridge.
 *
 * == Getting started
 *
 * The _${maven.artifactId}_ module must be present in the classpath.
 *
 * Maven users should add this to their project POM file:
 *
 * [source,xml,subs="+attributes"]
 * ----
 * <dependency>
 *   <groupId>${maven.groupId}</groupId>
 *   <artifactId>${maven.artifactId}</artifactId>
 *   <version>${maven.version}</version>
 * </dependency>
 * ----
 *
 * And Gradle users, to their build file:
 *
 * [source,groovy,subs="+attributes"]
 * ----
 * compile '${maven.groupId}:${maven.artifactId}:${maven.version}'
 * ----
 *
 * Vert.x does not enable SPI implementations by default. You must enable metric collection in the Vert.x options:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setup()}
 * ----
 *
 * == Configuration
 *
 * === Remote Hawkular server
 *
 * By default, _${maven.artifactId}_ sends metrics to a Hawkular server listening on `localhost` port `8080`.
 * But in production, the Hawkular server will likely run on a separate machine:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setupRemote()}
 * ----
 *
 * === Hawkular tenant selection
 *
 * Hawkular is a multi-tenant solution, and _${maven.artifactId}_ can send metrics for a tenant other than `default`:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setupTenant()}
 * ----
 *
 * === HTTPS and over HTTP related options
 *
 * _${maven.artifactId}_ communicates with the Hawkular server over HTTP. In order to communicate over HTTPS, set the
 * `ssl` flag to true:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setupSecured()}
 * ----
 *
 * Note that all the usual {@link io.vertx.core.http.HttpClientOptions} properties can be used for SSL setup or client
 * tuning.
 *
 * Please refer to {@link io.vertx.ext.hawkular.VertxHawkularOptions} for an exhaustive list of options.
 *
 * == Vert.x core tools metrics
 *
 * This section lists all the metrics generated by monitoring the Vert.x core tools.
 *
 * === Net Client
 *
 * [cols="15,50,35", options="header"]
 * |===
 * |Metric type
 * |Metric name
 * |Description
 *<commit_msg>Fixed typo<commit_after>/*
 * Copyright 2015 Red Hat, Inc.
 *
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  and Apache License v2.0 which accompanies this distribution.
 *
 *  The Eclipse Public License is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  The Apache License v2.0 is available at
 *  http://www.opensource.org/licenses/apache2.0.php
 *
 *  You may elect to redistribute this code under either of these licenses.
 */

/**
 * = Hawkular Metrics
 *
 * This project is an implementation of the Vert.x Metrics Service Provider Interface (SPI): metrics built from Vert.x
 * events will be sent to Hawkular, an http://www.hawkular.org[open source monitoring and management solution].
 *
 * == Features
 *
 * * Vert.x core tools monitoring: TCP/HTTP client and servers, {@link io.vertx.core.datagram.DatagramSocket},
 * {@link io.vertx.core.eventbus.EventBus} and handlers
 * * User defined metrics via an {@link io.vertx.core.eventbus.EventBus} bridge.
 *
 * == Getting started
 *
 * The _${maven.artifactId}_ module must be present in the classpath.
 *
 * Maven users should add this to their project POM file:
 *
 * [source,xml,subs="+attributes"]
 * ----
 * <dependency>
 *   <groupId>${maven.groupId}</groupId>
 *   <artifactId>${maven.artifactId}</artifactId>
 *   <version>${maven.version}</version>
 * </dependency>
 * ----
 *
 * And Gradle users, to their build file:
 *
 * [source,groovy,subs="+attributes"]
 * ----
 * compile '${maven.groupId}:${maven.artifactId}:${maven.version}'
 * ----
 *
 * Vert.x does not enable SPI implementations by default. You must enable metric collection in the Vert.x options:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setup()}
 * ----
 *
 * == Configuration
 *
 * === Remote Hawkular server
 *
 * By default, _${maven.artifactId}_ sends metrics to a Hawkular server listening on `localhost` port `8080`.
 * But in production, the Hawkular server will likely run on a separate machine:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setupRemote()}
 * ----
 *
 * === Hawkular tenant selection
 *
 * Hawkular is a multi-tenant solution, and _${maven.artifactId}_ can send metrics for a tenant other than `default`:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setupTenant()}
 * ----
 *
 * === HTTPS and other HTTP related options
 *
 * _${maven.artifactId}_ communicates with the Hawkular server over HTTP. In order to communicate over HTTPS, set the
 * `ssl` flag to true:
 *
 * [source,$lang]
 * ----
 * {@link examples.MetricsExamples#setupSecured()}
 * ----
 *
 * Note that all the usual {@link io.vertx.core.http.HttpClientOptions} properties can be used for SSL setup or client
 * tuning.
 *
 * Please refer to {@link io.vertx.ext.hawkular.VertxHawkularOptions} for an exhaustive list of options.
 *
 * == Vert.x core tools metrics
 *
 * This section lists all the metrics generated by monitoring the Vert.x core tools.
 *
 * === Net Client
 *
 * [cols="15,50,35", options="header"]
 * |===
 * |Metric type
 * |Metric name
 * |Description
 *
{'fraction_non_alphanumeric': 0.13749605802585935, 'fraction_numerical': 0.007568590350047304, 'mean_word_length': 3.583092485549133, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '7387194', 'n_tokens_mistral': 1971, 'n_tokens_neox': 1828, 'n_words': 629}