<commit_before>package seedu.task.ui;

import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.task.model.task.ReadOnlyTask;

public class TaskCard extends UiPart<Region> {

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

    @FXML
    private HBox cardPane;
    @FXML
    private Label taskName;
    @FXML
    private Label id;
    @FXML
    private Label taskDate;
    @FXML
    private Label taskTime;
    @FXML
    private Label taskDescription;
    @FXML
    private Label taskStatus;
    @FXML
    private FlowPane tags;

    public TaskCard(ReadOnlyTask task, int displayedIndex) {
	super(FXML);

	id.setText(displayedIndex + ". ");
	if (task.getTaskName() != null) {
	    taskName.setText(task.getTaskName().toString());
	}
	if (task.getTaskDate() != null) {
	    taskDate.setText("Date : " + task.getTaskDate().toString());
	} else
	    taskDate.setText("Date: -");
	if (task.getTaskStartTime() != null && task.getTaskEndTime() != null) {
	    taskTime.setText("Time: " + task.getTaskStartTime().toString() + "-" + task.getTaskEndTime());
	} else if (task.getTaskStartTime() != null) {
	    taskTime.setText("Start Time: "+task.getTaskStartTime().toString());
	} else if (task.getTaskEndTime() != null) {
	    taskTime.setText("End Time: "+task.getTaskEndTime().toString());
	} else
	    taskTime.setText("Time: -");
	if (task.getTaskDescription() != null) {

	    taskDescription.setText("Description: " + task.getTaskDescription().toString());
	} else
	    taskDescription.setText("Description: -");
	taskStatus.setText("Task Status: " + task.getTaskStatus().toString() );

	initTags(task);
    }

    private void initTags(ReadOnlyTask task) {
	task.getTags().forEach(tag -> tags.getChildren().add(new Label(tag.tagName)));
    }
}<commit_msg>Update TaskCard.java<commit_after>package seedu.task.ui;

import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.task.model.task.ReadOnlyTask;

//@@author A0146757R
public class TaskCard extends UiPart<Region> {

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

    @FXML
    private HBox cardPane;
    @FXML
    private Label taskName;
    @FXML
    private Label id;
    @FXML
    private Label taskDate;
    @FXML
    private Label taskTime;
    @FXML
    private Label taskDescription;
    @FXML
    private Label taskStatus;
    @FXML
    private FlowPane tags;

    public TaskCard(ReadOnlyTask task, int displayedIndex) {
	super(FXML);

	id.setText(displayedIndex + ". ");
	if (task.getTaskName() != null) {
	    taskName.setText(task.getTaskName().toString());
	}
	if (task.getTaskDate() != null) {
	    taskDate.setText("Date : " + task.getTaskDate().toString());
	} else
	    taskDate.setText("Date: -");
	if (task.getTaskStartTime() != null && task.getTaskEndTime() != null) {
	    taskTime.setText("Time: " + task.getTaskStartTime().toString() + "-" + task.getTaskEndTime());
	} else if (task.getTaskStartTime() != null) {
	    taskTime.setText("Start Time: "+task.getTaskStartTime().toString());
	} else if (task.getTaskEndTime() != null) {
	    taskTime.setText("End Time: "+task.getTaskEndTime().toString());
	} else
	    taskTime.setText("Time: -");
	if (task.getTaskDescription() != null) {

	    taskDescription.setText("Description: " + task.getTaskDescription().toString());
	} else
	    taskDescription.setText("Description: -");
	taskStatus.setText("Task Status: " + task.getTaskStatus().toString() );

	initTags(task);
    }
//@@author
    private void initTags(ReadOnlyTask task) {
	task.getTags().forEach(tag -> tags.getChildren().add(new Label(tag.tagName)));
    }
}
{'fraction_non_alphanumeric': 0.15060240963855423, 'fraction_numerical': 0.0018334206390780514, 'mean_word_length': 3.953307392996109, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4999919', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1214, 'n_words': 238}