<commit_before>#include <string.h>
#include "bionic.h"
#include "memio.h"
#include "printf.h"

int cmd_msleep(int argc, char **argv)
{
	uint32_t msecs, i, j;

	if (argc != 1) {
		printf("Usage: msleep [milliseconds]\n");
		return 1;
	}

	msecs = _strtoul(argv[0], NULL, 0);

	for (i = 0; i < msecs; i++) {
		for (j = 0; j < 73000; j++) {
			asm("nop");
		}
	}

	return 0;
}

int cmd_usleep(int argc, char **argv)
{
	uint32_t usecs, i, j;

	if (argc != 1) {
		printf("Usage: usleep [microseconds]\n");
		return 1;
	}

	usecs = _strtoul(argv[0], NULL, 0);

	for (i = 0; i < usecs; i++) {
		for (j = 0; j < 73; j++) {
			asm("nop");
		}
	}

	return 0;
}
<commit_msg>cmd-sleep: Take advantage of _msleep and _usleep<commit_after>#include <string.h>
#include "bionic.h"
#include "printf.h"

int cmd_msleep(int argc, char **argv)
{
	uint32_t msecs;

	if (argc != 1) {
		printf("Usage: msleep [milliseconds]\n");
		return 1;
	}

	msecs = _strtoul(argv[0], NULL, 0);
	_msleep(msecs);
	return 0;
}

int cmd_usleep(int argc, char **argv)
{
	uint32_t usecs;

	if (argc != 1) {
		printf("Usage: usleep [microseconds]\n");
		return 1;
	}

	usecs = _strtoul(argv[0], NULL, 0);
	_usleep(usecs);
	return 0;
}

{'fraction_non_alphanumeric': 0.19111483654652137, 'fraction_numerical': 0.03269069572506287, 'mean_word_length': 3.574712643678161, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3541027', 'n_tokens_mistral': 600, 'n_tokens_neox': 545, 'n_words': 136}