<commit_before>﻿using System;
using System.Runtime.InteropServices;
namespace rclcs
{
	
	public class RCL:IDisposable
	{
		bool disposed = false;

		#if __MonoCS__
		public const string LibRCLPath = "librcl.so";
		#else
		public const string LibRCLPath = "rcl.dll";
		#endif
		/**
		 * Call this function instead of rcl_init
		 */
		public void Init(String[] args)
		{
			RCLReturnValues retVal = (RCLReturnValues)rcl_init (args.Length, args, Allocator.rcl_get_default_allocator ());
			switch (retVal) {
			case RCLReturnValues.RCL_RET_OK:
				break;
			case RCLReturnValues.RCL_RET_ALREADY_INIT:
				throw new RCLAlreadyInitExcption ();
				break;
			case RCLReturnValues.RCL_RET_BAD_ALLOC:
				throw new RCLBadAllocException ();
				break;
			case RCLReturnValues.RCL_RET_ERROR:
				throw new RCLErrorException (RCLErrorHandling.GetRMWErrorState());
				break;
			default:
				break;
			}

		}
		public void Init(String[] args, rcl_allocator_t custom_allocator)
		{
			RCLReturnValues retVal = (RCLReturnValues)rcl_init (args.Length, args, custom_allocator);
			switch (retVal) {<commit_msg>added warnings<commit_after>﻿using System;
using System.Runtime.InteropServices;
namespace rclcs
{
	
	public class RCL:IDisposable
	{
		bool disposed = false;

		#if __MonoCS__
		#warning Compiling on linux: path is now: librcl.so
		public const string LibRCLPath = "librcl.so";
		#else
		#warning Compiling on windows: path is now: librcl.so
		public const string LibRCLPath = "rcl.dll";
		#endif
		/**
		 * Call this function instead of rcl_init
		 */
		public void Init(String[] args)
		{
			RCLReturnValues retVal = (RCLReturnValues)rcl_init (args.Length, args, Allocator.rcl_get_default_allocator ());
			switch (retVal) {
			case RCLReturnValues.RCL_RET_OK:
				break;
			case RCLReturnValues.RCL_RET_ALREADY_INIT:
				throw new RCLAlreadyInitExcption ();
				break;
			case RCLReturnValues.RCL_RET_BAD_ALLOC:
				throw new RCLBadAllocException ();
				break;
			case RCLReturnValues.RCL_RET_ERROR:
				throw new RCLErrorException (RCLErrorHandling.GetRMWErrorState());
				break;
			default:
				break;
			}

		}
		public void Init(String[] args, rcl_allocator_t custom_allocator)
		{
			RCLReturnValues retVal = (RCLReturnValues)rcl_init (args.Length, args, custom_allocator);
			switch (retVal) {
{'fraction_non_alphanumeric': 0.08873423227490213, 'fraction_numerical': 0.0, 'mean_word_length': 4.133928571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7603230', 'n_tokens_mistral': 941, 'n_tokens_neox': 795, 'n_words': 181}