<commit_before>/**
 * @file
 *
 * @date Dec 4, 2019
 * @date <NAME>
 */
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <inttypes.h>
#include <getopt.h>

#include <drivers/block_dev.h>

static const char *convert_unit(uint64_t *size) {
	const char *unit;
	if (*size < 1024) {
		unit = "B";
	}
	else if (*size < 1024 * 1024) {
		unit = "KB";
		*size = *size/1024.0;
	}
	else if (*size < 1024ull * 1024 * 1024) {
		unit = "MB";
		*size = *size/(1024.0 * 1024);
	}
	else if (*size < 1024ull * 1024 * 1024 * 1024) {
		unit = "GB";
		*size = *size/(1024.0 * 1024 * 1024);
	} else {<commit_msg>cmd: Add missed 'include <assert.h>' in lsblk<commit_after>/**
 * @file
 *
 * @date Dec 4, 2019
 * @date <NAME>
 */
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <inttypes.h>
#include <getopt.h>
#include <assert.h>

#include <drivers/block_dev.h>

static const char *convert_unit(uint64_t *size) {
	const char *unit;
	if (*size < 1024) {
		unit = "B";
	}
	else if (*size < 1024 * 1024) {
		unit = "KB";
		*size = *size/1024.0;
	}
	else if (*size < 1024ull * 1024 * 1024) {
		unit = "MB";
		*size = *size/(1024.0 * 1024);
	}
	else if (*size < 1024ull * 1024 * 1024 * 1024) {
		unit = "GB";
		*size = *size/(1024.0 * 1024 * 1024);
	} else {
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.11653543307086614, 'mean_word_length': 3.1947194719471947, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 19, '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': '7565996', 'n_tokens_mistral': 681, 'n_tokens_neox': 525, 'n_words': 142}