<commit_before><?php

function oauth_server($db) {
  $storage = new OAuth2\Storage\Pdo($db);
  $server = new OAuth2\Server($storage);
  $server->addGrantType(new OAuth2\GrantType\AuthorizationCode($storage));
  return $server;
}<commit_msg>support RefreshToken grant type<commit_after><?php

function oauth_server($db) {
  $storage = new OAuth2\Storage\Pdo($db);
  $server = new OAuth2\Server($storage);
  $server->addGrantType(new OAuth2\GrantType\AuthorizationCode($storage));
  $server->addGrantType(new OAuth2\GrantType\RefreshToken($storage, []));
  return $server;
}
{'fraction_non_alphanumeric': 0.15734265734265734, 'fraction_numerical': 0.012237762237762238, 'mean_word_length': 6.743243243243243, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1161937', 'n_tokens_mistral': 198, 'n_tokens_neox': 194, 'n_words': 31}