<commit_before>/* Simplecrypt - Simple Gmail file obfuscator. Public domain.
 * Use for executable attachments or archives containing executables.
 * Written in 2012 by <NAME> <<EMAIL>>
 * Idea by <NAME> <<EMAIL>>
 */

#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
	FILE *fd, *fd2;
	char a;
	if(argc < 2) {
		fprintf(stderr, "Not enough arguments!\n");
		exit(1);
	}
	if(!(fd = fopen(argv[1], "rb")) || !(fd2 = fopen(argv[2], "wb"))) {
		perror(argv[fd ? 2 : 1]);
		exit(1);
	}
	while(fread(&a, 1, 1, fd)) {
		a ^= 0xFF;
		fwrite(&a, 1, 1, fd2);
	}
	fclose(fd);
	fclose(fd2);
}<commit_msg>Historical import of simplecrypt<commit_after>/* Simplecrypt - Simple Gmail file obfuscator. Public domain.
 * Use for executable attachments or archives containing executables.
 * Written in 2012 by <NAME> <<EMAIL>>
 * Idea by <NAME> <<EMAIL>>
 */

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	FILE *fd, *fd2;
	char a;
	if(argc < 2) {
		fprintf(stderr, "Not enough arguments!\n");
		exit(1);
	}
	if(!(fd = fopen(argv[1], "rb")) || !(fd2 = fopen(argv[2], "wb"))) {
		perror(argv[fd ? 2 : 1]);
		exit(1);
	}
	while(fread(&a, 1, 1, fd)) {
		a ^= 0xFF;
		fwrite(&a, 1, 1, fd2);
	}
	fclose(fd);
	fclose(fd2);
	return 0;
}
{'fraction_non_alphanumeric': 0.20139968895800933, 'fraction_numerical': 0.03188180404354588, 'mean_word_length': 3.95, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 20, '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': '4300984', 'n_tokens_mistral': 581, 'n_tokens_neox': 533, 'n_words': 145}