<commit_before>/*
** Copyright 2001, <NAME>. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

#ifndef O_BINARY
#define O_BINARY 0
#endif

void usage(char const *progname)
{
	printf("usage: %s [-p #padding] bootblock payload outfile\n", progname);
}

int main(int argc, char *argv[])
{
	struct stat st;
	int err;
	unsigned int blocks;
	unsigned char bootsector[1024];
	unsigned char buf[512];
	size_t read_size;
	size_t written_bytes;
	int padding;
	int infd;
	int outfd;
	char opt;
	char const *progname;

	padding = 0;
	progname = argv[0];<commit_msg>Bug in makeflop.c: on ppc hosts, 'char' is apparently unsigned. Explicitly make it signed.<commit_after>/*
** Copyright 2001, <NAME>. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

#ifndef O_BINARY
#define O_BINARY 0
#endif

void usage(char const *progname)
{
	printf("usage: %s [-p #padding] bootblock payload outfile\n", progname);
}

int main(int argc, char *argv[])
{
	struct stat st;
	int err;
	unsigned int blocks;
	unsigned char bootsector[1024];
	unsigned char buf[512];
	size_t read_size;
	size_t written_bytes;
	int padding;
	int infd;
	int outfd;
	signed char opt;
	char const *progname;

	padding = 0;
	progname = argv[0];
{'fraction_non_alphanumeric': 0.12793914246196403, 'fraction_numerical': 0.019363762102351315, 'mean_word_length': 4.608527131782946, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2929953', 'n_tokens_mistral': 568, 'n_tokens_neox': 526, 'n_words': 175}