<commit_before>#define _LARGEFILE64_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#define MAX_ROW 16

typedef struct {
	char flag; char *desc;
	int len; int sign; int endy; int test;
	char *form;
	long neglim;
	char *negform;
	int nl;
} outputtype;
static outputtype output[] = {
	{ 'b', "binary",               1, 0, 0, 0, NULL,     0, NULL, 0 },
	{ 'o', "octal bytes",          1, 0, 0, 0, "%03o",   0, NULL, 1 },
	{ 's', "short",                2, 1, 0, 0, "%6d",    0, NULL, 0 },
	{ 'S', "unsigned short",       2, 0, 0, 0, " %5u",   0, NULL, 1 },
	{ 'n', "network short",        2, 0, 1, 0, " %5u",   0, NULL, 0 },
	{ 'N', "network long",         4, 0, 1, 0, " %11u",  0, NULL, 1 },
	{ 'v', "VAX short",            2, 0, 0, 0, " %5u",   0, NULL, 0 },
	{ 'V', "VAX long",             4, 0, 0, 0, " %11u",  0, NULL, 1 },
	{ 'g', "rounded float",        4, 0, 0, 0, "  %.4g", 0, NULL, 0 },
	{ 'G', "net rounded float",    4, 0, 1, 0, "  %.4g", 0, NULL, 1 },
	{ 'd', "double",               8, 0, 0, 0, " %23f",  0, NULL, 0 },
	{ 'D', "net double",           8, 0, 1, 0, " %23f",  0, NULL, 1 },
	{ 'i', "int",                  4, 1, 0, 0, " %11d",  0, NULL, 0 },
	{ 'I', "unsigned int",         4, 0, 0, 0, " %11u",  0, NULL, 0 },
	{ 'l', "long",                 4, 1, 0, 0, " %11d",  0, NULL, 0 },
	{ 'L', "unsigned long",        4, 0, 0, 0, " %11u",  0, NULL, 0 },
	{ '#', "sort-of-signed int",   4, 1, 0, 0, " %11d",  -50000, " %11u", 1 },
	{ 0,   NULL,                   0, 0, 0, 0, NULL,     0, NULL, 0 }
};
typedef struct { char flag; char *longf; char *desc; long *test; } flagtype;
static long blk = 0, dec = 0, space = 0, nopipe = 0, forcepipe = 0, noenv = 0;
static long nochars = 0, notrail = 0, verbose = 0;
static long skinny_row = 0;/*, extra_row = 0;*/
static flagtype flags[] = {
	{ 'C', NULL, "Don't show the ASCII-ish output", &nochars },
	{ 0, NULL, "Display options", NULL },
	{ '_', "space", "show spaces as spaces (default: ·)", &space },
	{ 'T', NULL, "Don't pad the byte-line with trailing '--'s", &notrail },
	{ 'D', "decimal", "show decimal offsets, too", &dec },
	{ 'B', "blocks", "show {512,256,128,64,32}-byte block offsets, too", &blk },
	{ '8', "skinny", "Use rows of 8 bytes, not 16", &skinny_row },
/*	{ '.', "halfrow", "Output a second row offset by half", &extra_row },*/
	{ 0, NULL, "General options", NULL },<commit_msg>Added option to print decimal bytes.<commit_after>#define _LARGEFILE64_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#define MAX_ROW 16

typedef struct {
	char flag; char *desc;
	int len; int sign; int endy; int test;
	char *form;
	long neglim;
	char *negform;
	int nl;
} outputtype;
static outputtype output[] = {
	{ 'b', "binary",               1, 0, 0, 0, NULL,     0, NULL, 0 },
	{ 'o', "octal bytes",          1, 0, 0, 0, "%03o",   0, NULL, 0 },
	{ '1', "decimal bytes",        1, 0, 0, 0, "%03d",   0, NULL, 1 },
	{ 's', "short",                2, 1, 0, 0, "%6d",    0, NULL, 0 },
	{ 'S', "unsigned short",       2, 0, 0, 0, " %5u",   0, NULL, 1 },
	{ 'n', "network short",        2, 0, 1, 0, " %5u",   0, NULL, 0 },
	{ 'N', "network long",         4, 0, 1, 0, " %11u",  0, NULL, 1 },
	{ 'v', "VAX short",            2, 0, 0, 0, " %5u",   0, NULL, 0 },
	{ 'V', "VAX long",             4, 0, 0, 0, " %11u",  0, NULL, 1 },
	{ 'g', "rounded float",        4, 0, 0, 0, "  %.4g", 0, NULL, 0 },
	{ 'G', "net rounded float",    4, 0, 1, 0, "  %.4g", 0, NULL, 1 },
	{ 'd', "double",               8, 0, 0, 0, " %23f",  0, NULL, 0 },
	{ 'D', "net double",           8, 0, 1, 0, " %23f",  0, NULL, 1 },
	{ 'i', "int",                  4, 1, 0, 0, " %11d",  0, NULL, 0 },
	{ 'I', "unsigned int",         4, 0, 0, 0, " %11u",  0, NULL, 0 },
	{ 'l', "long",                 4, 1, 0, 0, " %11d",  0, NULL, 0 },
	{ 'L', "unsigned long",        4, 0, 0, 0, " %11u",  0, NULL, 0 },
	{ '#', "sort-of-signed int",   4, 1, 0, 0, " %11d",  -50000, " %11u", 1 },
	{ 0,   NULL,                   0, 0, 0, 0, NULL,     0, NULL, 0 }
};
typedef struct { char flag; char *longf; char *desc; long *test; } flagtype;
static long blk = 0, dec = 0, space = 0, nopipe = 0, forcepipe = 0, noenv = 0;
static long nochars = 0, notrail = 0, verbose = 0;
static long skinny_row = 0;/*, extra_row = 0;*/
static flagtype flags[] = {
	{ 'C', NULL, "Don't show the ASCII-ish output", &nochars },
	{ 0, NULL, "Display options", NULL },
	{ '_', "space", "show spaces as spaces (default: ·)", &space },
	{ 'T', NULL, "Don't pad the byte-line with trailing '--'s", &notrail },
	{ 'D', "decimal", "show decimal offsets, too", &dec },
	{ 'B', "blocks", "show {512,256,128,64,32}-byte block offsets, too", &blk },
	{ '8', "skinny", "Use rows of 8 bytes, not 16", &skinny_row },
/*	{ '.', "halfrow", "Output a second row offset by half", &extra_row },*/
	{ 0, NULL, "General options", NULL },
{'fraction_non_alphanumeric': 0.2303853064483929, 'fraction_numerical': 0.07167099221401477, 'mean_word_length': 2.440934065934066, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5673828', 'n_tokens_mistral': 2330, 'n_tokens_neox': 2050, 'n_words': 714}