<commit_before><?php

require_once 'Acl_plugin.php';

$ccAcl = new Zend_Acl();

$ccAcl->addRole(new Zend_Acl_Role('G'))
      ->addRole(new Zend_Acl_Role('H'), 'G')
      ->addRole(new Zend_Acl_Role('P'), 'H')
      ->addRole(new Zend_Acl_Role('A'), 'P')
      ->addRole(new Zend_Acl_Role('S'), 'A');

$ccAcl->add(new Zend_Acl_Resource('library'))
      ->add(new Zend_Acl_Resource('index'))
      ->add(new Zend_Acl_Resource('user'))
      ->add(new Zend_Acl_Resource('error'))
      ->add(new Zend_Acl_Resource('login'))
      ->add(new Zend_Acl_Resource('whmcs-login'))
      ->add(new Zend_Acl_Resource('playlist'))
      ->add(new Zend_Acl_Resource('plupload'))
      ->add(new Zend_Acl_Resource('schedule'))
      ->add(new Zend_Acl_Resource('api'))
      ->add(new Zend_Acl_Resource('systemstatus'))
      ->add(new Zend_Acl_Resource('dashboard'))
      ->add(new Zend_Acl_Resource('preference'))
      ->add(new Zend_Acl_Resource('showbuilder'))
      ->add(new Zend_Acl_Resource('playouthistory'))
      ->add(new Zend_Acl_Resource('playouthistorytemplate'))
      ->add(new Zend_Acl_Resource('listenerstat'))
      ->add(new Zend_Acl_Resource('usersettings'))
      ->add(new Zend_Acl_Resource('audiopreview'))
      ->add(new Zend_Acl_Resource('webstream'))
      ->add(new Zend_Acl_Resource('locale'))
      ->add(new Zend_Acl_Resource('upgrade'))
      ->add(new Zend_Acl_Resource('downgrade'))
      ->add(new Zend_Acl_Resource('rest:media'))
      ->add(new Zend_Acl_Resource('rest:show-image'))
      ->add(new Zend_Acl_Resource('billing'))
      ->add(new Zend_Acl_Resource('thank-you'))
      ->add(new Zend_Acl_Resource('provisioning'))
      ->add(new Zend_Acl_Resource('embeddableplayer'));

/** Creating permissions */
$ccAcl->allow('G', 'index')
      ->allow('G', 'login')
      ->allow('G', 'whmcs-login')
      ->allow('G', 'error')
      ->allow('G', 'user', 'edit-user')
      ->allow('G', 'showbuilder')
      ->allow('G', 'api')
      ->allow('G', 'schedule')
      ->allow('G', 'dashboard')
      ->allow('G', 'audiopreview')
      ->allow('G', 'webstream')
      ->allow('G', 'locale')
      ->allow('G', 'upgrade')
      ->allow('G', 'provisioning')
      ->allow('G', 'downgrade')
      ->allow('G', 'rest:show-image', 'get')
      ->allow('H', 'rest:show-image')
      ->allow('G', 'rest:media', 'get')
      ->allow('H', 'rest:media')
      ->allow('H', 'preference', 'is-import-in-progress')
      ->allow('H', 'usersettings')
      ->allow('H', 'plupload')
      ->allow('H', 'library')
      ->allow('H', 'playlist')
      ->allow('H', 'playouthistory')
      ->allow('A', 'playouthistorytemplate')
      ->allow('A', 'listenerstat')
      ->allow('A', 'user')
      ->allow('A', 'systemstatus')
      ->allow('A', 'preference')
<<<<<<< HEAD
      ->allow('A', 'embeddableplayer')
=======
      ->allow('S', 'thank-you')
>>>>>>> saas
      ->allow('S', 'billing');
      

$aclPlugin = new Zend_Controller_Plugin_Acl($ccAcl);

Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($ccAcl);

$front = Zend_Controller_Front::getInstance();
$front->registerPlugin($aclPlugin);<commit_msg>bad merge<commit_after><?php

require_once 'Acl_plugin.php';

$ccAcl = new Zend_Acl();

$ccAcl->addRole(new Zend_Acl_Role('G'))
      ->addRole(new Zend_Acl_Role('H'), 'G')
      ->addRole(new Zend_Acl_Role('P'), 'H')
      ->addRole(new Zend_Acl_Role('A'), 'P')
      ->addRole(new Zend_Acl_Role('S'), 'A');

$ccAcl->add(new Zend_Acl_Resource('library'))
      ->add(new Zend_Acl_Resource('index'))
      ->add(new Zend_Acl_Resource('user'))
      ->add(new Zend_Acl_Resource('error'))
      ->add(new Zend_Acl_Resource('login'))
      ->add(new Zend_Acl_Resource('whmcs-login'))
      ->add(new Zend_Acl_Resource('playlist'))
      ->add(new Zend_Acl_Resource('plupload'))
      ->add(new Zend_Acl_Resource('schedule'))
      ->add(new Zend_Acl_Resource('api'))
      ->add(new Zend_Acl_Resource('systemstatus'))
      ->add(new Zend_Acl_Resource('dashboard'))
      ->add(new Zend_Acl_Resource('preference'))
      ->add(new Zend_Acl_Resource('showbuilder'))
      ->add(new Zend_Acl_Resource('playouthistory'))
      ->add(new Zend_Acl_Resource('playouthistorytemplate'))
      ->add(new Zend_Acl_Resource('listenerstat'))
      ->add(new Zend_Acl_Resource('usersettings'))
      ->add(new Zend_Acl_Resource('audiopreview'))
      ->add(new Zend_Acl_Resource('webstream'))
      ->add(new Zend_Acl_Resource('locale'))
      ->add(new Zend_Acl_Resource('upgrade'))
      ->add(new Zend_Acl_Resource('downgrade'))
      ->add(new Zend_Acl_Resource('rest:media'))
      ->add(new Zend_Acl_Resource('rest:show-image'))
      ->add(new Zend_Acl_Resource('billing'))
      ->add(new Zend_Acl_Resource('thank-you'))
      ->add(new Zend_Acl_Resource('provisioning'))
      ->add(new Zend_Acl_Resource('embeddableplayer'));

/** Creating permissions */
$ccAcl->allow('G', 'index')
      ->allow('G', 'login')
      ->allow('G', 'whmcs-login')
      ->allow('G', 'error')
      ->allow('G', 'user', 'edit-user')
      ->allow('G', 'showbuilder')
      ->allow('G', 'api')
      ->allow('G', 'schedule')
      ->allow('G', 'dashboard')
      ->allow('G', 'audiopreview')
      ->allow('G', 'webstream')
      ->allow('G', 'locale')
      ->allow('G', 'upgrade')
      ->allow('G', 'provisioning')
      ->allow('G', 'downgrade')
      ->allow('G', 'rest:show-image', 'get')
      ->allow('H', 'rest:show-image')
      ->allow('G', 'rest:media', 'get')
      ->allow('H', 'rest:media')
      ->allow('H', 'preference', 'is-import-in-progress')
      ->allow('H', 'usersettings')
      ->allow('H', 'plupload')
      ->allow('H', 'library')
      ->allow('H', 'playlist')
      ->allow('H', 'playouthistory')
      ->allow('A', 'playouthistorytemplate')
      ->allow('A', 'listenerstat')
      ->allow('A', 'user')
      ->allow('A', 'systemstatus')
      ->allow('A', 'preference')
      ->allow('A', 'embeddableplayer')
      ->allow('S', 'thank-you')
      ->allow('S', 'billing');
      

$aclPlugin = new Zend_Controller_Plugin_Acl($ccAcl);

Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($ccAcl);

$front = Zend_Controller_Front::getInstance();
$front->registerPlugin($aclPlugin);
{'fraction_non_alphanumeric': 0.21598584753940173, 'fraction_numerical': 0.0, 'mean_word_length': 3.81719597211464, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 146, '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': '6631953', 'n_tokens_mistral': 2257, 'n_tokens_neox': 2164, 'n_words': 316}