<commit_before>#include <iostream>

using namespace std;

class Solution
{
	public:
		int removeDuplicates(int a[],int n)
		{
			if(n < 2)
				return n;
			int j = 1;
			int i;
			for(i = 1; i < n; i++)
			{
				if(a[j - 1] != a[i])
					a[j++] = a[i];
			}
			return j;		
		}
};

int main()
{
	Solution test;
	int A[] = {1,1,2};
	std::cout<< test.removeDuplicates(A,3) <<std::endl;
	return 0;
}
<commit_msg>从数组中移除重复的数据<commit_after>#include <iostream>

using namespace std;

class Solution
{
	public:
		int removeDuplicates(int a[],int n)
		{
			if(n < 2)
				return n;
			int j = 1;
			int i;
			for(i = 1; i < n; i++)
			{
				if(a[j - 1] != a[i])
					a[j++] = a[i];
			}
			return j;		
		}
};

int main()
{
	Solution test;
	int A[] = {1,1,2};
	std::cout<< test.removeDuplicates(A,3) <<std::endl;
	
	return 0;
}

{'fraction_non_alphanumeric': 0.19607843137254902, 'fraction_numerical': 0.022058823529411766, 'mean_word_length': 2.567685589519651, 'pattern_counts': {'":': 0, '<': 17, '<?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': '7301463', 'n_tokens_mistral': 448, 'n_tokens_neox': 382, 'n_words': 90}