<commit_before><?php
namespace app\controllers;

use Yii;

class Authorization 
{
    private static $admin = array(
        'anggota' => array('index','view','create','update','status'),
        'barang' => array('index','view','create','update','delete','produk','upload'),
        'pembayaran-pinjaman' => array('index','view','create','print-kuitansi','update','delete'),
        'settingan' => array('index','view','create','update','pokok','batal'),
        'site-anggota' => array('view','index','simpanan-anggota','pinjaman-anggota','logout'),
        'site' => array('index','login','logout','print-kuitansi','print-angsuran','print-transaksi'),
        'transaksi-pinjaman' => array('index','penunggak','view','update','delete','uang','barang','daftar','lihat'),
        'transaksi-simpanan' => array('index','view','wajib','sukarela','ambil','upload','daftar','list','simpanan-anggota','lihat','print-kuitansi','simpanan-anggota-print'),
        'user' => array('index','view','create','update','delete')
    );
    private static $anggota = array(
        'barang' => array('index','view','produk'),
        'site-anggota' => array('view','index','simpanan-anggota','pinjaman-anggota','logout'),
        'site' => array('login','logout')
    );
    private static $guest = array(
        'site' => array('login'),
    );

    public function authorize($controller, $action)
    {<commit_msg>update otorisasi guest<commit_after><?php
namespace app\controllers;

use Yii;

class Authorization 
{
    private static $admin = array(
        'anggota' => array('index','view','create','update','status'),
        'barang' => array('index','view','create','update','delete','produk','upload'),
        'pembayaran-pinjaman' => array('index','view','create','print-kuitansi','update','delete'),
        'settingan' => array('index','view','create','update','pokok','batal'),
        'site-anggota' => array('view','index','simpanan-anggota','pinjaman-anggota','logout'),
        'site' => array('index','login','logout','print-kuitansi','print-angsuran','print-transaksi'),
        'transaksi-pinjaman' => array('index','penunggak','view','update','delete','uang','barang','daftar','lihat'),
        'transaksi-simpanan' => array('index','view','wajib','sukarela','ambil','upload','daftar','list','simpanan-anggota','lihat','print-kuitansi','simpanan-anggota-print'),
        'user' => array('index','view','create','update','delete')
    );
    private static $anggota = array(
        'barang' => array('index','view','produk'),
        'site-anggota' => array('view','index','simpanan-anggota','pinjaman-anggota','logout'),
        'site' => array('login','logout')
    );
    private static $guest = array(
        'site' => array('login','index'),
    );

    public function authorize($controller, $action)
    {
{'fraction_non_alphanumeric': 0.2412327311370882, 'fraction_numerical': 0.0, 'mean_word_length': 5.179431072210066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '749819', 'n_tokens_mistral': 912, 'n_tokens_neox': 909, 'n_words': 100}