<commit_before>package org.shkim.codility.maximumsliceproplem;

public class MaxDoubleSliceSum
{
	private static int double_slice(int A[], int X, int Y, int Z)
	{
		int sum = 0;
		for (int i = X + 1; i < Z; i++)
		{
			sum += A[i];
		}

		return sum - A[Y];
	}

	public static int solution(int A[])
	{

		// 0 ≤ X < Y < Z < N
		int N = A.length;

		int Y[] = new int[N];
		for (int i = 1; i < N - 1; i++)
		{
			Y[i] = Math.max(Y[i - 1] + A[i], 0);
		}

		int Z[] = new int[N];
		for (int i = N - 2; i > 0; i--)
		{
			Z[i] = Math.max(Z[i + 1] + A[i], 0);<commit_msg>2017-04-18 max doube slice sum change compile error<commit_after>package org.shkim.codility.maximumsliceproplem;

public class MaxDoubleSliceSum
{
	public static int double_slice(int A[], int X, int Y, int Z)
	{
		int sum = 0;
		for (int i = X + 1; i < Z; i++)
		{
			sum += A[i];
		}

		return sum - A[Y];
	}

	public static int solution(int A[])
	{

		// 0 ≤ X < Y < Z < N
		int N = A.length;

		int Y[] = new int[N];
		for (int i = 1; i < N - 1; i++)
		{
			Y[i] = Math.max(Y[i - 1] + A[i], 0);
		}

		int Z[] = new int[N];
		for (int i = N - 2; i > 0; i--)
		{
			Z[i] = Math.max(Z[i + 1] + A[i], 0);
{'fraction_non_alphanumeric': 0.1964133219470538, 'fraction_numerical': 0.025619128949615714, 'mean_word_length': 2.2555555555555555, 'pattern_counts': {'":': 0, '<': 13, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6987447', 'n_tokens_mistral': 602, 'n_tokens_neox': 524, 'n_words': 166}