<commit_before>package com.bitso;

import java.math.BigDecimal;
import java.util.HashMap;

import org.json.JSONArray;
import org.json.JSONObject;

import com.bitso.helpers.Helpers;

public class BitsoTransfer {
    public String walletAddress;
    public BigDecimal currencyAmount;
    public BigDecimal btcPending;
    public String confirmationCode;
    public String paymentOutletId;
    public String qrImgUri;
    public long createdAt;
    public BigDecimal currencyFees;
    public BigDecimal btcReceived;
    public BigDecimal btcAmount;
    public String currency;
    public String id;
    public String userUri;
    public HashMap<String, Object> fields;
    public BigDecimal currencySettled;
    public long expiresEpoch;

    public enum STATUS {
        pending, confirming, completed
    }

    public STATUS status;

    public BitsoTransfer(JSONObject json) {
        JSONObject o = json.getJSONObject("order");
        walletAddress = o.getString("wallet_address");
        currencyAmount = new BigDecimal(o.getString("currency_amount"));
        btcPending = new BigDecimal(o.getString("btc_pending"));
        confirmationCode = o.getString("confirmation_code");
        paymentOutletId = o.getString("payment_outlet_id");
        qrImgUri = o.getString("qr_img_uri");
        createdAt = Long.valueOf(o.getString("created_at"));
        currencyFees = new BigDecimal(o.getString("currency_fees"));
        btcReceived = new BigDecimal(o.getString("btc_received"));
        btcAmount = new BigDecimal(o.getString("btc_amount"));
        currency = o.getString("currency");
        id = o.getString("id");<commit_msg>transfer status could be expired<commit_after>package com.bitso;

import java.math.BigDecimal;
import java.util.HashMap;

import org.json.JSONArray;
import org.json.JSONObject;

import com.bitso.helpers.Helpers;

public class BitsoTransfer {
    public String walletAddress;
    public BigDecimal currencyAmount;
    public BigDecimal btcPending;
    public String confirmationCode;
    public String paymentOutletId;
    public String qrImgUri;
    public long createdAt;
    public BigDecimal currencyFees;
    public BigDecimal btcReceived;
    public BigDecimal btcAmount;
    public String currency;
    public String id;
    public String userUri;
    public HashMap<String, Object> fields;
    public BigDecimal currencySettled;
    public long expiresEpoch;

    public enum STATUS {
        pending, confirming, completed, expired
    }

    public STATUS status;

    public BitsoTransfer(JSONObject json) {
        JSONObject o = json.getJSONObject("order");
        walletAddress = o.getString("wallet_address");
        currencyAmount = new BigDecimal(o.getString("currency_amount"));
        btcPending = new BigDecimal(o.getString("btc_pending"));
        confirmationCode = o.getString("confirmation_code");
        paymentOutletId = o.getString("payment_outlet_id");
        qrImgUri = o.getString("qr_img_uri");
        createdAt = Long.valueOf(o.getString("created_at"));
        currencyFees = new BigDecimal(o.getString("currency_fees"));
        btcReceived = new BigDecimal(o.getString("btc_received"));
        btcAmount = new BigDecimal(o.getString("btc_amount"));
        currency = o.getString("currency");
        id = o.getString("id");
{'fraction_non_alphanumeric': 0.09297395517867958, 'fraction_numerical': 0.0, 'mean_word_length': 3.6917613636363638, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2390315', 'n_tokens_mistral': 911, 'n_tokens_neox': 908, 'n_words': 220}