<commit_before><?php

/**
 * This is a "CMS" model for folders.
 *
 * @author Stephanie
 */
class Folders extends MY_Model {
    
    //constructor
    function __construct() {
        parent::__construct('folders', 'id');
    }
    
    //retrun all folder names, alphabetically
    function all() {
        $this->db->order_by("foldername");
        $this->db->select('foldername');
        $query = $this->db->get('photos');
        return $query->result_array();
    }   
}<commit_msg>Edit* Select distinct folder names. Signed-off-by:<NAME> <<EMAIL>><commit_after><?php

/**
 * This is a "CMS" model for folders.
 *
 * @author Stephanie
 */
class Folders extends MY_Model {
    
    //constructor
    function __construct() {
        parent::__construct('folders', 'id');
    }
    
    //retrun all folder names, alphabetically
    function all() {
        $this->db->distinct();
        $this->db->select('foldername');
        $query = $this->db->get('photos');
        return $query->result_array();
    }   
}
{'fraction_non_alphanumeric': 0.16584887144259078, 'fraction_numerical': 0.0, 'mean_word_length': 2.5416666666666665, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 20, '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': '3196627', 'n_tokens_mistral': 323, 'n_tokens_neox': 313, 'n_words': 70}