<commit_before>#include <pthread.h>
#include <assert.h>

#include "aes_lck_multi.h"

typedef struct aeslck_args_s {
    const unsigned char* data;
    unsigned char* out;
    unsigned long size;
    const unsigned char* key;
    const unsigned char* iv;
} aeslck_args;

static void *w_encrypt(void *data){
    aeslck_args *args = data;
    encrypt(args->data, args->out, args->size, args->key, args->iv);
    return NULL;  // TODO return something meaningful
}

static void *w_decrypt(void *data){
    aeslck_args *args = data;
    encrypt(args->data, args->out, args->size, args->key, args->iv);
    return NULL;  // TODO return something meaningful
}

static inline void process(const short enc, unsigned int thr,<commit_msg>fix aes_lck_multi implementation (decryption was still encrypting)<commit_after>#include <pthread.h>
#include <assert.h>

#include "aes_lck_multi.h"

typedef struct aeslck_args_s {
    const unsigned char* data;
    unsigned char* out;
    unsigned long size;
    const unsigned char* key;
    const unsigned char* iv;
} aeslck_args;

static void *w_encrypt(void *data){
    aeslck_args *args = data;
    encrypt(args->data, args->out, args->size, args->key, args->iv);
    return NULL;  // TODO return something meaningful
}

static void *w_decrypt(void *data){
    aeslck_args *args = data;
    decrypt(args->data, args->out, args->size, args->key, args->iv);
    return NULL;  // TODO return something meaningful
}

static inline void process(const short enc, unsigned int thr,
{'fraction_non_alphanumeric': 0.11811546118115461, 'fraction_numerical': 0.0, 'mean_word_length': 3.9768976897689767, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, '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': '1266083', 'n_tokens_mistral': 508, 'n_tokens_neox': 495, 'n_words': 151}