<commit_before>var extend = require('lodash/object/extend');
var resolvePath = require('./resolve-path');
var resolveUrl = require('./resolve-url');

function AssetResolver(options) {
  if (!(this instanceof AssetResolver)) {
    return new AssetResolver(options);
  }

  this.options = extend({}, options);

  Object.freeze(this);
}

AssetResolver.prototype.resolvePath = function (to) {
  return resolvePath(to, this.options);
};

AssetResolver.prototype.resolveUrl = function (to) {
  return resolveUrl(to, this.options);
};

module.exports = AssetResolver;<commit_msg>Pass callbacks to AssetResolver.prototype methods<commit_after>var extend = require('lodash/object/extend');
var resolvePath = require('./resolve-path');
var resolveUrl = require('./resolve-url');

function AssetResolver(options) {
  if (!(this instanceof AssetResolver)) {
    return new AssetResolver(options);
  }

  this.options = extend({}, options);

  Object.freeze(this);
}

AssetResolver.prototype.resolvePath = function (to, callback) {
  return resolvePath(to, this.options, callback);
};

AssetResolver.prototype.resolveUrl = function (to, callback) {
  return resolveUrl(to, this.options, callback);
};

module.exports = AssetResolver;
{'fraction_non_alphanumeric': 0.1418032786885246, 'fraction_numerical': 0.0, 'mean_word_length': 5.49468085106383, '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': '7281109', 'n_tokens_mistral': 356, 'n_tokens_neox': 339, 'n_words': 79}