<commit_before>'use strict';

var AbstractClientResource = require('./../abstract-client-resource');

/**
 * No-Op callback
 */
function noop() {}

/**
 * Group Resource
 * @class
 * @memberof CamSDK.client.resource
 * @augments CamSDK.client.AbstractClientResource
 */
var Tenant = AbstractClientResource.extend();

/**
 * Path used by the resource to perform HTTP queries
 * @type {String}
 */
Tenant.path = 'tenant';

/**
 * Check resource access
 * @param  {Function} done
 */
Tenant.options = function (done) {
  done = done || noop;
  return this.http.options(this.path, {
    done: done
  });
};



/**
 * Creates a tenant
 *
 * @param  {Object}   tenant       is an object representation of a group
 * @param  {String}   tenant.id
 * @param  {String}   tenant.name
 * @param  {Function} done
 */
Tenant.create = function (options, done) {
  return this.http.post(this.path +'/create', {
    data: options,
    done: done || noop<commit_msg>fix(tenant): remove duplicate options request<commit_after>'use strict';

var AbstractClientResource = require('./../abstract-client-resource');

/**
 * No-Op callback
 */
function noop() {}

/**
 * Group Resource
 * @class
 * @memberof CamSDK.client.resource
 * @augments CamSDK.client.AbstractClientResource
 */
var Tenant = AbstractClientResource.extend();

/**
 * Path used by the resource to perform HTTP queries
 * @type {String}
 */
Tenant.path = 'tenant';

/**
 * Creates a tenant
 *
 * @param  {Object}   tenant       is an object representation of a group
 * @param  {String}   tenant.id
 * @param  {String}   tenant.name
 * @param  {Function} done
 */
Tenant.create = function (options, done) {
  return this.http.post(this.path +'/create', {
    data: options,
    done: done || noop
{'fraction_non_alphanumeric': 0.14802065404475043, 'fraction_numerical': 0.0, 'mean_word_length': 3.392947103274559, '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': '5506088', 'n_tokens_mistral': 541, 'n_tokens_neox': 541, 'n_words': 151}