<commit_before>package org.trianacode.pegasus.dax;

import org.trianacode.gui.main.imp.MainTrianaTask;
import org.trianacode.taskgraph.Task;

import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: ian
 * Date: Sep 9, 2010
 * Time: 1:39:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class DaxFileTrianaTask extends MainTrianaTask {

    //  private FileTrianaTaskDecoration docView = new FileTrianaTaskDecoration();
    Task task;
    /**
     * Constructs a new MainTrianaTask for viewing the specified task
     */
    public DaxFileTrianaTask(Task task) {
        super(task);
        this.task = task;
        setSize(450, 450);

        //   docView.setVisible(true);
        //   add(docView);
    }

    public Task getTask(){
        return task;
    }

    public void paintComponent(Graphics g){
        Color c = g.getColor();

        boolean collection = (Boolean)getTask().getParameter("collection");

        if(collection){
            g.setColor(Color.cyan.darker());
            g.fillRoundRect(5, 0, getSize().width - 5, getSize().height - 5, 5, 10);
            g.setColor(Color.cyan);
            g.fillRoundRect(0, 5, getSize().width - 5, getSize().height - 5, 5, 10);
        }else{
            g.setColor(Color.cyan);
            g.fillRoundRect(0, 0, getSize().width, getSize().height, 5, 10);
        }


        g.setColor(c);
        paintProcessProgress(g);
    }

//    public void mouseEntered(MouseEvent e){}
}
<commit_msg>DaxFileTrianaTask<commit_after>package org.trianacode.pegasus.dax;

import org.trianacode.gui.main.imp.MainTrianaTask;
import org.trianacode.taskgraph.Task;

import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: ian
 * Date: Sep 9, 2010
 * Time: 1:39:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class DaxFileTrianaTask extends MainTrianaTask {

    //  private FileTrianaTaskDecoration docView = new FileTrianaTaskDecoration();
    Task task;
    /**
     * Constructs a new MainTrianaTask for viewing the specified task
     */
    public DaxFileTrianaTask(Task task) {
        super(task);
        this.task = task;
        setSize(450, 450);

        //   docView.setVisible(true);
        //   add(docView);
    }

    public Task getTask(){
        return task;
    }

    public void paintComponent(Graphics g){
        Color c = g.getColor();

        if(isCollection()){
            g.setColor(Color.cyan.darker());
            g.fillRoundRect(5, 0, getSize().width - 5, getSize().height - 5, 5, 10);
            g.setColor(Color.cyan);
            g.fillRoundRect(0, 5, getSize().width - 5, getSize().height - 5, 5, 10);
        }else{
            g.setColor(Color.cyan);
            g.fillRoundRect(0, 0, getSize().width, getSize().height, 5, 10);
        }


        g.setColor(c);
        paintProcessProgress(g);
    }

    private boolean isCollection(){
        Object o = getTask().getParameter("collection");
        if(o.equals(true)){
            return true;
        }else{
            return false;
        }
    }
}

{'fraction_non_alphanumeric': 0.12755598831548198, 'fraction_numerical': 0.022719896137617657, 'mean_word_length': 2.2857142857142856, 'pattern_counts': {'":': 0, '<': 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': '5714155', 'n_tokens_mistral': 1048, 'n_tokens_neox': 971, 'n_words': 223}