<commit_before>#include <stdlib.h>

int global_j;
const int ci = 24;

void main ( int argc, char **argv) {
	int local_stack = 0;
	char *const_data = "This data is constant";
	char *tiny = malloc(32);//分配32bytes
	char *small = malloc(2 * 1024);//分配2K字节
	char *large = malloc (1 * 1024 * 1024);//分配1M字节

	printf("Text is %p\n", main);
	printf("Global data is %p\n", &global_j);
	printf("local (stack) is  %p\n", &local_stack);
	printf("constant data is %p\n", &ci);
	printf("hardcoded string (also constant) are at %p\n", const_data);
	printf("tiny allocations from %p\n", tiny);
	printf("small allocations from %p\n", small);
	printf("large allocations from %p\n", large);
	printf("malloc (libSystem) is at %p\n", malloc);
	sleep(1000);
}<commit_msg>添加dirty内存的代码<commit_after>#include <stdlib.h>

int global_j;
const int ci = 24;

void main ( int argc, char **argv) {
	int local_stack = 0;
	char *const_data = "This data is constant";
	char *tiny = malloc(32);//分配32bytes
	char *small = malloc(2 * 1024);//分配2K字节
	char *large = malloc (1 * 1024 * 1024);//分配1M字节

	//added by lihux: dirty large block:
	large[0] = 'h';
	large[1 * 1024 * 1024 - 1] = 'z';
	//end of lihux

	printf("Text is %p\n", main);
	printf("Global data is %p\n", &global_j);
	printf("local (stack) is  %p\n", &local_stack);
	printf("constant data is %p\n", &ci);
	printf("hardcoded string (also constant) are at %p\n", const_data);
	printf("tiny allocations from %p\n", tiny);
	printf("small allocations from %p\n", small);
	printf("large allocations from %p\n", large);
	printf("malloc (libSystem) is at %p\n", malloc);
	sleep(1000);
}
{'fraction_non_alphanumeric': 0.17768079800498754, 'fraction_numerical': 0.040523690773067333, 'mean_word_length': 4.459183673469388, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3872479', 'n_tokens_mistral': 675, 'n_tokens_neox': 614, 'n_words': 186}