<commit_before>/**
 * Policy Mappings
 * (sails.config.policies)
 *
 * Policies are simple functions which run **before** your controllers.
 * You can apply one or more policies to a given controller, or protect
 * its actions individually.
 *
 * Any policy file (e.g. `api/policies/authenticated.js`) can be accessed
 * below by its filename, minus the extension, (e.g. "authenticated")
 *
 * For more information on how policies work, see:
 * http://sailsjs.org/#/documentation/concepts/Policies
 *
 * For more information on configuring policies, check out:
 * http://sailsjs.org/#/documentation/reference/sails.config/sails.config.policies.html
 */


module.exports.policies = {

  /***************************************************************************
  *                                                                          *
  * Default policy for all controllers and actions (`true` allows public     *
  * access)                                                                  *
  *                                                                          *
  ***************************************************************************/

  '*': 'sessionAuth',

  ViewController: {
    // express-useragent is a simple ExpressJS user-agent middleware exposing user-agent details to your application and views: https://github.com/biggora/express-useragent
    'signin': "useragent",
    'singlePageBootstrap': "useragent"
  },

  SessionController: {
    'create': true
  },

  ContentController: {
    'find': true
  },

  DocumentController: {
    'upload': true,
    'convert': true
  },

  EmailController: {
    'send': true
  },

  GalleryController: {
    'find': true
  },

  MemberController: {
    'find': true
  },

  TimelineController: {
    'find': true
  },


  /***************************************************************************<commit_msg>sessions for guests<commit_after>/**
 * Policy Mappings
 * (sails.config.policies)
 *
 * Policies are simple functions which run **before** your controllers.
 * You can apply one or more policies to a given controller, or protect
 * its actions individually.
 *
 * Any policy file (e.g. `api/policies/authenticated.js`) can be accessed
 * below by its filename, minus the extension, (e.g. "authenticated")
 *
 * For more information on how policies work, see:
 * http://sailsjs.org/#/documentation/concepts/Policies
 *
 * For more information on configuring policies, check out:
 * http://sailsjs.org/#/documentation/reference/sails.config/sails.config.policies.html
 */


module.exports.policies = {

  /***************************************************************************
  *                                                                          *
  * Default policy for all controllers and actions (`true` allows public     *
  * access)                                                                  *
  *                                                                          *
  ***************************************************************************/

  '*': 'sessionAuth',

  ViewController: {
    // express-useragent is a simple ExpressJS user-agent middleware exposing user-agent details to your application and views: https://github.com/biggora/express-useragent
    'signin': "useragent",
    'singlePageBootstrap': "useragent"
  },

  SessionController: {
    'create': true,
    'subscribe': true
  },

  ContentController: {
    'find': true
  },

  DocumentController: {
    'upload': true,
    'convert': true
  },

  EmailController: {
    'send': true
  },

  GalleryController: {
    'find': true
  },

  MemberController: {
    'find': true
  },

  TimelineController: {
    'find': true
  },


  /***************************************************************************
{'fraction_non_alphanumeric': 0.21701343165657097, 'fraction_numerical': 0.0, 'mean_word_length': 2.4123989218328843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4589112', 'n_tokens_mistral': 957, 'n_tokens_neox': 899, 'n_words': 246}