<commit_before>exports = module.exports = function(container, issue, logger) {
  var oauth2orize = require('oauth2orize');
  
  
  // TODO: require('oauth2orize-idpiframerm')
  
  var components = container.components('http://i.authnomicon.org/oauth2/authorize/http/ResponseMode');
  return Promise.all(components.map(function(comp) { return comp.create(); } ))
    .then(function(plugins) {
      var modes = {}
        , name;
      plugins.forEach(function(mode, i) {
        name = components[i].a['@mode'];
        if (name == 'query') {
          // The default response mode of this response type is the fragment
          // encoding.  In accordance with security considerations, this
          // response type must not use query encoding, in order to avoid
          // leaking sensitive information such as access tokens.
          //
          // For more information, refer to:
          // https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#Security
          return;
        }
        
        modes[name] = mode;
        logger.info('Loaded response mode for OAuth 2.0 implicit grant: ' + name);
      });
      
      return oauth2orize.grant.token({
        modes: modes
      }, issue);
    });
};

exports['@implements'] = 'http://i.authnomicon.org/oauth2/http/Response';
exports['@type'] = 'token';
exports['@require'] = [
  '!container',
  './issue',
  'http://i.bixbyjs.org/Logger'
];<commit_msg>Fix require.<commit_after>exports = module.exports = function(container, issue, logger) {
  var oauth2orize = require('oauth2orize');
  
  
  // TODO: require('oauth2orize-idpiframerm')
  
  var components = container.components('http://i.authnomicon.org/oauth2/authorize/http/ResponseMode');
  return Promise.all(components.map(function(comp) { return comp.create(); } ))
    .then(function(plugins) {
      var modes = {}
        , name;
      plugins.forEach(function(mode, i) {
        name = components[i].a['@mode'];
        if (name == 'query') {
          // The default response mode of this response type is the fragment
          // encoding.  In accordance with security considerations, this
          // response type must not use query encoding, in order to avoid
          // leaking sensitive information such as access tokens.
          //
          // For more information, refer to:
          // https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#Security
          return;
        }
        
        modes[name] = mode;
        logger.info('Loaded response mode for OAuth 2.0 implicit grant: ' + name);
      });
      
      return oauth2orize.grant.token({
        modes: modes
      }, issue);
    });
};

exports['@implements'] = 'http://i.authnomicon.org/oauth2/http/Response';
exports['@type'] = 'token';
exports['@require'] = [
  '!container',
  './token/issue',
  'http://i.bixbyjs.org/Logger'
];
{'fraction_non_alphanumeric': 0.14330434782608695, 'fraction_numerical': 0.0076521739130434785, 'mean_word_length': 2.4902912621359223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3206225', 'n_tokens_mistral': 856, 'n_tokens_neox': 853, 'n_words': 191}