<commit_before>// vim:syntax=lpc
#include <debug.h>
inherit PSYC.Storage;

MMP.Uniform link_to;
object uni;
int linked = 0;
MMP.Utils.Queue queue = MMP.Utils.Queue();

void create(MMP.Uniform link_to_, object uni_) {
    link_to = link_to_;
    uni = uni_;
}

void link() {
    linked = 1;
    while (!queue->isEmpty()) {
	array a = queue->shift();
	a[0](a[1..]);
    }
}

// Genereal Retrieve CallBack
void grcb(MMP.Packet p, function callback, string key, string mc, array args) {
    PSYC.Packet m = p->data;

    P3(("RemoteStorage", "grcb(%O, %O, %O, %O)\n", p, callback, key, args))

    if (key == m["_key"] && search(m->mc, "_notice"+mc) == 0) {
	call_out(callback, 0, key, m["_value"], @args);<commit_msg>flatten array<commit_after>// vim:syntax=lpc
#include <debug.h>
inherit PSYC.Storage;

MMP.Uniform link_to;
object uni;
int linked = 0;
MMP.Utils.Queue queue = MMP.Utils.Queue();

void create(MMP.Uniform link_to_, object uni_) {
    link_to = link_to_;
    uni = uni_;
}

void link() {
    linked = 1;
    while (!queue->isEmpty()) {
	array a = queue->shift();
	a[0](@a[1..]);
    }
}

// Genereal Retrieve CallBack
void grcb(MMP.Packet p, function callback, string key, string mc, array args) {
    PSYC.Packet m = p->data;

    P3(("RemoteStorage", "grcb(%O, %O, %O, %O)\n", p, callback, key, args))

    if (key == m["_key"] && search(m->mc, "_notice"+mc) == 0) {
	call_out(callback, 0, key, m["_value"], @args);
{'fraction_non_alphanumeric': 0.19244226731980407, 'fraction_numerical': 0.00979706088173548, 'mean_word_length': 3.673202614379085, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '950044', 'n_tokens_mistral': 582, 'n_tokens_neox': 555, 'n_words': 144}