<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author salifu
 */
public class Task {
    private enum kind{personal,group};
    kind thekind;
    private String id;
    private String description;
    private String fulltask;
    private String date_added;
    private String date_to_finish;
    private String start_date;
    private String date_finished;
    private int progress;
    private String picture;
    private enum task_type{personal, group};
    task_type thetype;
    
    
    public  Task(String id, String thekind, String desc, String full, String added, String to_finish,
            String start, String picture, String task_type){
        this.id = id; setkind(thekind); description = desc; fulltask = full; date_added = added; 
        date_to_finish = to_finish; start_date = start; this.picture = picture; settask(task_type);
        
         
    }
    
    //ID
    public String getid(){
        return id;
    }
    
    //Task kind
    public void setkind(String k){
        switch(k){
            case "personal": thekind = kind.personal;
                break;
            case "group": thekind = kind.group;
                break;
        }
    }
    public kind getkind(){
        return thekind;
    }
    
    //Task type
    private void settype(String t){
        switch(t){
            case "personal": thetype = task_type.personal;
                break;
            case "group": thetype = task_type.personal;
                break;
        }
    }
    public task_type gettype(){
        return thetype;
    }
    
    //Description
    public void setdesc(String desc){
        description = desc;
    }
    public String getdesc(){
        return description;
    }
    
    //full task
    public void settask(String task){
        fulltask = task;
    }
    public String getTask(){
        return fulltask;
    }
    
    //Date added
    public void added(String dateText){
        date_added = dateText;
    }
    public String getadded(){
        return date_added;
    }
    
    //Date to finish
    public void setfinish(String tofinish){
        date_to_finish = tofinish;
    }
    public String tofinish(){
        return date_to_finish;
    }
    
    //finish date
    public void setFinished(String finished){
        date_to_finish =  finished;
    }
    public String getFinished(){
        return date_finished;
    }<commit_msg>setdate_added() removed since it will be set automatically when the user inserts new task.<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author salifu
 */
public class Task {
    private enum kind{personal,group};
    kind thekind;
    private String id;
    private String description;
    private String fulltask;
    private String date_added;
    private String date_to_finish;
    private String start_date;
    private String date_finished;
    private int progress;
    private String picture;
    private enum task_type{personal, group};
    task_type thetype;
    
    
    public  Task(String id, String thekind, String desc, String full, String added, String to_finish,
            String start, String picture, String task_type){
        this.id = id; setkind(thekind); description = desc; fulltask = full; date_added = added; 
        date_to_finish = to_finish; start_date = start; this.picture = picture; settask(task_type);    
    }
    
    //ID
    public String getid(){
        return id;
    }
    
    //Task kind
    public void setkind(String k){
        switch(k){
            case "personal": thekind = kind.personal;
                break;
            case "group": thekind = kind.group;
                break;
        }
    }
    public kind getkind(){
        return thekind;
    }
    
    //Task type
    private void settype(String t){
        switch(t){
            case "personal": thetype = task_type.personal;
                break;
            case "group": thetype = task_type.personal;
                break;
        }
    }
    public task_type gettype(){
        return thetype;
    }
    
    //Description
    public void setdesc(String desc){
        description = desc;
    }
    public String getdesc(){
        return description;
    }
    
    //full task
    public void settask(String task){
        fulltask = task;
    }
    public String getTask(){
        return fulltask;
    }
    
    //Date added
    public String getadded(){
        return date_added;
    }
    
    //Date to finish
    public void setfinish(String tofinish){
        date_to_finish = tofinish;
    }
    public String tofinish(){
        return date_to_finish;
    }
    
    //finish date
    public void setFinished(String finished){
        date_to_finish =  finished;
    }
    public String getFinished(){
        return date_finished;
    }
{'fraction_non_alphanumeric': 0.08055393017359079, 'fraction_numerical': 0.0, 'mean_word_length': 2.0200235571260308, 'pattern_counts': {'":': 8, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7206700', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1393, 'n_words': 451}