<commit_before>package com.buterfleoge.whale.type.protocol.order.object;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

import com.buterfleoge.whale.Constants.Pattern;
import com.buterfleoge.whale.type.formatter.ImagePathFormat;
import com.buterfleoge.whale.type.formatter.ImagePathFormat.Prefix;

/**
 * @author Brent24
 *
 */
public class BriefOrder implements Comparable<BriefOrder> {

    // order info

    private Long orderid;

    private Integer status;

    @NumberFormat(style = Style.CURRENCY)
    private BigDecimal actualPrice;

    private Long timeLeft;

    private Set<String> travellerNames;

    // route info

    private Long routeid;

    private String name;

    private String title;

    @ImagePathFormat(prefix = Prefix.ROUTE)
    private String headImg;

    // group info

    @DateTimeFormat(pattern = Pattern.DATE)
    private Date startDate;

    @DateTimeFormat(pattern = Pattern.DATE)
    private Date endDate;

    private String wxQrCode;

    private Long dayLeft;

    // sort排序顺序
    // public Integer getOrder() {
    // switch (status.value) {
    // case PAID:
    // return 1;
    // case WAITING:
    // return 2;
    // case PAYING:
    // return 3;
    // case REFOUNDING:
    // return 4;
    // case REFOUNDED:
    // return 5;
    // case FINISH:
    // return 6;
    // case CANCELPAYMENT:
    // return 7;
    // case CANCEL:
    // return 8;
    // case TIMEOUT:
    // return 9;
    // default:
    // return 100;
    // }
    // }

    @Override
    public int compareTo(BriefOrder arg0) {
        // return this.getOrder().compareTo(arg0.getOrder());
        return status - arg0.getStatus();
    }
<commit_msg>getBriefOrder<commit_after>package com.buterfleoge.whale.type.protocol.order.object;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

import com.buterfleoge.whale.Constants.Pattern;
import com.buterfleoge.whale.type.OrderStatus;
import com.buterfleoge.whale.type.formatter.ImagePathFormat;
import com.buterfleoge.whale.type.formatter.ImagePathFormat.Prefix;

/**
 * @author Brent24
 *
 */
public class BriefOrder implements Comparable<BriefOrder> {

    // order info

    private Long orderid;

    private Integer status;

    @NumberFormat(style = Style.CURRENCY)
    private BigDecimal actualPrice;

    private Long timeLeft;

    private Set<String> travellerNames;

    // route info

    private Long routeid;

    private String name;

    private String title;

    @ImagePathFormat(prefix = Prefix.ROUTE)
    private String headImg;

    // group info

    @DateTimeFormat(pattern = Pattern.DATE)
    private Date startDate;

    @DateTimeFormat(pattern = Pattern.DATE)
    private Date endDate;

    private String wxQrCode;

    private Long dayLeft;

    /**
     * {@inheritDoc}
     *
     * @see OrderStatus
     */
    @Override
    public int compareTo(BriefOrder arg0) {
        return status - arg0.getStatus();
    }

{'fraction_non_alphanumeric': 0.10137972405518897, 'fraction_numerical': 0.00629874025194961, 'mean_word_length': 2.9467455621301775, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6723406', 'n_tokens_mistral': 1058, 'n_tokens_neox': 994, 'n_words': 228}