<commit_before>/*******************************************************************************
 * DANIEL'S ALGORITHM IMPLEMENTAIONS
 *
 *  /\  |  _   _  ._ o _|_ |_  ._ _   _ 
 * /--\ | (_| (_) |  |  |_ | | | | | _> 
 *         _|                      
 *
 * 2-DIMENSIONAL ARRAY
 *
 * Simulated by 1-dimension array.
 ******************************************************************************/
 
#ifndef __2D_ARRAY_H__
#define __2D_ARRAY_H__
#include <stdint.h>
#include <stdlib.h>

/**
 * 2D Array definition
 */
struct Array2D
{
	uint32_t nrow;	// num of rows
	uint32_t ncol;	// num of columns
	int * data;		// the place where the array resides.
};

/**
 * create a 2-D array of size 'nrow' times 'ncol', an new Array2D struct is
 * returned.
 */
static inline struct Array2D * 
array2d_create(uint32_t nrow, uint32_t ncol)
{
	struct Array2D * arr = (struct Array2D *)malloc(sizeof(struct Array2D));
	
	if (arr!=NULL) {
		arr->nrow = nrow;
		arr->ncol = ncol;
		arr->data = (int *)malloc(nrow * ncol * sizeof(int));
	}

	return arr;<commit_msg>remove stupid detection, looking for better method<commit_after>/*******************************************************************************
 * DANIEL'S ALGORITHM IMPLEMENTAIONS
 *
 *  /\  |  _   _  ._ o _|_ |_  ._ _   _ 
 * /--\ | (_| (_) |  |  |_ | | | | | _> 
 *         _|                      
 *
 * 2-DIMENSIONAL ARRAY
 *
 * Simulated by 1-dimension array.
 ******************************************************************************/
 
#ifndef __2D_ARRAY_H__
#define __2D_ARRAY_H__
#include <stdint.h>
#include <stdlib.h>

/**
 * 2D Array definition
 */
struct Array2D
{
	uint32_t nrow;	// num of rows
	uint32_t ncol;	// num of columns
	int * data;		// the place where the array resides.
};

/**
 * create a 2-D array of size 'nrow' times 'ncol', an new Array2D struct is
 * returned.
 */
static inline struct Array2D * 
array2d_create(uint32_t nrow, uint32_t ncol)
{
	struct Array2D * arr = (struct Array2D *)malloc(sizeof(struct Array2D));
	
	arr->nrow = nrow;
	arr->ncol = ncol;
	arr->data = (int *)malloc(nrow * ncol * sizeof(int));

	return arr;
{'fraction_non_alphanumeric': 0.26997635933806147, 'fraction_numerical': 0.019858156028368795, 'mean_word_length': 3.1984126984126986, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '7174588', 'n_tokens_mistral': 785, 'n_tokens_neox': 718, 'n_words': 173}