<commit_before>var _ = require('underscore');

module.exports = {
  checkEndpoints: function(endpoints){
    if(!endpoints || typeof endpoints !== 'object' || Array.isArray(endpoints) || _.keys(endpoints).length < 1)
      throw new Error("Endpoints argument is not valid");

    var methods = _.map(endpoints, function(endpoint){ 
      return typeof endpoint === 'string' ? 'get' : endpoint.method; 
    });

    if(_.without(methods, 'get', 'post', 'put', 'head', 'patch', 'delete', 'trace').length > 0)<commit_msg>options verb added<commit_after>var _ = require('underscore');

module.exports = {
  checkEndpoints: function(endpoints){
    if(!endpoints || typeof endpoints !== 'object' || Array.isArray(endpoints) || _.keys(endpoints).length < 1)
      throw new Error("Endpoints argument is not valid");

    var methods = _.map(endpoints, function(endpoint){ 
      return typeof endpoint === 'string' ? 'get' : endpoint.method; 
    });

    if(_.without(methods, 'get', 'post', 'put', 'head', 'patch', 'delete', 'trace', 'options').length > 0)
{'fraction_non_alphanumeric': 0.17775665399239543, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 4.427835051546392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3899625', 'n_tokens_mistral': 320, 'n_tokens_neox': 304, 'n_words': 78}