<commit_before>/* readline.vapi
 *
 * Copyright (C) 2009  <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 */

[CCode (lower_case_cprefix = "", cheader_filename = "stdio.h,readline/readline.h")]
namespace Readline {
	[CCode (cname = "free", cheader_filename = "stdlib.h")]
	private void _free (void* p);

	[CCode (cname = "rl_command_func_t", has_target = false)]
	public delegate int      CommandFunc (int a, int b);
	[CCode (cname = "rl_completion_func_t", has_target = false, array_length = false, array_null_terminated = true)]
	public delegate string[]? CompletionFunc (string str, int a, int b);
	[CCode (cname = "rl_compentry_func_t", has_target = false)]
	public delegate string?  CompentryFunc (string str, int a);
	[CCode (cname = "rl_quote_func_t", has_target = false)]
	public delegate string   QuoteFunc (string str, int a, string b);
	[CCode (cname = "rl_dequote_func_t", has_target = false)]
	public delegate string   DequoteFunc (string str, int a);
	[CCode (cname = "rl_compignore_func_t", has_target = false)]
	public delegate int      CompignoreFunc (string[] strs);
	[CCode (cname = "rl_compdisp_func_t", has_target = false)]
	public delegate void     CompdispFunc (string[] s, int a, int b);
	[CCode (cname = "rl_hook_func_t", has_target = false)]
	public delegate int      HookFunc ();
	[CCode (cname = "rl_getc_func_t", has_target = false)]
	public delegate int      GetcFunc (GLib.FileStream s);
	[CCode (cname = "rl_linebuf_func_t", has_target = false)]
	public delegate int      LinebufFunc (string s, int a);
	[CCode (cname = "rl_int_func_t", has_target = false)]
	public delegate int      IntFunc (int a);
	[CCode (cname = "rl_icp_func_t", has_target = false)]
	public delegate int      IcpFunc (string s);
	[CCode (cname = "rl_icpp_func_t", has_target = false)]
	public delegate int      IcppFunc (string[] s);
	[CCode (cname = "rl_void_func_t", has_target = false)]
	public delegate void     VoidFunc ();
	[CCode (cname = "rl_vint_func_t", has_target = false)]
	public delegate void     VintFunc (int a);
	[CCode (cname = "rl_vcp_func_t", has_target = false)]
	public delegate void     VcpFunc (string s);
	[CCode (cname = "rl_vcpp_func_t", has_target = false)]
	public delegate void     VcppFunc (string[] s);
	[CCode (cname = "rl_cpv_func_t", has_target = false)]
	public delegate unowned string?   CpvFunc ();
	[CCode (cname = "rl_cpi_func_t", has_target = false)]
	public delegate unowned string?   CpiFunc (int s);

	[CCode (cname = "KEYMAP_ENTRY")]
	public struct KeyMap {
		public char type;
		public CommandFunc function;
	}

	[CCode (cname = "KEYMAP_SIZE")]
	public int KEYMAP_SIZE;

	[CCode (cname = "ANYOTHERKEY")]
	public int ANYOTHERKEY;<commit_msg>readline: Fix cname of several delegates<commit_after>/* readline.vapi
 *
 * Copyright (C) 2009  <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 */

[CCode (lower_case_cprefix = "", cheader_filename = "stdio.h,readline/readline.h")]
namespace Readline {
	[CCode (cname = "free", cheader_filename = "stdlib.h")]
	private void _free (void* p);

	[CCode (cname = "rl_command_func_t", has_target = false)]
	public delegate int      CommandFunc (int a, int b);
	[CCode (cname = "rl_completion_func_t", has_target = false, array_length = false, array_null_terminated = true)]
	public delegate string[]? CompletionFunc (string str, int a, int b);
	[CCode (cname = "rl_compentry_func_t", has_target = false)]
	public delegate string?  CompentryFunc (string str, int a);
	[CCode (cname = "rl_quote_func_t", has_target = false)]
	public delegate string   QuoteFunc (string str, int a, string b);
	[CCode (cname = "rl_dequote_func_t", has_target = false)]
	public delegate string   DequoteFunc (string str, int a);
	[CCode (cname = "rl_compignore_func_t", has_target = false)]
	public delegate int      CompignoreFunc (string[] strs);
	[CCode (cname = "rl_compdisp_func_t", has_target = false)]
	public delegate void     CompdispFunc (string[] s, int a, int b);
	[CCode (cname = "rl_hook_func_t", has_target = false)]
	public delegate int      HookFunc ();
	[CCode (cname = "rl_getc_func_t", has_target = false)]
	public delegate int      GetcFunc (GLib.FileStream s);
	[CCode (cname = "rl_linebuf_func_t", has_target = false)]
	public delegate int      LinebufFunc (string s, int a);
	[CCode (cname = "rl_intfunc_t", has_target = false)]
	public delegate int      IntFunc (int a);
	[CCode (cname = "rl_icpfunc_t", has_target = false)]
	public delegate int      IcpFunc (string s);
	[CCode (cname = "rl_icppfunc_t", has_target = false)]
	public delegate int      IcppFunc (string[] s);
	[CCode (cname = "rl_voidfunc_t", has_target = false)]
	public delegate void     VoidFunc ();
	[CCode (cname = "rl_vintfunc_t", has_target = false)]
	public delegate void     VintFunc (int a);
	[CCode (cname = "rl_vcpfunc_t", has_target = false)]
	public delegate void     VcpFunc (string s);
	[CCode (cname = "rl_vcppfunc_t", has_target = false)]
	public delegate void     VcppFunc (string[] s);
	[CCode (cname = "rl_cpvfunc_t", has_target = false)]
	public delegate unowned string?   CpvFunc ();
	[CCode (cname = "rl_cpifunc_t", has_target = false)]
	public delegate unowned string?   CpiFunc (int s);

	[CCode (cname = "KEYMAP_ENTRY")]
	public struct KeyMap {
		public char type;
		public CommandFunc function;
	}

	[CCode (cname = "KEYMAP_SIZE")]
	public int KEYMAP_SIZE;

	[CCode (cname = "ANYOTHERKEY")]
	public int ANYOTHERKEY;
{'fraction_non_alphanumeric': 0.10800117233294255, 'fraction_numerical': 0.004982415005861665, 'mean_word_length': 4.46, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1260166', 'n_tokens_mistral': 2299, 'n_tokens_neox': 2242, 'n_words': 788}