<commit_before>/**
 * Module dependencies.
 */
var uri = require('url')
  , request = require('request')
  , debug = require('debug')('nds-openidconfiguration');


/**
 * Resolves OpenID provider metadata.
 *
 * This resolver resolves metadata about OpenID providers that implement OpenID
 * Connect.  The `id` in this situation is the "issuer identifer" of the OpenID
 * provider.  This same identifier is the result of performing issuer discovery
 * and is also present as the issuer claim in assertions (aka tokens) issued by
 * the provider.
 *
 * Requests for metadata are sent over HTTPS, ensuring that claims are
 * verifiably asserted by the OpenID provider itself.
 *
 * Note that it is not considered an error if claims required by OpenID Connect
 * Discovery are missing.  If these claims are required by an application, it is
 * the application's responsibility to check for their existence.<commit_msg>Clarify documentation.<commit_after>/**
 * Module dependencies.
 */
var uri = require('url')
  , request = require('request')
  , debug = require('debug')('nds-openidconfiguration');


/**
 * Resolves OpenID provider metadata.
 *
 * This resolver resolves metadata about OpenID providers that implement OpenID
 * Connect.  The `id` in this situation is the "issuer identifer" of the OpenID
 * provider.  This same identifier is the result of performing issuer discovery
 * and is also present as the issuer claim in assertions (aka tokens) issued by
 * the provider.
 *
 * Requests for metadata are sent over HTTPS directly to the issuer, ensuring
 * that claims are verifiably asserted by the OpenID provider itself.
 *
 * Note that it is not considered an error if claims required by OpenID Connect
 * Discovery are missing.  If these claims are required by an application, it is
 * the application's responsibility to check for their existence.
{'fraction_non_alphanumeric': 0.07142857142857142, 'fraction_numerical': 0.0, 'mean_word_length': 4.218487394957983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6386229', 'n_tokens_mistral': 466, 'n_tokens_neox': 455, 'n_words': 238}