<commit_before>#include <kotaka/paths.h>
#include <game/paths.h>
#include <status.h>

inherit LIB_BIN;

int percent(int n, int d)
{
	return (int)floor( (float)(n * 100) / (float)d);
}

int color(int percent)
{
	switch(percent) {
	case 0 .. 49:
		return 0xA;
	case 50 .. 79:
		return 0xB;
	case 81 .. 100:
		return 0x9;
	}
}

void main(string args)
{
	object paint;
	string buffer;

	int max;
	int current;

	paint = new_object("~/lwo/paint/painter");

	paint->start(40, 5);
	paint->set_color(0x0C);
	paint->move_pen(0, 0);
	paint->draw("+--------------------------------------+");
	paint->move_pen(0, 1);
	paint->draw("| Swap:    0123456789 / 0123456789 --- |");
	paint->move_pen(0, 2);
	paint->draw("| Object:  0123456789 / 0123456789 --- |");
	paint->move_pen(0, 3);
	paint->draw("| Callout: 0123456789 / 0123456789 --- |");
	paint->move_pen(0, 4);
	paint->draw("+--------------------------------------+");
	paint->set_color(0xF);
	paint->move_pen(2, 1);
	paint->draw("Swap:");
	paint->move_pen(2, 2);
	paint->draw("Object:");
	paint->move_pen(2, 3);
	paint->draw("Callout:");

	max = status(ST_SWAPSIZE);<commit_msg>Oops, forgot to update this object<commit_after>#include <kotaka/paths.h>
#include <game/paths.h>
#include <status.h>

inherit LIB_BIN;

int percent(int n, int d)
{
	return (int)floor( (float)(n * 100) / (float)d);
}

int color(int percent)
{
	switch(percent) {
	case 0 .. 49:
		return 0xA;
	case 50 .. 79:
		return 0xB;
	case 81 .. 100:
		return 0x9;
	}
}

void main(string args)
{
	object paint;
	string buffer;

	int max;
	int current;

	paint = new_object(LWO_PAINTER);

	paint->start(40, 5);
	paint->set_color(0x0C);
	paint->move_pen(0, 0);
	paint->draw("+--------------------------------------+");
	paint->move_pen(0, 1);
	paint->draw("| Swap:    0123456789 / 0123456789 --- |");
	paint->move_pen(0, 2);
	paint->draw("| Object:  0123456789 / 0123456789 --- |");
	paint->move_pen(0, 3);
	paint->draw("| Callout: 0123456789 / 0123456789 --- |");
	paint->move_pen(0, 4);
	paint->draw("+--------------------------------------+");
	paint->set_color(0xF);
	paint->move_pen(2, 1);
	paint->draw("Swap:");
	paint->move_pen(2, 2);
	paint->draw("Object:");
	paint->move_pen(2, 3);
	paint->draw("Callout:");

	max = status(ST_SWAPSIZE);
{'fraction_non_alphanumeric': 0.26545131169408626, 'fraction_numerical': 0.08981769675411294, 'mean_word_length': 2.9682539682539684, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 47, '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': '5381075', 'n_tokens_mistral': 1090, 'n_tokens_neox': 921, 'n_words': 182}