<commit_before>package synapticloop.b2.response;

/*
 * Copyright (c) 2016 iterate GmbH.
 *
 * All rights reserved.
 *
 * This code may contain contributions from other parties which, where
 * applicable, will be listed in the default build file for the project
 * ~and/or~ in a file named CONTRIBUTORS.txt in the root of the project.
 *
 * This source code and any derived binaries are covered by the terms and
 * conditions of the Licence agreement ("the Licence").  You may not use this
 * source code or any derived binaries except in compliance with the Licence.
 * A copy of the Licence is available in the file named LICENSE.txt shipped with
 * this source code or binaries.
 */

import org.json.JSONArray;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import synapticloop.b2.exception.B2ApiException;

import java.util.ArrayList;
import java.util.List;

public class B2ListPartsResponse extends BaseB2Response {
	private static final Logger LOGGER = LoggerFactory.getLogger(B2ListPartsResponse.class);

	private final String nextPartNumber;
	private final List<B2UploadPartResponse> files;

	public B2ListPartsResponse(String json) throws B2ApiException {
		super(json);

		this.nextPartNumber = this.readString(B2ResponseProperties.KEY_NEXT_FILE_ID);

		JSONArray filesArray = this.readObjects(B2ResponseProperties.KEY_PARTS);

		files = new ArrayList<B2UploadPartResponse>();
		for(int i = 0; i < filesArray.length(); i ++) {
			files.add(new B2UploadPartResponse(filesArray.optJSONObject(i)));
		}

		this.warnOnMissedKeys();
	}

	public String getNextPartNumber() {
		return nextPartNumber;
	}

	public List<B2UploadPartResponse> getFiles() {
		return files;
	}

	@Override
	protected Logger getLogger() { return LOGGER; }
}
<commit_msg>Fix type of nextPartNumber.<commit_after>package synapticloop.b2.response;

/*
 * Copyright (c) 2016 iterate GmbH.
 *
 * All rights reserved.
 *
 * This code may contain contributions from other parties which, where
 * applicable, will be listed in the default build file for the project
 * ~and/or~ in a file named CONTRIBUTORS.txt in the root of the project.
 *
 * This source code and any derived binaries are covered by the terms and
 * conditions of the Licence agreement ("the Licence").  You may not use this
 * source code or any derived binaries except in compliance with the Licence.
 * A copy of the Licence is available in the file named LICENSE.txt shipped with
 * this source code or binaries.
 */

import org.json.JSONArray;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import synapticloop.b2.exception.B2ApiException;

import java.util.ArrayList;
import java.util.List;

public class B2ListPartsResponse extends BaseB2Response {
	private static final Logger LOGGER = LoggerFactory.getLogger(B2ListPartsResponse.class);

	private final Integer nextPartNumber;
	private final List<B2UploadPartResponse> files;

	public B2ListPartsResponse(String json) throws B2ApiException {
		super(json);

		this.nextPartNumber = this.readInt(B2ResponseProperties.KEY_NEXT_FILE_ID);

		JSONArray filesArray = this.readObjects(B2ResponseProperties.KEY_PARTS);

		files = new ArrayList<B2UploadPartResponse>();
		for (int i = 0; i < filesArray.length(); i++) {
			files.add(new B2UploadPartResponse(filesArray.optJSONObject(i)));
		}

		this.warnOnMissedKeys();
	}

	public Integer getNextPartNumber() {
		return nextPartNumber;
	}

	public List<B2UploadPartResponse> getFiles() {
		return files;
	}

	@Override
	protected Logger getLogger() { return LOGGER; }
}

{'fraction_non_alphanumeric': 0.08123407868666856, 'fraction_numerical': 0.011887913954146618, 'mean_word_length': 4.822075782537068, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '4554694', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1012, 'n_words': 344}