<commit_before>
module.exports = policies;
policies.list = list;
policies.create = create;
policies.deletePolicy = deletePolicy;
policies.update = update;
policies.read = read;
policies.users = listUsers;
policies.addusers = addUsers;
policies.removeusers = removeUsers;

policies.usage = "\nfhc policies list"
              +"\nfhc policies create <policy-id> <policy-type> <config> [<check-user-exists>] [<check-user-approved>]"
              +"\nfhc policies update <guid> <policy-id> <policy-type> <config> [<check-user-exists>] [<check-user-approved>]"
              +"\n    where <policy-type> is one of: OAUTH1 | OAUTH2 | LDAP | OPENID | FEEDHENRY" 
              +'\n    where <config> is a json object corresponding to the policy type, e.g.'
              +'\n          for OAuth2: "{"clientId": "1234567890.apps.example.com",  "clientSecret": "<KEY>"}"'
              +'\n          for LDAP: "{"authmethod": "simple", "url": "ldap://foo.example.com:389, "dn": "ou=people,dc=example,dc=com", "dn_prefix": "cn"}'
              +'\n                       authmethod can be one of: "simple", "DIGEST-MD5", "CRAM-MD5", or "GSSAPI"'
              +"\n    where <check-user-exists> is one of: true | false. The default here is 'false'."
              +"\n    where <check-user-approved> is one of: true | false. The default here is 'false'."
              +"\nfhc policies delete <guid>"
              +"\nfhc policies read <policy-id>"
              +"\nfhc policies users <policy-id>"
              +"\nfhc policies addusers <policy-guid> <user-id>*"
              +"\nfhc policies removeusers <policy-guid> <user-id>*";

var log = require("./utils/log");
var fhc = require("./fhc");
var fhreq = require("./utils/request");
var common = require("./common");
var util = require('util');
var async = require('async');
var path = require('path');
var ini = require('./utils/ini');
var Table = require('cli-table');

// Main policies entry point
function policies (args, cb) {
  if (args.length == 0){
    return list(cb);
  }<commit_msg>Updated admin-policies instructions<commit_after>
module.exports = policies;
policies.list = list;
policies.create = create;
policies.deletePolicy = deletePolicy;
policies.update = update;
policies.read = read;
policies.users = listUsers;
policies.addusers = addUsers;
policies.removeusers = removeUsers;

policies.usage = "\nfhc policies list"
              +"\nfhc policies create <policy-id> <policy-type> <config> [<check-user-exists>] [<check-user-approved>]"
              +"\nfhc policies update <guid> <policy-id> <policy-type> <config> [<check-user-exists>] [<check-user-approved>]"
              +"\n    where <policy-type> is one of: OAUTH1 | OAUTH2 | LDAP | OPENID | FEEDHENRY" 
              +'\n    where <config> is a json object corresponding to the policy type, e.g.'
              +'\n          for OAuth2: "{"clientId": "1234567890.apps.example.com",  "clientSecret": "<KEY>", "provider": "GOOGLE"}"'
              +'\n          for LDAP: "{"authmethod": "simple", "url": "ldap://foo.example.com:389, "dn": "ou=people,dc=example,dc=com", "dn_prefix": "cn", "provider": "LDAP"}'
              +'\n                       authmethod can be one of: "simple", "DIGEST-MD5", "CRAM-MD5", or "GSSAPI"'
              +"\n    where <check-user-exists> is one of: true | false. The default here is 'false'."
              +"\n    where <check-user-approved> is one of: true | false. The default here is 'false'."
              +"\nfhc policies delete <guid>"
              +"\nfhc policies read <policy-id>"
              +"\nfhc policies users <policy-id>"
              +"\nfhc policies addusers <policy-guid> <user-id>*"
              +"\nfhc policies removeusers <policy-guid> <user-id>*";

var log = require("./utils/log");
var fhc = require("./fhc");
var fhreq = require("./utils/request");
var common = require("./common");
var util = require('util');
var async = require('async');
var path = require('path');
var ini = require('./utils/ini');
var Table = require('cli-table');

// Main policies entry point
function policies (args, cb) {
  if (args.length == 0){
    return list(cb);
  }
{'fraction_non_alphanumeric': 0.16972477064220184, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 2.7391696750902526, 'pattern_counts': {'":': 14, '<': 49, '<?xml version=': 0, '>': 49, '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': '6052808', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1304, 'n_words': 368}