<commit_before>package seedu.todo.ui;

import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.text.Text;
import seedu.todo.model.task.Priority;
import seedu.todo.model.task.ReadOnlyTask;

public class TaskCard extends UiPart{

    private static final String FXML = "TaskListCard.fxml";

    @FXML
    private HBox cardPane;
    @FXML
    private Text name;
    @FXML
    private Label id;
    @FXML
    private Label details;
    @FXML
    private Label recurrence;
    @FXML
    private Label onDate;
    @FXML
    private Label byDate;
    @FXML
    private Label tags;
    @FXML
    private Circle priorityLevel;

    private ReadOnlyTask task;
    private int displayedIndex;

    public TaskCard(){

    }

    public static TaskCard load(ReadOnlyTask task, int displayedIndex){
        TaskCard card = new TaskCard();
        card.task = task;
        card.displayedIndex = displayedIndex;
        return UiPartLoader.loadUiPart(card);
    }
    //@@author A0121643R
    @FXML
    public void initialize() {
        name.setText(task.getName().fullName);
        if (task.getCompletion().isCompleted()) {
        	name.setFill(Color.LIGHTGREY);
        	name.setStyle("-fx-strikethrough: true");
        	name.setOpacity(50);
        }
        
        id.setText(displayedIndex + ". ");
        
        details.setText(task.getDetail().value);
        
        if (task.getOnDate().getDate() != null) {
            onDate.setText("Start: " + PrettifyDate.prettifyDate(task.getOnDate().getDate()) 
                            + " @ " + task.getOnDate().getTime());
        } else {
            onDate.setText("");
        }
        
        if (task.getByDate().getDate() != null) {
            byDate.setText("End: " + PrettifyDate.prettifyDate(task.getByDate().getDate()) 
                            + " @ " + task.getByDate().getTime());
        } else {
            byDate.setText("");
        }
        
        if (task.isRecurring()) {
            recurrence.setText("Every: " + task.getRecurrence().toString());
        } else {
            recurrence.setText("");
        }
        
        if (task.getPriority().toString().equals(Priority.LOW)) {
        	priorityLevel.setFill(Color.LIMEGREEN);
        } else if (task.getPriority().toString().equals(Priority.MID)) {
        	priorityLevel.setFill(Color.YELLOW);
        } else {
        	priorityLevel.setFill(Color.RED);
        }
        
        tags.setText(task.tagsString());
    }

    public HBox getLayout() {
        return cardPane;
    }

    @Override
    public void setNode(Node node) {
        cardPane = (HBox) node;
    }

    @Override
    public String getFxmlPath() {
        return FXML;
    }
}
<commit_msg>removed priority circle for completed task<commit_after>package seedu.todo.ui;

import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.text.Text;
import seedu.todo.model.task.Priority;
import seedu.todo.model.task.ReadOnlyTask;

public class TaskCard extends UiPart{

    private static final String FXML = "TaskListCard.fxml";

    @FXML
    private HBox cardPane;
    @FXML
    private Text name;
    @FXML
    private Label id;
    @FXML
    private Label details;
    @FXML
    private Label recurrence;
    @FXML
    private Label onDate;
    @FXML
    private Label byDate;
    @FXML
    private Label tags;
    @FXML
    private Circle priorityLevel;

    private ReadOnlyTask task;
    private int displayedIndex;

    public TaskCard(){

    }

    public static TaskCard load(ReadOnlyTask task, int displayedIndex){
        TaskCard card = new TaskCard();
        card.task = task;
        card.displayedIndex = displayedIndex;
        return UiPartLoader.loadUiPart(card);
    }
    
    //@@author A0121643R
    @FXML
    public void initialize() {
        name.setText(task.getName().fullName);
        if (task.getCompletion().isCompleted()) {
        	name.setFill(Color.LIGHTGREY);
        	name.setStyle("-fx-strikethrough: true");
        	name.setOpacity(50);
        }
        
        id.setText(displayedIndex + ". ");
        
        details.setText(task.getDetail().value);
        
        if (task.getOnDate().getDate() != null) {
            onDate.setText("Start: " + PrettifyDate.prettifyDate(task.getOnDate().getDate()) 
                            + " @ " + task.getOnDate().getTime());
        } else {
            onDate.setText("");
        }
        
        if (task.getByDate().getDate() != null) {
            byDate.setText("End: " + PrettifyDate.prettifyDate(task.getByDate().getDate()) 
                            + " @ " + task.getByDate().getTime());
        } else {
            byDate.setText("");
        }
        
        if (task.isRecurring()) {
            recurrence.setText("Every: " + task.getRecurrence().toString());
        } else {
            recurrence.setText("");
        }
        
    	if (task.getCompletion().isCompleted()) {
    		priorityLevel.setFill(Color.WHITE);
    		priorityLevel.setStroke(Color.WHITE);
    	} else if (task.getPriority().toString().equals(Priority.LOW)) {
        	priorityLevel.setFill(Color.LIMEGREEN);
        } else if (task.getPriority().toString().equals(Priority.MID)) {
        	priorityLevel.setFill(Color.YELLOW);
        } else {
        	priorityLevel.setFill(Color.RED);
        }
        
        tags.setText(task.tagsString());
    }

    public HBox getLayout() {
        return cardPane;
    }

    @Override
    public void setNode(Node node) {
        cardPane = (HBox) node;
    }

    @Override
    public String getFxmlPath() {
        return FXML;
    }
}

{'fraction_non_alphanumeric': 0.12246980779044055, 'fraction_numerical': 0.0030617451947610136, 'mean_word_length': 2.1343283582089554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1356817', 'n_tokens_mistral': 1810, 'n_tokens_neox': 1788, 'n_words': 326}