<commit_before>#include <stdio.h>
#include <string.h>
#include <math.h>

double plus(double a, double b) {return a + b;}
double mino(double a, double b) {return a - b;}
double time(double a, double b) {return a * b;}
double devi(double a, double b) {return a / b;}

int main(int argc, char* argv[]) {
	char s[1000];
	int i, end = 0;
	int temp[1000], tidx = 0;
	memset(temp, 0, sizeof(temp[0]));
	scanf("%s", s);
	double (*cal[])(double, double) = {
		plus, mino, time, devi
	};
	for(i = 0; i < strlen(s); i++) {
		if(s[i] == ' ') {
			end = 1;
		}
		else {
			switch(s[i]) {
				case '+':
					temp[tidx++] = 0;
					break;
				case '-':
					temp[tidx++] = 1;
					break;
				case '*':
					temp[tidx++] = 2;
					break;
				case '/':
					temp[tidx++] = 3;
					break;
				default:
					break;
			}
		}
	}
	return 0;
}<commit_msg>别着急，我们慢慢来。。<commit_after>#include <stdio.h>
#include <string.h>
#include <math.h>

float plus(float a, float b) {return a + b;}
float mino(float a, float b) {return a - b;}
float time(float a, float b) {return a * b;}
float devi(float a, float b) {return a / b;}

int main(int argc, char* argv[]) {
	char s[1000];
	int i, end = 0;
	int temp[1000], tidx = 0;
	float num[1000]; int nidx = 0;
	memset(temp, 0, sizeof(temp[0]));
	gets(s);
	float (*cal[])(float, float) = {
		plus, mino, time, devi
	};
	for(i = 0; i < strlen(s); i++) {
		if(s[i] == ' ') {
			end = 1;
		}
		else {
			int isNum = 0;
			end = 0;
			switch(s[i]) {
				case '+':
					temp[tidx++] = 0;
					break;
				case '-':
					temp[tidx++] = 1;
					break;
				case '*':
					temp[tidx++] = 2;
					break;
				case '/':
					temp[tidx++] = 3;
					break;
				default:
					isNum++;
					break;
			}
			if(isNum) {
				int idx = 0;
				char t[10];
				memset(t, 0, sizeof(t[0]));
				while(s[i + idx] != ' ') {
					t[idx] = s[i + idx];
					idx++;
				}
				i += idx;
				num[nidx++] = atof(t);
			}
			else {
				i++;
			}
		}
	}
	// for(i = 0; i < nidx; i++) {
	// 	printf("%f\n", num[i]);
	// }
	// for(i = 0; i < tidx; i++) {
	// 	printf("%d\n", temp[i]);
	// }
	return 0;
}
{'fraction_non_alphanumeric': 0.22254335260115607, 'fraction_numerical': 0.025048169556840076, 'mean_word_length': 2.317891373801917, 'pattern_counts': {'":': 0, '<': 13, '<?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': '108634', 'n_tokens_mistral': 1116, 'n_tokens_neox': 899, 'n_words': 235}