<commit_before>/**
 * zuin.h
 *
 * Copyright (c) 1999, 2000, 2001
 *	<NAME> and <NAME>.
 *	All rights reserved.
 *
 * Copyright (c) 2004, 2005
 *	libchewing Core Team. See ChangeLog for details.
 *
 * See the file "COPYING" for information on usage and redistribution
 * of this file.
 */

#ifndef _ZUIN_H
#define _ZUIN_H

/* Keyboard Layout */
#define KB_TYPE_NUM 9
#define KB_DEFAULT 0
#define KB_HSU 1
#define KB_IBM 2
#define KB_GIN_YIEH 3
#define KB_ET 4
#define KB_ET26 5
#define KB_DVORAK 6
#define KB_DVORAK_HSU 7
/* Assume there are at most 1000 zuin-keyboard layouts */
#define KB_HANYU_PINYING 1000

#define ZUIN_IGNORE 0
#define ZUIN_ABSORB 1
#define ZUIN_COMMIT 2
#define ZUIN_KEY_ERROR 4
#define ZUIN_ERROR 8
#define ZUIN_NO_WORD 16

/* Zuin module */
int ZuinPhoInput( ZuinData *,int key );  /* assume `key' is "ascii" code. */
int ZuinRemoveLast( ZuinData * );
int ZuinRemoveAll( ZuinData * );
int ZuinIsEntering( ZuinData * );
         
#endif
<commit_msg> r11491@Liu-Kang-min:  gugod | 2005-03-02 14:20:36 +0800  Woot. Unbreak KBStr2Num on hanyu_pinying layout.  What I did was a mistaken step. Every configuration  shoud use String, and then convert to number with KBStr2Num().<commit_after>/**
 * zuin.h
 *
 * Copyright (c) 1999, 2000, 2001
 *	<NAME> and <NAME>.
 *	All rights reserved.
 *
 * Copyright (c) 2004, 2005
 *	libchewing Core Team. See ChangeLog for details.
 *
 * See the file "COPYING" for information on usage and redistribution
 * of this file.
 */

#ifndef _ZUIN_H
#define _ZUIN_H

/* Keyboard Layout */
#define KB_TYPE_NUM 9
#define KB_DEFAULT 0
#define KB_HSU 1
#define KB_IBM 2
#define KB_GIN_YIEH 3
#define KB_ET 4
#define KB_ET26 5
#define KB_DVORAK 6
#define KB_DVORAK_HSU 7
#define KB_HANYU_PINYING 8

#define ZUIN_IGNORE 0
#define ZUIN_ABSORB 1
#define ZUIN_COMMIT 2
#define ZUIN_KEY_ERROR 4
#define ZUIN_ERROR 8
#define ZUIN_NO_WORD 16

/* Zuin module */
int ZuinPhoInput( ZuinData *,int key );  /* assume `key' is "ascii" code. */
int ZuinRemoveLast( ZuinData * );
int ZuinRemoveAll( ZuinData * );
int ZuinIsEntering( ZuinData * );
         
#endif

{'fraction_non_alphanumeric': 0.0973747016706444, 'fraction_numerical': 0.05250596658711217, 'mean_word_length': 4.026378896882494, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3460538', 'n_tokens_mistral': 937, 'n_tokens_neox': 798, 'n_words': 264}