<commit_before><?php
class Group_model extends CI_Model{

	public function __construct()
	{

	}

		// Set group in db
	public function set_groups()
	{
		$data = array(
			'name' => $this->input->post('name')
			);

		return $this->db->insert('group', $data);
	}

		// Set users in 'one' group in db 
	public function set_users_group()
	{
		$data = array(
			'username' => $this->input->post('username'),
			'groupname' => $this->session->userdata('name')
			);
	
		return $this->db->insert('users', $data);
	}

		// Get all groups
	public function Getgroups()
	{
		return $this->db->get('group')->result();
    }

    	// Get 'one' group by groupname
	public function GetOneGroup()
    {
    	$this->db->select('username');
    	$this->db->where('groupname', $this->session->userdata('name'));
    	return $this->db->get('users')->result();
    }

    	// Delete 'one' group by id
    public function Delgroups($id)
    {
		$this->db->where('id', $id);
		$this->db->delete('group');
	}

		// Delete all groups, refresh a/i
    public function DelAllGroups()
    {
		$this->db->truncate('group');
	}

		// Delete all users, refresh a/i
	public function DellAllUsers()
	{
		$this->db->truncate('users');<commit_msg>the admin can see which groups are ready<commit_after><?php
class Group_model extends CI_Model{

	public function __construct()
	{

	}

		// Set group in db
	public function set_groups()
	{
		$data = array(
			'name' => $this->input->post('name')
			);

		return $this->db->insert('group', $data);
	}

		// Set users in 'one' group in db 
	public function set_users_group()
	{
		$data = array(
			'username' => $this->input->post('username'),
			'groupname' => $this->session->userdata('name')
			);
	
		return $this->db->insert('users', $data);
	}

		// Get all groups
	public function Getgroups()
	{
		$this->db->where('status', 1);
		return $this->db->get('group')->result();
    }

    	// Get 'one' group by groupname
	public function GetOneGroup()
    {
    	$this->db->select('username');
    	$this->db->where('groupname', $this->session->userdata('name'));
    	return $this->db->get('users')->result();
    }

    	// Delete 'one' group by id
    public function Delgroups($id)
    {
		$this->db->where('id', $id);
		$this->db->delete('group');
	}

		// Delete all groups, refresh a/i
    public function DelAllGroups()
    {
		$this->db->truncate('group');
	}

		// Delete all users, refresh a/i
	public function DellAllUsers()
	{
		$this->db->truncate('users');
{'fraction_non_alphanumeric': 0.19428801287208367, 'fraction_numerical': 0.00040225261464199515, 'mean_word_length': 3.186868686868687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 71, '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': '2344271', 'n_tokens_mistral': 923, 'n_tokens_neox': 842, 'n_words': 190}