<commit_before>#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>

using namespace std;

class Quipu {
public:
	int readKnots(string);
};

int Quipu::readKnots(string knots) {
	int Xs = 0;
	string ans = "";
	for (char k : knots.substr(1)) {
		if (k == 'X') {
			Xs++;
		} else {
			if (Xs) {
				ans += '0' + Xs;
				Xs = 0;
			} else {
				ans += '0';
			}
			printf("ans = %s\n", ans.c_str());				
		}		
	}
	return stoi(ans);<commit_msg>Remove redundant lines for '0' digits<commit_after>#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>

using namespace std;

class Quipu {
public:
	int readKnots(string);
};

int Quipu::readKnots(string knots) {
	int Xs = 0;
	string ans = "";
	for (char k : knots.substr(1)) {
		if (k == 'X') {
			Xs++;
		} else {
			ans += '0' + Xs;
			Xs = 0;
			printf("ans = %s\n", ans.c_str());				
		}		
	}
	return stoi(ans);
{'fraction_non_alphanumeric': 0.1801994301994302, 'fraction_numerical': 0.007122507122507123, 'mean_word_length': 4.03584229390681, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '4981338', 'n_tokens_mistral': 627, 'n_tokens_neox': 568, 'n_words': 151}