<commit_before>package com.bandwidth.iris.sdk.model;

import com.bandwidth.iris.sdk.IrisClient;
import com.bandwidth.iris.sdk.IrisPath;
import com.bandwidth.iris.sdk.IrisResponse;
import com.bandwidth.iris.sdk.utils.XmlUtils;
import org.apache.log4j.Logger;
import org.mortbay.jetty.HttpStatus;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "Reservation")
@XmlAccessorType(XmlAccessType.FIELD)
public class Reservation extends BaseModel {

    private static final Logger LOG = Logger.getLogger(Site.class);
    @XmlElement(name = "ReservationId")
    private String reservationId;
    @XmlElement(name = "AccountId")
    private String accountId;
    @XmlElement(name = "ReservationExpires")
    private String reservationExpires;
    @XmlElement(name = "ReservedTn")
    private List<String> reservedTn = new ArrayList<String>();

    public static Reservation create(IrisClient client, Reservation reservation) throws Exception {
        Reservation result = null;
        IrisResponse response = client.post(client.buildAccountModelUri(new String[] { IrisPath.RESERVATIONS_URI_PATH }),
                reservation);
        String id = client.getIdFromLocationHeader(response.getHeaders().get("Location"));
        result = get(client, id);
        if (response.getStatusCode() == HttpStatus.ORDINAL_400_Bad_Request) {<commit_msg>#6 Used different HttpStatus class since I removed Jetty from the classpath<commit_after>package com.bandwidth.iris.sdk.model;

import com.bandwidth.iris.sdk.IrisClient;
import com.bandwidth.iris.sdk.IrisPath;
import com.bandwidth.iris.sdk.IrisResponse;
import com.bandwidth.iris.sdk.utils.XmlUtils;

import org.apache.http.HttpStatus;
import org.apache.log4j.Logger;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "Reservation")
@XmlAccessorType(XmlAccessType.FIELD)
public class Reservation extends BaseModel {

    private static final Logger LOG = Logger.getLogger(Site.class);
    @XmlElement(name = "ReservationId")
    private String reservationId;
    @XmlElement(name = "AccountId")
    private String accountId;
    @XmlElement(name = "ReservationExpires")
    private String reservationExpires;
    @XmlElement(name = "ReservedTn")
    private List<String> reservedTn = new ArrayList<String>();

    public static Reservation create(IrisClient client, Reservation reservation) throws Exception {
        Reservation result = null;
        IrisResponse response = client.post(client.buildAccountModelUri(new String[] { IrisPath.RESERVATIONS_URI_PATH }),
                reservation);
        String id = client.getIdFromLocationHeader(response.getHeaders().get("Location"));
        result = get(client, id);
        if (response.getStatusCode() == HttpStatus.SC_BAD_REQUEST) {
{'fraction_non_alphanumeric': 0.1027180783817952, 'fraction_numerical': 0.0018963337547408343, 'mean_word_length': 4.850277264325324, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '6539000', 'n_tokens_mistral': 927, 'n_tokens_neox': 912, 'n_words': 189}