<commit_before>'use strict';

var _ = require('lodash');
_.mixin(require('congruence'));

var Method = function () { };

Method.template = {
  id: _.isString,
  path: _.isString,
  httpMethod: _.isString,
  description: function (description) {
    return _.isString(description) || _.isUndefined(description);
  },
  scopes: _.isArray
};

Method.validate = function (method) {
  return _.similar(Method.template, method);
};

module.exports = Method;<commit_msg>fixed test for civicinfo doc<commit_after>'use strict';

var _ = require('lodash');
_.mixin(require('congruence'));

var Method = function () { };

Method.template = {
  id: _.isString,
  path: _.isString,
  httpMethod: _.isString,
  description: function (description) {
    return _.isString(description) || _.isUndefined(description);
  },
  scopes: function (scopes) {
    return _.isArray(scopes) || _.isUndefined(scopes);
  }
};

Method.validate = function (method) {
  return _.similar(Method.template, method);
};

module.exports = Method;
{'fraction_non_alphanumeric': 0.15643564356435644, 'fraction_numerical': 0.0, 'mean_word_length': 4.585635359116022, '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': '4418271', 'n_tokens_mistral': 324, 'n_tokens_neox': 319, 'n_words': 69}