<commit_before>'use strict';

/**
 * Module dependencies
 */
var acl = require('acl');

// Using the memory backend
acl = new acl(new acl.memoryBackend());

/**
 * Invoke exams permissions
 */
exports.invokeRolesPolicies = function () {
  acl.allow([{
    roles: ['admin'],
    allows: [{
      resources: [
        '/api/exams',
        '/api/exams/:examId',
        '/api/exams/:examId/validate',
        '/api/exams/:examId/student',
        '/api/exams/:examId/student/:i',
        '/api/exams/:examId/room',
        '/api/exams/:examId/room/:i',
        '/api/exams/:examId/room/:i/configure',
        '/api/exams/:examId/copy',
        '/api/exams/:examId/copy/:i',
        '/api/exams/:examId/copy/:i/download',
        '/api/exams/:examId/copy/:i/upload'
      ],
      permissions: '*'
    }]
  }, {
    roles: ['manager.exams'],
    allows: [{
      resources: [
        '/api/exams',
        '/api/exams/:examId/student',
        '/api/exams/:examId/room',
        '/api/exams/:examId/room/:i/configure',
        '/api/exams/:examId/validate'
      ],
      permissions: ['post']
    }, {
      resources: '/api/exams/:examId',
      permissions: ['get', 'put', 'delete']
    }, {
      resources: '/api/exams/:examId/copy/:i/download',
      permissions: ['get']
    }, {
      resources: [
        '/api/exams/:examId/student/:i',
        '/api/exams/:examId/room/:i'
      ],
      permissions: ['delete']
    }]
  }, {
    roles: ['teacher'],<commit_msg>Modules(exams): Add copy validation for admin<commit_after>'use strict';

/**
 * Module dependencies
 */
var acl = require('acl');

// Using the memory backend
acl = new acl(new acl.memoryBackend());

/**
 * Invoke exams permissions
 */
exports.invokeRolesPolicies = function () {
  acl.allow([{
    roles: ['admin'],
    allows: [{
      resources: [
        '/api/exams',
        '/api/exams/:examId',
        '/api/exams/:examId/validate',
        '/api/exams/:examId/student',
        '/api/exams/:examId/student/:i',
        '/api/exams/:examId/room',
        '/api/exams/:examId/room/:i',
        '/api/exams/:examId/room/:i/configure',
        '/api/exams/:examId/copy',
        '/api/exams/:examId/copy/:i',
        '/api/exams/:examId/copy/:i/download',
        '/api/exams/:examId/copy/:i/upload',
        '/api/exams/:examId/copy/:i/validate'
      ],
      permissions: '*'
    }]
  }, {
    roles: ['manager.exams'],
    allows: [{
      resources: [
        '/api/exams',
        '/api/exams/:examId/student',
        '/api/exams/:examId/room',
        '/api/exams/:examId/room/:i/configure',
        '/api/exams/:examId/validate'
      ],
      permissions: ['post']
    }, {
      resources: '/api/exams/:examId',
      permissions: ['get', 'put', 'delete']
    }, {
      resources: '/api/exams/:examId/copy/:i/download',
      permissions: ['get']
    }, {
      resources: [
        '/api/exams/:examId/student/:i',
        '/api/exams/:examId/room/:i'
      ],
      permissions: ['delete']
    }]
  }, {
    roles: ['teacher'],
{'fraction_non_alphanumeric': 0.2114683460391117, 'fraction_numerical': 0.0, 'mean_word_length': 2.051567239635996, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '930723', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1142, 'n_words': 137}