/* Generated by Cython 0.29.23 */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_23"
#define CYTHON_HEX_VERSION 0x001D17F0
#define CYTHON_FUTURE_DIVISION 1
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 0
  #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
  #ifndef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
           typedef unsigned char     uint8_t;
           typedef unsigned int      uint32_t;
        #else
           typedef unsigned __int8   uint8_t;
           typedef unsigned __int32  uint32_t;
        #endif
    #endif
#else
   #include <stdint.h>
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus) && __cplusplus >= 201103L
    #if __has_cpp_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH [[fallthrough]]
    #elif __has_cpp_attribute(clang::fallthrough)
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
    #elif __has_cpp_attribute(gnu::fallthrough)
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__ ) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif

#ifndef __cplusplus
  #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #else
    #define CYTHON_INLINE inline
  #endif
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
    x.~T();
}
template<typename T>
class __Pyx_FakeReference {
  public:
    __Pyx_FakeReference() : ptr(NULL) { }
    __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
    T *operator->() { return ptr; }
    T *operator&() { return ptr; }
    operator T&() { return *ptr; }
    template<typename U> bool operator ==(U other) { return *ptr == other; }
    template<typename U> bool operator !=(U other) { return *ptr != other; }
  private:
    T *ptr;
};

#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
  #define PyMem_RawMalloc(n)           PyMem_Malloc(n)
  #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
  #define PyMem_RawFree(p)             PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
  #else
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #endif
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#ifndef PyObject_Unicode
  #define PyObject_Unicode             PyObject_Str
#endif
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
#else
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#define __PYX_MARK_ERR_POS(f_index, lineno) \
    { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE___core
#define __PYX_HAVE_API___core
/* Early includes */
#include <string.h>
#include "ios"
#include "new"
#include "stdexcept"
#include "typeinfo"
#include <string>
#include <utility>

    #if __cplusplus > 199711L
    #include <type_traits>

    namespace cython_std {
    template <typename T> typename std::remove_reference<T>::type&& move(T& t) noexcept { return std::move(t); }
    template <typename T> typename std::remove_reference<T>::type&& move(T&& t) noexcept { return std::move(t); }
    }

    #endif
    
#include <set>
#include <vector>
#include <map>
#include "autowrap_tools.hpp"
#include <stdint.h>
#include <stdio.h>
#include "keyvi/dictionary/match.h"
#include "keyvi/dictionary/match_iterator.h"
#include "keyvi/dictionary/dictionary.h"
#include "keyvi/dictionary/util/jump_consistent_hash.h"
#include "keyvi/dictionary/dictionary_types.h"
#include <memory>
#include "keyvi/dictionary/completion/forward_backward_completion.h"
#include "keyvi/transform/fsa_transform.h"
#include "keyvi/index/index.h"
#include "keyvi/vector/vector_types.h"
#include "keyvi/dictionary/completion/multiword_completion.h"
#include "keyvi/compression/predictive_compression.h"
#include "keyvi/dictionary/completion/prefix_completion.h"
#include "keyvi/index/read_only_index.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING "ascii  # for cython>=0.19"
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "_core.pyx",
  "stringsource",
  "type.pxd",
};
/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif


/*--- Type declarations ---*/
struct __pyx_obj_5_core_CompletionDictionaryCompiler;
struct __pyx_obj_5_core_CompletionDictionaryMerger;
struct __pyx_obj_5_core_Dictionary;
struct __pyx_obj_5_core_ForwardBackwardCompletion;
struct __pyx_obj_5_core_FsaTransform;
struct __pyx_obj_5_core_Index;
struct __pyx_obj_5_core_IntDictionaryCompiler;
struct __pyx_obj_5_core_IntDictionaryCompilerSmallData;
struct __pyx_obj_5_core_IntDictionaryMerger;
struct __pyx_obj_5_core_JsonDictionaryCompiler;
struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData;
struct __pyx_obj_5_core_JsonDictionaryMerger;
struct __pyx_obj_5_core_JsonVector;
struct __pyx_obj_5_core_JsonVectorGenerator;
struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler;
struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator;
struct __pyx_obj_5_core_KeyOnlyDictionaryMerger;
struct __pyx_obj_5_core_Match;
struct __pyx_obj_5_core_MultiWordCompletion;
struct __pyx_obj_5_core_PredictiveCompression;
struct __pyx_obj_5_core_PrefixCompletion;
struct __pyx_obj_5_core_ReadOnlyIndex;
struct __pyx_obj_5_core_StringDictionaryCompiler;
struct __pyx_obj_5_core_StringDictionaryMerger;
struct __pyx_obj_5_core_StringVector;
struct __pyx_obj_5_core_StringVectorGenerator;
struct __pyx_obj_5_core_loading_strategy_types;
struct __pyx_obj_5_core_MatchIterator;
struct __pyx_obj_5_core___pyx_scope_struct___init_1;
struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_3___init__;
struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_6__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_9___init__;
struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper;
struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper;
struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper;
struct __pyx_obj_5_core___pyx_scope_struct_15___init__;
struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_18__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_21___init__;
struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_24__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_27___init__;
struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_30__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_33___init__;
struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_36__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_39___init__;
struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_42__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_45___init__;
struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_48__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_51___init__;
struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_54__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_57___init__;
struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_60__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_63___init__;
struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_66__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_69___init__;
struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_72__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_75___init__;
struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_78__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_81___init__;
struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_84__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_87___init__;
struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_90__init_1;
struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_93___init__;
struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr;
struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr;

/* "dictionary_compiler.pxd":5
 * from libcpp.map cimport map as libcpp_map
 * 
 * ctypedef void (*callback_t)(size_t a, size_t b, void* user_data)             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "keyvi/dictionary/dictionary_types.h" namespace "keyvi::dictionary":
 */
typedef void (*__pyx_t_19dictionary_compiler_callback_t)(size_t, size_t, void *);

/* "dictionary_merger.pxd":6
 * from libc.string cimport const_char
 * 
 * ctypedef void (*callback_t)(size_t a, size_t b, void* user_data)             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "keyvi/dictionary/dictionary_types.h" namespace "keyvi::dictionary":
 */
typedef void (*__pyx_t_17dictionary_merger_callback_t)(size_t, size_t, void *);

/* "_core.pyx":63
 *     return py_result
 * 
 * cdef class CompletionDictionaryCompiler:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _CompletionDictionaryCompiler
 */
struct __pyx_obj_5_core_CompletionDictionaryCompiler {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::CompletionDictionaryCompiler>  inst;
};


/* "_core.pyx":155
 *     (<object>py_callback)(a, b)
 * 
 * cdef class CompletionDictionaryMerger:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _CompletionDictionaryMerger
 */
struct __pyx_obj_5_core_CompletionDictionaryMerger {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::CompletionDictionaryMerger>  inst;
};


/* "_core.pyx":218
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 * cdef class Dictionary:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _Dictionary
 */
struct __pyx_obj_5_core_Dictionary {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::Dictionary>  inst;
};


/* "_core.pyx":427
 *         return json.loads(py_result_unicode)
 * 
 * cdef class ForwardBackwardCompletion:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _ForwardBackwardCompletion
 */
struct __pyx_obj_5_core_ForwardBackwardCompletion {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::completion::ForwardBackwardCompletion>  inst;
};


/* "_core.pyx":482
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 * cdef class FsaTransform:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _FsaTransform
 */
struct __pyx_obj_5_core_FsaTransform {
  PyObject_HEAD
  std::shared_ptr<keyvi::transform::FsaTransform>  inst;
};


/* "_core.pyx":508
 *         return py_result
 * 
 * cdef class Index:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _Index
 */
struct __pyx_obj_5_core_Index {
  PyObject_HEAD
  std::shared_ptr<keyvi::index::Index>  inst;
};


/* "_core.pyx":666
 *         self.inst.get().MSet(cpp_key_values)
 * 
 * cdef class IntDictionaryCompiler:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _IntDictionaryCompiler
 */
struct __pyx_obj_5_core_IntDictionaryCompiler {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::IntDictionaryCompiler>  inst;
};


/* "_core.pyx":753
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 * cdef class IntDictionaryCompilerSmallData:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _IntDictionaryCompilerSmallData
 */
struct __pyx_obj_5_core_IntDictionaryCompilerSmallData {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::IntDictionaryCompilerSmallData>  inst;
};


/* "_core.pyx":840
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 * cdef class IntDictionaryMerger:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _IntDictionaryMerger
 */
struct __pyx_obj_5_core_IntDictionaryMerger {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::IntDictionaryMerger>  inst;
};


/* "_core.pyx":903
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 * cdef class JsonDictionaryCompiler:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _JsonDictionaryCompiler
 */
struct __pyx_obj_5_core_JsonDictionaryCompiler {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::JsonDictionaryCompiler>  inst;
};


/* "_core.pyx":991
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 * cdef class JsonDictionaryCompilerSmallData:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _JsonDictionaryCompilerSmallData
 */
struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::JsonDictionaryCompilerSmallData>  inst;
};


/* "_core.pyx":1084
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 * cdef class JsonDictionaryMerger:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _JsonDictionaryMerger
 */
struct __pyx_obj_5_core_JsonDictionaryMerger {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::JsonDictionaryMerger>  inst;
};


/* "_core.pyx":1147
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 * cdef class JsonVector:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _JsonVector
 */
struct __pyx_obj_5_core_JsonVector {
  PyObject_HEAD
  std::shared_ptr<keyvi::vector::JsonVector>  inst;
};


/* "_core.pyx":1184
 *         return py_result
 * 
 * cdef class JsonVectorGenerator:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _JsonVectorGenerator
 */
struct __pyx_obj_5_core_JsonVectorGenerator {
  PyObject_HEAD
  std::shared_ptr<keyvi::vector::JsonVectorGenerator>  inst;
};


/* "_core.pyx":1244
 *         self.inst.get().PushBack((<libcpp_utf8_string>dumps))
 * 
 * cdef class KeyOnlyDictionaryCompiler:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _KeyOnlyDictionaryCompiler
 */
struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryCompiler>  inst;
};


/* "_core.pyx":1329
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 * cdef class KeyOnlyDictionaryGenerator:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _KeyOnlyDictionaryGenerator
 */
struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryGenerator>  inst;
};


/* "_core.pyx":1362
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 * cdef class KeyOnlyDictionaryMerger:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _KeyOnlyDictionaryMerger
 */
struct __pyx_obj_5_core_KeyOnlyDictionaryMerger {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryMerger>  inst;
};


/* "_core.pyx":1425
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 * cdef class Match:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _Match
 */
struct __pyx_obj_5_core_Match {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::Match>  inst;
};


/* "_core.pyx":1619
 *         return m
 * 
 * cdef class MultiWordCompletion:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _MultiWordCompletion
 */
struct __pyx_obj_5_core_MultiWordCompletion {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::completion::MultiWordCompletion>  inst;
};


/* "_core.pyx":1672
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 * cdef class PredictiveCompression:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _PredictiveCompression
 */
struct __pyx_obj_5_core_PredictiveCompression {
  PyObject_HEAD
  std::shared_ptr<keyvi::compression::PredictiveCompression>  inst;
};


/* "_core.pyx":1708
 *         return py_result
 * 
 * cdef class PrefixCompletion:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _PrefixCompletion
 */
struct __pyx_obj_5_core_PrefixCompletion {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::completion::PrefixCompletion>  inst;
};


/* "_core.pyx":1774
 *         return py_result
 * 
 * cdef class ReadOnlyIndex:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _ReadOnlyIndex
 */
struct __pyx_obj_5_core_ReadOnlyIndex {
  PyObject_HEAD
  std::shared_ptr<keyvi::index::ReadOnlyIndex>  inst;
};


/* "_core.pyx":1873
 *         return py_result
 * 
 * cdef class StringDictionaryCompiler:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _StringDictionaryCompiler
 */
struct __pyx_obj_5_core_StringDictionaryCompiler {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::StringDictionaryCompiler>  inst;
};


/* "_core.pyx":1961
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 * cdef class StringDictionaryMerger:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _StringDictionaryMerger
 */
struct __pyx_obj_5_core_StringDictionaryMerger {
  PyObject_HEAD
  std::shared_ptr<keyvi::dictionary::StringDictionaryMerger>  inst;
};


/* "_core.pyx":2024
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 * cdef class StringVector:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _StringVector
 */
struct __pyx_obj_5_core_StringVector {
  PyObject_HEAD
  std::shared_ptr<keyvi::vector::StringVector>  inst;
};


/* "_core.pyx":2062
 *         return py_result
 * 
 * cdef class StringVectorGenerator:             # <<<<<<<<<<<<<<
 *     """
 *     Cython implementation of _StringVectorGenerator
 */
struct __pyx_obj_5_core_StringVectorGenerator {
  PyObject_HEAD
  std::shared_ptr<keyvi::vector::StringVectorGenerator>  inst;
};


/* "_core.pyx":2125
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 * cdef class loading_strategy_types:             # <<<<<<<<<<<<<<
 *     default_os = 0
 *     lazy = 1
 */
struct __pyx_obj_5_core_loading_strategy_types {
  PyObject_HEAD
};


/* "_core.pyx":2186
 * from match_iterator cimport MatchIterator as _MatchIterator
 * 
 * cdef class MatchIterator:             # <<<<<<<<<<<<<<
 *     cdef _MatchIterator it
 *     cdef _MatchIterator end
 */
struct __pyx_obj_5_core_MatchIterator {
  PyObject_HEAD
  keyvi::dictionary::MatchIterator it;
  keyvi::dictionary::MatchIterator end;
};


/* "_core.pyx":78
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct___init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":80
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct___init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct___init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":93
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryCompiler()
 */
struct __pyx_obj_5_core___pyx_scope_struct_3___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":100
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":170
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":172
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":185
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryMerger()
 */
struct __pyx_obj_5_core___pyx_scope_struct_9___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":192
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":387
 *         return py_result
 * 
 *     def _key_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield m.GetMatchedString()
 */
struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper {
  PyObject_HEAD
  PyObject *__pyx_v_iterator;
  PyObject *__pyx_v_m;
  struct __pyx_obj_5_core_Dictionary *__pyx_v_self;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "_core.pyx":391
 *             yield m.GetMatchedString()
 * 
 *     def _value_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield m.GetValue()
 */
struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper {
  PyObject_HEAD
  PyObject *__pyx_v_iterator;
  PyObject *__pyx_v_m;
  struct __pyx_obj_5_core_Dictionary *__pyx_v_self;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "_core.pyx":395
 *             yield m.GetValue()
 * 
 *     def _item_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield (m.GetMatchedString(), m.GetValue())
 */
struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper {
  PyObject_HEAD
  PyObject *__pyx_v_iterator;
  PyObject *__pyx_v_m;
  struct __pyx_obj_5_core_Dictionary *__pyx_v_self;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "_core.pyx":573
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             directory = args[0]
 */
struct __pyx_obj_5_core___pyx_scope_struct_15___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":577
 *             directory = args[0]
 *             params = {}
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *             directory = args[0]
 *             params = args[1]
 */
struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":681
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":683
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":696
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompiler()
 */
struct __pyx_obj_5_core___pyx_scope_struct_21___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":703
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":768
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":770
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":783
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompilerSmallData()
 */
struct __pyx_obj_5_core___pyx_scope_struct_27___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":790
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":855
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":857
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":870
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryMerger()
 */
struct __pyx_obj_5_core___pyx_scope_struct_33___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":877
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":918
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":920
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":933
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompiler()
 */
struct __pyx_obj_5_core___pyx_scope_struct_39___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":940
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1006
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1008
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1021
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompilerSmallData()
 */
struct __pyx_obj_5_core___pyx_scope_struct_45___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1028
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1099
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1101
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1114
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryMerger()
 */
struct __pyx_obj_5_core___pyx_scope_struct_51___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1121
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1199
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1201
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1214
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonVectorGenerator()
 */
struct __pyx_obj_5_core___pyx_scope_struct_57___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1221
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1259
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1261
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1274
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryCompiler()
 */
struct __pyx_obj_5_core___pyx_scope_struct_63___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1281
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1377
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1379
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1392
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryMerger()
 */
struct __pyx_obj_5_core___pyx_scope_struct_69___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1399
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1792
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 * 
 *     def _init_1(self,  in_0 , dict params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_params;
};


/* "_core.pyx":1795
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1810
 *         del v1
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void ReadOnlyIndex(libcpp_utf8_string)
 */
struct __pyx_obj_5_core___pyx_scope_struct_75___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1817
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1888
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1890
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1903
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryCompiler()
 */
struct __pyx_obj_5_core___pyx_scope_struct_81___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1910
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1976
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":1978
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":1991
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryMerger()
 */
struct __pyx_obj_5_core___pyx_scope_struct_87___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":1998
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":2077
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */
struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 {
  PyObject_HEAD
  PyObject *__pyx_v_value_store_params;
};


/* "_core.pyx":2079
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* "_core.pyx":2092
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringVectorGenerator()
 */
struct __pyx_obj_5_core___pyx_scope_struct_93___init__ {
  PyObject_HEAD
  PyObject *__pyx_v_args;
};


/* "_core.pyx":2099
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_k;
};

struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr {
  PyObject_HEAD
  struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *__pyx_outer_scope;
  PyObject *__pyx_v_v;
};


/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCall2Args.proto */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* PyObjectGetMethod.proto */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);

/* PyObjectCallMethod0.proto */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto */
#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\
    (likely(is_tuple || PyTuple_Check(tuple)) ?\
        (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\
            __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\
            (__Pyx_UnpackTupleError(tuple, 2), -1)) :\
        __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple))
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* None.proto */
static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname);

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* PyIntCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* IncludeCppStringH.proto */
#include <string>

/* decode_c_string_utf16.proto */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_bytes.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes(
         const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* decode_cpp_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_cpp_string(
         std::string cppstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    return __Pyx_decode_c_bytes(
        cppstring.data(), cppstring.size(), start, stop, encoding, errors, decode_func);
}

/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __pyx_dict_cached_value;\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
#define __Pyx_GetModuleGlobalNameUncached(var, name)  {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* PyIntCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_NeObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* HasAttr.proto */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);

/* IncludeStringH.proto */
#include <string.h>

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* PyObjectGetAttrStrNoError.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto
#define __PYX_HAVE_RT_ImportType_proto
enum __Pyx_ImportType_CheckSize {
   __Pyx_ImportType_CheckSize_Error = 0,
   __Pyx_ImportType_CheckSize_Warn = 1,
   __Pyx_ImportType_CheckSize_Ignore = 2
};
static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
#endif

/* GetNameInClass.proto */
#define __Pyx_GetNameInClass(var, nmspace, name)  (var) = __Pyx__GetNameInClass(nmspace, name)
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name);

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* None.proto */
#include <new>

/* GCCDiagnostics.proto */
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* CppExceptionConversion.proto */
#ifndef __Pyx_CppExn2PyErr
#include <new>
#include <typeinfo>
#include <stdexcept>
#include <ios>
static void __Pyx_CppExn2PyErr() {
  try {
    if (PyErr_Occurred())
      ; // let the latest Python exn pass through and ignore the current one
    else
      throw;
  } catch (const std::bad_alloc& exn) {
    PyErr_SetString(PyExc_MemoryError, exn.what());
  } catch (const std::bad_cast& exn) {
    PyErr_SetString(PyExc_TypeError, exn.what());
  } catch (const std::bad_typeid& exn) {
    PyErr_SetString(PyExc_TypeError, exn.what());
  } catch (const std::domain_error& exn) {
    PyErr_SetString(PyExc_ValueError, exn.what());
  } catch (const std::invalid_argument& exn) {
    PyErr_SetString(PyExc_ValueError, exn.what());
  } catch (const std::ios_base::failure& exn) {
    PyErr_SetString(PyExc_IOError, exn.what());
  } catch (const std::out_of_range& exn) {
    PyErr_SetString(PyExc_IndexError, exn.what());
  } catch (const std::overflow_error& exn) {
    PyErr_SetString(PyExc_OverflowError, exn.what());
  } catch (const std::range_error& exn) {
    PyErr_SetString(PyExc_ArithmeticError, exn.what());
  } catch (const std::underflow_error& exn) {
    PyErr_SetString(PyExc_ArithmeticError, exn.what());
  } catch (const std::exception& exn) {
    PyErr_SetString(PyExc_RuntimeError, exn.what());
  }
  catch (...)
  {
    PyErr_SetString(PyExc_RuntimeError, "Unknown exception");
  }
}
#endif

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE uint32_t __Pyx_PyInt_As_uint32_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint32_t(uint32_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int32_t __Pyx_PyInt_As_int32_t(PyObject *);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

/* FetchCommonType.proto */
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyObjectCallMethod1.proto */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* CoroutineBase.proto */
typedef PyObject *(*__pyx_coroutine_body_t)(PyObject *, PyThreadState *, PyObject *);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_ExcInfoStruct  _PyErr_StackItem
#else
typedef struct {
    PyObject *exc_type;
    PyObject *exc_value;
    PyObject *exc_traceback;
} __Pyx_ExcInfoStruct;
#endif
typedef struct {
    PyObject_HEAD
    __pyx_coroutine_body_t body;
    PyObject *closure;
    __Pyx_ExcInfoStruct gi_exc_state;
    PyObject *gi_weakreflist;
    PyObject *classobj;
    PyObject *yieldfrom;
    PyObject *gi_name;
    PyObject *gi_qualname;
    PyObject *gi_modulename;
    PyObject *gi_code;
    int resume_label;
    char is_running;
} __pyx_CoroutineObject;
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
    PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
    PyObject *name, PyObject *qualname, PyObject *module_name);
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name);
static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self);
static int __Pyx_Coroutine_clear(PyObject *self);
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value);
static PyObject *__Pyx_Coroutine_Close(PyObject *self);
static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_Coroutine_SwapException(self)
#define __Pyx_Coroutine_ResetAndClearException(self)  __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state)
#else
#define __Pyx_Coroutine_SwapException(self) {\
    __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\
    __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\
    }
#define __Pyx_Coroutine_ResetAndClearException(self) {\
    __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\
    (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\
    }
#endif
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)
#else
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue)
#endif
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue);
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state);

/* PatchModuleWithCoroutine.proto */
static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code);

/* PatchGeneratorABC.proto */
static int __Pyx_patch_abc(void);

/* Generator.proto */
#define __Pyx_Generator_USED
static PyTypeObject *__pyx_GeneratorType = 0;
#define __Pyx_Generator_CheckExact(obj) (Py_TYPE(obj) == __pyx_GeneratorType)
#define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\
    __Pyx__Coroutine_New(__pyx_GeneratorType, body, code, closure, name, qualname, module_name)
static PyObject *__Pyx_Generator_Next(PyObject *self);
static int __pyx_Generator_init(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);


/* Module declarations from 'libc.string' */

/* Module declarations from 'libcpp.string' */

/* Module declarations from 'libcpp.utility' */

/* Module declarations from 'libcpp.set' */

/* Module declarations from 'libcpp.vector' */

/* Module declarations from 'libcpp.pair' */

/* Module declarations from 'libcpp.map' */

/* Module declarations from 'libcpp' */

/* Module declarations from 'AutowrapRefHolder' */

/* Module declarations from 'AutowrapPtrHolder' */

/* Module declarations from 'AutowrapConstPtrHolder' */

/* Module declarations from 'smart_ptr' */

/* Module declarations from 'libc.stdint' */

/* Module declarations from 'libc.stdio' */

/* Module declarations from '__builtin__' */

/* Module declarations from 'cpython.type' */
static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;

/* Module declarations from 'cpython' */

/* Module declarations from 'cpython.object' */

/* Module declarations from 'cpython.ref' */

/* Module declarations from 'match' */

/* Module declarations from 'match_iterator' */

/* Module declarations from 'dictionary' */

/* Module declarations from 'cluster' */

/* Module declarations from 'dictionary_compiler' */

/* Module declarations from 'dictionary_merger' */

/* Module declarations from 'std_smart_ptr' */

/* Module declarations from 'forward_backward_completion' */

/* Module declarations from 'normalization' */

/* Module declarations from 'index' */

/* Module declarations from 'vector' */

/* Module declarations from 'vector_generator' */

/* Module declarations from 'generator' */

/* Module declarations from 'multi_word_completion' */

/* Module declarations from 'predictive_compression' */

/* Module declarations from 'prefix_completion' */

/* Module declarations from 'read_only_index' */

/* Module declarations from 'cpython.version' */

/* Module declarations from '_core' */
static PyTypeObject *__pyx_ptype_5_core_CompletionDictionaryCompiler = 0;
static PyTypeObject *__pyx_ptype_5_core_CompletionDictionaryMerger = 0;
static PyTypeObject *__pyx_ptype_5_core_Dictionary = 0;
static PyTypeObject *__pyx_ptype_5_core_ForwardBackwardCompletion = 0;
static PyTypeObject *__pyx_ptype_5_core_FsaTransform = 0;
static PyTypeObject *__pyx_ptype_5_core_Index = 0;
static PyTypeObject *__pyx_ptype_5_core_IntDictionaryCompiler = 0;
static PyTypeObject *__pyx_ptype_5_core_IntDictionaryCompilerSmallData = 0;
static PyTypeObject *__pyx_ptype_5_core_IntDictionaryMerger = 0;
static PyTypeObject *__pyx_ptype_5_core_JsonDictionaryCompiler = 0;
static PyTypeObject *__pyx_ptype_5_core_JsonDictionaryCompilerSmallData = 0;
static PyTypeObject *__pyx_ptype_5_core_JsonDictionaryMerger = 0;
static PyTypeObject *__pyx_ptype_5_core_JsonVector = 0;
static PyTypeObject *__pyx_ptype_5_core_JsonVectorGenerator = 0;
static PyTypeObject *__pyx_ptype_5_core_KeyOnlyDictionaryCompiler = 0;
static PyTypeObject *__pyx_ptype_5_core_KeyOnlyDictionaryGenerator = 0;
static PyTypeObject *__pyx_ptype_5_core_KeyOnlyDictionaryMerger = 0;
static PyTypeObject *__pyx_ptype_5_core_Match = 0;
static PyTypeObject *__pyx_ptype_5_core_MultiWordCompletion = 0;
static PyTypeObject *__pyx_ptype_5_core_PredictiveCompression = 0;
static PyTypeObject *__pyx_ptype_5_core_PrefixCompletion = 0;
static PyTypeObject *__pyx_ptype_5_core_ReadOnlyIndex = 0;
static PyTypeObject *__pyx_ptype_5_core_StringDictionaryCompiler = 0;
static PyTypeObject *__pyx_ptype_5_core_StringDictionaryMerger = 0;
static PyTypeObject *__pyx_ptype_5_core_StringVector = 0;
static PyTypeObject *__pyx_ptype_5_core_StringVectorGenerator = 0;
static PyTypeObject *__pyx_ptype_5_core_loading_strategy_types = 0;
static PyTypeObject *__pyx_ptype_5_core_MatchIterator = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct___init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_1_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_2_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_3___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_4_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_5_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_6__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_7_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_8_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_9___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_10_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_11_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_12__key_iterator_wrapper = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_13__value_iterator_wrapper = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_14__item_iterator_wrapper = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_15___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_16_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_17_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_18__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_19_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_20_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_21___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_22_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_23_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_24__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_25_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_26_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_27___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_28_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_29_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_30__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_31_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_32_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_33___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_34_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_35_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_36__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_37_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_38_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_39___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_40_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_41_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_42__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_43_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_44_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_45___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_46_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_47_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_48__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_49_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_50_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_51___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_52_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_53_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_54__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_55_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_56_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_57___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_58_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_59_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_60__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_61_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_62_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_63___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_64_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_65_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_66__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_67_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_68_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_69___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_70_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_71_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_72__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_73_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_74_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_75___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_76_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_77_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_78__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_79_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_80_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_81___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_82_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_83_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_84__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_85_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_86_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_87___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_88_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_89_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_90__init_1 = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_91_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_92_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_93___init__ = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_94_genexpr = 0;
static PyTypeObject *__pyx_ptype_5_core___pyx_scope_struct_95_genexpr = 0;
static void __pyx_f_5_core_callback_wrapper(size_t, size_t, void *); /*proto*/
static PyObject *__pyx_f_5_core___pyx_unpickle_loading_strategy_types__set_state(struct __pyx_obj_5_core_loading_strategy_types *, PyObject *); /*proto*/
static std::string __pyx_convert_string_from_py_std__in_string(PyObject *); /*proto*/
static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &); /*proto*/
static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &); /*proto*/
static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &); /*proto*/
static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &); /*proto*/
static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &); /*proto*/
#define __Pyx_MODULE_NAME "_core"
extern int __pyx_module_is_main__core;
int __pyx_module_is_main__core = 0;

/* Implementation of '_core' */
static PyObject *__pyx_builtin_staticmethod;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_KeyError;
static PyObject *__pyx_builtin_StopIteration;
static const char __pyx_k_m[] = "m";
static const char __pyx_k_r[] = "_r";
static const char __pyx_k_os[] = "os";
static const char __pyx_k_Add[] = "Add";
static const char __pyx_k__11[] = " ";
static const char __pyx_k__55[] = "..";
static const char __pyx_k_key[] = "key";
static const char __pyx_k_new[] = "__new__";
static const char __pyx_k_sys[] = "sys";
static const char __pyx_k_args[] = "args";
static const char __pyx_k_core[] = "_core";
static const char __pyx_k_dict[] = "__dict__";
static const char __pyx_k_file[] = "__file__";
static const char __pyx_k_in_0[] = "in_0";
static const char __pyx_k_in_1[] = "in_1";
static const char __pyx_k_join[] = "join";
static const char __pyx_k_json[] = "json";
static const char __pyx_k_keys[] = "keys";
static const char __pyx_k_lazy[] = "lazy";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_name[] = "__name__";
static const char __pyx_k_path[] = "path";
static const char __pyx_k_send[] = "send";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_type[] = "type";
static const char __pyx_k_Index[] = "Index";
static const char __pyx_k_Match[] = "Match";
static const char __pyx_k_UTF_8[] = "UTF-8";
static const char __pyx_k_class[] = "__class__";
static const char __pyx_k_close[] = "close";
static const char __pyx_k_dumps[] = "dumps";
static const char __pyx_k_items[] = "items";
static const char __pyx_k_keyvi[] = "keyvi";
static const char __pyx_k_loads[] = "loads";
static const char __pyx_k_throw[] = "throw";
static const char __pyx_k_utf_8[] = "utf-8";
static const char __pyx_k_value[] = "value";
static const char __pyx_k_SetEnd[] = "SetEnd";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_greedy[] = "greedy";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_init_0[] = "_init_0";
static const char __pyx_k_init_1[] = "_init_1";
static const char __pyx_k_params[] = "params";
static const char __pyx_k_pickle[] = "pickle";
static const char __pyx_k_pycore[] = "_pycore";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_update[] = "update";
static const char __pyx_k_values[] = "values";
static const char __pyx_k_Compile[] = "Compile";
static const char __pyx_k_Flush_0[] = "_Flush_0";
static const char __pyx_k_Flush_1[] = "_Flush_1";
static const char __pyx_k_abspath[] = "abspath";
static const char __pyx_k_default[] = "default";
static const char __pyx_k_dirname[] = "dirname";
static const char __pyx_k_genexpr[] = "genexpr";
static const char __pyx_k_msgpack[] = "msgpack";
static const char __pyx_k_os_path[] = "os.path";
static const char __pyx_k_GetValue[] = "GetValue";
static const char __pyx_k_KeyError[] = "KeyError";
static const char __pyx_k_SetScore[] = "SetScore";
static const char __pyx_k_SetStart[] = "SetStart";
static const char __pyx_k_core_pyx[] = "_core.pyx";
static const char __pyx_k_filename[] = "filename";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_populate[] = "populate";
static const char __pyx_k_pyx_type[] = "__pyx_type";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_GetNear_0[] = "_GetNear_0";
static const char __pyx_k_GetNear_1[] = "_GetNear_1";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_py_result[] = "py_result";
static const char __pyx_k_pyx_state[] = "__pyx_state";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_traceback[] = "traceback";
static const char __pyx_k_Dictionary[] = "Dictionary";
static const char __pyx_k_JsonVector[] = "JsonVector";
static const char __pyx_k_default_os[] = "default_os";
static const char __pyx_k_executable[] = "executable";
static const char __pyx_k_pyx_result[] = "__pyx_result";
static const char __pyx_k_PickleError[] = "PickleError";
static const char __pyx_k_SetRawValue[] = "__SetRawValue";
static const char __pyx_k_FsaTransform[] = "FsaTransform";
static const char __pyx_k_StringVector[] = "StringVector";
static const char __pyx_k_pyx_checksum[] = "__pyx_checksum";
static const char __pyx_k_staticmethod[] = "staticmethod";
static const char __pyx_k_stringsource[] = "stringsource";
static const char __pyx_k_unserialized[] = "unserialized";
static const char __pyx_k_MatchIterator[] = "MatchIterator";
static const char __pyx_k_ReadOnlyIndex[] = "ReadOnlyIndex";
static const char __pyx_k_StopIteration[] = "StopIteration";
static const char __pyx_k_keyvi__pycore[] = "keyvi._pycore";
static const char __pyx_k_populate_lazy[] = "populate_lazy";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_keyvimerger_py[] = "keyvimerger.py";
static const char __pyx_k_keyvimerger_bin[] = "keyvimerger_bin";
static const char __pyx_k_module_location[] = "module_location";
static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_GetCompletions_0[] = "_GetCompletions_0";
static const char __pyx_k_GetCompletions_1[] = "_GetCompletions_1";
static const char __pyx_k_GetMatchedString[] = "GetMatchedString";
static const char __pyx_k_PrefixCompletion[] = "PrefixCompletion";
static const char __pyx_k_SetMatchedString[] = "SetMatchedString";
static const char __pyx_k_arg_m_wrong_type[] = "arg m wrong type";
static const char __pyx_k_get_package_root[] = "get_package_root";
static const char __pyx_k_number_of_fields[] = "number_of_fields";
static const char __pyx_k_serialized_match[] = "serialized_match";
static const char __pyx_k_lazy_no_readahead[] = "lazy_no_readahead";
static const char __pyx_k_max_edit_distance[] = "max_edit_distance";
static const char __pyx_k_populate_key_part[] = "populate_key_part";
static const char __pyx_k_arg_end_wrong_type[] = "arg end wrong type";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_IntDictionaryMerger[] = "IntDictionaryMerger";
static const char __pyx_k_JsonVectorGenerator[] = "JsonVectorGenerator";
static const char __pyx_k_MultiWordCompletion[] = "MultiWordCompletion";
static const char __pyx_k_arg_in_0_wrong_type[] = "arg in_0 wrong type";
static const char __pyx_k_arg_in_1_wrong_type[] = "arg in_1 wrong type";
static const char __pyx_k_JsonDictionaryMerger[] = "JsonDictionaryMerger";
static const char __pyx_k_arg_index_wrong_type[] = "arg index wrong type";
static const char __pyx_k_arg_score_wrong_type[] = "arg score wrong type";
static const char __pyx_k_arg_start_wrong_type[] = "arg start wrong type";
static const char __pyx_k_key_iterator_wrapper[] = "_key_iterator_wrapper";
static const char __pyx_k_minimum_exact_prefix[] = "minimum_exact_prefix";
static const char __pyx_k_IntDictionaryCompiler[] = "IntDictionaryCompiler";
static const char __pyx_k_PredictiveCompression[] = "PredictiveCompression";
static const char __pyx_k_StringVectorGenerator[] = "StringVectorGenerator";
static const char __pyx_k_arg_greedy_wrong_type[] = "arg greedy wrong type";
static const char __pyx_k_arg_params_wrong_type[] = "arg params wrong type";
static const char __pyx_k_init_1_locals_genexpr[] = "_init_1.<locals>.genexpr";
static const char __pyx_k_init___locals_genexpr[] = "__init__.<locals>.genexpr";
static const char __pyx_k_item_iterator_wrapper[] = "_item_iterator_wrapper";
static const char __pyx_k_minimum_prefix_length[] = "minimum_prefix_length";
static const char __pyx_k_JsonDictionaryCompiler[] = "JsonDictionaryCompiler";
static const char __pyx_k_StringDictionaryMerger[] = "StringDictionaryMerger";
static const char __pyx_k_Unsupported_Value_Type[] = "Unsupported Value Type";
static const char __pyx_k_can_not_handle_type_of[] = "can not handle type of ";
static const char __pyx_k_loading_strategy_types[] = "loading_strategy_types";
static const char __pyx_k_value_iterator_wrapper[] = "_value_iterator_wrapper";
static const char __pyx_k_KeyOnlyDictionaryMerger[] = "KeyOnlyDictionaryMerger";
static const char __pyx_k_arg_filename_wrong_type[] = "arg filename wrong type";
static const char __pyx_k_JumpConsistentHashString[] = "JumpConsistentHashString";
static const char __pyx_k_StringDictionaryCompiler[] = "StringDictionaryCompiler";
static const char __pyx_k_ForwardBackwardCompletion[] = "ForwardBackwardCompletion";
static const char __pyx_k_KeyOnlyDictionaryCompiler[] = "KeyOnlyDictionaryCompiler";
static const char __pyx_k_CompletionDictionaryMerger[] = "CompletionDictionaryMerger";
static const char __pyx_k_KeyOnlyDictionaryGenerator[] = "KeyOnlyDictionaryGenerator";
static const char __pyx_k_get_interpreter_executable[] = "get_interpreter_executable";
static const char __pyx_k_CompletionDictionaryCompiler[] = "CompletionDictionaryCompiler";
static const char __pyx_k_lazy_no_readahead_value_part[] = "lazy_no_readahead_value_part";
static const char __pyx_k_arg_matched_string_wrong_type[] = "arg matched_string wrong type";
static const char __pyx_k_pyx_unpickle_loading_strategy[] = "__pyx_unpickle_loading_strategy_types";
static const char __pyx_k_IntDictionaryCompilerSmallData[] = "IntDictionaryCompilerSmallData";
static const char __pyx_k_JsonDictionaryCompilerSmallData[] = "JsonDictionaryCompilerSmallData";
static const char __pyx_k_arg_minimum_prefix_length_wrong[] = "arg minimum_prefix_length wrong type";
static const char __pyx_k_Dictionary__item_iterator_wrappe[] = "Dictionary._item_iterator_wrapper";
static const char __pyx_k_Dictionary__key_iterator_wrapper[] = "Dictionary._key_iterator_wrapper";
static const char __pyx_k_Dictionary__value_iterator_wrapp[] = "Dictionary._value_iterator_wrapper";
static const char __pyx_k_Incompatible_checksums_s_vs_0xd4[] = "Incompatible checksums (%s vs 0xd41d8cd = ())";
static const char __pyx_k_arg_max_edit_distance_wrong_type[] = "arg max_edit_distance wrong type";
static const char __pyx_k_arg_minimum_exact_prefix_wrong_t[] = "arg minimum_exact_prefix wrong type";
static const char __pyx_k_arg_value_store_params_wrong_typ[] = "arg value_store_params wrong type";
static const char __pyx_k_populate_key_part_no_readahead_v[] = "populate_key_part_no_readahead_value_part";
static const char __pyx_k_self_end_self_it_cannot_be_conve[] = "self.end,self.it cannot be converted to a Python object for pickling";
static const char __pyx_k_self_inst_cannot_be_converted_to[] = "self.inst cannot be converted to a Python object for pickling";
static PyObject *__pyx_n_s_Add;
static PyObject *__pyx_n_s_Compile;
static PyObject *__pyx_n_s_CompletionDictionaryCompiler;
static PyObject *__pyx_n_s_CompletionDictionaryMerger;
static PyObject *__pyx_n_s_Dictionary;
static PyObject *__pyx_n_s_Dictionary__item_iterator_wrappe;
static PyObject *__pyx_n_s_Dictionary__key_iterator_wrapper;
static PyObject *__pyx_n_s_Dictionary__value_iterator_wrapp;
static PyObject *__pyx_n_s_Flush_0;
static PyObject *__pyx_n_s_Flush_1;
static PyObject *__pyx_n_s_ForwardBackwardCompletion;
static PyObject *__pyx_n_s_FsaTransform;
static PyObject *__pyx_n_s_GetCompletions_0;
static PyObject *__pyx_n_s_GetCompletions_1;
static PyObject *__pyx_n_s_GetMatchedString;
static PyObject *__pyx_n_s_GetNear_0;
static PyObject *__pyx_n_s_GetNear_1;
static PyObject *__pyx_n_s_GetValue;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xd4;
static PyObject *__pyx_n_s_Index;
static PyObject *__pyx_n_s_IntDictionaryCompiler;
static PyObject *__pyx_n_s_IntDictionaryCompilerSmallData;
static PyObject *__pyx_n_s_IntDictionaryMerger;
static PyObject *__pyx_n_s_JsonDictionaryCompiler;
static PyObject *__pyx_n_s_JsonDictionaryCompilerSmallData;
static PyObject *__pyx_n_s_JsonDictionaryMerger;
static PyObject *__pyx_n_s_JsonVector;
static PyObject *__pyx_n_s_JsonVectorGenerator;
static PyObject *__pyx_n_s_JumpConsistentHashString;
static PyObject *__pyx_n_s_KeyError;
static PyObject *__pyx_n_s_KeyOnlyDictionaryCompiler;
static PyObject *__pyx_n_s_KeyOnlyDictionaryGenerator;
static PyObject *__pyx_n_s_KeyOnlyDictionaryMerger;
static PyObject *__pyx_n_s_Match;
static PyObject *__pyx_n_s_MatchIterator;
static PyObject *__pyx_n_s_MultiWordCompletion;
static PyObject *__pyx_n_s_PickleError;
static PyObject *__pyx_n_s_PredictiveCompression;
static PyObject *__pyx_n_s_PrefixCompletion;
static PyObject *__pyx_n_s_ReadOnlyIndex;
static PyObject *__pyx_n_s_SetEnd;
static PyObject *__pyx_n_s_SetMatchedString;
static PyObject *__pyx_n_s_SetRawValue;
static PyObject *__pyx_n_s_SetScore;
static PyObject *__pyx_n_s_SetStart;
static PyObject *__pyx_n_s_StopIteration;
static PyObject *__pyx_n_s_StringDictionaryCompiler;
static PyObject *__pyx_n_s_StringDictionaryMerger;
static PyObject *__pyx_n_s_StringVector;
static PyObject *__pyx_n_s_StringVectorGenerator;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_kp_u_UTF_8;
static PyObject *__pyx_kp_u_Unsupported_Value_Type;
static PyObject *__pyx_kp_b__11;
static PyObject *__pyx_kp_u__55;
static PyObject *__pyx_n_s_abspath;
static PyObject *__pyx_kp_u_arg_end_wrong_type;
static PyObject *__pyx_kp_u_arg_filename_wrong_type;
static PyObject *__pyx_kp_u_arg_greedy_wrong_type;
static PyObject *__pyx_kp_u_arg_in_0_wrong_type;
static PyObject *__pyx_kp_u_arg_in_1_wrong_type;
static PyObject *__pyx_kp_u_arg_index_wrong_type;
static PyObject *__pyx_kp_u_arg_m_wrong_type;
static PyObject *__pyx_kp_u_arg_matched_string_wrong_type;
static PyObject *__pyx_kp_u_arg_max_edit_distance_wrong_type;
static PyObject *__pyx_kp_u_arg_minimum_exact_prefix_wrong_t;
static PyObject *__pyx_kp_u_arg_minimum_prefix_length_wrong;
static PyObject *__pyx_kp_u_arg_params_wrong_type;
static PyObject *__pyx_kp_u_arg_score_wrong_type;
static PyObject *__pyx_kp_u_arg_start_wrong_type;
static PyObject *__pyx_kp_u_arg_value_store_params_wrong_typ;
static PyObject *__pyx_n_s_args;
static PyObject *__pyx_kp_u_can_not_handle_type_of;
static PyObject *__pyx_n_s_class;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_close;
static PyObject *__pyx_n_s_core;
static PyObject *__pyx_kp_s_core_pyx;
static PyObject *__pyx_n_s_default;
static PyObject *__pyx_n_s_default_os;
static PyObject *__pyx_n_s_dict;
static PyObject *__pyx_n_s_dirname;
static PyObject *__pyx_n_s_dumps;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_executable;
static PyObject *__pyx_n_s_file;
static PyObject *__pyx_n_s_filename;
static PyObject *__pyx_n_s_genexpr;
static PyObject *__pyx_n_s_get_interpreter_executable;
static PyObject *__pyx_n_s_get_package_root;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_n_s_greedy;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_in_0;
static PyObject *__pyx_n_s_in_1;
static PyObject *__pyx_n_s_init_0;
static PyObject *__pyx_n_s_init_1;
static PyObject *__pyx_n_s_init_1_locals_genexpr;
static PyObject *__pyx_n_s_init___locals_genexpr;
static PyObject *__pyx_n_s_item_iterator_wrapper;
static PyObject *__pyx_n_s_items;
static PyObject *__pyx_n_s_join;
static PyObject *__pyx_n_s_json;
static PyObject *__pyx_n_s_key;
static PyObject *__pyx_n_s_key_iterator_wrapper;
static PyObject *__pyx_n_s_keys;
static PyObject *__pyx_n_s_keyvi;
static PyObject *__pyx_n_s_keyvi__pycore;
static PyObject *__pyx_n_b_keyvimerger_bin;
static PyObject *__pyx_kp_b_keyvimerger_py;
static PyObject *__pyx_n_s_lazy;
static PyObject *__pyx_n_s_lazy_no_readahead;
static PyObject *__pyx_n_s_lazy_no_readahead_value_part;
static PyObject *__pyx_n_s_loading_strategy_types;
static PyObject *__pyx_n_s_loads;
static PyObject *__pyx_n_s_m;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_max_edit_distance;
static PyObject *__pyx_n_s_minimum_exact_prefix;
static PyObject *__pyx_n_s_minimum_prefix_length;
static PyObject *__pyx_n_s_module_location;
static PyObject *__pyx_n_s_msgpack;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_new;
static PyObject *__pyx_n_s_number_of_fields;
static PyObject *__pyx_n_s_os;
static PyObject *__pyx_n_s_os_path;
static PyObject *__pyx_n_s_params;
static PyObject *__pyx_n_s_path;
static PyObject *__pyx_n_s_pickle;
static PyObject *__pyx_n_s_populate;
static PyObject *__pyx_n_s_populate_key_part;
static PyObject *__pyx_n_s_populate_key_part_no_readahead_v;
static PyObject *__pyx_n_s_populate_lazy;
static PyObject *__pyx_n_s_py_result;
static PyObject *__pyx_n_b_pycore;
static PyObject *__pyx_n_s_pycore;
static PyObject *__pyx_n_s_pyx_PickleError;
static PyObject *__pyx_n_s_pyx_checksum;
static PyObject *__pyx_n_s_pyx_result;
static PyObject *__pyx_n_s_pyx_state;
static PyObject *__pyx_n_s_pyx_type;
static PyObject *__pyx_n_s_pyx_unpickle_loading_strategy;
static PyObject *__pyx_n_s_r;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_reduce_cython;
static PyObject *__pyx_n_s_reduce_ex;
static PyObject *__pyx_kp_s_self_end_self_it_cannot_be_conve;
static PyObject *__pyx_kp_s_self_inst_cannot_be_converted_to;
static PyObject *__pyx_n_s_send;
static PyObject *__pyx_n_s_serialized_match;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_staticmethod;
static PyObject *__pyx_kp_s_stringsource;
static PyObject *__pyx_n_s_sys;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_throw;
static PyObject *__pyx_n_s_traceback;
static PyObject *__pyx_n_s_type;
static PyObject *__pyx_n_s_unserialized;
static PyObject *__pyx_n_s_update;
static PyObject *__pyx_kp_u_utf_8;
static PyObject *__pyx_n_s_value;
static PyObject *__pyx_n_s_value_iterator_wrapper;
static PyObject *__pyx_n_s_values;
static PyObject *__pyx_pf_5_core_JumpConsistentHashString(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static void __pyx_pf_5_core_28CompletionDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_28CompletionDictionaryCompiler_6__init__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_8Add(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_28CompletionDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_20Compile(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_26CompletionDictionaryMerger___dealloc__(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_2_init_0(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_4_init_1(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_26CompletionDictionaryMerger_6__init__(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_8Add(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_12Merge(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_10Dictionary___dealloc__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_2_init_0(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_filename); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_4_init_1(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_filename, int __pyx_v_in_1); /* proto */
static int __pyx_pf_5_core_10Dictionary_6__init__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_8Get(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_10_GetNear_0(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_minimum_prefix_length); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_12_GetNear_1(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_minimum_prefix_length, PyObject *__pyx_v_greedy); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_14GetNear(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_16GetFuzzy(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_18Lookup(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_20LookupText(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_22GetManifest(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_24get(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_default); /* proto */
static int __pyx_pf_5_core_10Dictionary_26__contains__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static Py_ssize_t __pyx_pf_5_core_10Dictionary_28__len__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_30__getitem__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_32_key_iterator_wrapper(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_iterator); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_35_value_iterator_wrapper(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_iterator); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_38_item_iterator_wrapper(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_iterator); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_41GetAllKeys(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_43GetAllValues(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_45GetAllItems(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_47GetStatistics(struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_49__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10Dictionary_51__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_25ForwardBackwardCompletion___dealloc__(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_25ForwardBackwardCompletion_2__init__(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_4_GetCompletions_0(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_6_GetCompletions_1(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_8GetCompletions(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_12FsaTransform___dealloc__(struct __pyx_obj_5_core_FsaTransform *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_12FsaTransform_2__init__(struct __pyx_obj_5_core_FsaTransform *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_12FsaTransform_4Normalize(struct __pyx_obj_5_core_FsaTransform *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_12FsaTransform_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_FsaTransform *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_12FsaTransform_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_FsaTransform *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_5Index___dealloc__(struct __pyx_obj_5_core_Index *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Index_2Set(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_5Index_4GetFuzzy(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance, PyObject *__pyx_v_minimum_exact_prefix); /* proto */
static PyObject *__pyx_pf_5_core_5Index_6Delete(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_5Index_8_Flush_0(struct __pyx_obj_5_core_Index *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Index_10_Flush_1(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_5Index_12Flush(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_5Index_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_5Index_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_5Index_14__init__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static int __pyx_pf_5_core_5Index_16__delitem__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_5Index_18Get(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_default); /* proto */
static int __pyx_pf_5_core_5Index_20__contains__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_5Index_22__getitem__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_5Index_24MSet(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key_values); /* proto */
static PyObject *__pyx_pf_5_core_5Index_26__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Index *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Index_28__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Index *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_21IntDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_21IntDictionaryCompiler_6__init__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_8Add(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_21IntDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_20Compile(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_30IntDictionaryCompilerSmallData___dealloc__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_2_init_0(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_4_init_1(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_30IntDictionaryCompilerSmallData_6__init__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_8Add(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_10SetManifest(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_12WriteToFile(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_14__enter__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_30IntDictionaryCompilerSmallData_16__setitem__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_18__exit__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_20Compile(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_19IntDictionaryMerger___dealloc__(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_2_init_0(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_4_init_1(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_19IntDictionaryMerger_6__init__(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_8Add(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_12Merge(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_22JsonDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_22JsonDictionaryCompiler_6__init__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_8Add(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_22JsonDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_20Compile(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_31JsonDictionaryCompilerSmallData___dealloc__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_2_init_0(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_4_init_1(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_6__init__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8SetManifest(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_10WriteToFile(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_12__enter__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_14__setitem__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_16__exit__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_18Add(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_20Compile(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_20JsonDictionaryMerger___dealloc__(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_2_init_0(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_4_init_1(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_20JsonDictionaryMerger_6__init__(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_8Add(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_12Merge(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_10JsonVector___dealloc__(struct __pyx_obj_5_core_JsonVector *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_10JsonVector_2__init__(struct __pyx_obj_5_core_JsonVector *__pyx_v_self, PyObject *__pyx_v_filename); /* proto */
static PyObject *__pyx_pf_5_core_10JsonVector_4Size(struct __pyx_obj_5_core_JsonVector *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10JsonVector_6Manifest(struct __pyx_obj_5_core_JsonVector *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10JsonVector_8Get(struct __pyx_obj_5_core_JsonVector *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static PyObject *__pyx_pf_5_core_10JsonVector_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVector *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_10JsonVector_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVector *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_19JsonVectorGenerator___dealloc__(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_2_init_0(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_4_init_1(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_19JsonVectorGenerator_6__init__(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_8SetManifest(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_10WriteToFile(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_12PushBack(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_25KeyOnlyDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_6__init__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8Add(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_20Compile(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_26KeyOnlyDictionaryGenerator___dealloc__(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_2__init__(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_4Add(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_6CloseFeeding(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_8WriteToFile(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_23KeyOnlyDictionaryMerger___dealloc__(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_2_init_0(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_4_init_1(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_23KeyOnlyDictionaryMerger_6__init__(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_8Add(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_12Merge(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_5Match___dealloc__(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_2__copy__(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_4__deepcopy__(struct __pyx_obj_5_core_Match *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_memo); /* proto */
static PyObject *__pyx_pf_5_core_5Match_6_init_0(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_8_init_1(struct __pyx_obj_5_core_Match *__pyx_v_self, struct __pyx_obj_5_core_Match *__pyx_v_m); /* proto */
static int __pyx_pf_5_core_5Match_10__init__(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_5Match_12GetStart(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_14SetStart(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_start); /* proto */
static PyObject *__pyx_pf_5_core_5Match_16GetEnd(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_18SetEnd(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_end); /* proto */
static PyObject *__pyx_pf_5_core_5Match_20GetScore(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_22SetScore(struct __pyx_obj_5_core_Match *__pyx_v_self, float __pyx_v_score); /* proto */
static PyObject *__pyx_pf_5_core_5Match_24GetMatchedString(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_26SetMatchedString(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_matched_string); /* proto */
static PyObject *__pyx_pf_5_core_5Match_28GetValueAsString(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_30GetRawValueAsString(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_32IsEmpty(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_34GetAttribute(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_5Match_36SetAttribute(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_5Match_38GetValue(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_40dumps(struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_42__SetRawValue(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_str); /* proto */
static PyObject *__pyx_pf_5_core_5Match_44loads(PyObject *__pyx_v_serialized_match); /* proto */
static PyObject *__pyx_pf_5_core_5Match_46__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Match *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_5Match_48__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Match *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_19MultiWordCompletion___dealloc__(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_19MultiWordCompletion_2__init__(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19MultiWordCompletion_4_GetCompletions_0(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_19MultiWordCompletion_6_GetCompletions_1(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_19MultiWordCompletion_8GetCompletions(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_19MultiWordCompletion_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_19MultiWordCompletion_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_21PredictiveCompression___dealloc__(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_21PredictiveCompression_2__init__(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21PredictiveCompression_4Compress(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21PredictiveCompression_6Uncompress(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21PredictiveCompression_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21PredictiveCompression_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_16PrefixCompletion___dealloc__(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_16PrefixCompletion_2__init__(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_16PrefixCompletion_4_GetCompletions_0(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_16PrefixCompletion_6_GetCompletions_1(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_16PrefixCompletion_8GetCompletions(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_16PrefixCompletion_10GetFuzzyCompletions(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance); /* proto */
static PyObject *__pyx_pf_5_core_16PrefixCompletion_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_16PrefixCompletion_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_13ReadOnlyIndex___dealloc__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_2_init_0(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_4_init_1(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_params); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_13ReadOnlyIndex_6__init__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_8GetFuzzy(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance, PyObject *__pyx_v_minimum_exact_prefix); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_10Get(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_default); /* proto */
static int __pyx_pf_5_core_13ReadOnlyIndex_12__contains__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_14__getitem__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_24StringDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_24StringDictionaryCompiler_6__init__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_8Add(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_24StringDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_20Compile(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_22StringDictionaryMerger___dealloc__(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_2_init_0(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_4_init_1(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_22StringDictionaryMerger_6__init__(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_8Add(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_12Merge(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_12StringVector___dealloc__(struct __pyx_obj_5_core_StringVector *__pyx_v_self); /* proto */
static int __pyx_pf_5_core_12StringVector_2__init__(struct __pyx_obj_5_core_StringVector *__pyx_v_self, PyObject *__pyx_v_filename); /* proto */
static PyObject *__pyx_pf_5_core_12StringVector_4Get(struct __pyx_obj_5_core_StringVector *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static PyObject *__pyx_pf_5_core_12StringVector_6Size(struct __pyx_obj_5_core_StringVector *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_12StringVector_8Manifest(struct __pyx_obj_5_core_StringVector *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_12StringVector_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVector *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_12StringVector_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVector *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_pf_5_core_21StringVectorGenerator___dealloc__(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_2_init_0(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_7_init_1_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_7_init_1_3genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_4_init_1(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_value_store_params); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_8__init___genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_8__init___3genexpr(PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_core_21StringVectorGenerator_6__init__(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_8PushBack(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_10SetManifest(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_12WriteToFile(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_21StringVectorGenerator_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_5_core_22loading_strategy_types_getMapping(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22loading_strategy_types_2__reduce_cython__(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_22loading_strategy_types_4__setstate_cython__(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_5_core_2get_package_root(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_4get_interpreter_executable(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_core_13MatchIterator___iter__(struct __pyx_obj_5_core_MatchIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_13MatchIterator_2__next__(struct __pyx_obj_5_core_MatchIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_13MatchIterator_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MatchIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_core_13MatchIterator_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MatchIterator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_5_core_6__pyx_unpickle_loading_strategy_types(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_5_core_CompletionDictionaryCompiler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_CompletionDictionaryMerger(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_Dictionary(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_ForwardBackwardCompletion(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_FsaTransform(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_Index(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_IntDictionaryCompiler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_IntDictionaryCompilerSmallData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_IntDictionaryMerger(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_JsonDictionaryCompiler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_JsonDictionaryCompilerSmallData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_JsonDictionaryMerger(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_JsonVector(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_JsonVectorGenerator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_KeyOnlyDictionaryCompiler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_KeyOnlyDictionaryGenerator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_KeyOnlyDictionaryMerger(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_Match(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_MultiWordCompletion(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_PredictiveCompression(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_PrefixCompletion(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_ReadOnlyIndex(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_StringDictionaryCompiler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_StringDictionaryMerger(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_StringVector(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_StringVectorGenerator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_loading_strategy_types(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core_MatchIterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct___init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_1_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_2_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_3___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_4_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_5_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_6__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_7_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_8_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_9___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_10_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_11_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_12__key_iterator_wrapper(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_13__value_iterator_wrapper(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_14__item_iterator_wrapper(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_15___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_16_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_17_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_18__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_19_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_20_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_21___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_22_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_23_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_24__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_25_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_26_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_27___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_28_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_29_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_30__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_31_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_32_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_33___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_34_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_35_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_36__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_37_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_38_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_39___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_40_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_41_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_42__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_43_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_44_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_45___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_46_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_47_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_48__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_49_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_50_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_51___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_52_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_53_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_54__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_55_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_56_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_57___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_58_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_59_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_60__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_61_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_62_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_63___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_64_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_65_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_66__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_67_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_68_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_69___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_70_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_71_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_72__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_73_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_74_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_75___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_76_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_77_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_78__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_79_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_80_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_81___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_82_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_83_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_84__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_85_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_86_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_87___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_88_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_89_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_90__init_1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_91_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_92_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_93___init__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_94_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_95_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_3;
static PyObject *__pyx_int_4;
static PyObject *__pyx_int_5;
static PyObject *__pyx_int_6;
static PyObject *__pyx_int_7;
static PyObject *__pyx_int_222419149;
static PyObject *__pyx_tuple_;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7;
static PyObject *__pyx_tuple__8;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__14;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__22;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__24;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__32;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_tuple__34;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__40;
static PyObject *__pyx_tuple__41;
static PyObject *__pyx_tuple__42;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__44;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__46;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__48;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__50;
static PyObject *__pyx_tuple__51;
static PyObject *__pyx_tuple__52;
static PyObject *__pyx_tuple__53;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__56;
static PyObject *__pyx_tuple__57;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__64;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_codeobj__59;
static PyObject *__pyx_codeobj__61;
static PyObject *__pyx_codeobj__63;
static PyObject *__pyx_codeobj__65;
static PyObject *__pyx_codeobj__67;
/* Late includes */

/* "_core.pyx":52
 * cdef extern from "autowrap_tools.hpp":
 *     char * _cast_const_away(char *)
 * def JumpConsistentHashString( in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *     """Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)"""
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_1JumpConsistentHashString(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_JumpConsistentHashString[] = "Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)";
static PyMethodDef __pyx_mdef_5_core_1JumpConsistentHashString = {"JumpConsistentHashString", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_1JumpConsistentHashString, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_JumpConsistentHashString};
static PyObject *__pyx_pw_5_core_1JumpConsistentHashString(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("JumpConsistentHashString (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("JumpConsistentHashString", 1, 2, 2, 1); __PYX_ERR(0, 52, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "JumpConsistentHashString") < 0)) __PYX_ERR(0, 52, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("JumpConsistentHashString", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 52, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.JumpConsistentHashString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_JumpConsistentHashString(__pyx_self, __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_JumpConsistentHashString(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  uint32_t __pyx_v__r;
  uint32_t __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  uint32_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("JumpConsistentHashString", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":54
 * def JumpConsistentHashString( in_0 ,  in_1 ):
 *     """Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)"""
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *     assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *     if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 54, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":55
 *     """Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)"""
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *     assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *     if isinstance(in_0, unicode):
 *         in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 55, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":56
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *     assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *     if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *         in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":57
 *     assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *     if isinstance(in_0, unicode):
 *         in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *     cdef uint32_t _r = _JumpConsistentHashString_cluster((<libcpp_string>in_0), (<uint32_t>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 57, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 57, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":56
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *     assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *     if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *         in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":59
 *         in_0 = in_0.encode('utf-8')
 * 
 *     cdef uint32_t _r = _JumpConsistentHashString_cluster((<libcpp_string>in_0), (<uint32_t>in_1))             # <<<<<<<<<<<<<<
 *     py_result = <uint32_t>_r
 *     return py_result
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 59, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_uint32_t(__pyx_v_in_1); if (unlikely((__pyx_t_8 == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 59, __pyx_L1_error)
  __pyx_v__r = keyvi::dictionary::util::JumpConsistentHashString(((std::string)__pyx_t_7), ((uint32_t)__pyx_t_8));

  /* "_core.pyx":60
 * 
 *     cdef uint32_t _r = _JumpConsistentHashString_cluster((<libcpp_string>in_0), (<uint32_t>in_1))
 *     py_result = <uint32_t>_r             # <<<<<<<<<<<<<<
 *     return py_result
 * 
 */
  __pyx_v_py_result = ((uint32_t)__pyx_v__r);

  /* "_core.pyx":61
 *     cdef uint32_t _r = _JumpConsistentHashString_cluster((<libcpp_string>in_0), (<uint32_t>in_1))
 *     py_result = <uint32_t>_r
 *     return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class CompletionDictionaryCompiler:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyInt_From_uint32_t(__pyx_v_py_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "_core.pyx":52
 * cdef extern from "autowrap_tools.hpp":
 *     char * _cast_const_away(char *)
 * def JumpConsistentHashString( in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *     """Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)"""
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JumpConsistentHashString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":70
 *     cdef shared_ptr[_CompletionDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_28CompletionDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_28CompletionDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_28CompletionDictionaryCompiler___dealloc__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_28CompletionDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":71
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":70
 *     cdef shared_ptr[_CompletionDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":74
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryCompiler()"""
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_28CompletionDictionaryCompiler_2_init_0[] = "Cython signature: void CompletionDictionaryCompiler()";
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_2_init_0(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::CompletionDictionaryCompiler *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":76
 *     def _init_0(self):
 *         """Cython signature: void CompletionDictionaryCompiler()"""
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::CompletionDictionaryCompiler();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 76, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::CompletionDictionaryCompiler> (__pyx_t_1);

  /* "_core.pyx":74
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryCompiler()"""
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":78
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_28CompletionDictionaryCompiler_4_init_1[] = "Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 78, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_4_init_1(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_7_init_1_2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":80
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_1_genexpr(__pyx_ptype_5_core___pyx_scope_struct_1_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 80, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct___init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_28CompletionDictionaryCompiler_7_init_1_2generator3, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_7_init_1_2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 80, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 80, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 80, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_7_init_1_5generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_2_genexpr(__pyx_ptype_5_core___pyx_scope_struct_2_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 80, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct___init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_28CompletionDictionaryCompiler_7_init_1_5generator4, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_7_init_1_5generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 80, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 80, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 80, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":78
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct___init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::CompletionDictionaryCompiler *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct___init_1 *)__pyx_tp_new_5_core___pyx_scope_struct___init_1(__pyx_ptype_5_core___pyx_scope_struct___init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct___init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 78, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":80
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_28CompletionDictionaryCompiler_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_28CompletionDictionaryCompiler_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 80, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 80, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":81
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 81, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":82
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 82, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 82, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":83
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":84
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 84, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 84, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":83
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":85
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":86
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":85
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":87
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 87, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 87, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":90
 * 
 * 
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::CompletionDictionaryCompiler((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 90, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::CompletionDictionaryCompiler> (__pyx_t_15);

  /* "_core.pyx":91
 * 
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":78
 *         self.inst = shared_ptr[_CompletionDictionaryCompiler](new _CompletionDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":93
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryCompiler()
 */

/* Python wrapper */
static int __pyx_pw_5_core_28CompletionDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_28CompletionDictionaryCompiler_6__init__[] = "\n          - Cython signature: void CompletionDictionaryCompiler()\n          - Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_28CompletionDictionaryCompiler_6__init__;
#endif
static int __pyx_pw_5_core_28CompletionDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_6__init__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_8__init___2generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":100
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_4_genexpr(__pyx_ptype_5_core___pyx_scope_struct_4_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 100, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_28CompletionDictionaryCompiler_8__init___2generator5, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 100, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_8__init___2generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 100, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 100, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 100, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 100, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_8__init___5generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_5_genexpr(__pyx_ptype_5_core___pyx_scope_struct_5_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 100, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_28CompletionDictionaryCompiler_8__init___5generator6, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 100, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_28CompletionDictionaryCompiler_8__init___5generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 100, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 100, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 100, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 100, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":93
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryCompiler()
 */

static int __pyx_pf_5_core_28CompletionDictionaryCompiler_6__init__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_3___init__(__pyx_ptype_5_core___pyx_scope_struct_3___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 93, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":98
 *           - Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":99
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":98
 *           - Cython signature: void CompletionDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":100
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 100, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_28CompletionDictionaryCompiler_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_28CompletionDictionaryCompiler_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":101
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":100
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":103
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ,  in_1 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 103, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":93
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryCompiler()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":105
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_28CompletionDictionaryCompiler_8Add[] = "Cython signature: void Add(libcpp_utf8_string, int)";
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, 1); __PYX_ERR(0, 105, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Add") < 0)) __PYX_ERR(0, 105, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 105, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_8Add(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_8Add(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":107
 *     def Add(self,  in_0 ,  in_1 ):
 *         """Cython signature: void Add(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 107, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":108
 *         """Cython signature: void Add(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 108, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":109
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":110
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().Add((<libcpp_string>in_0), (<int>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":109
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":112
 *             in_0 = in_0.encode('utf-8')
 * 
 *         self.inst.get().Add((<libcpp_string>in_0), (<int>in_1))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 112, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_in_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 112, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7), ((int)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 112, __pyx_L1_error)
  }

  /* "_core.pyx":105
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":114
 *         self.inst.get().Add((<libcpp_string>in_0), (<int>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_28CompletionDictionaryCompiler_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_10SetManifest(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":116
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 116, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":117
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":118
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":117
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":119
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 119, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 119, __pyx_L1_error)
  }

  /* "_core.pyx":114
 *         self.inst.get().Add((<libcpp_string>in_0), (<int>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":121
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_28CompletionDictionaryCompiler_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_12WriteToFile(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":123
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 123, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":124
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":125
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":124
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":126
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 126, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 126, __pyx_L1_error)
  }

  /* "_core.pyx":121
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":128
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_14__enter__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":129
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":128
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":132
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_28CompletionDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_28CompletionDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_16__setitem__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_28CompletionDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":133
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":132
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":136
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 136, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 136, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 136, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 136, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_18__exit__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":137
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":136
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":140
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_20Compile(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_20Compile(struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":141
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":142
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":143
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":142
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":144
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":141
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":146
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":147
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":148
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * 
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":147
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":140
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_22__reduce_cython__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_28CompletionDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_28CompletionDictionaryCompiler_24__setstate_cython__(((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_28CompletionDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.CompletionDictionaryCompiler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":152
 * 
 * # definition for all compilers
 * cdef void callback_wrapper(size_t a, size_t b, void* py_callback) with gil:             # <<<<<<<<<<<<<<
 *     (<object>py_callback)(a, b)
 * 
 */

static void __pyx_f_5_core_callback_wrapper(size_t __pyx_v_a, size_t __pyx_v_b, void *__pyx_v_py_callback) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("callback_wrapper", 0);

  /* "_core.pyx":153
 * # definition for all compilers
 * cdef void callback_wrapper(size_t a, size_t b, void* py_callback) with gil:
 *     (<object>py_callback)(a, b)             # <<<<<<<<<<<<<<
 * 
 * cdef class CompletionDictionaryMerger:
 */
  __pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_a); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_b); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_callback));
  __pyx_t_4 = ((PyObject *)__pyx_v_py_callback); __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":152
 * 
 * # definition for all compilers
 * cdef void callback_wrapper(size_t a, size_t b, void* py_callback) with gil:             # <<<<<<<<<<<<<<
 *     (<object>py_callback)(a, b)
 * 
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("_core.callback_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "_core.pyx":162
 *     cdef shared_ptr[_CompletionDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_26CompletionDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_26CompletionDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_26CompletionDictionaryMerger___dealloc__(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_26CompletionDictionaryMerger___dealloc__(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":163
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":162
 *     cdef shared_ptr[_CompletionDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":166
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryMerger()"""
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_26CompletionDictionaryMerger_2_init_0[] = "Cython signature: void CompletionDictionaryMerger()";
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_2_init_0(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_2_init_0(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::CompletionDictionaryMerger *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":168
 *     def _init_0(self):
 *         """Cython signature: void CompletionDictionaryMerger()"""
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::CompletionDictionaryMerger();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 168, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::CompletionDictionaryMerger> (__pyx_t_1);

  /* "_core.pyx":166
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryMerger()"""
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":170
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_26CompletionDictionaryMerger_4_init_1[] = "Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 170, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_4_init_1(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_7_init_1_2generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":172
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_7_genexpr(__pyx_ptype_5_core___pyx_scope_struct_7_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 172, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_26CompletionDictionaryMerger_7_init_1_2generator7, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_7_init_1_2generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 172, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 172, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 172, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_7_init_1_5generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_8_genexpr(__pyx_ptype_5_core___pyx_scope_struct_8_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 172, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_26CompletionDictionaryMerger_7_init_1_5generator8, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_7_init_1_5generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 172, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 172, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 172, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":170
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_4_init_1(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::CompletionDictionaryMerger *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_6__init_1(__pyx_ptype_5_core___pyx_scope_struct_6__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 170, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":172
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_26CompletionDictionaryMerger_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_26CompletionDictionaryMerger_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 172, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":173
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 173, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":174
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 174, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":175
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":176
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 176, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 176, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":175
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":177
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":178
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 178, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 178, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":177
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":179
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":182
 * 
 * 
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::CompletionDictionaryMerger((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 182, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::CompletionDictionaryMerger> (__pyx_t_15);

  /* "_core.pyx":183
 * 
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":170
 *         self.inst = shared_ptr[_CompletionDictionaryMerger](new _CompletionDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":185
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryMerger()
 */

/* Python wrapper */
static int __pyx_pw_5_core_26CompletionDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_26CompletionDictionaryMerger_6__init__[] = "\n          - Cython signature: void CompletionDictionaryMerger()\n          - Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_26CompletionDictionaryMerger_6__init__;
#endif
static int __pyx_pw_5_core_26CompletionDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_6__init__(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_8__init___2generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":192
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_10_genexpr(__pyx_ptype_5_core___pyx_scope_struct_10_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 192, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_26CompletionDictionaryMerger_8__init___2generator9, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 192, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_8__init___2generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 192, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 192, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 192, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 192, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_8__init___5generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_11_genexpr(__pyx_ptype_5_core___pyx_scope_struct_11_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 192, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_26CompletionDictionaryMerger_8__init___5generator10, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 192, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_26CompletionDictionaryMerger_8__init___5generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 192, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 192, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 192, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 192, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":185
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryMerger()
 */

static int __pyx_pf_5_core_26CompletionDictionaryMerger_6__init__(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_9___init__(__pyx_ptype_5_core___pyx_scope_struct_9___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 185, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":190
 *           - Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":191
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 191, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":190
 *           - Cython signature: void CompletionDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":192
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 192, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_26CompletionDictionaryMerger_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_26CompletionDictionaryMerger_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":193
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":192
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":195
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 195, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":185
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void CompletionDictionaryMerger()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":197
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_26CompletionDictionaryMerger_8Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_8Add(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_8Add(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":199
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 199, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":200
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":201
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":200
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":202
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 202, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 202, __pyx_L1_error)
  }

  /* "_core.pyx":197
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":204
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_26CompletionDictionaryMerger_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_10SetManifest(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":206
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 206, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":207
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":208
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":207
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":209
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Merge(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 209, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 209, __pyx_L1_error)
  }

  /* "_core.pyx":204
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":211
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_26CompletionDictionaryMerger_12Merge[] = "Cython signature: void Merge(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Merge (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_12Merge(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_12Merge(struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Merge", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":213
 *     def Merge(self,  in_0 ):
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 213, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":214
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":215
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":214
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":216
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class Dictionary:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 216, __pyx_L1_error)
  __pyx_v_self->inst.get()->Merge(((std::string)__pyx_t_7));

  /* "_core.pyx":211
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.Merge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_14__reduce_cython__(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_26CompletionDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26CompletionDictionaryMerger_16__setstate_cython__(((struct __pyx_obj_5_core_CompletionDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26CompletionDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_CompletionDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.CompletionDictionaryMerger.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":225
 *     cdef shared_ptr[_Dictionary] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_10Dictionary_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_10Dictionary_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_10Dictionary___dealloc__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_10Dictionary___dealloc__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":226
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":225
 *     cdef shared_ptr[_Dictionary] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":229
 * 
 * 
 *     def _init_0(self,  filename ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_3_init_0(PyObject *__pyx_v_self, PyObject *__pyx_v_filename); /*proto*/
static char __pyx_doc_5_core_10Dictionary_2_init_0[] = "Cython signature: void Dictionary(libcpp_utf8_string filename)";
static PyObject *__pyx_pw_5_core_10Dictionary_3_init_0(PyObject *__pyx_v_self, PyObject *__pyx_v_filename) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_2_init_0(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_filename));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_2_init_0(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_filename) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  keyvi::dictionary::Dictionary *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);
  __Pyx_INCREF(__pyx_v_filename);

  /* "_core.pyx":231
 *     def _init_0(self,  filename ):
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_filename); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_filename); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_filename_wrong_type);
      __PYX_ERR(0, 231, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":232
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename)))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_filename); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":233
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename)))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_filename, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":232
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename)))
 */
  }

  /* "_core.pyx":234
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename)))             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self,  filename , int in_1 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_filename); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L1_error)
  try {
    __pyx_t_8 = new keyvi::dictionary::Dictionary(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 234, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::Dictionary> (__pyx_t_8);

  /* "_core.pyx":229
 * 
 * 
 *     def _init_0(self,  filename ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_filename);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":236
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename)))
 * 
 *     def _init_1(self,  filename , int in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10Dictionary_4_init_1[] = "Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)";
static PyObject *__pyx_pw_5_core_10Dictionary_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_filename = 0;
  int __pyx_v_in_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_filename,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_1", 1, 2, 2, 1); __PYX_ERR(0, 236, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_1") < 0)) __PYX_ERR(0, 236, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_filename = values[0];
    __pyx_v_in_1 = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_in_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 236, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_1", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 236, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Dictionary._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_10Dictionary_4_init_1(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_filename, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_4_init_1(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_filename, int __pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  keyvi::dictionary::Dictionary *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __Pyx_INCREF(__pyx_v_filename);

  /* "_core.pyx":238
 *     def _init_1(self,  filename , int in_1 ):
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'             # <<<<<<<<<<<<<<
 *         assert in_1 in [0, 1, 2, 3, 4, 5, 6, 7], 'arg in_1 wrong type'
 *         if isinstance(filename, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_filename); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_filename); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_filename_wrong_type);
      __PYX_ERR(0, 238, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":239
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         assert in_1 in [0, 1, 2, 3, 4, 5, 6, 7], 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    switch (__pyx_v_in_1) {
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      __pyx_t_1 = 1;
      break;
      default:
      __pyx_t_1 = 0;
      break;
    }
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 239, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":240
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         assert in_1 in [0, 1, 2, 3, 4, 5, 6, 7], 'arg in_1 wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_filename); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":241
 *         assert in_1 in [0, 1, 2, 3, 4, 5, 6, 7], 'arg in_1 wrong type'
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename), (<_loading_strategy_types>in_1)))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_filename, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":240
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         assert in_1 in [0, 1, 2, 3, 4, 5, 6, 7], 'arg in_1 wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":243
 *             filename = filename.encode('utf-8')
 * 
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename), (<_loading_strategy_types>in_1)))             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_filename); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 243, __pyx_L1_error)
  try {
    __pyx_t_8 = new keyvi::dictionary::Dictionary(((std::string)__pyx_t_7), ((keyvi::dictionary::loading_strategy_types)__pyx_v_in_1));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 243, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::Dictionary> (__pyx_t_8);

  /* "_core.pyx":236
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename)))
 * 
 *     def _init_1(self,  filename , int in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_filename);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":245
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename), (<_loading_strategy_types>in_1)))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void Dictionary(libcpp_utf8_string filename)
 */

/* Python wrapper */
static int __pyx_pw_5_core_10Dictionary_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10Dictionary_6__init__[] = "\n          - Cython signature: void Dictionary(libcpp_utf8_string filename)\n          - Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_10Dictionary_6__init__;
#endif
static int __pyx_pw_5_core_10Dictionary_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_10Dictionary_6__init__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_10Dictionary_6__init__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":250
 *           - Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (args[1] in [0, 1, 2, 3, 4, 5, 6, 7]):
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 250, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 == 1) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = PyBytes_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L6_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":251
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (args[1] in [0, 1, 2, 3, 4, 5, 6, 7]):
 *              self._init_1(*args)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "_core.pyx":250
 *           - Cython signature: void Dictionary(libcpp_utf8_string filename, loading_strategy_types)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (args[1] in [0, 1, 2, 3, 4, 5, 6, 7]):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":252
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (args[1] in [0, 1, 2, 3, 4, 5, 6, 7]):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 252, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_2 == 2) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = PyBytes_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_3 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_3 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_3;
  __pyx_L11_bool_binop_done:;
  __pyx_t_3 = (__pyx_t_5 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L8_bool_binop_done;
  }
  __Pyx_INCREF(PyTuple_GET_ITEM(__pyx_v_args, 1));
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_4, 4, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_5, 5, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_6, 6, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_7, __pyx_int_7, 7, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = __pyx_t_5;
  __pyx_L13_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L8_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":253
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (args[1] in [0, 1, 2, 3, 4, 5, 6, 7]):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":252
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (args[1] in [0, 1, 2, 3, 4, 5, 6, 7]):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":255
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Get(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 255, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":245
 *         self.inst = shared_ptr[_Dictionary](new _Dictionary((<libcpp_string>filename), (<_loading_strategy_types>in_1)))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void Dictionary(libcpp_utf8_string filename)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.Dictionary.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":257
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Get(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair Get(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_9Get(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_10Dictionary_8Get[] = "Cython signature: _MatchIteratorPair Get(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_10Dictionary_9Get(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Get (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_8Get(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_8Get(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Get", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":259
 *     def Get(self,  in_0 ):
 *         """Cython signature: _MatchIteratorPair Get(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 259, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":260
 *         """Cython signature: _MatchIteratorPair Get(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Get((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":261
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().Get((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":260
 *         """Cython signature: _MatchIteratorPair Get(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Get((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":262
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Get((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 262, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Get(((std::string)__pyx_t_7));

  /* "_core.pyx":263
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Get((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":264
 *         cdef _MatchIteratorPair _r = self.inst.get().Get((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":265
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":266
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def _GetNear_0(self,  in_0 ,  minimum_prefix_length ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":257
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Get(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair Get(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":268
 *         return py_result
 * 
 *     def _GetNear_0(self,  in_0 ,  minimum_prefix_length ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_11_GetNear_0(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10Dictionary_10_GetNear_0[] = "Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)";
static PyObject *__pyx_pw_5_core_10Dictionary_11_GetNear_0(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_minimum_prefix_length = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetNear_0 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_minimum_prefix_length,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_minimum_prefix_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_GetNear_0", 1, 2, 2, 1); __PYX_ERR(0, 268, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_GetNear_0") < 0)) __PYX_ERR(0, 268, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_minimum_prefix_length = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_GetNear_0", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 268, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Dictionary._GetNear_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_10Dictionary_10_GetNear_0(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_in_0, __pyx_v_minimum_prefix_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_10_GetNear_0(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_minimum_prefix_length) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  size_t __pyx_t_8;
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetNear_0", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":270
 *     def _GetNear_0(self,  in_0 ,  minimum_prefix_length ):
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 270, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":271
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_minimum_prefix_length); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_minimum_prefix_length); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_minimum_prefix_length_wrong);
      __PYX_ERR(0, 271, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":272
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":273
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":272
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":275
 *             in_0 = in_0.encode('utf-8')
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 275, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_v_minimum_prefix_length); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 275, __pyx_L1_error)
  try {
    __pyx_t_9 = __pyx_v_self->inst.get()->GetNear(((std::string)__pyx_t_7), ((size_t)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 275, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_9;

  /* "_core.pyx":276
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":277
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":278
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":279
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def _GetNear_1(self,  in_0 ,  minimum_prefix_length ,  greedy ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":268
 *         return py_result
 * 
 *     def _GetNear_0(self,  in_0 ,  minimum_prefix_length ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary._GetNear_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":281
 *         return py_result
 * 
 *     def _GetNear_1(self,  in_0 ,  minimum_prefix_length ,  greedy ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_13_GetNear_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10Dictionary_12_GetNear_1[] = "Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)";
static PyObject *__pyx_pw_5_core_10Dictionary_13_GetNear_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_minimum_prefix_length = 0;
  PyObject *__pyx_v_greedy = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetNear_1 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_minimum_prefix_length,&__pyx_n_s_greedy,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_minimum_prefix_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_GetNear_1", 1, 3, 3, 1); __PYX_ERR(0, 281, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_greedy)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_GetNear_1", 1, 3, 3, 2); __PYX_ERR(0, 281, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_GetNear_1") < 0)) __PYX_ERR(0, 281, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_minimum_prefix_length = values[1];
    __pyx_v_greedy = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_GetNear_1", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 281, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Dictionary._GetNear_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_10Dictionary_12_GetNear_1(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_in_0, __pyx_v_minimum_prefix_length, __pyx_v_greedy);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_12_GetNear_1(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_minimum_prefix_length, PyObject *__pyx_v_greedy) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  size_t __pyx_t_8;
  bool __pyx_t_9;
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetNear_1", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":283
 *     def _GetNear_1(self,  in_0 ,  minimum_prefix_length ,  greedy ):
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         assert isinstance(greedy, (int, long)), 'arg greedy wrong type'
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 283, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":284
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(greedy, (int, long)), 'arg greedy wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_minimum_prefix_length); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_minimum_prefix_length); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_minimum_prefix_length_wrong);
      __PYX_ERR(0, 284, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":285
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         assert isinstance(greedy, (int, long)), 'arg greedy wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_greedy); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_greedy); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L7_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_greedy_wrong_type);
      __PYX_ERR(0, 285, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":286
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         assert isinstance(greedy, (int, long)), 'arg greedy wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":287
 *         assert isinstance(greedy, (int, long)), 'arg greedy wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":286
 *         assert isinstance(minimum_prefix_length, (int, long)), 'arg minimum_prefix_length wrong type'
 *         assert isinstance(greedy, (int, long)), 'arg greedy wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":290
 * 
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length), (<bool>greedy))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 290, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_v_minimum_prefix_length); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 290, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_greedy); if (unlikely((__pyx_t_9 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 290, __pyx_L1_error)
  try {
    __pyx_t_10 = __pyx_v_self->inst.get()->GetNear(((std::string)__pyx_t_7), ((size_t)__pyx_t_8), ((bool)__pyx_t_9));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 290, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_10;

  /* "_core.pyx":291
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length), (<bool>greedy))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":292
 *         cdef _MatchIteratorPair _r = self.inst.get().GetNear((<libcpp_string>in_0), (<size_t>minimum_prefix_length), (<bool>greedy))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":293
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":294
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetNear(self, *args ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":281
 *         return py_result
 * 
 *     def _GetNear_1(self,  in_0 ,  minimum_prefix_length ,  greedy ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary._GetNear_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":296
 *         return py_result
 * 
 *     def GetNear(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_15GetNear(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10Dictionary_14GetNear[] = "\n          - Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)\n          - Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)\n";
static PyObject *__pyx_pw_5_core_10Dictionary_15GetNear(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetNear (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "GetNear", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_10Dictionary_14GetNear(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_14GetNear(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetNear", 0);

  /* "_core.pyx":301
 *           - Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)
 * """
 *         if (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetNear_0(*args)
 *         elif (len(args)==3) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))) and (isinstance(args[2], (int, long))):
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 == 2) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = PyBytes_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L7_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = PyInt_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_3 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L9_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyLong_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_3;
  __pyx_L9_bool_binop_done:;
  __pyx_t_3 = (__pyx_t_5 != 0);
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":302
 * """
 *         if (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetNear_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==3) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))) and (isinstance(args[2], (int, long))):
 *             return self._GetNear_1(*args)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetNear_0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "_core.pyx":301
 *           - Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length, bool greedy)
 * """
 *         if (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetNear_0(*args)
 *         elif (len(args)==3) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))) and (isinstance(args[2], (int, long))):
 */
  }

  /* "_core.pyx":303
 *         if (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetNear_0(*args)
 *         elif (len(args)==3) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))) and (isinstance(args[2], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetNear_1(*args)
 *         else:
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 303, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 == 3) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_5 = PyBytes_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L14_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L14_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = PyInt_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_3 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L17_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyLong_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_3 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_3;
  __pyx_L17_bool_binop_done:;
  __pyx_t_3 = (__pyx_t_5 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 2);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_5 = PyInt_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L19_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 2);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyLong_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L19_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L11_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":304
 *             return self._GetNear_0(*args)
 *         elif (len(args)==3) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))) and (isinstance(args[2], (int, long))):
 *             return self._GetNear_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetNear_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "_core.pyx":303
 *         if (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetNear_0(*args)
 *         elif (len(args)==3) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))) and (isinstance(args[2], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetNear_1(*args)
 *         else:
 */
  }

  /* "_core.pyx":306
 *             return self._GetNear_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ):
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 306, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 306, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 306, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 306, __pyx_L1_error)
  }

  /* "_core.pyx":296
 *         return py_result
 * 
 *     def GetNear(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetNear(libcpp_utf8_string, size_t minimum_prefix_length)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.Dictionary.GetNear", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":308
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_17GetFuzzy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10Dictionary_16GetFuzzy[] = "Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance)";
static PyObject *__pyx_pw_5_core_10Dictionary_17GetFuzzy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_max_edit_distance = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetFuzzy (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_max_edit_distance,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_edit_distance)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 2, 2, 1); __PYX_ERR(0, 308, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "GetFuzzy") < 0)) __PYX_ERR(0, 308, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_max_edit_distance = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 308, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Dictionary.GetFuzzy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_10Dictionary_16GetFuzzy(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_in_0, __pyx_v_max_edit_distance);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_16GetFuzzy(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int32_t __pyx_t_8;
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetFuzzy", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":310
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ):
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 310, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":311
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_max_edit_distance); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_max_edit_distance); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_max_edit_distance_wrong_type);
      __PYX_ERR(0, 311, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":312
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":313
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":312
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":315
 *             in_0 = in_0.encode('utf-8')
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 315, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int32_t(__pyx_v_max_edit_distance); if (unlikely((__pyx_t_8 == ((int32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 315, __pyx_L1_error)
  try {
    __pyx_t_9 = __pyx_v_self->inst.get()->GetFuzzy(((std::string)__pyx_t_7), ((int32_t)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 315, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_9;

  /* "_core.pyx":316
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":317
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":318
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":319
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Lookup(self,  in_0 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":308
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary.GetFuzzy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":321
 *         return py_result
 * 
 *     def Lookup(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair Lookup(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_19Lookup(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_10Dictionary_18Lookup[] = "Cython signature: _MatchIteratorPair Lookup(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_10Dictionary_19Lookup(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Lookup (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_18Lookup(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_18Lookup(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Lookup", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":323
 *     def Lookup(self,  in_0 ):
 *         """Cython signature: _MatchIteratorPair Lookup(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 323, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":324
 *         """Cython signature: _MatchIteratorPair Lookup(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Lookup((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":325
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().Lookup((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 325, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 325, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":324
 *         """Cython signature: _MatchIteratorPair Lookup(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Lookup((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":326
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Lookup((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 326, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Lookup(((std::string)__pyx_t_7));

  /* "_core.pyx":327
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().Lookup((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 327, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":328
 *         cdef _MatchIteratorPair _r = self.inst.get().Lookup((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":329
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":330
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def LookupText(self,  in_0 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":321
 *         return py_result
 * 
 *     def Lookup(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair Lookup(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary.Lookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":332
 *         return py_result
 * 
 *     def LookupText(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair LookupText(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_21LookupText(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_10Dictionary_20LookupText[] = "Cython signature: _MatchIteratorPair LookupText(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_10Dictionary_21LookupText(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LookupText (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_20LookupText(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_20LookupText(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_in_0) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("LookupText", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":334
 *     def LookupText(self,  in_0 ):
 *         """Cython signature: _MatchIteratorPair LookupText(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 334, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":335
 *         """Cython signature: _MatchIteratorPair LookupText(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().LookupText((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":336
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().LookupText((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":335
 *         """Cython signature: _MatchIteratorPair LookupText(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().LookupText((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":337
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().LookupText((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 337, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->LookupText(((std::string)__pyx_t_7));

  /* "_core.pyx":338
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().LookupText((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":339
 *         cdef _MatchIteratorPair _r = self.inst.get().LookupText((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":340
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":341
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetManifest(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":332
 *         return py_result
 * 
 *     def LookupText(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair LookupText(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Dictionary.LookupText", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":343
 *         return py_result
 * 
 *     def GetManifest(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string GetManifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetManifest()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_23GetManifest(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_10Dictionary_22GetManifest[] = "Cython signature: libcpp_utf8_output_string GetManifest()";
static PyObject *__pyx_pw_5_core_10Dictionary_23GetManifest(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_22GetManifest(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_22GetManifest(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  std::string __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetManifest", 0);

  /* "_core.pyx":345
 *     def GetManifest(self):
 *         """Cython signature: libcpp_utf8_output_string GetManifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetManifest()             # <<<<<<<<<<<<<<
 *         py_result = _r.decode('utf-8')
 *         return py_result
 */
  try {
    __pyx_t_1 = __pyx_v_self->inst.get()->GetManifest();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 345, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_1;

  /* "_core.pyx":346
 *         """Cython signature: libcpp_utf8_output_string GetManifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetManifest()
 *         py_result = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_2 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_py_result = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "_core.pyx":347
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetManifest()
 *         py_result = _r.decode('utf-8')
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def get (self, key, default = None):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":343
 *         return py_result
 * 
 *     def GetManifest(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string GetManifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetManifest()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_core.Dictionary.GetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":349
 *         return py_result
 * 
 *     def get (self, key, default = None):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_25get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_25get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_default = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_default,0};
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_default);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 349, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_key = values[0];
    __pyx_v_default = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 349, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Dictionary.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_10Dictionary_24get(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), __pyx_v_key, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_24get(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_default) {
  std::shared_ptr<keyvi::dictionary::Match>  __pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":350
 * 
 *     def get (self, key, default = None):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":351
 *     def get (self, key, default = None):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":350
 * 
 *     def get (self, key, default = None):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
  }

  /* "_core.pyx":352
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 352, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":354
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))             # <<<<<<<<<<<<<<
 * 
 *         if _r.get().IsEmpty():
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 354, __pyx_L1_error)
  __pyx_v__r = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match(((*__pyx_v_self->inst.get())[((std::string)__pyx_t_6)])));

  /* "_core.pyx":356
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 */
  __pyx_t_2 = (__pyx_v__r.get()->IsEmpty() != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":357
 * 
 *         if _r.get().IsEmpty():
 *             return default             # <<<<<<<<<<<<<<
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_default);
    __pyx_r = __pyx_v_default;
    goto __pyx_L0;

    /* "_core.pyx":356
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 */
  }

  /* "_core.pyx":358
 *         if _r.get().IsEmpty():
 *             return default
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = _r
 *         return py_result
 */
  __pyx_t_3 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_core.pyx":359
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->inst = __pyx_v__r;

  /* "_core.pyx":360
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, key):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":349
 *         return py_result
 * 
 *     def get (self, key, default = None):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Dictionary.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":362
 *         return py_result
 * 
 *     def __contains__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static int __pyx_pw_5_core_10Dictionary_27__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static int __pyx_pw_5_core_10Dictionary_27__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_26__contains__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_10Dictionary_26__contains__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":363
 * 
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":364
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":363
 * 
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":366
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         return self.inst.get().Contains(key)
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 366, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":368
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         return self.inst.get().Contains(key)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 368, __pyx_L1_error)
  __pyx_r = __pyx_v_self->inst.get()->Contains(__pyx_t_6);
  goto __pyx_L0;

  /* "_core.pyx":362
 *         return py_result
 * 
 *     def __contains__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Dictionary.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":370
 *         return self.inst.get().Contains(key)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self.inst.get().GetSize()
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_5_core_10Dictionary_29__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_5_core_10Dictionary_29__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_28__len__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_5_core_10Dictionary_28__len__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "_core.pyx":371
 * 
 *     def __len__(self):
 *         return self.inst.get().GetSize()             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__ (self, key):
 */
  __pyx_r = __pyx_v_self->inst.get()->GetSize();
  goto __pyx_L0;

  /* "_core.pyx":370
 *         return self.inst.get().Contains(key)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self.inst.get().GetSize()
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":373
 *         return self.inst.get().GetSize()
 * 
 *     def __getitem__ (self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_31__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_31__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_30__getitem__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_30__getitem__(struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_key) {
  std::shared_ptr<keyvi::dictionary::Match>  __pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":374
 * 
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":375
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":374
 * 
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":377
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 377, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":379
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))             # <<<<<<<<<<<<<<
 * 
 *         if _r.get().IsEmpty():
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 379, __pyx_L1_error)
  __pyx_v__r = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match(((*__pyx_v_self->inst.get())[((std::string)__pyx_t_6)])));

  /* "_core.pyx":381
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 */
  __pyx_t_2 = (__pyx_v__r.get()->IsEmpty() != 0);
  if (unlikely(__pyx_t_2)) {

    /* "_core.pyx":382
 * 
 *         if _r.get().IsEmpty():
 *             raise KeyError(key)             # <<<<<<<<<<<<<<
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 */
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_KeyError, __pyx_v_key); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 382, __pyx_L1_error)

    /* "_core.pyx":381
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 */
  }

  /* "_core.pyx":383
 *         if _r.get().IsEmpty():
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = _r
 *         return py_result
 */
  __pyx_t_3 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 383, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_core.pyx":384
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->inst = __pyx_v__r;

  /* "_core.pyx":385
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def _key_iterator_wrapper(self, iterator):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":373
 *         return self.inst.get().GetSize()
 * 
 *     def __getitem__ (self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Dictionary.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_10Dictionary_34generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":387
 *         return py_result
 * 
 *     def _key_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield m.GetMatchedString()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_33_key_iterator_wrapper(PyObject *__pyx_v_self, PyObject *__pyx_v_iterator); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_33_key_iterator_wrapper(PyObject *__pyx_v_self, PyObject *__pyx_v_iterator) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_key_iterator_wrapper (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_32_key_iterator_wrapper(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_iterator));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_32_key_iterator_wrapper(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_iterator) {
  struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_key_iterator_wrapper", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *)__pyx_tp_new_5_core___pyx_scope_struct_12__key_iterator_wrapper(__pyx_ptype_5_core___pyx_scope_struct_12__key_iterator_wrapper, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 387, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_iterator = __pyx_v_iterator;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_iterator);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_iterator);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_10Dictionary_34generator, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_key_iterator_wrapper, __pyx_n_s_Dictionary__key_iterator_wrapper, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 387, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Dictionary._key_iterator_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_10Dictionary_34generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_key_iterator_wrapper", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 387, __pyx_L1_error)

  /* "_core.pyx":388
 * 
 *     def _key_iterator_wrapper(self, iterator):
 *         for m in iterator:             # <<<<<<<<<<<<<<
 *             yield m.GetMatchedString()
 * 
 */
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_iterator)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_iterator)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_iterator; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_iterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 388, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 388, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 388, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 388, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 388, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 388, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 388, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_m);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_m, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":389
 *     def _key_iterator_wrapper(self, iterator):
 *         for m in iterator:
 *             yield m.GetMatchedString()             # <<<<<<<<<<<<<<
 * 
 *     def _value_iterator_wrapper(self, iterator):
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_m, __pyx_n_s_GetMatchedString); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 389, __pyx_L1_error)

    /* "_core.pyx":388
 * 
 *     def _key_iterator_wrapper(self, iterator):
 *         for m in iterator:             # <<<<<<<<<<<<<<
 *             yield m.GetMatchedString()
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "_core.pyx":387
 *         return py_result
 * 
 *     def _key_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield m.GetMatchedString()
 */

  /* function exit code */
  PyErr_SetNone(PyExc_StopIteration);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_key_iterator_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_10Dictionary_37generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":391
 *             yield m.GetMatchedString()
 * 
 *     def _value_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield m.GetValue()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_36_value_iterator_wrapper(PyObject *__pyx_v_self, PyObject *__pyx_v_iterator); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_36_value_iterator_wrapper(PyObject *__pyx_v_self, PyObject *__pyx_v_iterator) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_value_iterator_wrapper (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_35_value_iterator_wrapper(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_iterator));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_35_value_iterator_wrapper(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_iterator) {
  struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_value_iterator_wrapper", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *)__pyx_tp_new_5_core___pyx_scope_struct_13__value_iterator_wrapper(__pyx_ptype_5_core___pyx_scope_struct_13__value_iterator_wrapper, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 391, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_iterator = __pyx_v_iterator;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_iterator);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_iterator);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_10Dictionary_37generator1, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_value_iterator_wrapper, __pyx_n_s_Dictionary__value_iterator_wrapp, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 391, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Dictionary._value_iterator_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_10Dictionary_37generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_value_iterator_wrapper", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 391, __pyx_L1_error)

  /* "_core.pyx":392
 * 
 *     def _value_iterator_wrapper(self, iterator):
 *         for m in iterator:             # <<<<<<<<<<<<<<
 *             yield m.GetValue()
 * 
 */
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_iterator)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_iterator)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_iterator; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_iterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 392, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 392, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 392, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 392, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 392, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 392, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 392, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_m);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_m, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":393
 *     def _value_iterator_wrapper(self, iterator):
 *         for m in iterator:
 *             yield m.GetValue()             # <<<<<<<<<<<<<<
 * 
 *     def _item_iterator_wrapper(self, iterator):
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_m, __pyx_n_s_GetValue); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 393, __pyx_L1_error)

    /* "_core.pyx":392
 * 
 *     def _value_iterator_wrapper(self, iterator):
 *         for m in iterator:             # <<<<<<<<<<<<<<
 *             yield m.GetValue()
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "_core.pyx":391
 *             yield m.GetMatchedString()
 * 
 *     def _value_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield m.GetValue()
 */

  /* function exit code */
  PyErr_SetNone(PyExc_StopIteration);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_value_iterator_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_10Dictionary_40generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":395
 *             yield m.GetValue()
 * 
 *     def _item_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield (m.GetMatchedString(), m.GetValue())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_39_item_iterator_wrapper(PyObject *__pyx_v_self, PyObject *__pyx_v_iterator); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_39_item_iterator_wrapper(PyObject *__pyx_v_self, PyObject *__pyx_v_iterator) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_item_iterator_wrapper (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_38_item_iterator_wrapper(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v_iterator));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_38_item_iterator_wrapper(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, PyObject *__pyx_v_iterator) {
  struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_item_iterator_wrapper", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *)__pyx_tp_new_5_core___pyx_scope_struct_14__item_iterator_wrapper(__pyx_ptype_5_core___pyx_scope_struct_14__item_iterator_wrapper, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 395, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __pyx_cur_scope->__pyx_v_iterator = __pyx_v_iterator;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_iterator);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_iterator);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_10Dictionary_40generator2, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_item_iterator_wrapper, __pyx_n_s_Dictionary__item_iterator_wrappe, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 395, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Dictionary._item_iterator_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_10Dictionary_40generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_item_iterator_wrapper", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 395, __pyx_L1_error)

  /* "_core.pyx":396
 * 
 *     def _item_iterator_wrapper(self, iterator):
 *         for m in iterator:             # <<<<<<<<<<<<<<
 *             yield (m.GetMatchedString(), m.GetValue())
 * 
 */
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_v_iterator)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_iterator)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_v_iterator; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_iterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 396, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 396, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 396, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 396, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_m);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_m, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":397
 *     def _item_iterator_wrapper(self, iterator):
 *         for m in iterator:
 *             yield (m.GetMatchedString(), m.GetValue())             # <<<<<<<<<<<<<<
 * 
 *     def GetAllKeys(self):
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_m, __pyx_n_s_GetMatchedString); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_m, __pyx_n_s_GetValue); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 397, __pyx_L1_error)

    /* "_core.pyx":396
 * 
 *     def _item_iterator_wrapper(self, iterator):
 *         for m in iterator:             # <<<<<<<<<<<<<<
 *             yield (m.GetMatchedString(), m.GetValue())
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "_core.pyx":395
 *             yield m.GetValue()
 * 
 *     def _item_iterator_wrapper(self, iterator):             # <<<<<<<<<<<<<<
 *         for m in iterator:
 *             yield (m.GetMatchedString(), m.GetValue())
 */

  /* function exit code */
  PyErr_SetNone(PyExc_StopIteration);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_item_iterator_wrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":399
 *             yield (m.GetMatchedString(), m.GetValue())
 * 
 *     def GetAllKeys(self):             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_42GetAllKeys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_42GetAllKeys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetAllKeys (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_41GetAllKeys(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_41GetAllKeys(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetAllKeys", 0);

  /* "_core.pyx":400
 * 
 *     def GetAllKeys(self):
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetAllItems();

  /* "_core.pyx":401
 *     def GetAllKeys(self):
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":402
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return self._key_iterator_wrapper(py_result)
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":403
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return self._key_iterator_wrapper(py_result)
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":404
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return self._key_iterator_wrapper(py_result)             # <<<<<<<<<<<<<<
 * 
 *     def GetAllValues(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_key_iterator_wrapper); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_v_py_result)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_py_result));
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":399
 *             yield (m.GetMatchedString(), m.GetValue())
 * 
 *     def GetAllKeys(self):             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.Dictionary.GetAllKeys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":406
 *         return self._key_iterator_wrapper(py_result)
 * 
 *     def GetAllValues(self):             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_44GetAllValues(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_44GetAllValues(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetAllValues (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_43GetAllValues(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_43GetAllValues(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetAllValues", 0);

  /* "_core.pyx":407
 * 
 *     def GetAllValues(self):
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetAllItems();

  /* "_core.pyx":408
 *     def GetAllValues(self):
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":409
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return self._value_iterator_wrapper(py_result)
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":410
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return self._value_iterator_wrapper(py_result)
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":411
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return self._value_iterator_wrapper(py_result)             # <<<<<<<<<<<<<<
 * 
 *     def GetAllItems(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value_iterator_wrapper); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_v_py_result)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_py_result));
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":406
 *         return self._key_iterator_wrapper(py_result)
 * 
 *     def GetAllValues(self):             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.Dictionary.GetAllValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":413
 *         return self._value_iterator_wrapper(py_result)
 * 
 *     def GetAllItems(self):             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_46GetAllItems(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_46GetAllItems(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetAllItems (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_45GetAllItems(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_45GetAllItems(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetAllItems", 0);

  /* "_core.pyx":414
 * 
 *     def GetAllItems(self):
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetAllItems();

  /* "_core.pyx":415
 *     def GetAllItems(self):
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":416
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return self._item_iterator_wrapper(py_result)
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":417
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return self._item_iterator_wrapper(py_result)
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":418
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return self._item_iterator_wrapper(py_result)             # <<<<<<<<<<<<<<
 * 
 *     def GetStatistics(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_item_iterator_wrapper); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_v_py_result)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_py_result));
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":413
 *         return self._value_iterator_wrapper(py_result)
 * 
 *     def GetAllItems(self):             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetAllItems()
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.Dictionary.GetAllItems", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":420
 *         return self._item_iterator_wrapper(py_result)
 * 
 *     def GetStatistics(self):             # <<<<<<<<<<<<<<
 *         cdef libcpp_string _r = self.inst.get().GetStatistics()
 *         cdef bytes py_result = _r
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_48GetStatistics(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_48GetStatistics(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetStatistics (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_47GetStatistics(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_47GetStatistics(struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  std::string __pyx_v__r;
  CYTHON_UNUSED PyObject *__pyx_v_py_result = 0;
  PyObject *__pyx_v_py_result_unicode = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetStatistics", 0);

  /* "_core.pyx":421
 * 
 *     def GetStatistics(self):
 *         cdef libcpp_string _r = self.inst.get().GetStatistics()             # <<<<<<<<<<<<<<
 *         cdef bytes py_result = _r
 *         py_result_unicode = _r.decode('utf-8')
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetStatistics();

  /* "_core.pyx":422
 *     def GetStatistics(self):
 *         cdef libcpp_string _r = self.inst.get().GetStatistics()
 *         cdef bytes py_result = _r             # <<<<<<<<<<<<<<
 *         py_result_unicode = _r.decode('utf-8')
 * 
 */
  __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v__r); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":423
 *         cdef libcpp_string _r = self.inst.get().GetStatistics()
 *         cdef bytes py_result = _r
 *         py_result_unicode = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         return json.loads(py_result_unicode)
 */
  __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_result_unicode = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":425
 *         py_result_unicode = _r.decode('utf-8')
 * 
 *         return json.loads(py_result_unicode)             # <<<<<<<<<<<<<<
 * 
 * cdef class ForwardBackwardCompletion:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_json); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_loads); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_py_result_unicode) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_py_result_unicode);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":420
 *         return self._item_iterator_wrapper(py_result)
 * 
 *     def GetStatistics(self):             # <<<<<<<<<<<<<<
 *         cdef libcpp_string _r = self.inst.get().GetStatistics()
 *         cdef bytes py_result = _r
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.Dictionary.GetStatistics", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_py_result_unicode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_50__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_50__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_49__reduce_cython__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_49__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Dictionary.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10Dictionary_52__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_10Dictionary_52__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10Dictionary_51__setstate_cython__(((struct __pyx_obj_5_core_Dictionary *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10Dictionary_51__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Dictionary *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Dictionary.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":434
 *     cdef shared_ptr[_ForwardBackwardCompletion] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_25ForwardBackwardCompletion_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_25ForwardBackwardCompletion_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_25ForwardBackwardCompletion___dealloc__(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_25ForwardBackwardCompletion___dealloc__(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":435
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":434
 *     cdef shared_ptr[_ForwardBackwardCompletion] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":438
 * 
 * 
 *     def __init__(self, Dictionary in_0 , Dictionary in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ForwardBackwardCompletion(shared_ptr[Dictionary], shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_25ForwardBackwardCompletion_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_25ForwardBackwardCompletion_2__init__[] = "Cython signature: void ForwardBackwardCompletion(shared_ptr[Dictionary], shared_ptr[Dictionary])";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_25ForwardBackwardCompletion_2__init__;
#endif
static int __pyx_pw_5_core_25ForwardBackwardCompletion_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0 = 0;
  struct __pyx_obj_5_core_Dictionary *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 438, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 438, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = ((struct __pyx_obj_5_core_Dictionary *)values[0]);
    __pyx_v_in_1 = ((struct __pyx_obj_5_core_Dictionary *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 438, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary, 1, "in_0", 0))) __PYX_ERR(0, 438, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_in_1), __pyx_ptype_5_core_Dictionary, 1, "in_1", 0))) __PYX_ERR(0, 438, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_25ForwardBackwardCompletion_2__init__(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_25ForwardBackwardCompletion_2__init__(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_1) {
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_v_input_in_0;
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_v_input_in_1;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_t_2;
  keyvi::dictionary::completion::ForwardBackwardCompletion *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":440
 *     def __init__(self, Dictionary in_0 , Dictionary in_1 ):
 *         """Cython signature: void ForwardBackwardCompletion(shared_ptr[Dictionary], shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, Dictionary), 'arg in_1 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 440, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":441
 *         """Cython signature: void ForwardBackwardCompletion(shared_ptr[Dictionary], shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         assert isinstance(in_1, Dictionary), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         cdef shared_ptr[_Dictionary] input_in_1 = in_1.inst
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_in_1), __pyx_ptype_5_core_Dictionary); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 441, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":442
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         assert isinstance(in_1, Dictionary), 'arg in_1 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst             # <<<<<<<<<<<<<<
 *         cdef shared_ptr[_Dictionary] input_in_1 = in_1.inst
 *         self.inst = shared_ptr[_ForwardBackwardCompletion](new _ForwardBackwardCompletion(input_in_0, input_in_1))
 */
  __pyx_t_2 = __pyx_v_in_0->inst;
  __pyx_v_input_in_0 = __pyx_t_2;

  /* "_core.pyx":443
 *         assert isinstance(in_1, Dictionary), 'arg in_1 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         cdef shared_ptr[_Dictionary] input_in_1 = in_1.inst             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_ForwardBackwardCompletion](new _ForwardBackwardCompletion(input_in_0, input_in_1))
 * 
 */
  __pyx_t_2 = __pyx_v_in_1->inst;
  __pyx_v_input_in_1 = __pyx_t_2;

  /* "_core.pyx":444
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         cdef shared_ptr[_Dictionary] input_in_1 = in_1.inst
 *         self.inst = shared_ptr[_ForwardBackwardCompletion](new _ForwardBackwardCompletion(input_in_0, input_in_1))             # <<<<<<<<<<<<<<
 * 
 *     def _GetCompletions_0(self,  in_0 ):
 */
  try {
    __pyx_t_3 = new keyvi::dictionary::completion::ForwardBackwardCompletion(((std::shared_ptr<keyvi::dictionary::Dictionary>  &)__pyx_v_input_in_0), ((std::shared_ptr<keyvi::dictionary::Dictionary>  &)__pyx_v_input_in_1));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 444, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::completion::ForwardBackwardCompletion> (__pyx_t_3);

  /* "_core.pyx":438
 * 
 * 
 *     def __init__(self, Dictionary in_0 , Dictionary in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ForwardBackwardCompletion(shared_ptr[Dictionary], shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":446
 *         self.inst = shared_ptr[_ForwardBackwardCompletion](new _ForwardBackwardCompletion(input_in_0, input_in_1))
 * 
 *     def _GetCompletions_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_5_GetCompletions_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_25ForwardBackwardCompletion_4_GetCompletions_0[] = "Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_5_GetCompletions_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetCompletions_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25ForwardBackwardCompletion_4_GetCompletions_0(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_4_GetCompletions_0(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, PyObject *__pyx_v_in_0) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetCompletions_0", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":448
 *     def _GetCompletions_0(self,  in_0 ):
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 448, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":449
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":450
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":449
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":451
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 451, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetCompletions(((std::string)__pyx_t_7));

  /* "_core.pyx":452
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 452, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":453
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":454
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":455
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":446
 *         self.inst = shared_ptr[_ForwardBackwardCompletion](new _ForwardBackwardCompletion(input_in_0, input_in_1))
 * 
 *     def _GetCompletions_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion._GetCompletions_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":457
 *         return py_result
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_7_GetCompletions_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_25ForwardBackwardCompletion_6_GetCompletions_1[] = "Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)";
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_7_GetCompletions_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetCompletions_1 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_GetCompletions_1", 1, 2, 2, 1); __PYX_ERR(0, 457, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_GetCompletions_1") < 0)) __PYX_ERR(0, 457, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_GetCompletions_1", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 457, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion._GetCompletions_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_25ForwardBackwardCompletion_6_GetCompletions_1(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_6_GetCompletions_1(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetCompletions_1", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":459
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 459, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":460
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 460, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":461
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":462
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":461
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":464
 *             in_0 = in_0.encode('utf-8')
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 464, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_in_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 464, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetCompletions(((std::string)__pyx_t_7), ((int)__pyx_t_8));

  /* "_core.pyx":465
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 465, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":466
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":467
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":468
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetCompletions(self, *args ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":457
 *         return py_result
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion._GetCompletions_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":470
 *         return py_result
 * 
 *     def GetCompletions(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_9GetCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_25ForwardBackwardCompletion_8GetCompletions[] = "\n          - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)\n          - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)\n";
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_9GetCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetCompletions (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "GetCompletions", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_25ForwardBackwardCompletion_8GetCompletions(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_8GetCompletions(struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetCompletions", 0);

  /* "_core.pyx":475
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 475, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 == 1) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = PyBytes_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L6_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":476
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetCompletions_1(*args)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetCompletions_0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "_core.pyx":475
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 */
  }

  /* "_core.pyx":477
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_1(*args)
 *         else:
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 477, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_2 == 2) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = PyBytes_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_3 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_3 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_3;
  __pyx_L11_bool_binop_done:;
  __pyx_t_3 = (__pyx_t_5 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_5 = PyInt_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyLong_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L13_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L8_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":478
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetCompletions_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetCompletions_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "_core.pyx":477
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_1(*args)
 *         else:
 */
  }

  /* "_core.pyx":480
 *             return self._GetCompletions_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 * cdef class FsaTransform:
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 480, __pyx_L1_error)
  }

  /* "_core.pyx":470
 *         return py_result
 * 
 *     def GetCompletions(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion.GetCompletions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25ForwardBackwardCompletion_10__reduce_cython__(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_25ForwardBackwardCompletion_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25ForwardBackwardCompletion_12__setstate_cython__(((struct __pyx_obj_5_core_ForwardBackwardCompletion *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25ForwardBackwardCompletion_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ForwardBackwardCompletion *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.ForwardBackwardCompletion.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":489
 *     cdef shared_ptr[_FsaTransform] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_12FsaTransform_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_12FsaTransform_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_12FsaTransform___dealloc__(((struct __pyx_obj_5_core_FsaTransform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_12FsaTransform___dealloc__(struct __pyx_obj_5_core_FsaTransform *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":490
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":489
 *     cdef shared_ptr[_FsaTransform] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":493
 * 
 * 
 *     def __init__(self, Dictionary in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void FsaTransform(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_12FsaTransform_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_12FsaTransform_2__init__[] = "Cython signature: void FsaTransform(shared_ptr[Dictionary])";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_12FsaTransform_2__init__;
#endif
static int __pyx_pw_5_core_12FsaTransform_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 493, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_in_0 = ((struct __pyx_obj_5_core_Dictionary *)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 493, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.FsaTransform.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary, 1, "in_0", 0))) __PYX_ERR(0, 493, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_12FsaTransform_2__init__(((struct __pyx_obj_5_core_FsaTransform *)__pyx_v_self), __pyx_v_in_0);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_12FsaTransform_2__init__(struct __pyx_obj_5_core_FsaTransform *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0) {
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_v_input_in_0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_t_2;
  keyvi::transform::FsaTransform *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":495
 *     def __init__(self, Dictionary in_0 ):
 *         """Cython signature: void FsaTransform(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         self.inst = shared_ptr[_FsaTransform](new _FsaTransform(input_in_0))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 495, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":496
 *         """Cython signature: void FsaTransform(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_FsaTransform](new _FsaTransform(input_in_0))
 * 
 */
  __pyx_t_2 = __pyx_v_in_0->inst;
  __pyx_v_input_in_0 = __pyx_t_2;

  /* "_core.pyx":497
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         self.inst = shared_ptr[_FsaTransform](new _FsaTransform(input_in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Normalize(self,  in_0 ):
 */
  try {
    __pyx_t_3 = new keyvi::transform::FsaTransform(((std::shared_ptr<keyvi::dictionary::Dictionary>  &)__pyx_v_input_in_0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 497, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::transform::FsaTransform> (__pyx_t_3);

  /* "_core.pyx":493
 * 
 * 
 *     def __init__(self, Dictionary in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void FsaTransform(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.FsaTransform.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":499
 *         self.inst = shared_ptr[_FsaTransform](new _FsaTransform(input_in_0))
 * 
 *     def Normalize(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string Normalize(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12FsaTransform_5Normalize(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_12FsaTransform_4Normalize[] = "Cython signature: libcpp_string Normalize(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_12FsaTransform_5Normalize(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Normalize (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12FsaTransform_4Normalize(((struct __pyx_obj_5_core_FsaTransform *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12FsaTransform_4Normalize(struct __pyx_obj_5_core_FsaTransform *__pyx_v_self, PyObject *__pyx_v_in_0) {
  std::string __pyx_v__r;
  std::string __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Normalize", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":501
 *     def Normalize(self,  in_0 ):
 *         """Cython signature: libcpp_string Normalize(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 501, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":502
 *         """Cython signature: libcpp_string Normalize(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Normalize((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":503
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef libcpp_string _r = self.inst.get().Normalize((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":502
 *         """Cython signature: libcpp_string Normalize(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Normalize((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":504
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Normalize((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         py_result = <libcpp_string>_r
 *         return py_result
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 504, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Normalize(((std::string)__pyx_t_7));

  /* "_core.pyx":505
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Normalize((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((std::string)__pyx_v__r);

  /* "_core.pyx":506
 *         cdef libcpp_string _r = self.inst.get().Normalize((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class Index:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_py_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "_core.pyx":499
 *         self.inst = shared_ptr[_FsaTransform](new _FsaTransform(input_in_0))
 * 
 *     def Normalize(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string Normalize(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.FsaTransform.Normalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12FsaTransform_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_12FsaTransform_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12FsaTransform_6__reduce_cython__(((struct __pyx_obj_5_core_FsaTransform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12FsaTransform_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_FsaTransform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.FsaTransform.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12FsaTransform_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_12FsaTransform_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12FsaTransform_8__setstate_cython__(((struct __pyx_obj_5_core_FsaTransform *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12FsaTransform_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_FsaTransform *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.FsaTransform.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":515
 *     cdef shared_ptr[_Index] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_5Index_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_5Index_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_5Index___dealloc__(((struct __pyx_obj_5_core_Index *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_5Index___dealloc__(struct __pyx_obj_5_core_Index *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":516
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":515
 *     cdef shared_ptr[_Index] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":519
 * 
 * 
 *     def Set(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Set(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_3Set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_5Index_2Set[] = "Cython signature: void Set(libcpp_utf8_string, libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_5Index_3Set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Set (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Set", 1, 2, 2, 1); __PYX_ERR(0, 519, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Set") < 0)) __PYX_ERR(0, 519, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 519, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Index.Set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_5Index_2Set(((struct __pyx_obj_5_core_Index *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_2Set(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  std::string __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Set", 0);
  __Pyx_INCREF(__pyx_v_in_0);
  __Pyx_INCREF(__pyx_v_in_1);

  /* "_core.pyx":521
 *     def Set(self,  in_0 ,  in_1 ):
 *         """Cython signature: void Set(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 521, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":522
 *         """Cython signature: void Set(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 522, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":523
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":524
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":523
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 */
  }

  /* "_core.pyx":525
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):             # <<<<<<<<<<<<<<
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Set((<libcpp_string>in_0), (<libcpp_string>in_1))
 */
  __pyx_t_2 = PyUnicode_Check(__pyx_v_in_1); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "_core.pyx":526
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Set((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_1, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_1, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":525
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):             # <<<<<<<<<<<<<<
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Set((<libcpp_string>in_0), (<libcpp_string>in_1))
 */
  }

  /* "_core.pyx":527
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Set((<libcpp_string>in_0), (<libcpp_string>in_1))             # <<<<<<<<<<<<<<
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 527, __pyx_L1_error)
  __pyx_t_8 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 527, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Set(((std::string)__pyx_t_7), ((std::string)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 527, __pyx_L1_error)
  }

  /* "_core.pyx":519
 * 
 * 
 *     def Set(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Set(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Index.Set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XDECREF(__pyx_v_in_1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":529
 *         self.inst.get().Set((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_5GetFuzzy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_5Index_4GetFuzzy[] = "Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)";
static PyObject *__pyx_pw_5_core_5Index_5GetFuzzy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_max_edit_distance = 0;
  PyObject *__pyx_v_minimum_exact_prefix = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetFuzzy (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_max_edit_distance,&__pyx_n_s_minimum_exact_prefix,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_edit_distance)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 3, 3, 1); __PYX_ERR(0, 529, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_minimum_exact_prefix)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 3, 3, 2); __PYX_ERR(0, 529, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "GetFuzzy") < 0)) __PYX_ERR(0, 529, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_max_edit_distance = values[1];
    __pyx_v_minimum_exact_prefix = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 529, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Index.GetFuzzy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_5Index_4GetFuzzy(((struct __pyx_obj_5_core_Index *)__pyx_v_self), __pyx_v_in_0, __pyx_v_max_edit_distance, __pyx_v_minimum_exact_prefix);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_4GetFuzzy(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance, PyObject *__pyx_v_minimum_exact_prefix) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int32_t __pyx_t_8;
  size_t __pyx_t_9;
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetFuzzy", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":531
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 531, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":532
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_max_edit_distance); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_max_edit_distance); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_max_edit_distance_wrong_type);
      __PYX_ERR(0, 532, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":533
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_minimum_exact_prefix); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_minimum_exact_prefix); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L7_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_minimum_exact_prefix_wrong_t);
      __PYX_ERR(0, 533, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":534
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":535
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 535, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 535, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":534
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":538
 * 
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance), (<size_t>minimum_exact_prefix))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 538, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int32_t(__pyx_v_max_edit_distance); if (unlikely((__pyx_t_8 == ((int32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 538, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_size_t(__pyx_v_minimum_exact_prefix); if (unlikely((__pyx_t_9 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 538, __pyx_L1_error)
  try {
    __pyx_t_10 = __pyx_v_self->inst.get()->GetFuzzy(((std::string)__pyx_t_7), ((int32_t)__pyx_t_8), ((size_t)__pyx_t_9));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 538, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_10;

  /* "_core.pyx":539
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance), (<size_t>minimum_exact_prefix))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 539, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":540
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance), (<size_t>minimum_exact_prefix))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":541
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":542
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Delete(self,  in_0 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":529
 *         self.inst.get().Set((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Index.GetFuzzy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":544
 *         return py_result
 * 
 *     def Delete(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Delete(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_7Delete(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_5Index_6Delete[] = "Cython signature: void Delete(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_5Index_7Delete(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Delete (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_6Delete(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_6Delete(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Delete", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":546
 *     def Delete(self,  in_0 ):
 *         """Cython signature: void Delete(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 546, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":547
 *         """Cython signature: void Delete(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Delete((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":548
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Delete((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":547
 *         """Cython signature: void Delete(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Delete((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":549
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Delete((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def _Flush_0(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 549, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Delete(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 549, __pyx_L1_error)
  }

  /* "_core.pyx":544
 *         return py_result
 * 
 *     def Delete(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Delete(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Index.Delete", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":551
 *         self.inst.get().Delete((<libcpp_string>in_0))
 * 
 *     def _Flush_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Flush()"""
 *         self.inst.get().Flush()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_9_Flush_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Index_8_Flush_0[] = "Cython signature: void Flush()";
static PyObject *__pyx_pw_5_core_5Index_9_Flush_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_Flush_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_8_Flush_0(((struct __pyx_obj_5_core_Index *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_8_Flush_0(struct __pyx_obj_5_core_Index *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_Flush_0", 0);

  /* "_core.pyx":553
 *     def _Flush_0(self):
 *         """Cython signature: void Flush()"""
 *         self.inst.get().Flush()             # <<<<<<<<<<<<<<
 * 
 *     def _Flush_1(self,  in_0 ):
 */
  try {
    __pyx_v_self->inst.get()->Flush();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 553, __pyx_L1_error)
  }

  /* "_core.pyx":551
 *         self.inst.get().Delete((<libcpp_string>in_0))
 * 
 *     def _Flush_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Flush()"""
 *         self.inst.get().Flush()
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Index._Flush_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":555
 *         self.inst.get().Flush()
 * 
 *     def _Flush_1(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Flush(bool)"""
 *         assert isinstance(in_0, (int, long)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_11_Flush_1(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_5Index_10_Flush_1[] = "Cython signature: void Flush(bool)";
static PyObject *__pyx_pw_5_core_5Index_11_Flush_1(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_Flush_1 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_10_Flush_1(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_10_Flush_1(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  bool __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_Flush_1", 0);

  /* "_core.pyx":557
 *     def _Flush_1(self,  in_0 ):
 *         """Cython signature: void Flush(bool)"""
 *         assert isinstance(in_0, (int, long)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().Flush((<bool>in_0))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 557, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":559
 *         assert isinstance(in_0, (int, long)), 'arg in_0 wrong type'
 * 
 *         self.inst.get().Flush((<bool>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Flush(self, *args ):
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_in_0); if (unlikely((__pyx_t_4 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 559, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Flush(((bool)__pyx_t_4));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 559, __pyx_L1_error)
  }

  /* "_core.pyx":555
 *         self.inst.get().Flush()
 * 
 *     def _Flush_1(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Flush(bool)"""
 *         assert isinstance(in_0, (int, long)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Index._Flush_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":561
 *         self.inst.get().Flush((<bool>in_0))
 * 
 *     def Flush(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void Flush()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_13Flush(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_5Index_12Flush[] = "\n          - Cython signature: void Flush()\n          - Cython signature: void Flush(bool)\n";
static PyObject *__pyx_pw_5_core_5Index_13Flush(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Flush (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Flush", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_5Index_12Flush(((struct __pyx_obj_5_core_Index *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_12Flush(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Flush", 0);

  /* "_core.pyx":566
 *           - Cython signature: void Flush(bool)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *             return self._Flush_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], (int, long))):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":567
 * """
 *         if not args:
 *             return self._Flush_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], (int, long))):
 *             return self._Flush_1(*args)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Flush_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "_core.pyx":566
 *           - Cython signature: void Flush(bool)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *             return self._Flush_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], (int, long))):
 */
  }

  /* "_core.pyx":568
 *         if not args:
 *             return self._Flush_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._Flush_1(*args)
 *         else:
 */
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 568, __pyx_L1_error)
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyInt_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (!__pyx_t_7) {
  } else {
    __pyx_t_1 = __pyx_t_7;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_7 = PyLong_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_7 != 0);
  __pyx_t_1 = __pyx_t_6;
  __pyx_L6_bool_binop_done:;
  __pyx_t_6 = (__pyx_t_1 != 0);
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":569
 *             return self._Flush_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], (int, long))):
 *             return self._Flush_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Flush_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "_core.pyx":568
 *         if not args:
 *             return self._Flush_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._Flush_1(*args)
 *         else:
 */
  }

  /* "_core.pyx":571
 *             return self._Flush_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 571, __pyx_L1_error)
  }

  /* "_core.pyx":561
 *         self.inst.get().Flush((<bool>in_0))
 * 
 *     def Flush(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void Flush()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.Index.Flush", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":573
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             directory = args[0]
 */

/* Python wrapper */
static int __pyx_pw_5_core_5Index_15__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_5_core_5Index_15__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_5Index_14__init__(((struct __pyx_obj_5_core_Index *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_5Index_8__init___2generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":577
 *             directory = args[0]
 *             params = {}
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *             directory = args[0]
 *             params = args[1]
 */

static PyObject *__pyx_pf_5_core_5Index_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_16_genexpr(__pyx_ptype_5_core___pyx_scope_struct_16_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 577, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_5Index_8__init___2generator11, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 577, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Index.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_5Index_8__init___2generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 577, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 577, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 577, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 577, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_5Index_8__init___5generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_5Index_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_17_genexpr(__pyx_ptype_5_core___pyx_scope_struct_17_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 577, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_5Index_8__init___5generator12, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 577, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Index.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_5Index_8__init___5generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 577, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 577, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 577, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 577, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":573
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             directory = args[0]
 */

static int __pyx_pf_5_core_5Index_14__init__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *__pyx_cur_scope;
  PyObject *__pyx_v_directory = NULL;
  PyObject *__pyx_v_params = NULL;
  std::map<std::string,std::string>  *__pyx_v_v1;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  std::map<std::string,std::string>  *__pyx_t_13;
  Py_ssize_t __pyx_t_14;
  int __pyx_t_15;
  std::string __pyx_t_16;
  std::string __pyx_t_17;
  keyvi::index::Index *__pyx_t_18;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_15___init__(__pyx_ptype_5_core___pyx_scope_struct_15___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 573, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":574
 * 
 *     def __init__(self, *args , **kwargs):
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             directory = args[0]
 *             params = {}
 */
  __pyx_t_2 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 574, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = ((__pyx_t_3 == 1) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_5 = PyBytes_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_4 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_4 = __pyx_t_5;
  __pyx_L6_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":575
 *     def __init__(self, *args , **kwargs):
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             directory = args[0]             # <<<<<<<<<<<<<<
 *             params = {}
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 */
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_directory = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "_core.pyx":576
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             directory = args[0]
 *             params = {}             # <<<<<<<<<<<<<<
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 *             directory = args[0]
 */
    __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_params = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "_core.pyx":574
 * 
 *     def __init__(self, *args , **kwargs):
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             directory = args[0]
 *             params = {}
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":577
 *             directory = args[0]
 *             params = {}
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *             directory = args[0]
 *             params = args[1]
 */
  __pyx_t_2 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 577, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = ((__pyx_t_3 == 2) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = PyBytes_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = (__pyx_t_4 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_4;
  __pyx_L11_bool_binop_done:;
  __pyx_t_4 = (__pyx_t_5 != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = PyDict_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_2 = __pyx_pf_5_core_5Index_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = __pyx_pf_5_core_5Index_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __pyx_t_5;
  __pyx_L8_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":578
 *             params = {}
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 *             directory = args[0]             # <<<<<<<<<<<<<<
 *             params = args[1]
 *         else:
 */
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_directory = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "_core.pyx":579
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 *             directory = args[0]
 *             params = args[1]             # <<<<<<<<<<<<<<
 *         else:
 *             raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 1);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_params = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "_core.pyx":577
 *             directory = args[0]
 *             params = {}
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *             directory = args[0]
 *             params = args[1]
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":581
 *             params = args[1]
 *         else:
 *             raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *         if isinstance(directory, unicode):
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 581, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":583
 *             raise Exception('can not handle type of %s' % (args,))
 * 
 *         if isinstance(directory, unicode):             # <<<<<<<<<<<<<<
 *             directory = directory.encode('UTF-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_directory); 
  __pyx_t_5 = (__pyx_t_1 != 0);
  if (__pyx_t_5) {

    /* "_core.pyx":584
 * 
 *         if isinstance(directory, unicode):
 *             directory = directory.encode('UTF-8')             # <<<<<<<<<<<<<<
 * 
 *         # inject a keyvimerger shipped with the package if not set from outside
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_directory, __pyx_n_s_encode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_kp_u_UTF_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_kp_u_UTF_8);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_directory, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "_core.pyx":583
 *             raise Exception('can not handle type of %s' % (args,))
 * 
 *         if isinstance(directory, unicode):             # <<<<<<<<<<<<<<
 *             directory = directory.encode('UTF-8')
 * 
 */
  }

  /* "_core.pyx":587
 * 
 *         # inject a keyvimerger shipped with the package if not set from outside
 *         if not b"keyvimerger_bin" in params:             # <<<<<<<<<<<<<<
 *             params[b"keyvimerger_bin"] = get_interpreter_executable() + b" " + os.path.join(get_package_root(), b"_pycore" , b"keyvimerger.py")
 * 
 */
  __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_n_b_keyvimerger_bin, __pyx_v_params, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 587, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_5 != 0);
  if (__pyx_t_1) {

    /* "_core.pyx":588
 *         # inject a keyvimerger shipped with the package if not set from outside
 *         if not b"keyvimerger_bin" in params:
 *             params[b"keyvimerger_bin"] = get_interpreter_executable() + b" " + os.path.join(get_package_root(), b"_pycore" , b"keyvimerger.py")             # <<<<<<<<<<<<<<
 * 
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 */
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_get_interpreter_executable); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = PyNumber_Add(__pyx_t_2, __pyx_kp_b__11); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_os); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_path); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_join); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_get_package_root); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_11)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_11);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
      }
    }
    __pyx_t_9 = (__pyx_t_11) ? __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_11) : __Pyx_PyObject_CallNoArg(__pyx_t_10);
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = NULL;
    __pyx_t_12 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
        __pyx_t_12 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_8)) {
      PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_t_9, __pyx_n_b_pycore, __pyx_kp_b_keyvimerger_py};
      __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
      PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_t_9, __pyx_n_b_pycore, __pyx_kp_b_keyvimerger_py};
      __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    } else
    #endif
    {
      __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      if (__pyx_t_10) {
        __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_9);
      PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_12, __pyx_t_9);
      __Pyx_INCREF(__pyx_n_b_pycore);
      __Pyx_GIVEREF(__pyx_n_b_pycore);
      PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_12, __pyx_n_b_pycore);
      __Pyx_INCREF(__pyx_kp_b_keyvimerger_py);
      __Pyx_GIVEREF(__pyx_kp_b_keyvimerger_py);
      PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_12, __pyx_kp_b_keyvimerger_py);
      __pyx_t_9 = 0;
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = PyNumber_Add(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(PyObject_SetItem(__pyx_v_params, __pyx_n_b_keyvimerger_bin, __pyx_t_8) < 0)) __PYX_ERR(0, 588, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "_core.pyx":587
 * 
 *         # inject a keyvimerger shipped with the package if not set from outside
 *         if not b"keyvimerger_bin" in params:             # <<<<<<<<<<<<<<
 *             params[b"keyvimerger_bin"] = get_interpreter_executable() + b" " + os.path.join(get_package_root(), b"_pycore" , b"keyvimerger.py")
 * 
 */
  }

  /* "_core.pyx":590
 *             params[b"keyvimerger_bin"] = get_interpreter_executable() + b" " + os.path.join(get_package_root(), b"_pycore" , b"keyvimerger.py")
 * 
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_13 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 590, __pyx_L1_error)
  }
  __pyx_v_v1 = __pyx_t_13;

  /* "_core.pyx":591
 * 
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_3 = 0;
  if (unlikely(__pyx_v_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 591, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_dict_iterator(__pyx_v_params, 0, __pyx_n_s_items, (&__pyx_t_14), (&__pyx_t_12)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __pyx_t_8 = __pyx_t_2;
  __pyx_t_2 = 0;
  while (1) {
    __pyx_t_15 = __Pyx_dict_iter_next(__pyx_t_8, __pyx_t_14, &__pyx_t_3, &__pyx_t_2, &__pyx_t_7, NULL, __pyx_t_12);
    if (unlikely(__pyx_t_15 == 0)) break;
    if (unlikely(__pyx_t_15 == -1)) __PYX_ERR(0, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_2);
    __pyx_t_2 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "_core.pyx":592
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_5 = (__pyx_t_1 != 0);
    if (__pyx_t_5) {

      /* "_core.pyx":593
 *         for key, value in params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 593, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_11 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_11)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
        }
      }
      __pyx_t_7 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_11, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "_core.pyx":592
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":594
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_5 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_5 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":595
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 595, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_11 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_11)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
        }
      }
      __pyx_t_7 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_11, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 595, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "_core.pyx":594
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":596
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 *         self.inst = shared_ptr[_Index](new _Index((<libcpp_string>directory), deref(v1)))
 */
    __pyx_t_16 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 596, __pyx_L1_error)
    __pyx_t_17 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 596, __pyx_L1_error)
    ((*__pyx_v_v1)[((std::string)__pyx_t_17)]) = ((std::string)__pyx_t_16);
  }
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "_core.pyx":598
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 *         self.inst = shared_ptr[_Index](new _Index((<libcpp_string>directory), deref(v1)))             # <<<<<<<<<<<<<<
 *         del v1
 * 
 */
  __pyx_t_16 = __pyx_convert_string_from_py_std__in_string(__pyx_v_directory); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 598, __pyx_L1_error)
  try {
    __pyx_t_18 = new keyvi::index::Index(((std::string)__pyx_t_16), (*__pyx_v_v1));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 598, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::index::Index> (__pyx_t_18);

  /* "_core.pyx":599
 * 
 *         self.inst = shared_ptr[_Index](new _Index((<libcpp_string>directory), deref(v1)))
 *         del v1             # <<<<<<<<<<<<<<
 * 
 *     def __delitem__(self, key):
 */
  delete __pyx_v_v1;

  /* "_core.pyx":573
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             directory = args[0]
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("_core.Index.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_directory);
  __Pyx_XDECREF(__pyx_v_params);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":601
 *         del v1
 * 
 *     def __delitem__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static int __pyx_pw_5_core_5Index_17__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static int __pyx_pw_5_core_5Index_17__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_16__delitem__(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_5Index_16__delitem__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__delitem__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":602
 * 
 *     def __delitem__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":603
 *     def __delitem__(self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":602
 * 
 *     def __delitem__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":605
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().Delete(key)
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 605, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":607
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         self.inst.get().Delete(key)             # <<<<<<<<<<<<<<
 * 
 *     def Get (self, key, default = None):
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 607, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Delete(__pyx_t_6);
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 607, __pyx_L1_error)
  }

  /* "_core.pyx":601
 *         del v1
 * 
 *     def __delitem__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Index.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":609
 *         self.inst.get().Delete(key)
 * 
 *     def Get (self, key, default = None):             # <<<<<<<<<<<<<<
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_19Get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_5Index_18Get[] = "Return the value for key if key is in the dictionary, else default.";
static PyObject *__pyx_pw_5_core_5Index_19Get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_default = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Get (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_default,0};
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_default);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Get") < 0)) __PYX_ERR(0, 609, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_key = values[0];
    __pyx_v_default = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 609, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Index.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_5Index_18Get(((struct __pyx_obj_5_core_Index *)__pyx_v_self), __pyx_v_key, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_18Get(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_default) {
  std::shared_ptr<keyvi::dictionary::Match>  __pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Get", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":611
 *     def Get (self, key, default = None):
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":612
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 612, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 612, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":611
 *     def Get (self, key, default = None):
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
  }

  /* "_core.pyx":613
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 613, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":615
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))             # <<<<<<<<<<<<<<
 * 
 *         if _r.get().IsEmpty():
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 615, __pyx_L1_error)
  __pyx_v__r = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match(((*__pyx_v_self->inst.get())[((std::string)__pyx_t_6)])));

  /* "_core.pyx":617
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 */
  __pyx_t_2 = (__pyx_v__r.get()->IsEmpty() != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":618
 * 
 *         if _r.get().IsEmpty():
 *             return default             # <<<<<<<<<<<<<<
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_default);
    __pyx_r = __pyx_v_default;
    goto __pyx_L0;

    /* "_core.pyx":617
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 */
  }

  /* "_core.pyx":619
 *         if _r.get().IsEmpty():
 *             return default
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = _r
 *         return py_result
 */
  __pyx_t_3 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_core.pyx":620
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->inst = __pyx_v__r;

  /* "_core.pyx":621
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, key):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":609
 *         self.inst.get().Delete(key)
 * 
 *     def Get (self, key, default = None):             # <<<<<<<<<<<<<<
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Index.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":623
 *         return py_result
 * 
 *     def __contains__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static int __pyx_pw_5_core_5Index_21__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static int __pyx_pw_5_core_5Index_21__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_20__contains__(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_5Index_20__contains__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":624
 * 
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":625
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":624
 * 
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":627
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         return self.inst.get().Contains(key)
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 627, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":629
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         return self.inst.get().Contains(key)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__ (self, key):
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 629, __pyx_L1_error)
  __pyx_r = __pyx_v_self->inst.get()->Contains(__pyx_t_6);
  goto __pyx_L0;

  /* "_core.pyx":623
 *         return py_result
 * 
 *     def __contains__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Index.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":631
 *         return self.inst.get().Contains(key)
 * 
 *     def __getitem__ (self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_23__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_5_core_5Index_23__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_22__getitem__(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_22__getitem__(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key) {
  std::shared_ptr<keyvi::dictionary::Match>  __pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":632
 * 
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":633
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":632
 * 
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":635
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 635, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":637
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))             # <<<<<<<<<<<<<<
 * 
 *         if _r.get().IsEmpty():
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 637, __pyx_L1_error)
  __pyx_v__r = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match(((*__pyx_v_self->inst.get())[((std::string)__pyx_t_6)])));

  /* "_core.pyx":639
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 */
  __pyx_t_2 = (__pyx_v__r.get()->IsEmpty() != 0);
  if (unlikely(__pyx_t_2)) {

    /* "_core.pyx":640
 * 
 *         if _r.get().IsEmpty():
 *             raise KeyError(key)             # <<<<<<<<<<<<<<
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 */
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_KeyError, __pyx_v_key); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 640, __pyx_L1_error)

    /* "_core.pyx":639
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 */
  }

  /* "_core.pyx":641
 *         if _r.get().IsEmpty():
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = _r
 *         return py_result
 */
  __pyx_t_3 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 641, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_core.pyx":642
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->inst = __pyx_v__r;

  /* "_core.pyx":643
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def MSet(self, list key_values ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":631
 *         return self.inst.get().Contains(key)
 * 
 *     def __getitem__ (self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Index.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":645
 *         return py_result
 * 
 *     def MSet(self, list key_values ):             # <<<<<<<<<<<<<<
 *         assert isinstance(key_values, list), 'arg in_0 wrong type'
 *         cdef s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]] cpp_key_values = s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]](new libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_25MSet(PyObject *__pyx_v_self, PyObject *__pyx_v_key_values); /*proto*/
static PyObject *__pyx_pw_5_core_5Index_25MSet(PyObject *__pyx_v_self, PyObject *__pyx_v_key_values) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MSet (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_key_values), (&PyList_Type), 1, "key_values", 1))) __PYX_ERR(0, 645, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_5Index_24MSet(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject*)__pyx_v_key_values));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_24MSet(struct __pyx_obj_5_core_Index *__pyx_v_self, PyObject *__pyx_v_key_values) {
  std::shared_ptr<std::vector<std::pair<std::string,std::string> > >  __pyx_v_cpp_key_values;
  std::pair<std::string,std::string>  __pyx_v_cpp_kv;
  PyObject *__pyx_v_kv = NULL;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  std::vector<std::pair<std::string,std::string> >  *__pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  std::string __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("MSet", 0);

  /* "_core.pyx":646
 * 
 *     def MSet(self, list key_values ):
 *         assert isinstance(key_values, list), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         cdef s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]] cpp_key_values = s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]](new libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]())
 *         cdef libcpp_pair[libcpp_utf8_string, libcpp_utf8_string] cpp_kv
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = PyList_Check(__pyx_v_key_values); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 646, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":647
 *     def MSet(self, list key_values ):
 *         assert isinstance(key_values, list), 'arg in_0 wrong type'
 *         cdef s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]] cpp_key_values = s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]](new libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]())             # <<<<<<<<<<<<<<
 *         cdef libcpp_pair[libcpp_utf8_string, libcpp_utf8_string] cpp_kv
 * 
 */
  try {
    __pyx_t_2 = new std::vector<std::pair<std::string,std::string> > ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 647, __pyx_L1_error)
  }
  __pyx_v_cpp_key_values = std::shared_ptr<std::vector<std::pair<std::string,std::string> > > (__pyx_t_2);

  /* "_core.pyx":650
 *         cdef libcpp_pair[libcpp_utf8_string, libcpp_utf8_string] cpp_kv
 * 
 *         for kv in key_values:             # <<<<<<<<<<<<<<
 *             assert isinstance (kv, tuple), 'arg in_0 wrong type'
 *             assert isinstance(kv[0], (bytes, unicode)), 'arg in_0 wrong type'
 */
  if (unlikely(__pyx_v_key_values == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 650, __pyx_L1_error)
  }
  __pyx_t_3 = __pyx_v_key_values; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 650, __pyx_L1_error)
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 650, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_kv, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "_core.pyx":651
 * 
 *         for kv in key_values:
 *             assert isinstance (kv, tuple), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *             assert isinstance(kv[0], (bytes, unicode)), 'arg in_0 wrong type'
 *             assert isinstance(kv[1], (bytes, unicode)), 'arg in_1 wrong type'
 */
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(!Py_OptimizeFlag)) {
      __pyx_t_1 = PyTuple_Check(__pyx_v_kv); 
      if (unlikely(!(__pyx_t_1 != 0))) {
        PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
        __PYX_ERR(0, 651, __pyx_L1_error)
      }
    }
    #endif

    /* "_core.pyx":652
 *         for kv in key_values:
 *             assert isinstance (kv, tuple), 'arg in_0 wrong type'
 *             assert isinstance(kv[0], (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *             assert isinstance(kv[1], (bytes, unicode)), 'arg in_1 wrong type'
 *             key = kv[0]
 */
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(!Py_OptimizeFlag)) {
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_kv, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 652, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyBytes_Check(__pyx_t_5); 
      __pyx_t_7 = (__pyx_t_6 != 0);
      if (!__pyx_t_7) {
      } else {
        __pyx_t_1 = __pyx_t_7;
        goto __pyx_L5_bool_binop_done;
      }
      __pyx_t_7 = PyUnicode_Check(__pyx_t_5); 
      __pyx_t_6 = (__pyx_t_7 != 0);
      __pyx_t_1 = __pyx_t_6;
      __pyx_L5_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!(__pyx_t_1 != 0))) {
        PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
        __PYX_ERR(0, 652, __pyx_L1_error)
      }
    }
    #endif

    /* "_core.pyx":653
 *             assert isinstance (kv, tuple), 'arg in_0 wrong type'
 *             assert isinstance(kv[0], (bytes, unicode)), 'arg in_0 wrong type'
 *             assert isinstance(kv[1], (bytes, unicode)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *             key = kv[0]
 *             if isinstance(key, unicode):
 */
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(!Py_OptimizeFlag)) {
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_kv, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 653, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyBytes_Check(__pyx_t_5); 
      __pyx_t_7 = (__pyx_t_6 != 0);
      if (!__pyx_t_7) {
      } else {
        __pyx_t_1 = __pyx_t_7;
        goto __pyx_L7_bool_binop_done;
      }
      __pyx_t_7 = PyUnicode_Check(__pyx_t_5); 
      __pyx_t_6 = (__pyx_t_7 != 0);
      __pyx_t_1 = __pyx_t_6;
      __pyx_L7_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!(__pyx_t_1 != 0))) {
        PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
        __PYX_ERR(0, 653, __pyx_L1_error)
      }
    }
    #endif

    /* "_core.pyx":654
 *             assert isinstance(kv[0], (bytes, unicode)), 'arg in_0 wrong type'
 *             assert isinstance(kv[1], (bytes, unicode)), 'arg in_1 wrong type'
 *             key = kv[0]             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_kv, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "_core.pyx":655
 *             assert isinstance(kv[1], (bytes, unicode)), 'arg in_1 wrong type'
 *             key = kv[0]
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             value = kv[1]
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_6 = (__pyx_t_1 != 0);
    if (__pyx_t_6) {

      /* "_core.pyx":656
 *             key = kv[0]
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             value = kv[1]
 *             if isinstance(value, unicode):
 */
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 656, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
        if (likely(__pyx_t_9)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_8, function);
        }
      }
      __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 656, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "_core.pyx":655
 *             assert isinstance(kv[1], (bytes, unicode)), 'arg in_1 wrong type'
 *             key = kv[0]
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             value = kv[1]
 */
    }

    /* "_core.pyx":657
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             value = kv[1]             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_kv, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "_core.pyx":658
 *                 key = key.encode('utf-8')
 *             value = kv[1]
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             cpp_kv.first = key
 */
    __pyx_t_6 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_6 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":659
 *             value = kv[1]
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             cpp_kv.first = key
 *             cpp_kv.second = value
 */
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 659, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
        if (likely(__pyx_t_9)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_8, function);
        }
      }
      __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 659, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "_core.pyx":658
 *                 key = key.encode('utf-8')
 *             value = kv[1]
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             cpp_kv.first = key
 */
    }

    /* "_core.pyx":660
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             cpp_kv.first = key             # <<<<<<<<<<<<<<
 *             cpp_kv.second = value
 *             cpp_key_values.get().push_back(cpp_kv)
 */
    __pyx_t_10 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 660, __pyx_L1_error)
    __pyx_v_cpp_kv.first = __pyx_t_10;

    /* "_core.pyx":661
 *                 value = value.encode('utf-8')
 *             cpp_kv.first = key
 *             cpp_kv.second = value             # <<<<<<<<<<<<<<
 *             cpp_key_values.get().push_back(cpp_kv)
 * 
 */
    __pyx_t_10 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 661, __pyx_L1_error)
    __pyx_v_cpp_kv.second = __pyx_t_10;

    /* "_core.pyx":662
 *             cpp_kv.first = key
 *             cpp_kv.second = value
 *             cpp_key_values.get().push_back(cpp_kv)             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().MSet(cpp_key_values)
 */
    try {
      __pyx_v_cpp_key_values.get()->push_back(__pyx_v_cpp_kv);
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(0, 662, __pyx_L1_error)
    }

    /* "_core.pyx":650
 *         cdef libcpp_pair[libcpp_utf8_string, libcpp_utf8_string] cpp_kv
 * 
 *         for kv in key_values:             # <<<<<<<<<<<<<<
 *             assert isinstance (kv, tuple), 'arg in_0 wrong type'
 *             assert isinstance(kv[0], (bytes, unicode)), 'arg in_0 wrong type'
 */
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "_core.pyx":664
 *             cpp_key_values.get().push_back(cpp_kv)
 * 
 *         self.inst.get().MSet(cpp_key_values)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntDictionaryCompiler:
 */
  __pyx_v_self->inst.get()->MSet(__pyx_v_cpp_key_values);

  /* "_core.pyx":645
 *         return py_result
 * 
 *     def MSet(self, list key_values ):             # <<<<<<<<<<<<<<
 *         assert isinstance(key_values, list), 'arg in_0 wrong type'
 *         cdef s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]] cpp_key_values = s_shared_ptr[libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]](new libcpp_vector[libcpp_pair[libcpp_utf8_string,libcpp_utf8_string]]())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("_core.Index.MSet", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_kv);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_27__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_5Index_27__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_26__reduce_cython__(((struct __pyx_obj_5_core_Index *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_26__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Index *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Index.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Index_29__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_5Index_29__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Index_28__setstate_cython__(((struct __pyx_obj_5_core_Index *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Index_28__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Index *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Index.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":673
 *     cdef shared_ptr[_IntDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_21IntDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_21IntDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_21IntDictionaryCompiler___dealloc__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_21IntDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":674
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":673
 *     cdef shared_ptr[_IntDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":677
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompiler()"""
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_21IntDictionaryCompiler_2_init_0[] = "Cython signature: void IntDictionaryCompiler()";
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_2_init_0(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::IntDictionaryCompiler *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":679
 *     def _init_0(self):
 *         """Cython signature: void IntDictionaryCompiler()"""
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::IntDictionaryCompiler();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 679, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::IntDictionaryCompiler> (__pyx_t_1);

  /* "_core.pyx":677
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompiler()"""
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":681
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_21IntDictionaryCompiler_4_init_1[] = "Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 681, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_4_init_1(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_7_init_1_2generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":683
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_19_genexpr(__pyx_ptype_5_core___pyx_scope_struct_19_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 683, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21IntDictionaryCompiler_7_init_1_2generator13, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_7_init_1_2generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 683, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 683, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 683, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_7_init_1_5generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_20_genexpr(__pyx_ptype_5_core___pyx_scope_struct_20_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 683, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21IntDictionaryCompiler_7_init_1_5generator14, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_7_init_1_5generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 683, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 683, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 683, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":681
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::IntDictionaryCompiler *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_18__init_1(__pyx_ptype_5_core___pyx_scope_struct_18__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 681, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":683
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_21IntDictionaryCompiler_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_21IntDictionaryCompiler_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 683, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":684
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 684, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":685
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 685, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 685, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":686
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":687
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":686
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":688
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":689
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 689, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 689, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":688
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":690
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 690, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 690, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":693
 * 
 * 
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::IntDictionaryCompiler((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 693, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::IntDictionaryCompiler> (__pyx_t_15);

  /* "_core.pyx":694
 * 
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":681
 *         self.inst = shared_ptr[_IntDictionaryCompiler](new _IntDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":696
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompiler()
 */

/* Python wrapper */
static int __pyx_pw_5_core_21IntDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_21IntDictionaryCompiler_6__init__[] = "\n          - Cython signature: void IntDictionaryCompiler()\n          - Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_21IntDictionaryCompiler_6__init__;
#endif
static int __pyx_pw_5_core_21IntDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_6__init__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_8__init___2generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":703
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_22_genexpr(__pyx_ptype_5_core___pyx_scope_struct_22_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 703, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21IntDictionaryCompiler_8__init___2generator15, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 703, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_8__init___2generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 703, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 703, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 703, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 703, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_8__init___5generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_23_genexpr(__pyx_ptype_5_core___pyx_scope_struct_23_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 703, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21IntDictionaryCompiler_8__init___5generator16, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 703, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21IntDictionaryCompiler_8__init___5generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 703, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 703, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 703, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 703, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":696
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompiler()
 */

static int __pyx_pf_5_core_21IntDictionaryCompiler_6__init__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_21___init__(__pyx_ptype_5_core___pyx_scope_struct_21___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 696, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":701
 *           - Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":702
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":701
 *           - Cython signature: void IntDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":703
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 703, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_21IntDictionaryCompiler_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_21IntDictionaryCompiler_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":704
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":703
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":706
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ,  in_1 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 706, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":696
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompiler()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":708
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_21IntDictionaryCompiler_8Add[] = "Cython signature: void Add(libcpp_utf8_string, long int)";
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, 1); __PYX_ERR(0, 708, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Add") < 0)) __PYX_ERR(0, 708, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 708, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_8Add(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_8Add(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  long __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":710
 *     def Add(self,  in_0 ,  in_1 ):
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 710, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":711
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 711, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":712
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":713
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":712
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":715
 *             in_0 = in_0.encode('utf-8')
 * 
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 715, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_long(__pyx_v_in_1); if (unlikely((__pyx_t_8 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 715, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7), ((long)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 715, __pyx_L1_error)
  }

  /* "_core.pyx":708
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":717
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21IntDictionaryCompiler_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_10SetManifest(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":719
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 719, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":720
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":721
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":720
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":722
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 722, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 722, __pyx_L1_error)
  }

  /* "_core.pyx":717
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":724
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21IntDictionaryCompiler_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_12WriteToFile(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":726
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 726, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":727
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":728
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":727
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":729
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 729, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 729, __pyx_L1_error)
  }

  /* "_core.pyx":724
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":731
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_14__enter__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":732
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":731
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":735
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_21IntDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_21IntDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_16__setitem__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_21IntDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":736
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":735
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":739
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 739, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 739, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 739, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 739, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_18__exit__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":740
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":739
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":743
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_20Compile(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_20Compile(struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":744
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":745
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":746
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":745
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":747
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":744
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":749
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":750
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":751
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntDictionaryCompilerSmallData:
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":750
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":743
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_22__reduce_cython__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_21IntDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21IntDictionaryCompiler_24__setstate_cython__(((struct __pyx_obj_5_core_IntDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21IntDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.IntDictionaryCompiler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":760
 *     cdef shared_ptr[_IntDictionaryCompilerSmallData] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_30IntDictionaryCompilerSmallData_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_30IntDictionaryCompilerSmallData_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_30IntDictionaryCompilerSmallData___dealloc__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_30IntDictionaryCompilerSmallData___dealloc__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":761
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":760
 *     cdef shared_ptr[_IntDictionaryCompilerSmallData] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":764
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompilerSmallData()"""
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_30IntDictionaryCompilerSmallData_2_init_0[] = "Cython signature: void IntDictionaryCompilerSmallData()";
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_2_init_0(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_2_init_0(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::IntDictionaryCompilerSmallData *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":766
 *     def _init_0(self):
 *         """Cython signature: void IntDictionaryCompilerSmallData()"""
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::IntDictionaryCompilerSmallData();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 766, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::IntDictionaryCompilerSmallData> (__pyx_t_1);

  /* "_core.pyx":764
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompilerSmallData()"""
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":768
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_30IntDictionaryCompilerSmallData_4_init_1[] = "Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 768, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_4_init_1(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_7_init_1_2generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":770
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_25_genexpr(__pyx_ptype_5_core___pyx_scope_struct_25_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 770, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_30IntDictionaryCompilerSmallData_7_init_1_2generator17, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_7_init_1_2generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 770, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 770, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 770, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_7_init_1_5generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_26_genexpr(__pyx_ptype_5_core___pyx_scope_struct_26_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 770, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_30IntDictionaryCompilerSmallData_7_init_1_5generator18, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_7_init_1_5generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 770, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 770, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 770, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":768
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_4_init_1(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::IntDictionaryCompilerSmallData *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_24__init_1(__pyx_ptype_5_core___pyx_scope_struct_24__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 768, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":770
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 770, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":771
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 771, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":772
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 772, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":773
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":774
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 774, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 774, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":773
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":775
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":776
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 776, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 776, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":775
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":777
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 777, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 777, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":780
 * 
 * 
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::IntDictionaryCompilerSmallData((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 780, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::IntDictionaryCompilerSmallData> (__pyx_t_15);

  /* "_core.pyx":781
 * 
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":768
 *         self.inst = shared_ptr[_IntDictionaryCompilerSmallData](new _IntDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":783
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompilerSmallData()
 */

/* Python wrapper */
static int __pyx_pw_5_core_30IntDictionaryCompilerSmallData_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_30IntDictionaryCompilerSmallData_6__init__[] = "\n          - Cython signature: void IntDictionaryCompilerSmallData()\n          - Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_30IntDictionaryCompilerSmallData_6__init__;
#endif
static int __pyx_pw_5_core_30IntDictionaryCompilerSmallData_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_6__init__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_8__init___2generator19(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":790
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_28_genexpr(__pyx_ptype_5_core___pyx_scope_struct_28_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 790, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_30IntDictionaryCompilerSmallData_8__init___2generator19, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_8__init___2generator19(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 790, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 790, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 790, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 790, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_8__init___5generator20(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_29_genexpr(__pyx_ptype_5_core___pyx_scope_struct_29_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 790, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_30IntDictionaryCompilerSmallData_8__init___5generator20, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_30IntDictionaryCompilerSmallData_8__init___5generator20(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 790, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 790, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 790, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 790, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":783
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompilerSmallData()
 */

static int __pyx_pf_5_core_30IntDictionaryCompilerSmallData_6__init__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_27___init__(__pyx_ptype_5_core___pyx_scope_struct_27___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 783, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":788
 *           - Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":789
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":788
 *           - Cython signature: void IntDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":790
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 790, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":791
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":790
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":793
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ,  in_1 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 793, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":783
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryCompilerSmallData()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":795
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_30IntDictionaryCompilerSmallData_8Add[] = "Cython signature: void Add(libcpp_utf8_string, long int)";
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, 1); __PYX_ERR(0, 795, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Add") < 0)) __PYX_ERR(0, 795, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 795, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_8Add(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_8Add(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  long __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":797
 *     def Add(self,  in_0 ,  in_1 ):
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 797, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":798
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 798, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":799
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":800
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":799
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":802
 *             in_0 = in_0.encode('utf-8')
 * 
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 802, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_long(__pyx_v_in_1); if (unlikely((__pyx_t_8 == (long)-1) && PyErr_Occurred())) __PYX_ERR(0, 802, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7), ((long)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 802, __pyx_L1_error)
  }

  /* "_core.pyx":795
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, long int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":804
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_30IntDictionaryCompilerSmallData_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_10SetManifest(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_10SetManifest(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":806
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 806, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":807
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":808
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":807
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":809
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 809, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 809, __pyx_L1_error)
  }

  /* "_core.pyx":804
 *         self.inst.get().Add((<libcpp_string>in_0), (<long int>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":811
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_30IntDictionaryCompilerSmallData_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_12WriteToFile(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_12WriteToFile(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":813
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 813, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":814
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":815
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 815, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 815, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":814
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":816
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 816, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 816, __pyx_L1_error)
  }

  /* "_core.pyx":811
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":818
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_14__enter__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_14__enter__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":819
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":818
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":822
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_30IntDictionaryCompilerSmallData_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_30IntDictionaryCompilerSmallData_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_16__setitem__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_30IntDictionaryCompilerSmallData_16__setitem__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":823
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 823, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":822
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":826
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 826, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 826, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 826, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 826, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_18__exit__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_18__exit__(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":827
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":826
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":830
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_20Compile(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_20Compile(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":831
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":832
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":833
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":832
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":834
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":831
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":836
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":837
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":838
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntDictionaryMerger:
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":837
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":830
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_22__reduce_cython__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_30IntDictionaryCompilerSmallData_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_30IntDictionaryCompilerSmallData_24__setstate_cython__(((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_30IntDictionaryCompilerSmallData_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.IntDictionaryCompilerSmallData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":847
 *     cdef shared_ptr[_IntDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_19IntDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_19IntDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_19IntDictionaryMerger___dealloc__(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_19IntDictionaryMerger___dealloc__(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":848
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":847
 *     cdef shared_ptr[_IntDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":851
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryMerger()"""
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_19IntDictionaryMerger_2_init_0[] = "Cython signature: void IntDictionaryMerger()";
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_2_init_0(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_2_init_0(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::IntDictionaryMerger *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":853
 *     def _init_0(self):
 *         """Cython signature: void IntDictionaryMerger()"""
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::IntDictionaryMerger();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 853, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::IntDictionaryMerger> (__pyx_t_1);

  /* "_core.pyx":851
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryMerger()"""
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryMerger._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":855
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_19IntDictionaryMerger_4_init_1[] = "Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 855, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_4_init_1(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_7_init_1_2generator21(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":857
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_31_genexpr(__pyx_ptype_5_core___pyx_scope_struct_31_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 857, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19IntDictionaryMerger_7_init_1_2generator21, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_7_init_1_2generator21(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 857, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 857, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 857, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_7_init_1_5generator22(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_32_genexpr(__pyx_ptype_5_core___pyx_scope_struct_32_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 857, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19IntDictionaryMerger_7_init_1_5generator22, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_7_init_1_5generator22(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 857, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 857, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 857, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":855
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_4_init_1(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::IntDictionaryMerger *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_30__init_1(__pyx_ptype_5_core___pyx_scope_struct_30__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 855, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":857
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_19IntDictionaryMerger_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_19IntDictionaryMerger_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 857, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 857, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":858
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 858, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":859
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 859, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 859, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":860
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":861
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 861, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 861, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":860
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":862
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":863
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 863, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 863, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":862
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":864
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 864, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 864, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":867
 * 
 * 
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::IntDictionaryMerger((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 867, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::IntDictionaryMerger> (__pyx_t_15);

  /* "_core.pyx":868
 * 
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":855
 *         self.inst = shared_ptr[_IntDictionaryMerger](new _IntDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.IntDictionaryMerger._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":870
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryMerger()
 */

/* Python wrapper */
static int __pyx_pw_5_core_19IntDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_19IntDictionaryMerger_6__init__[] = "\n          - Cython signature: void IntDictionaryMerger()\n          - Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_19IntDictionaryMerger_6__init__;
#endif
static int __pyx_pw_5_core_19IntDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_6__init__(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_8__init___2generator23(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":877
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_34_genexpr(__pyx_ptype_5_core___pyx_scope_struct_34_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 877, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19IntDictionaryMerger_8__init___2generator23, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 877, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_8__init___2generator23(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 877, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 877, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 877, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 877, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_8__init___5generator24(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_35_genexpr(__pyx_ptype_5_core___pyx_scope_struct_35_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 877, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19IntDictionaryMerger_8__init___5generator24, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 877, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.IntDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19IntDictionaryMerger_8__init___5generator24(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 877, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 877, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 877, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 877, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":870
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryMerger()
 */

static int __pyx_pf_5_core_19IntDictionaryMerger_6__init__(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_33___init__(__pyx_ptype_5_core___pyx_scope_struct_33___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 870, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":875
 *           - Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":876
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":875
 *           - Cython signature: void IntDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":877
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 877, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_19IntDictionaryMerger_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_19IntDictionaryMerger_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":878
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 878, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 878, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":877
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":880
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 880, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":870
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void IntDictionaryMerger()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.IntDictionaryMerger.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":882
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_19IntDictionaryMerger_8Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_8Add(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_8Add(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":884
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 884, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":885
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":886
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 886, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 886, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":885
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":887
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 887, __pyx_L1_error)
  }

  /* "_core.pyx":882
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryMerger.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":889
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_19IntDictionaryMerger_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_10SetManifest(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":891
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 891, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":892
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":893
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":892
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":894
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Merge(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 894, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 894, __pyx_L1_error)
  }

  /* "_core.pyx":889
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryMerger.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":896
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_19IntDictionaryMerger_12Merge[] = "Cython signature: void Merge(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Merge (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_12Merge(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_12Merge(struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Merge", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":898
 *     def Merge(self,  in_0 ):
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 898, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":899
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":900
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":899
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":901
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class JsonDictionaryCompiler:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 901, __pyx_L1_error)
  __pyx_v_self->inst.get()->Merge(((std::string)__pyx_t_7));

  /* "_core.pyx":896
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.IntDictionaryMerger.Merge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_14__reduce_cython__(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.IntDictionaryMerger.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_19IntDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19IntDictionaryMerger_16__setstate_cython__(((struct __pyx_obj_5_core_IntDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19IntDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_IntDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.IntDictionaryMerger.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":910
 *     cdef shared_ptr[_JsonDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_22JsonDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_22JsonDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_22JsonDictionaryCompiler___dealloc__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_22JsonDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":911
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":910
 *     cdef shared_ptr[_JsonDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":914
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompiler()"""
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_22JsonDictionaryCompiler_2_init_0[] = "Cython signature: void JsonDictionaryCompiler()";
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_2_init_0(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::JsonDictionaryCompiler *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":916
 *     def _init_0(self):
 *         """Cython signature: void JsonDictionaryCompiler()"""
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::JsonDictionaryCompiler();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 916, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::JsonDictionaryCompiler> (__pyx_t_1);

  /* "_core.pyx":914
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompiler()"""
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":918
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_22JsonDictionaryCompiler_4_init_1[] = "Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 918, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_4_init_1(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_7_init_1_2generator25(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":920
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_37_genexpr(__pyx_ptype_5_core___pyx_scope_struct_37_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 920, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22JsonDictionaryCompiler_7_init_1_2generator25, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_7_init_1_2generator25(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 920, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 920, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 920, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_7_init_1_5generator26(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_38_genexpr(__pyx_ptype_5_core___pyx_scope_struct_38_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 920, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22JsonDictionaryCompiler_7_init_1_5generator26, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_7_init_1_5generator26(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 920, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 920, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 920, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":918
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::JsonDictionaryCompiler *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_36__init_1(__pyx_ptype_5_core___pyx_scope_struct_36__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 918, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":920
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_22JsonDictionaryCompiler_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_22JsonDictionaryCompiler_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 920, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":921
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 921, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":922
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 922, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":923
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":924
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 924, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 924, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":923
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":925
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":926
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 926, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 926, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":925
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":927
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 927, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 927, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":930
 * 
 * 
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::JsonDictionaryCompiler((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 930, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::JsonDictionaryCompiler> (__pyx_t_15);

  /* "_core.pyx":931
 * 
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":918
 *         self.inst = shared_ptr[_JsonDictionaryCompiler](new _JsonDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":933
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompiler()
 */

/* Python wrapper */
static int __pyx_pw_5_core_22JsonDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_22JsonDictionaryCompiler_6__init__[] = "\n          - Cython signature: void JsonDictionaryCompiler()\n          - Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_22JsonDictionaryCompiler_6__init__;
#endif
static int __pyx_pw_5_core_22JsonDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_6__init__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_8__init___2generator27(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":940
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_40_genexpr(__pyx_ptype_5_core___pyx_scope_struct_40_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 940, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22JsonDictionaryCompiler_8__init___2generator27, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 940, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_8__init___2generator27(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 940, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 940, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 940, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 940, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_8__init___5generator28(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_41_genexpr(__pyx_ptype_5_core___pyx_scope_struct_41_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 940, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22JsonDictionaryCompiler_8__init___5generator28, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 940, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22JsonDictionaryCompiler_8__init___5generator28(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 940, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 940, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 940, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 940, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":933
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompiler()
 */

static int __pyx_pf_5_core_22JsonDictionaryCompiler_6__init__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_39___init__(__pyx_ptype_5_core___pyx_scope_struct_39___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 933, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":938
 *           - Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":939
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 939, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 939, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":938
 *           - Cython signature: void JsonDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":940
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 940, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_22JsonDictionaryCompiler_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_22JsonDictionaryCompiler_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":941
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":940
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":943
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ,  in_1 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 943, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":933
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompiler()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":945
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_22JsonDictionaryCompiler_8Add[] = "Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, 1); __PYX_ERR(0, 945, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Add") < 0)) __PYX_ERR(0, 945, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 945, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_8Add(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_8Add(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  std::string __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);
  __Pyx_INCREF(__pyx_v_in_1);

  /* "_core.pyx":947
 *     def Add(self,  in_0 ,  in_1 ):
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 947, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":948
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 948, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":949
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":950
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 950, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 950, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":949
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 */
  }

  /* "_core.pyx":951
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):             # <<<<<<<<<<<<<<
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 */
  __pyx_t_2 = PyUnicode_Check(__pyx_v_in_1); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "_core.pyx":952
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_1, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 952, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 952, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_1, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":951
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):             # <<<<<<<<<<<<<<
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 */
  }

  /* "_core.pyx":953
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 953, __pyx_L1_error)
  __pyx_t_8 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 953, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7), ((std::string)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 953, __pyx_L1_error)
  }

  /* "_core.pyx":945
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XDECREF(__pyx_v_in_1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":955
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_22JsonDictionaryCompiler_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_10SetManifest(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":957
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 957, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":958
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":959
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 959, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 959, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":958
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":960
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 960, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 960, __pyx_L1_error)
  }

  /* "_core.pyx":955
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":962
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_22JsonDictionaryCompiler_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_12WriteToFile(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":964
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 964, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":965
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":966
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":965
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":967
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 967, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 967, __pyx_L1_error)
  }

  /* "_core.pyx":962
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":969
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_14__enter__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":970
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":969
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":973
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_22JsonDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_22JsonDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_16__setitem__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_22JsonDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":974
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":973
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":977
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 977, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 977, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 977, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 977, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_18__exit__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":978
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":977
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":981
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_20Compile(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_20Compile(struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":982
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":983
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":984
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":983
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":985
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":982
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":987
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":988
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":989
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * cdef class JsonDictionaryCompilerSmallData:
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":988
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":981
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_22__reduce_cython__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_22JsonDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22JsonDictionaryCompiler_24__setstate_cython__(((struct __pyx_obj_5_core_JsonDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22JsonDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonDictionaryCompiler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":998
 *     cdef shared_ptr[_JsonDictionaryCompilerSmallData] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_31JsonDictionaryCompilerSmallData___dealloc__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_31JsonDictionaryCompilerSmallData___dealloc__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":999
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":998
 *     cdef shared_ptr[_JsonDictionaryCompilerSmallData] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1002
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompilerSmallData()"""
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_2_init_0[] = "Cython signature: void JsonDictionaryCompilerSmallData()";
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_2_init_0(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_2_init_0(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::JsonDictionaryCompilerSmallData *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1004
 *     def _init_0(self):
 *         """Cython signature: void JsonDictionaryCompilerSmallData()"""
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::JsonDictionaryCompilerSmallData();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1004, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::JsonDictionaryCompilerSmallData> (__pyx_t_1);

  /* "_core.pyx":1002
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompilerSmallData()"""
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1006
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_4_init_1[] = "Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1006, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_4_init_1(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_7_init_1_2generator29(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1008
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_43_genexpr(__pyx_ptype_5_core___pyx_scope_struct_43_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1008, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_31JsonDictionaryCompilerSmallData_7_init_1_2generator29, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_7_init_1_2generator29(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1008, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1008, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_7_init_1_5generator30(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_44_genexpr(__pyx_ptype_5_core___pyx_scope_struct_44_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1008, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_31JsonDictionaryCompilerSmallData_7_init_1_5generator30, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_7_init_1_5generator30(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1008, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1008, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1006
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_4_init_1(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::JsonDictionaryCompilerSmallData *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_42__init_1(__pyx_ptype_5_core___pyx_scope_struct_42__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1006, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1008
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1008, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1008, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1009
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1009, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1010
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1010, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1011
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1012
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1012, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1012, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1011
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1013
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1014
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1014, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1014, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1013
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1015
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1015, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1015, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1018
 * 
 * 
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::JsonDictionaryCompilerSmallData((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1018, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::JsonDictionaryCompilerSmallData> (__pyx_t_15);

  /* "_core.pyx":1019
 * 
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1006
 *         self.inst = shared_ptr[_JsonDictionaryCompilerSmallData](new _JsonDictionaryCompilerSmallData())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1021
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompilerSmallData()
 */

/* Python wrapper */
static int __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_6__init__[] = "\n          - Cython signature: void JsonDictionaryCompilerSmallData()\n          - Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_31JsonDictionaryCompilerSmallData_6__init__;
#endif
static int __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_6__init__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_8__init___2generator31(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1028
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_46_genexpr(__pyx_ptype_5_core___pyx_scope_struct_46_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1028, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_31JsonDictionaryCompilerSmallData_8__init___2generator31, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1028, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_8__init___2generator31(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1028, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1028, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1028, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1028, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_8__init___5generator32(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_47_genexpr(__pyx_ptype_5_core___pyx_scope_struct_47_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1028, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_31JsonDictionaryCompilerSmallData_8__init___5generator32, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1028, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_31JsonDictionaryCompilerSmallData_8__init___5generator32(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1028, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1028, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1028, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1028, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1021
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompilerSmallData()
 */

static int __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_6__init__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_45___init__(__pyx_ptype_5_core___pyx_scope_struct_45___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1021, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1026
 *           - Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1027
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1026
 *           - Cython signature: void JsonDictionaryCompilerSmallData(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1028
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1028, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1029
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1029, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1029, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1028
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1031
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1031, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1031, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1031, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1031, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1021
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryCompilerSmallData()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1033
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_9SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_8SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_9SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8SetManifest(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_8SetManifest(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1035
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1035, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1036
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1037
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1036
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1038
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1038, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1038, __pyx_L1_error)
  }

  /* "_core.pyx":1033
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1040
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_11WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_10WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_11WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_10WriteToFile(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_10WriteToFile(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1042
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1042, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1043
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1044
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1043
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1045
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1045, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1045, __pyx_L1_error)
  }

  /* "_core.pyx":1040
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1047
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_13__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_13__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_12__enter__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_12__enter__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":1048
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":1047
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1051
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_15__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_15__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_14__setitem__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_14__setitem__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":1052
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1052, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1052, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1052, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1052, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1051
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1055
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_17__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_17__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 1055, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 1055, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 1055, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1055, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_16__exit__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_16__exit__(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":1056
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1055
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1059
 * 
 * 
 *     def Add(self, key , value ):             # <<<<<<<<<<<<<<
 *         assert isinstance(key, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(value, (bytes, unicode)), 'arg in_1 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_19Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_19Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_value = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, 1); __PYX_ERR(0, 1059, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Add") < 0)) __PYX_ERR(0, 1059, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_key = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1059, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_18Add(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_key, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_18Add(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  std::string __pyx_v_input_in_0;
  std::string __pyx_v_input_in_1;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_key);
  __Pyx_INCREF(__pyx_v_value);

  /* "_core.pyx":1060
 * 
 *     def Add(self, key , value ):
 *         assert isinstance(key, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(value, (bytes, unicode)), 'arg in_1 wrong type'
 * 
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1060, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1061
 *     def Add(self, key , value ):
 *         assert isinstance(key, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(value, (bytes, unicode)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         if isinstance(key, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_value); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 1061, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1063
 *         assert isinstance(value, (bytes, unicode)), 'arg in_1 wrong type'
 * 
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('UTF-8')
 *         cdef libcpp_string input_in_0 = <libcpp_string> key
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1064
 * 
 *         if isinstance(key, unicode):
 *             key = key.encode('UTF-8')             # <<<<<<<<<<<<<<
 *         cdef libcpp_string input_in_0 = <libcpp_string> key
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1064, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_UTF_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_UTF_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1064, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1063
 *         assert isinstance(value, (bytes, unicode)), 'arg in_1 wrong type'
 * 
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('UTF-8')
 *         cdef libcpp_string input_in_0 = <libcpp_string> key
 */
  }

  /* "_core.pyx":1065
 *         if isinstance(key, unicode):
 *             key = key.encode('UTF-8')
 *         cdef libcpp_string input_in_0 = <libcpp_string> key             # <<<<<<<<<<<<<<
 * 
 *         if isinstance(value, unicode):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1065, __pyx_L1_error)
  __pyx_v_input_in_0 = ((std::string)__pyx_t_7);

  /* "_core.pyx":1067
 *         cdef libcpp_string input_in_0 = <libcpp_string> key
 * 
 *         if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *             value = value.encode('UTF-8')
 *         cdef libcpp_string input_in_1 = <libcpp_string> value
 */
  __pyx_t_2 = PyUnicode_Check(__pyx_v_value); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "_core.pyx":1068
 * 
 *         if isinstance(value, unicode):
 *             value = value.encode('UTF-8')             # <<<<<<<<<<<<<<
 *         cdef libcpp_string input_in_1 = <libcpp_string> value
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1068, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_UTF_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_UTF_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1068, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1067
 *         cdef libcpp_string input_in_0 = <libcpp_string> key
 * 
 *         if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *             value = value.encode('UTF-8')
 *         cdef libcpp_string input_in_1 = <libcpp_string> value
 */
  }

  /* "_core.pyx":1069
 *         if isinstance(value, unicode):
 *             value = value.encode('UTF-8')
 *         cdef libcpp_string input_in_1 = <libcpp_string> value             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().Add(input_in_0, input_in_1)
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1069, __pyx_L1_error)
  __pyx_v_input_in_1 = ((std::string)__pyx_t_7);

  /* "_core.pyx":1071
 *         cdef libcpp_string input_in_1 = <libcpp_string> value
 * 
 *         self.inst.get().Add(input_in_0, input_in_1)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  try {
    __pyx_v_self->inst.get()->Add(__pyx_v_input_in_0, __pyx_v_input_in_1);
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1071, __pyx_L1_error)
  }

  /* "_core.pyx":1059
 * 
 * 
 *     def Add(self, key , value ):             # <<<<<<<<<<<<<<
 *         assert isinstance(key, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(value, (bytes, unicode)), 'arg in_1 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1074
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_20Compile(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_20Compile(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":1075
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1076
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":1077
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":1076
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":1078
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":1075
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":1080
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":1081
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":1082
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * cdef class JsonDictionaryMerger:
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":1081
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":1074
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_22__reduce_cython__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_31JsonDictionaryCompilerSmallData_24__setstate_cython__(((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_31JsonDictionaryCompilerSmallData_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonDictionaryCompilerSmallData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1091
 *     cdef shared_ptr[_JsonDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_20JsonDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_20JsonDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_20JsonDictionaryMerger___dealloc__(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_20JsonDictionaryMerger___dealloc__(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1092
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1091
 *     cdef shared_ptr[_JsonDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1095
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryMerger()"""
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_20JsonDictionaryMerger_2_init_0[] = "Cython signature: void JsonDictionaryMerger()";
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_2_init_0(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_2_init_0(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::JsonDictionaryMerger *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1097
 *     def _init_0(self):
 *         """Cython signature: void JsonDictionaryMerger()"""
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::JsonDictionaryMerger();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1097, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::JsonDictionaryMerger> (__pyx_t_1);

  /* "_core.pyx":1095
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryMerger()"""
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryMerger._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1099
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_20JsonDictionaryMerger_4_init_1[] = "Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1099, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_4_init_1(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_7_init_1_2generator33(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1101
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_49_genexpr(__pyx_ptype_5_core___pyx_scope_struct_49_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1101, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_20JsonDictionaryMerger_7_init_1_2generator33, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_7_init_1_2generator33(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1101, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1101, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_7_init_1_5generator34(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_50_genexpr(__pyx_ptype_5_core___pyx_scope_struct_50_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1101, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_20JsonDictionaryMerger_7_init_1_5generator34, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_7_init_1_5generator34(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1101, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1101, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1099
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_4_init_1(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::JsonDictionaryMerger *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_48__init_1(__pyx_ptype_5_core___pyx_scope_struct_48__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1099, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1101
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_20JsonDictionaryMerger_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_20JsonDictionaryMerger_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1101, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1102
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1102, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1103
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1103, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1104
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1105
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1105, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1105, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1104
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1106
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1107
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1107, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1107, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1106
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1108
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1108, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1108, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1111
 * 
 * 
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::JsonDictionaryMerger((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1111, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::JsonDictionaryMerger> (__pyx_t_15);

  /* "_core.pyx":1112
 * 
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1099
 *         self.inst = shared_ptr[_JsonDictionaryMerger](new _JsonDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1114
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryMerger()
 */

/* Python wrapper */
static int __pyx_pw_5_core_20JsonDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_20JsonDictionaryMerger_6__init__[] = "\n          - Cython signature: void JsonDictionaryMerger()\n          - Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_20JsonDictionaryMerger_6__init__;
#endif
static int __pyx_pw_5_core_20JsonDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_6__init__(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_8__init___2generator35(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1121
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_52_genexpr(__pyx_ptype_5_core___pyx_scope_struct_52_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1121, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_20JsonDictionaryMerger_8__init___2generator35, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1121, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_8__init___2generator35(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1121, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1121, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1121, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_8__init___5generator36(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_53_genexpr(__pyx_ptype_5_core___pyx_scope_struct_53_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1121, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_20JsonDictionaryMerger_8__init___5generator36, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1121, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_20JsonDictionaryMerger_8__init___5generator36(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1121, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1121, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1121, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1114
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryMerger()
 */

static int __pyx_pf_5_core_20JsonDictionaryMerger_6__init__(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_51___init__(__pyx_ptype_5_core___pyx_scope_struct_51___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1114, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1119
 *           - Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1120
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1119
 *           - Cython signature: void JsonDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1121
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1121, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_20JsonDictionaryMerger_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_20JsonDictionaryMerger_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1122
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1121
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1124
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1124, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1124, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1124, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1124, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1114
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonDictionaryMerger()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1126
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_20JsonDictionaryMerger_8Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_8Add(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_8Add(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1128
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1128, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1129
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1130
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1130, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1130, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1129
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1131
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1131, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1131, __pyx_L1_error)
  }

  /* "_core.pyx":1126
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1133
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_20JsonDictionaryMerger_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_10SetManifest(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1135
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1135, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1136
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1137
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1136
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1138
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Merge(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1138, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1138, __pyx_L1_error)
  }

  /* "_core.pyx":1133
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1140
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_20JsonDictionaryMerger_12Merge[] = "Cython signature: void Merge(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Merge (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_12Merge(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_12Merge(struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Merge", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1142
 *     def Merge(self,  in_0 ):
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1142, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1143
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1144
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1143
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1145
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class JsonVector:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1145, __pyx_L1_error)
  __pyx_v_self->inst.get()->Merge(((std::string)__pyx_t_7));

  /* "_core.pyx":1140
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.Merge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_14__reduce_cython__(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_20JsonDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_20JsonDictionaryMerger_16__setstate_cython__(((struct __pyx_obj_5_core_JsonDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_20JsonDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonDictionaryMerger.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1154
 *     cdef shared_ptr[_JsonVector] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_10JsonVector_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_10JsonVector_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_10JsonVector___dealloc__(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_10JsonVector___dealloc__(struct __pyx_obj_5_core_JsonVector *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1155
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1154
 *     cdef shared_ptr[_JsonVector] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1158
 * 
 * 
 *     def __init__(self,  filename ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_10JsonVector_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_10JsonVector_2__init__[] = "Cython signature: void JsonVector(libcpp_utf8_output_string filename)";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_10JsonVector_2__init__;
#endif
static int __pyx_pw_5_core_10JsonVector_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_filename = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_filename,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1158, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_filename = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1158, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.JsonVector.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_10JsonVector_2__init__(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self), __pyx_v_filename);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_10JsonVector_2__init__(struct __pyx_obj_5_core_JsonVector *__pyx_v_self, PyObject *__pyx_v_filename) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  keyvi::vector::JsonVector *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_filename);

  /* "_core.pyx":1160
 *     def __init__(self,  filename ):
 *         """Cython signature: void JsonVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_filename); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_filename); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_filename_wrong_type);
      __PYX_ERR(0, 1160, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1161
 *         """Cython signature: void JsonVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_JsonVector](new _JsonVector((<libcpp_string>filename)))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_filename); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1162
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_JsonVector](new _JsonVector((<libcpp_string>filename)))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_filename, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1161
 *         """Cython signature: void JsonVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_JsonVector](new _JsonVector((<libcpp_string>filename)))
 */
  }

  /* "_core.pyx":1163
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_JsonVector](new _JsonVector((<libcpp_string>filename)))             # <<<<<<<<<<<<<<
 * 
 *     def Size(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_filename); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1163, __pyx_L1_error)
  try {
    __pyx_t_8 = new keyvi::vector::JsonVector(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1163, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::vector::JsonVector> (__pyx_t_8);

  /* "_core.pyx":1158
 * 
 * 
 *     def __init__(self,  filename ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonVector.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_filename);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1165
 *         self.inst = shared_ptr[_JsonVector](new _JsonVector((<libcpp_string>filename)))
 * 
 *     def Size(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10JsonVector_5Size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_10JsonVector_4Size[] = "Cython signature: size_t Size()";
static PyObject *__pyx_pw_5_core_10JsonVector_5Size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Size (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10JsonVector_4Size(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10JsonVector_4Size(struct __pyx_obj_5_core_JsonVector *__pyx_v_self) {
  size_t __pyx_v__r;
  size_t __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Size", 0);

  /* "_core.pyx":1167
 *     def Size(self):
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()             # <<<<<<<<<<<<<<
 *         py_result = <size_t>_r
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->Size();

  /* "_core.pyx":1168
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()
 *         py_result = <size_t>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((size_t)__pyx_v__r);

  /* "_core.pyx":1169
 *         cdef size_t _r = self.inst.get().Size()
 *         py_result = <size_t>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Manifest(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_py_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1165
 *         self.inst = shared_ptr[_JsonVector](new _JsonVector((<libcpp_string>filename)))
 * 
 *     def Size(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonVector.Size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1171
 *         return py_result
 * 
 *     def Manifest(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10JsonVector_7Manifest(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_10JsonVector_6Manifest[] = "Cython signature: libcpp_utf8_output_string Manifest()";
static PyObject *__pyx_pw_5_core_10JsonVector_7Manifest(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Manifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10JsonVector_6Manifest(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10JsonVector_6Manifest(struct __pyx_obj_5_core_JsonVector *__pyx_v_self) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Manifest", 0);

  /* "_core.pyx":1173
 *     def Manifest(self):
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()             # <<<<<<<<<<<<<<
 *         py_result = _r.decode('utf-8')
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->Manifest();

  /* "_core.pyx":1174
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 *         py_result = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":1175
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 *         py_result = _r.decode('utf-8')
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Get(self,  index ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":1171
 *         return py_result
 * 
 *     def Manifest(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonVector.Manifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1177
 *         return py_result
 * 
 *     def Get(self,  index ):             # <<<<<<<<<<<<<<
 *         assert isinstance(index, (int, long)), 'arg index wrong type'
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10JsonVector_9Get(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_pw_5_core_10JsonVector_9Get(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Get (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10JsonVector_8Get(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10JsonVector_8Get(struct __pyx_obj_5_core_JsonVector *__pyx_v_self, PyObject *__pyx_v_index) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Get", 0);

  /* "_core.pyx":1178
 * 
 *     def Get(self,  index ):
 *         assert isinstance(index, (int, long)), 'arg index wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef libcpp_utf8_string _r = self.inst.get().Get((<size_t>index))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_index); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_index); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_index_wrong_type);
      __PYX_ERR(0, 1178, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1180
 *         assert isinstance(index, (int, long)), 'arg index wrong type'
 * 
 *         cdef libcpp_utf8_string _r = self.inst.get().Get((<size_t>index))             # <<<<<<<<<<<<<<
 *         py_result = json.loads(_r.decode('utf-8'))
 *         return py_result
 */
  __pyx_t_4 = __Pyx_PyInt_As_size_t(__pyx_v_index); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1180, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Get(((size_t)__pyx_t_4));

  /* "_core.pyx":1181
 * 
 *         cdef libcpp_utf8_string _r = self.inst.get().Get((<size_t>index))
 *         py_result = json.loads(_r.decode('utf-8'))             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_json); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_loads); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_7, function);
    }
  }
  __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_v_py_result = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "_core.pyx":1182
 *         cdef libcpp_utf8_string _r = self.inst.get().Get((<size_t>index))
 *         py_result = json.loads(_r.decode('utf-8'))
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class JsonVectorGenerator:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":1177
 *         return py_result
 * 
 *     def Get(self,  index ):             # <<<<<<<<<<<<<<
 *         assert isinstance(index, (int, long)), 'arg index wrong type'
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("_core.JsonVector.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10JsonVector_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_10JsonVector_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10JsonVector_10__reduce_cython__(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10JsonVector_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVector *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonVector.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_10JsonVector_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_10JsonVector_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_10JsonVector_12__setstate_cython__(((struct __pyx_obj_5_core_JsonVector *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_10JsonVector_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVector *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonVector.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1191
 *     cdef shared_ptr[_JsonVectorGenerator] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_19JsonVectorGenerator_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_19JsonVectorGenerator_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_19JsonVectorGenerator___dealloc__(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_19JsonVectorGenerator___dealloc__(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1192
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1191
 *     cdef shared_ptr[_JsonVectorGenerator] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1195
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVectorGenerator()"""
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_19JsonVectorGenerator_2_init_0[] = "Cython signature: void JsonVectorGenerator()";
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_2_init_0(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_2_init_0(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::vector::JsonVectorGenerator *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1197
 *     def _init_0(self):
 *         """Cython signature: void JsonVectorGenerator()"""
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::vector::JsonVectorGenerator();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1197, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::vector::JsonVectorGenerator> (__pyx_t_1);

  /* "_core.pyx":1195
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVectorGenerator()"""
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonVectorGenerator._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1199
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_19JsonVectorGenerator_4_init_1[] = "Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1199, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_4_init_1(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_7_init_1_2generator37(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1201
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_55_genexpr(__pyx_ptype_5_core___pyx_scope_struct_55_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1201, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19JsonVectorGenerator_7_init_1_2generator37, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonVectorGenerator._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_7_init_1_2generator37(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1201, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1201, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_7_init_1_5generator38(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_56_genexpr(__pyx_ptype_5_core___pyx_scope_struct_56_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1201, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19JsonVectorGenerator_7_init_1_5generator38, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonVectorGenerator._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_7_init_1_5generator38(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1201, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1201, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1199
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_4_init_1(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::vector::JsonVectorGenerator *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_54__init_1(__pyx_ptype_5_core___pyx_scope_struct_54__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1199, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1201
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_19JsonVectorGenerator_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_19JsonVectorGenerator_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1201, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1202
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1202, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1203
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1203, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1204
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1205
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1205, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1205, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1204
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1206
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1207
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1207, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1207, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1206
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1208
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1208, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1208, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1211
 * 
 * 
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::vector::JsonVectorGenerator((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1211, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::vector::JsonVectorGenerator> (__pyx_t_15);

  /* "_core.pyx":1212
 * 
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1199
 *         self.inst = shared_ptr[_JsonVectorGenerator](new _JsonVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.JsonVectorGenerator._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1214
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonVectorGenerator()
 */

/* Python wrapper */
static int __pyx_pw_5_core_19JsonVectorGenerator_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_19JsonVectorGenerator_6__init__[] = "\n          - Cython signature: void JsonVectorGenerator()\n          - Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_19JsonVectorGenerator_6__init__;
#endif
static int __pyx_pw_5_core_19JsonVectorGenerator_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_6__init__(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_8__init___2generator39(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1221
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_58_genexpr(__pyx_ptype_5_core___pyx_scope_struct_58_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1221, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19JsonVectorGenerator_8__init___2generator39, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1221, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonVectorGenerator.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_8__init___2generator39(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1221, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1221, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1221, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_8__init___5generator40(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_59_genexpr(__pyx_ptype_5_core___pyx_scope_struct_59_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1221, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_19JsonVectorGenerator_8__init___5generator40, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1221, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.JsonVectorGenerator.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_19JsonVectorGenerator_8__init___5generator40(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1221, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1221, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1221, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1214
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonVectorGenerator()
 */

static int __pyx_pf_5_core_19JsonVectorGenerator_6__init__(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_57___init__(__pyx_ptype_5_core___pyx_scope_struct_57___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1214, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1219
 *           - Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1220
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1219
 *           - Cython signature: void JsonVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1221
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1221, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_19JsonVectorGenerator_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_19JsonVectorGenerator_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1222
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1221
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1224
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1224, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1214
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void JsonVectorGenerator()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.JsonVectorGenerator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1226
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_9SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_19JsonVectorGenerator_8SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_9SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_8SetManifest(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_8SetManifest(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1228
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1228, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1229
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1230
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1229
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1231
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1231, __pyx_L1_error)
  __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));

  /* "_core.pyx":1226
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonVectorGenerator.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1233
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_11WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_19JsonVectorGenerator_10WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_11WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_10WriteToFile(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_10WriteToFile(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1235
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1235, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1236
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1237
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1236
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1238
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def PushBack(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1238, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1238, __pyx_L1_error)
  }

  /* "_core.pyx":1233
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.JsonVectorGenerator.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1240
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def PushBack(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         dumps = json.dumps(in_0).encode('utf-8')
 *         self.inst.get().PushBack((<libcpp_utf8_string>dumps))
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_13PushBack(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_13PushBack(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("PushBack (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_12PushBack(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_12PushBack(struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_v_dumps = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  std::string __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PushBack", 0);

  /* "_core.pyx":1241
 * 
 *     def PushBack(self,  in_0 ):
 *         dumps = json.dumps(in_0).encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().PushBack((<libcpp_utf8_string>dumps))
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_json); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_dumps); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_v_in_0) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_in_0);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_2, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_dumps = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":1242
 *     def PushBack(self,  in_0 ):
 *         dumps = json.dumps(in_0).encode('utf-8')
 *         self.inst.get().PushBack((<libcpp_utf8_string>dumps))             # <<<<<<<<<<<<<<
 * 
 * cdef class KeyOnlyDictionaryCompiler:
 */
  __pyx_t_5 = __pyx_convert_string_from_py_std__in_string(__pyx_v_dumps); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1242, __pyx_L1_error)
  __pyx_v_self->inst.get()->PushBack(((std::string)__pyx_t_5));

  /* "_core.pyx":1240
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def PushBack(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         dumps = json.dumps(in_0).encode('utf-8')
 *         self.inst.get().PushBack((<libcpp_utf8_string>dumps))
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.JsonVectorGenerator.PushBack", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dumps);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_14__reduce_cython__(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonVectorGenerator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_19JsonVectorGenerator_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19JsonVectorGenerator_16__setstate_cython__(((struct __pyx_obj_5_core_JsonVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19JsonVectorGenerator_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_JsonVectorGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.JsonVectorGenerator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1251
 *     cdef shared_ptr[_KeyOnlyDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_25KeyOnlyDictionaryCompiler___dealloc__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_25KeyOnlyDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1252
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1251
 *     cdef shared_ptr[_KeyOnlyDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1255
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryCompiler()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_2_init_0[] = "Cython signature: void KeyOnlyDictionaryCompiler()";
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_2_init_0(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::KeyOnlyDictionaryCompiler *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1257
 *     def _init_0(self):
 *         """Cython signature: void KeyOnlyDictionaryCompiler()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::KeyOnlyDictionaryCompiler();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1257, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryCompiler> (__pyx_t_1);

  /* "_core.pyx":1255
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryCompiler()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1259
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_4_init_1[] = "Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1259, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_4_init_1(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_7_init_1_2generator41(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1261
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_61_genexpr(__pyx_ptype_5_core___pyx_scope_struct_61_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1261, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_25KeyOnlyDictionaryCompiler_7_init_1_2generator41, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_7_init_1_2generator41(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1261, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1261, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1261, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_7_init_1_5generator42(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_62_genexpr(__pyx_ptype_5_core___pyx_scope_struct_62_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1261, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_25KeyOnlyDictionaryCompiler_7_init_1_5generator42, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_7_init_1_5generator42(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1261, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1261, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1261, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1259
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::KeyOnlyDictionaryCompiler *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_60__init_1(__pyx_ptype_5_core___pyx_scope_struct_60__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1259, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1261
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1261, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1261, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1262
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1262, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1263
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1263, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1264
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1265
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1265, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1265, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1264
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1266
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1267
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1267, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1267, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1266
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1268
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1268, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1268, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1271
 * 
 * 
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::KeyOnlyDictionaryCompiler((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1271, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryCompiler> (__pyx_t_15);

  /* "_core.pyx":1272
 * 
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1259
 *         self.inst = shared_ptr[_KeyOnlyDictionaryCompiler](new _KeyOnlyDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1274
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryCompiler()
 */

/* Python wrapper */
static int __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_6__init__[] = "\n          - Cython signature: void KeyOnlyDictionaryCompiler()\n          - Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_25KeyOnlyDictionaryCompiler_6__init__;
#endif
static int __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_6__init__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_8__init___2generator43(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1281
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_64_genexpr(__pyx_ptype_5_core___pyx_scope_struct_64_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1281, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_25KeyOnlyDictionaryCompiler_8__init___2generator43, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_8__init___2generator43(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1281, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1281, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1281, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_8__init___5generator44(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_65_genexpr(__pyx_ptype_5_core___pyx_scope_struct_65_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1281, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_25KeyOnlyDictionaryCompiler_8__init___5generator44, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_25KeyOnlyDictionaryCompiler_8__init___5generator44(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1281, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1281, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1281, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1274
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryCompiler()
 */

static int __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_6__init__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_63___init__(__pyx_ptype_5_core___pyx_scope_struct_63___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1274, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1279
 *           - Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1280
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1279
 *           - Cython signature: void KeyOnlyDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1281
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1281, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1282
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1281
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1284
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1284, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1274
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryCompiler()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1286
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_8Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8Add(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_8Add(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1288
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1288, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1289
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1290
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1289
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1291
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1291, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1291, __pyx_L1_error)
  }

  /* "_core.pyx":1286
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1293
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_10SetManifest(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1295
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1295, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1296
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1297
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1296
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1298
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1298, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1298, __pyx_L1_error)
  }

  /* "_core.pyx":1293
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1300
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_12WriteToFile(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1302
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1302, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1303
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1304
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1303
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1305
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1305, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1305, __pyx_L1_error)
  }

  /* "_core.pyx":1300
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1307
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_14__enter__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":1308
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":1307
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1311
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_16__setitem__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":1312
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1312, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1312, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1311
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1315
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 1315, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 1315, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 1315, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1315, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_18__exit__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":1316
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1315
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1319
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_20Compile(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_20Compile(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":1320
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1321
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":1322
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":1321
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":1323
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":1320
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":1325
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":1326
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":1327
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * cdef class KeyOnlyDictionaryGenerator:
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":1326
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":1319
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_22__reduce_cython__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_25KeyOnlyDictionaryCompiler_24__setstate_cython__(((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_25KeyOnlyDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryCompiler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1336
 *     cdef shared_ptr[_KeyOnlyDictionaryGenerator] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_26KeyOnlyDictionaryGenerator_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_26KeyOnlyDictionaryGenerator_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_26KeyOnlyDictionaryGenerator___dealloc__(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_26KeyOnlyDictionaryGenerator___dealloc__(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1337
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1336
 *     cdef shared_ptr[_KeyOnlyDictionaryGenerator] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1340
 * 
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryGenerator()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryGenerator](new _KeyOnlyDictionaryGenerator())
 */

/* Python wrapper */
static int __pyx_pw_5_core_26KeyOnlyDictionaryGenerator_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_2__init__[] = "Cython signature: void KeyOnlyDictionaryGenerator()";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_26KeyOnlyDictionaryGenerator_2__init__;
#endif
static int __pyx_pw_5_core_26KeyOnlyDictionaryGenerator_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_2__init__(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_2__init__(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::KeyOnlyDictionaryGenerator *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":1342
 *     def __init__(self):
 *         """Cython signature: void KeyOnlyDictionaryGenerator()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryGenerator](new _KeyOnlyDictionaryGenerator())             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::KeyOnlyDictionaryGenerator();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1342, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryGenerator> (__pyx_t_1);

  /* "_core.pyx":1340
 * 
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryGenerator()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryGenerator](new _KeyOnlyDictionaryGenerator())
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryGenerator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1344
 *         self.inst = shared_ptr[_KeyOnlyDictionaryGenerator](new _KeyOnlyDictionaryGenerator())
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_5Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_4Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_5Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_4Add(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_4Add(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1346
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1346, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1347
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1348
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1347
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1349
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def CloseFeeding(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1349, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1349, __pyx_L1_error)
  }

  /* "_core.pyx":1344
 *         self.inst = shared_ptr[_KeyOnlyDictionaryGenerator](new _KeyOnlyDictionaryGenerator())
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryGenerator.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1351
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def CloseFeeding(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CloseFeeding()"""
 *         self.inst.get().CloseFeeding()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_7CloseFeeding(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_6CloseFeeding[] = "Cython signature: void CloseFeeding()";
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_7CloseFeeding(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CloseFeeding (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_6CloseFeeding(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_6CloseFeeding(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CloseFeeding", 0);

  /* "_core.pyx":1353
 *     def CloseFeeding(self):
 *         """Cython signature: void CloseFeeding()"""
 *         self.inst.get().CloseFeeding()             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_v_self->inst.get()->CloseFeeding();

  /* "_core.pyx":1351
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def CloseFeeding(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void CloseFeeding()"""
 *         self.inst.get().CloseFeeding()
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1355
 *         self.inst.get().CloseFeeding()
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_9WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_8WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_9WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_8WriteToFile(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_8WriteToFile(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1357
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1357, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1358
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1359
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1358
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1360
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class KeyOnlyDictionaryMerger:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1360, __pyx_L1_error)
  __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));

  /* "_core.pyx":1355
 *         self.inst.get().CloseFeeding()
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryGenerator.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_10__reduce_cython__(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryGenerator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_26KeyOnlyDictionaryGenerator_12__setstate_cython__(((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_26KeyOnlyDictionaryGenerator_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryGenerator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1369
 *     cdef shared_ptr[_KeyOnlyDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_23KeyOnlyDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_23KeyOnlyDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_23KeyOnlyDictionaryMerger___dealloc__(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_23KeyOnlyDictionaryMerger___dealloc__(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1370
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1369
 *     cdef shared_ptr[_KeyOnlyDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1373
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryMerger()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_23KeyOnlyDictionaryMerger_2_init_0[] = "Cython signature: void KeyOnlyDictionaryMerger()";
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_2_init_0(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_2_init_0(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::KeyOnlyDictionaryMerger *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1375
 *     def _init_0(self):
 *         """Cython signature: void KeyOnlyDictionaryMerger()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::KeyOnlyDictionaryMerger();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1375, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryMerger> (__pyx_t_1);

  /* "_core.pyx":1373
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryMerger()"""
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1377
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_23KeyOnlyDictionaryMerger_4_init_1[] = "Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1377, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_4_init_1(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_7_init_1_2generator45(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1379
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_67_genexpr(__pyx_ptype_5_core___pyx_scope_struct_67_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1379, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_23KeyOnlyDictionaryMerger_7_init_1_2generator45, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_7_init_1_2generator45(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1379, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1379, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1379, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_7_init_1_5generator46(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_68_genexpr(__pyx_ptype_5_core___pyx_scope_struct_68_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1379, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_23KeyOnlyDictionaryMerger_7_init_1_5generator46, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_7_init_1_5generator46(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1379, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1379, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1379, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1377
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_4_init_1(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::KeyOnlyDictionaryMerger *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_66__init_1(__pyx_ptype_5_core___pyx_scope_struct_66__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1377, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1379
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1379, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1379, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1380
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1380, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1381
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1381, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1382
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1383
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1383, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1383, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1382
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1384
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1385
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1385, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1385, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1384
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1386
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1386, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1386, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1389
 * 
 * 
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::KeyOnlyDictionaryMerger((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1389, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryMerger> (__pyx_t_15);

  /* "_core.pyx":1390
 * 
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1377
 *         self.inst = shared_ptr[_KeyOnlyDictionaryMerger](new _KeyOnlyDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1392
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryMerger()
 */

/* Python wrapper */
static int __pyx_pw_5_core_23KeyOnlyDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_23KeyOnlyDictionaryMerger_6__init__[] = "\n          - Cython signature: void KeyOnlyDictionaryMerger()\n          - Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_23KeyOnlyDictionaryMerger_6__init__;
#endif
static int __pyx_pw_5_core_23KeyOnlyDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_6__init__(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_8__init___2generator47(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1399
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_70_genexpr(__pyx_ptype_5_core___pyx_scope_struct_70_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1399, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_23KeyOnlyDictionaryMerger_8__init___2generator47, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1399, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_8__init___2generator47(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1399, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1399, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1399, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_8__init___5generator48(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_71_genexpr(__pyx_ptype_5_core___pyx_scope_struct_71_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1399, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_23KeyOnlyDictionaryMerger_8__init___5generator48, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1399, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_23KeyOnlyDictionaryMerger_8__init___5generator48(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1399, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1399, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1399, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1392
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryMerger()
 */

static int __pyx_pf_5_core_23KeyOnlyDictionaryMerger_6__init__(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_69___init__(__pyx_ptype_5_core___pyx_scope_struct_69___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1392, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1397
 *           - Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1398
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1397
 *           - Cython signature: void KeyOnlyDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1399
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1399, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1400
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1399
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1402
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1402, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1392
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void KeyOnlyDictionaryMerger()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1404
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_23KeyOnlyDictionaryMerger_8Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_8Add(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_8Add(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1406
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1406, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1407
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1408
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1408, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1408, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1407
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1409
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1409, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1409, __pyx_L1_error)
  }

  /* "_core.pyx":1404
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1411
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_23KeyOnlyDictionaryMerger_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_10SetManifest(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1413
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1413, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1414
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1415
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1414
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1416
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Merge(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1416, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1416, __pyx_L1_error)
  }

  /* "_core.pyx":1411
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1418
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_23KeyOnlyDictionaryMerger_12Merge[] = "Cython signature: void Merge(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Merge (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_12Merge(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_12Merge(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Merge", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1420
 *     def Merge(self,  in_0 ):
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1420, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1421
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1422
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1422, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1422, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1421
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1423
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class Match:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L1_error)
  __pyx_v_self->inst.get()->Merge(((std::string)__pyx_t_7));

  /* "_core.pyx":1418
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.Merge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_14__reduce_cython__(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_23KeyOnlyDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_23KeyOnlyDictionaryMerger_16__setstate_cython__(((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_23KeyOnlyDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.KeyOnlyDictionaryMerger.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1432
 *     cdef shared_ptr[_Match] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_5Match_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_5Match_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_5Match___dealloc__(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_5Match___dealloc__(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1433
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1432
 *     cdef shared_ptr[_Match] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1436
 * 
 * 
 *     def __copy__(self):             # <<<<<<<<<<<<<<
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_3__copy__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_3__copy__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__copy__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_2__copy__(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_2__copy__(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  struct __pyx_obj_5_core_Match *__pyx_v_rv = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__copy__", 0);

  /* "_core.pyx":1437
 * 
 *     def __copy__(self):
 *        cdef Match rv = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 *        return rv
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1437, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_rv = ((struct __pyx_obj_5_core_Match *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":1438
 *     def __copy__(self):
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))             # <<<<<<<<<<<<<<
 *        return rv
 * 
 */
  __pyx_v_rv->inst = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match((*__pyx_v_self->inst.get())));

  /* "_core.pyx":1439
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 *        return rv             # <<<<<<<<<<<<<<
 * 
 *     def __deepcopy__(self, memo):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_rv));
  __pyx_r = ((PyObject *)__pyx_v_rv);
  goto __pyx_L0;

  /* "_core.pyx":1436
 * 
 * 
 *     def __copy__(self):             # <<<<<<<<<<<<<<
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.__copy__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_rv);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1441
 *        return rv
 * 
 *     def __deepcopy__(self, memo):             # <<<<<<<<<<<<<<
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_5__deepcopy__(PyObject *__pyx_v_self, PyObject *__pyx_v_memo); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_5__deepcopy__(PyObject *__pyx_v_self, PyObject *__pyx_v_memo) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__deepcopy__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_4__deepcopy__(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v_memo));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_4__deepcopy__(struct __pyx_obj_5_core_Match *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_memo) {
  struct __pyx_obj_5_core_Match *__pyx_v_rv = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__deepcopy__", 0);

  /* "_core.pyx":1442
 * 
 *     def __deepcopy__(self, memo):
 *        cdef Match rv = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 *        return rv
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1442, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_rv = ((struct __pyx_obj_5_core_Match *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":1443
 *     def __deepcopy__(self, memo):
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))             # <<<<<<<<<<<<<<
 *        return rv
 * 
 */
  __pyx_v_rv->inst = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match((*__pyx_v_self->inst.get())));

  /* "_core.pyx":1444
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 *        return rv             # <<<<<<<<<<<<<<
 * 
 *     def _init_0(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_rv));
  __pyx_r = ((PyObject *)__pyx_v_rv);
  goto __pyx_L0;

  /* "_core.pyx":1441
 *        return rv
 * 
 *     def __deepcopy__(self, memo):             # <<<<<<<<<<<<<<
 *        cdef Match rv = Match.__new__(Match)
 *        rv.inst = shared_ptr[_Match](new _Match(deref(self.inst.get())))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.__deepcopy__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_rv);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1446
 *        return rv
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Match()"""
 *         self.inst = shared_ptr[_Match](new _Match())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_7_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_6_init_0[] = "Cython signature: void Match()";
static PyObject *__pyx_pw_5_core_5Match_7_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_6_init_0(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_6_init_0(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1448
 *     def _init_0(self):
 *         """Cython signature: void Match()"""
 *         self.inst = shared_ptr[_Match](new _Match())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, Match m ):
 */
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match());

  /* "_core.pyx":1446
 *        return rv
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Match()"""
 *         self.inst = shared_ptr[_Match](new _Match())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1450
 *         self.inst = shared_ptr[_Match](new _Match())
 * 
 *     def _init_1(self, Match m ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Match(Match & m)"""
 *         assert isinstance(m, Match), 'arg m wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_9_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_m); /*proto*/
static char __pyx_doc_5_core_5Match_8_init_1[] = "Cython signature: void Match(Match & m)";
static PyObject *__pyx_pw_5_core_5Match_9_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5_core_Match, 1, "m", 0))) __PYX_ERR(0, 1450, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_5Match_8_init_1(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((struct __pyx_obj_5_core_Match *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_8_init_1(struct __pyx_obj_5_core_Match *__pyx_v_self, struct __pyx_obj_5_core_Match *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);

  /* "_core.pyx":1452
 *     def _init_1(self, Match m ):
 *         """Cython signature: void Match(Match & m)"""
 *         assert isinstance(m, Match), 'arg m wrong type'             # <<<<<<<<<<<<<<
 * 
 *         self.inst = shared_ptr[_Match](new _Match((deref(m.inst.get()))))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_m), __pyx_ptype_5_core_Match); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_m_wrong_type);
      __PYX_ERR(0, 1452, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1454
 *         assert isinstance(m, Match), 'arg m wrong type'
 * 
 *         self.inst = shared_ptr[_Match](new _Match((deref(m.inst.get()))))             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match((*__pyx_v_m->inst.get())));

  /* "_core.pyx":1450
 *         self.inst = shared_ptr[_Match](new _Match())
 * 
 *     def _init_1(self, Match m ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Match(Match & m)"""
 *         assert isinstance(m, Match), 'arg m wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Match._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1456
 *         self.inst = shared_ptr[_Match](new _Match((deref(m.inst.get()))))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void Match()
 */

/* Python wrapper */
static int __pyx_pw_5_core_5Match_11__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_5Match_10__init__[] = "\n          - Cython signature: void Match()\n          - Cython signature: void Match(Match & m)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_5Match_10__init__;
#endif
static int __pyx_pw_5_core_5Match_11__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_5Match_10__init__(((struct __pyx_obj_5_core_Match *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_5Match_10__init__(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":1461
 *           - Cython signature: void Match(Match & m)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], Match)):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1462
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], Match)):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1461
 *           - Cython signature: void Match(Match & m)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], Match)):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1463
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], Match)):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1463, __pyx_L1_error)
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_t_4, __pyx_ptype_5_core_Match); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1464
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], Match)):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1463
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], Match)):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1466
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def GetStart(self):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1466, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1456
 *         self.inst = shared_ptr[_Match](new _Match((deref(m.inst.get()))))
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void Match()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.Match.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1468
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetStart(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t GetStart()"""
 *         cdef size_t _r = self.inst.get().GetStart()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_13GetStart(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_12GetStart[] = "Cython signature: size_t GetStart()";
static PyObject *__pyx_pw_5_core_5Match_13GetStart(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetStart (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_12GetStart(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_12GetStart(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  size_t __pyx_v__r;
  size_t __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetStart", 0);

  /* "_core.pyx":1470
 *     def GetStart(self):
 *         """Cython signature: size_t GetStart()"""
 *         cdef size_t _r = self.inst.get().GetStart()             # <<<<<<<<<<<<<<
 *         py_result = <size_t>_r
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetStart();

  /* "_core.pyx":1471
 *         """Cython signature: size_t GetStart()"""
 *         cdef size_t _r = self.inst.get().GetStart()
 *         py_result = <size_t>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((size_t)__pyx_v__r);

  /* "_core.pyx":1472
 *         cdef size_t _r = self.inst.get().GetStart()
 *         py_result = <size_t>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def SetStart(self,  start ):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_py_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1468
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetStart(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t GetStart()"""
 *         cdef size_t _r = self.inst.get().GetStart()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.GetStart", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1474
 *         return py_result
 * 
 *     def SetStart(self,  start ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetStart(size_t start)"""
 *         assert isinstance(start, (int, long)), 'arg start wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_15SetStart(PyObject *__pyx_v_self, PyObject *__pyx_v_start); /*proto*/
static char __pyx_doc_5_core_5Match_14SetStart[] = "Cython signature: void SetStart(size_t start)";
static PyObject *__pyx_pw_5_core_5Match_15SetStart(PyObject *__pyx_v_self, PyObject *__pyx_v_start) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetStart (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_14SetStart(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v_start));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_14SetStart(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_start) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetStart", 0);

  /* "_core.pyx":1476
 *     def SetStart(self,  start ):
 *         """Cython signature: void SetStart(size_t start)"""
 *         assert isinstance(start, (int, long)), 'arg start wrong type'             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().SetStart((<size_t>start))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_start); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_start); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_start_wrong_type);
      __PYX_ERR(0, 1476, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1478
 *         assert isinstance(start, (int, long)), 'arg start wrong type'
 * 
 *         self.inst.get().SetStart((<size_t>start))             # <<<<<<<<<<<<<<
 * 
 *     def GetEnd(self):
 */
  __pyx_t_4 = __Pyx_PyInt_As_size_t(__pyx_v_start); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1478, __pyx_L1_error)
  __pyx_v_self->inst.get()->SetStart(((size_t)__pyx_t_4));

  /* "_core.pyx":1474
 *         return py_result
 * 
 *     def SetStart(self,  start ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetStart(size_t start)"""
 *         assert isinstance(start, (int, long)), 'arg start wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Match.SetStart", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1480
 *         self.inst.get().SetStart((<size_t>start))
 * 
 *     def GetEnd(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t GetEnd()"""
 *         cdef size_t _r = self.inst.get().GetEnd()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_17GetEnd(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_16GetEnd[] = "Cython signature: size_t GetEnd()";
static PyObject *__pyx_pw_5_core_5Match_17GetEnd(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetEnd (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_16GetEnd(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_16GetEnd(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  size_t __pyx_v__r;
  size_t __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetEnd", 0);

  /* "_core.pyx":1482
 *     def GetEnd(self):
 *         """Cython signature: size_t GetEnd()"""
 *         cdef size_t _r = self.inst.get().GetEnd()             # <<<<<<<<<<<<<<
 *         py_result = <size_t>_r
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetEnd();

  /* "_core.pyx":1483
 *         """Cython signature: size_t GetEnd()"""
 *         cdef size_t _r = self.inst.get().GetEnd()
 *         py_result = <size_t>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((size_t)__pyx_v__r);

  /* "_core.pyx":1484
 *         cdef size_t _r = self.inst.get().GetEnd()
 *         py_result = <size_t>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def SetEnd(self,  end ):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_py_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1480
 *         self.inst.get().SetStart((<size_t>start))
 * 
 *     def GetEnd(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t GetEnd()"""
 *         cdef size_t _r = self.inst.get().GetEnd()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.GetEnd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1486
 *         return py_result
 * 
 *     def SetEnd(self,  end ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetEnd(size_t end)"""
 *         assert isinstance(end, (int, long)), 'arg end wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_19SetEnd(PyObject *__pyx_v_self, PyObject *__pyx_v_end); /*proto*/
static char __pyx_doc_5_core_5Match_18SetEnd[] = "Cython signature: void SetEnd(size_t end)";
static PyObject *__pyx_pw_5_core_5Match_19SetEnd(PyObject *__pyx_v_self, PyObject *__pyx_v_end) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetEnd (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_18SetEnd(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v_end));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_18SetEnd(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_end) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetEnd", 0);

  /* "_core.pyx":1488
 *     def SetEnd(self,  end ):
 *         """Cython signature: void SetEnd(size_t end)"""
 *         assert isinstance(end, (int, long)), 'arg end wrong type'             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().SetEnd((<size_t>end))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_end); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_end); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_end_wrong_type);
      __PYX_ERR(0, 1488, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1490
 *         assert isinstance(end, (int, long)), 'arg end wrong type'
 * 
 *         self.inst.get().SetEnd((<size_t>end))             # <<<<<<<<<<<<<<
 * 
 *     def GetScore(self):
 */
  __pyx_t_4 = __Pyx_PyInt_As_size_t(__pyx_v_end); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1490, __pyx_L1_error)
  __pyx_v_self->inst.get()->SetEnd(((size_t)__pyx_t_4));

  /* "_core.pyx":1486
 *         return py_result
 * 
 *     def SetEnd(self,  end ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetEnd(size_t end)"""
 *         assert isinstance(end, (int, long)), 'arg end wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Match.SetEnd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1492
 *         self.inst.get().SetEnd((<size_t>end))
 * 
 *     def GetScore(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: float GetScore()"""
 *         cdef float _r = self.inst.get().GetScore()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_21GetScore(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_20GetScore[] = "Cython signature: float GetScore()";
static PyObject *__pyx_pw_5_core_5Match_21GetScore(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetScore (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_20GetScore(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_20GetScore(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  float __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetScore", 0);

  /* "_core.pyx":1494
 *     def GetScore(self):
 *         """Cython signature: float GetScore()"""
 *         cdef float _r = self.inst.get().GetScore()             # <<<<<<<<<<<<<<
 *         py_result = <float>_r
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetScore();

  /* "_core.pyx":1495
 *         """Cython signature: float GetScore()"""
 *         cdef float _r = self.inst.get().GetScore()
 *         py_result = <float>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_1 = PyFloat_FromDouble(((float)__pyx_v__r)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":1496
 *         cdef float _r = self.inst.get().GetScore()
 *         py_result = <float>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def SetScore(self, float score ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":1492
 *         self.inst.get().SetEnd((<size_t>end))
 * 
 *     def GetScore(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: float GetScore()"""
 *         cdef float _r = self.inst.get().GetScore()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.GetScore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1498
 *         return py_result
 * 
 *     def SetScore(self, float score ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetScore(float score)"""
 *         assert isinstance(score, float), 'arg score wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_23SetScore(PyObject *__pyx_v_self, PyObject *__pyx_arg_score); /*proto*/
static char __pyx_doc_5_core_5Match_22SetScore[] = "Cython signature: void SetScore(float score)";
static PyObject *__pyx_pw_5_core_5Match_23SetScore(PyObject *__pyx_v_self, PyObject *__pyx_arg_score) {
  float __pyx_v_score;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetScore (wrapper)", 0);
  assert(__pyx_arg_score); {
    __pyx_v_score = __pyx_PyFloat_AsFloat(__pyx_arg_score); if (unlikely((__pyx_v_score == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1498, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Match.SetScore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_5Match_22SetScore(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((float)__pyx_v_score));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_22SetScore(struct __pyx_obj_5_core_Match *__pyx_v_self, float __pyx_v_score) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetScore", 0);

  /* "_core.pyx":1500
 *     def SetScore(self, float score ):
 *         """Cython signature: void SetScore(float score)"""
 *         assert isinstance(score, float), 'arg score wrong type'             # <<<<<<<<<<<<<<
 * 
 *         self.inst.get().SetScore((<float>score))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_score); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1500, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyFloat_Check(__pyx_t_1); 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_score_wrong_type);
      __PYX_ERR(0, 1500, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1502
 *         assert isinstance(score, float), 'arg score wrong type'
 * 
 *         self.inst.get().SetScore((<float>score))             # <<<<<<<<<<<<<<
 * 
 *     def GetMatchedString(self):
 */
  __pyx_v_self->inst.get()->SetScore(((float)__pyx_v_score));

  /* "_core.pyx":1498
 *         return py_result
 * 
 *     def SetScore(self, float score ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetScore(float score)"""
 *         assert isinstance(score, float), 'arg score wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.SetScore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1504
 *         self.inst.get().SetScore((<float>score))
 * 
 *     def GetMatchedString(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string GetMatchedString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetMatchedString()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_25GetMatchedString(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_24GetMatchedString[] = "Cython signature: libcpp_utf8_output_string GetMatchedString()";
static PyObject *__pyx_pw_5_core_5Match_25GetMatchedString(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetMatchedString (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_24GetMatchedString(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_24GetMatchedString(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetMatchedString", 0);

  /* "_core.pyx":1506
 *     def GetMatchedString(self):
 *         """Cython signature: libcpp_utf8_output_string GetMatchedString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetMatchedString()             # <<<<<<<<<<<<<<
 *         py_result = _r.decode('utf-8')
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->GetMatchedString();

  /* "_core.pyx":1507
 *         """Cython signature: libcpp_utf8_output_string GetMatchedString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetMatchedString()
 *         py_result = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":1508
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetMatchedString()
 *         py_result = _r.decode('utf-8')
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def SetMatchedString(self,  matched_string ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":1504
 *         self.inst.get().SetScore((<float>score))
 * 
 *     def GetMatchedString(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string GetMatchedString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetMatchedString()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.GetMatchedString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1510
 *         return py_result
 * 
 *     def SetMatchedString(self,  matched_string ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetMatchedString(libcpp_utf8_string matched_string)"""
 *         assert isinstance(matched_string, (bytes, unicode)), 'arg matched_string wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_27SetMatchedString(PyObject *__pyx_v_self, PyObject *__pyx_v_matched_string); /*proto*/
static char __pyx_doc_5_core_5Match_26SetMatchedString[] = "Cython signature: void SetMatchedString(libcpp_utf8_string matched_string)";
static PyObject *__pyx_pw_5_core_5Match_27SetMatchedString(PyObject *__pyx_v_self, PyObject *__pyx_v_matched_string) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetMatchedString (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_26SetMatchedString(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v_matched_string));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_26SetMatchedString(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_matched_string) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetMatchedString", 0);
  __Pyx_INCREF(__pyx_v_matched_string);

  /* "_core.pyx":1512
 *     def SetMatchedString(self,  matched_string ):
 *         """Cython signature: void SetMatchedString(libcpp_utf8_string matched_string)"""
 *         assert isinstance(matched_string, (bytes, unicode)), 'arg matched_string wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(matched_string, unicode):
 *             matched_string = matched_string.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_matched_string); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_matched_string); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_matched_string_wrong_type);
      __PYX_ERR(0, 1512, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1513
 *         """Cython signature: void SetMatchedString(libcpp_utf8_string matched_string)"""
 *         assert isinstance(matched_string, (bytes, unicode)), 'arg matched_string wrong type'
 *         if isinstance(matched_string, unicode):             # <<<<<<<<<<<<<<
 *             matched_string = matched_string.encode('utf-8')
 *         self.inst.get().SetMatchedString((<libcpp_string>matched_string))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_matched_string); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1514
 *         assert isinstance(matched_string, (bytes, unicode)), 'arg matched_string wrong type'
 *         if isinstance(matched_string, unicode):
 *             matched_string = matched_string.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetMatchedString((<libcpp_string>matched_string))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_matched_string, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_matched_string, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1513
 *         """Cython signature: void SetMatchedString(libcpp_utf8_string matched_string)"""
 *         assert isinstance(matched_string, (bytes, unicode)), 'arg matched_string wrong type'
 *         if isinstance(matched_string, unicode):             # <<<<<<<<<<<<<<
 *             matched_string = matched_string.encode('utf-8')
 *         self.inst.get().SetMatchedString((<libcpp_string>matched_string))
 */
  }

  /* "_core.pyx":1515
 *         if isinstance(matched_string, unicode):
 *             matched_string = matched_string.encode('utf-8')
 *         self.inst.get().SetMatchedString((<libcpp_string>matched_string))             # <<<<<<<<<<<<<<
 * 
 *     def GetValueAsString(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_matched_string); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1515, __pyx_L1_error)
  __pyx_v_self->inst.get()->SetMatchedString(((std::string)__pyx_t_7));

  /* "_core.pyx":1510
 *         return py_result
 * 
 *     def SetMatchedString(self,  matched_string ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetMatchedString(libcpp_utf8_string matched_string)"""
 *         assert isinstance(matched_string, (bytes, unicode)), 'arg matched_string wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Match.SetMatchedString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_matched_string);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1517
 *         self.inst.get().SetMatchedString((<libcpp_string>matched_string))
 * 
 *     def GetValueAsString(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string GetValueAsString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetValueAsString()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_29GetValueAsString(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_28GetValueAsString[] = "Cython signature: libcpp_utf8_output_string GetValueAsString()";
static PyObject *__pyx_pw_5_core_5Match_29GetValueAsString(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetValueAsString (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_28GetValueAsString(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_28GetValueAsString(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  std::string __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetValueAsString", 0);

  /* "_core.pyx":1519
 *     def GetValueAsString(self):
 *         """Cython signature: libcpp_utf8_output_string GetValueAsString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetValueAsString()             # <<<<<<<<<<<<<<
 *         py_result = _r.decode('utf-8')
 *         return py_result
 */
  try {
    __pyx_t_1 = __pyx_v_self->inst.get()->GetValueAsString();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1519, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_1;

  /* "_core.pyx":1520
 *         """Cython signature: libcpp_utf8_output_string GetValueAsString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetValueAsString()
 *         py_result = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_2 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_py_result = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "_core.pyx":1521
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetValueAsString()
 *         py_result = _r.decode('utf-8')
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetRawValueAsString(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":1517
 *         self.inst.get().SetMatchedString((<libcpp_string>matched_string))
 * 
 *     def GetValueAsString(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string GetValueAsString()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().GetValueAsString()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_core.Match.GetValueAsString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1523
 *         return py_result
 * 
 *     def GetRawValueAsString(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string GetRawValueAsString()"""
 *         cdef libcpp_string _r = self.inst.get().GetRawValueAsString()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_31GetRawValueAsString(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_30GetRawValueAsString[] = "Cython signature: libcpp_string GetRawValueAsString()";
static PyObject *__pyx_pw_5_core_5Match_31GetRawValueAsString(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetRawValueAsString (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_30GetRawValueAsString(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_30GetRawValueAsString(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  std::string __pyx_v__r;
  std::string __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  std::string __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetRawValueAsString", 0);

  /* "_core.pyx":1525
 *     def GetRawValueAsString(self):
 *         """Cython signature: libcpp_string GetRawValueAsString()"""
 *         cdef libcpp_string _r = self.inst.get().GetRawValueAsString()             # <<<<<<<<<<<<<<
 *         py_result = <libcpp_string>_r
 *         return py_result
 */
  try {
    __pyx_t_1 = __pyx_v_self->inst.get()->GetRawValueAsString();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1525, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_1;

  /* "_core.pyx":1526
 *         """Cython signature: libcpp_string GetRawValueAsString()"""
 *         cdef libcpp_string _r = self.inst.get().GetRawValueAsString()
 *         py_result = <libcpp_string>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((std::string)__pyx_v__r);

  /* "_core.pyx":1527
 *         cdef libcpp_string _r = self.inst.get().GetRawValueAsString()
 *         py_result = <libcpp_string>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def IsEmpty(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_py_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1523
 *         return py_result
 * 
 *     def GetRawValueAsString(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string GetRawValueAsString()"""
 *         cdef libcpp_string _r = self.inst.get().GetRawValueAsString()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_core.Match.GetRawValueAsString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1529
 *         return py_result
 * 
 *     def IsEmpty(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: bool IsEmpty()"""
 *         cdef bool _r = self.inst.get().IsEmpty()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_33IsEmpty(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_32IsEmpty[] = "Cython signature: bool IsEmpty()";
static PyObject *__pyx_pw_5_core_5Match_33IsEmpty(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("IsEmpty (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_32IsEmpty(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_32IsEmpty(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  bool __pyx_v__r;
  bool __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("IsEmpty", 0);

  /* "_core.pyx":1531
 *     def IsEmpty(self):
 *         """Cython signature: bool IsEmpty()"""
 *         cdef bool _r = self.inst.get().IsEmpty()             # <<<<<<<<<<<<<<
 *         py_result = <bool>_r
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->IsEmpty();

  /* "_core.pyx":1532
 *         """Cython signature: bool IsEmpty()"""
 *         cdef bool _r = self.inst.get().IsEmpty()
 *         py_result = <bool>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((bool)__pyx_v__r);

  /* "_core.pyx":1533
 *         cdef bool _r = self.inst.get().IsEmpty()
 *         py_result = <bool>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetAttribute(self, key):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_py_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1529
 *         return py_result
 * 
 *     def IsEmpty(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: bool IsEmpty()"""
 *         cdef bool _r = self.inst.get().IsEmpty()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.IsEmpty", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1535
 *         return py_result
 * 
 *     def GetAttribute(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode("utf-8")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_35GetAttribute(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_35GetAttribute(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetAttribute (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_34GetAttribute(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_34GetAttribute(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  PyObject *__pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetAttribute", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":1536
 * 
 *     def GetAttribute(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode("utf-8")
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1537
 *     def GetAttribute(self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode("utf-8")             # <<<<<<<<<<<<<<
 * 
 *         py_result = self.inst.get().GetAttributePy(<libcpp_string> key)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":1536
 * 
 *     def GetAttribute(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode("utf-8")
 * 
 */
  }

  /* "_core.pyx":1539
 *             key = key.encode("utf-8")
 * 
 *         py_result = self.inst.get().GetAttributePy(<libcpp_string> key)             # <<<<<<<<<<<<<<
 *         return <object>py_result
 * 
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1539, __pyx_L1_error)
  try {
    __pyx_t_7 = __pyx_v_self->inst.get()->GetAttributePy(((std::string)__pyx_t_6));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1539, __pyx_L1_error)
  }
  __pyx_v_py_result = __pyx_t_7;

  /* "_core.pyx":1540
 * 
 *         py_result = self.inst.get().GetAttributePy(<libcpp_string> key)
 *         return <object>py_result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1535
 *         return py_result
 * 
 *     def GetAttribute(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode("utf-8")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Match.GetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1543
 * 
 * 
 *     def SetAttribute(self, key, value):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode("utf-8")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_37SetAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_37SetAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_value = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetAttribute (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("SetAttribute", 1, 2, 2, 1); __PYX_ERR(0, 1543, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SetAttribute") < 0)) __PYX_ERR(0, 1543, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_key = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SetAttribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1543, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Match.SetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_5Match_36SetAttribute(((struct __pyx_obj_5_core_Match *)__pyx_v_self), __pyx_v_key, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_36SetAttribute(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  PyTypeObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  std::string __pyx_t_7;
  float __pyx_t_8;
  int __pyx_t_9;
  bool __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetAttribute", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":1544
 * 
 *     def SetAttribute(self, key, value):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode("utf-8")
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1545
 *     def SetAttribute(self, key, value):
 *         if isinstance(key, unicode):
 *             key = key.encode("utf-8")             # <<<<<<<<<<<<<<
 * 
 *         t = type(value)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":1544
 * 
 *     def SetAttribute(self, key, value):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode("utf-8")
 * 
 */
  }

  /* "_core.pyx":1547
 *             key = key.encode("utf-8")
 * 
 *         t = type(value)             # <<<<<<<<<<<<<<
 * 
 *         if t == bytes:
 */
  __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_value)));
  __pyx_v_t = ((PyTypeObject*)((PyObject *)Py_TYPE(__pyx_v_value)));

  /* "_core.pyx":1549
 *         t = type(value)
 * 
 *         if t == bytes:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value)
 *         elif t == str or t == unicode:
 */
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_t), ((PyObject *)(&PyBytes_Type)), Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1549, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_2) {

    /* "_core.pyx":1550
 * 
 *         if t == bytes:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value)             # <<<<<<<<<<<<<<
 *         elif t == str or t == unicode:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))
 */
    __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1550, __pyx_L1_error)
    __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1550, __pyx_L1_error)
    try {
      __pyx_v_self->inst.get()->SetAttribute(((std::string)__pyx_t_6), ((std::string)__pyx_t_7));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(0, 1550, __pyx_L1_error)
    }

    /* "_core.pyx":1549
 *         t = type(value)
 * 
 *         if t == bytes:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value)
 *         elif t == str or t == unicode:
 */
    goto __pyx_L4;
  }

  /* "_core.pyx":1551
 *         if t == bytes:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value)
 *         elif t == str or t == unicode:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))
 *         elif t == float:
 */
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_t), ((PyObject *)(&PyUnicode_Type)), Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1551, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_t), ((PyObject *)(&PyUnicode_Type)), Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1551, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __pyx_t_1;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "_core.pyx":1552
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value)
 *         elif t == str or t == unicode:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))             # <<<<<<<<<<<<<<
 *         elif t == float:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)
 */
    __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1552, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_3); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1552, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    try {
      __pyx_v_self->inst.get()->SetAttribute(((std::string)__pyx_t_7), ((std::string)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(0, 1552, __pyx_L1_error)
    }

    /* "_core.pyx":1551
 *         if t == bytes:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value)
 *         elif t == str or t == unicode:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))
 *         elif t == float:
 */
    goto __pyx_L4;
  }

  /* "_core.pyx":1553
 *         elif t == str or t == unicode:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))
 *         elif t == float:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)
 *         elif t == int:
 */
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_t), ((PyObject *)(&PyFloat_Type)), Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1553, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1553, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_2) {

    /* "_core.pyx":1554
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))
 *         elif t == float:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)             # <<<<<<<<<<<<<<
 *         elif t == int:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <int> value)
 */
    __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1554, __pyx_L1_error)
    __pyx_t_8 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 1554, __pyx_L1_error)
    try {
      __pyx_v_self->inst.get()->SetAttribute(((std::string)__pyx_t_6), ((float)__pyx_t_8));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(0, 1554, __pyx_L1_error)
    }

    /* "_core.pyx":1553
 *         elif t == str or t == unicode:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <libcpp_string> value.encode('utf-8'))
 *         elif t == float:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)
 *         elif t == int:
 */
    goto __pyx_L4;
  }

  /* "_core.pyx":1555
 *         elif t == float:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)
 *         elif t == int:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <int> value)
 *         # special trick as t == bool does not work due to name collision between cython and C
 */
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_t), ((PyObject *)(&PyInt_Type)), Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_2) {

    /* "_core.pyx":1556
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)
 *         elif t == int:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <int> value)             # <<<<<<<<<<<<<<
 *         # special trick as t == bool does not work due to name collision between cython and C
 *         elif isinstance(value, (int)):
 */
    __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1556, __pyx_L1_error)
    __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1556, __pyx_L1_error)
    try {
      __pyx_v_self->inst.get()->SetAttribute(((std::string)__pyx_t_6), ((int)__pyx_t_9));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(0, 1556, __pyx_L1_error)
    }

    /* "_core.pyx":1555
 *         elif t == float:
 *             self.inst.get().SetAttribute(<libcpp_string> key, <float> value)
 *         elif t == int:             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <int> value)
 *         # special trick as t == bool does not work due to name collision between cython and C
 */
    goto __pyx_L4;
  }

  /* "_core.pyx":1558
 *             self.inst.get().SetAttribute(<libcpp_string> key, <int> value)
 *         # special trick as t == bool does not work due to name collision between cython and C
 *         elif isinstance(value, (int)):             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <bool> value)
 *         else:
 */
  __pyx_t_2 = PyInt_Check(__pyx_v_value); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":1559
 *         # special trick as t == bool does not work due to name collision between cython and C
 *         elif isinstance(value, (int)):
 *             self.inst.get().SetAttribute(<libcpp_string> key, <bool> value)             # <<<<<<<<<<<<<<
 *         else:
 *             raise Exception("Unsupported Value Type")
 */
    __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1559, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_10 == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1559, __pyx_L1_error)
    try {
      __pyx_v_self->inst.get()->SetAttribute(((std::string)__pyx_t_6), ((bool)__pyx_t_10));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(0, 1559, __pyx_L1_error)
    }

    /* "_core.pyx":1558
 *             self.inst.get().SetAttribute(<libcpp_string> key, <int> value)
 *         # special trick as t == bool does not work due to name collision between cython and C
 *         elif isinstance(value, (int)):             # <<<<<<<<<<<<<<
 *             self.inst.get().SetAttribute(<libcpp_string> key, <bool> value)
 *         else:
 */
    goto __pyx_L4;
  }

  /* "_core.pyx":1561
 *             self.inst.get().SetAttribute(<libcpp_string> key, <bool> value)
 *         else:
 *             raise Exception("Unsupported Value Type")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1561, __pyx_L1_error)
  }
  __pyx_L4:;

  /* "_core.pyx":1543
 * 
 * 
 *     def SetAttribute(self, key, value):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode("utf-8")
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.Match.SetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1564
 * 
 * 
 *     def GetValue(self):             # <<<<<<<<<<<<<<
 *         """Decodes a keyvi value and returns it."""
 *         cdef libcpp_string packed_value = self.inst.get().GetMsgPackedValueAsString()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_39GetValue(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_5Match_38GetValue[] = "Decodes a keyvi value and returns it.";
static PyObject *__pyx_pw_5_core_5Match_39GetValue(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetValue (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_38GetValue(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_38GetValue(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  std::string __pyx_v_packed_value;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  std::string __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetValue", 0);

  /* "_core.pyx":1566
 *     def GetValue(self):
 *         """Decodes a keyvi value and returns it."""
 *         cdef libcpp_string packed_value = self.inst.get().GetMsgPackedValueAsString()             # <<<<<<<<<<<<<<
 *         if packed_value.empty():
 *             return None
 */
  try {
    __pyx_t_1 = __pyx_v_self->inst.get()->GetMsgPackedValueAsString();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1566, __pyx_L1_error)
  }
  __pyx_v_packed_value = __pyx_t_1;

  /* "_core.pyx":1567
 *         """Decodes a keyvi value and returns it."""
 *         cdef libcpp_string packed_value = self.inst.get().GetMsgPackedValueAsString()
 *         if packed_value.empty():             # <<<<<<<<<<<<<<
 *             return None
 * 
 */
  __pyx_t_2 = (__pyx_v_packed_value.empty() != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1568
 *         cdef libcpp_string packed_value = self.inst.get().GetMsgPackedValueAsString()
 *         if packed_value.empty():
 *             return None             # <<<<<<<<<<<<<<
 * 
 *         return msgpack.loads(packed_value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":1567
 *         """Decodes a keyvi value and returns it."""
 *         cdef libcpp_string packed_value = self.inst.get().GetMsgPackedValueAsString()
 *         if packed_value.empty():             # <<<<<<<<<<<<<<
 *             return None
 * 
 */
  }

  /* "_core.pyx":1570
 *             return None
 * 
 *         return msgpack.loads(packed_value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_msgpack); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_loads); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_packed_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1564
 * 
 * 
 *     def GetValue(self):             # <<<<<<<<<<<<<<
 *         """Decodes a keyvi value and returns it."""
 *         cdef libcpp_string packed_value = self.inst.get().GetMsgPackedValueAsString()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Match.GetValue", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1573
 * 
 * 
 *     def dumps(self):             # <<<<<<<<<<<<<<
 *         m=[]
 *         do_pack_rest = False
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_41dumps(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_41dumps(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dumps (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_40dumps(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_40dumps(struct __pyx_obj_5_core_Match *__pyx_v_self) {
  PyObject *__pyx_v_m = NULL;
  int __pyx_v_do_pack_rest;
  PyObject *__pyx_v_score = NULL;
  size_t __pyx_v_end;
  size_t __pyx_v_start;
  std::string __pyx_v_matchedstring;
  std::string __pyx_v_rawvalue;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  std::string __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dumps", 0);

  /* "_core.pyx":1574
 * 
 *     def dumps(self):
 *         m=[]             # <<<<<<<<<<<<<<
 *         do_pack_rest = False
 *         score = self.inst.get().GetScore()
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_m = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":1575
 *     def dumps(self):
 *         m=[]
 *         do_pack_rest = False             # <<<<<<<<<<<<<<
 *         score = self.inst.get().GetScore()
 *         if score != 0:
 */
  __pyx_v_do_pack_rest = 0;

  /* "_core.pyx":1576
 *         m=[]
 *         do_pack_rest = False
 *         score = self.inst.get().GetScore()             # <<<<<<<<<<<<<<
 *         if score != 0:
 *             m.append(score)
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->inst.get()->GetScore()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1576, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_score = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":1577
 *         do_pack_rest = False
 *         score = self.inst.get().GetScore()
 *         if score != 0:             # <<<<<<<<<<<<<<
 *             m.append(score)
 *             do_pack_rest = True
 */
  __pyx_t_1 = __Pyx_PyInt_NeObjC(__pyx_v_score, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "_core.pyx":1578
 *         score = self.inst.get().GetScore()
 *         if score != 0:
 *             m.append(score)             # <<<<<<<<<<<<<<
 *             do_pack_rest = True
 *         end = self.inst.get().GetEnd()
 */
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_m, __pyx_v_score); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1578, __pyx_L1_error)

    /* "_core.pyx":1579
 *         if score != 0:
 *             m.append(score)
 *             do_pack_rest = True             # <<<<<<<<<<<<<<
 *         end = self.inst.get().GetEnd()
 *         if end != 0 or do_pack_rest:
 */
    __pyx_v_do_pack_rest = 1;

    /* "_core.pyx":1577
 *         do_pack_rest = False
 *         score = self.inst.get().GetScore()
 *         if score != 0:             # <<<<<<<<<<<<<<
 *             m.append(score)
 *             do_pack_rest = True
 */
  }

  /* "_core.pyx":1580
 *             m.append(score)
 *             do_pack_rest = True
 *         end = self.inst.get().GetEnd()             # <<<<<<<<<<<<<<
 *         if end != 0 or do_pack_rest:
 *             m.append(end)
 */
  __pyx_v_end = __pyx_v_self->inst.get()->GetEnd();

  /* "_core.pyx":1581
 *             do_pack_rest = True
 *         end = self.inst.get().GetEnd()
 *         if end != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(end)
 *             do_pack_rest = True
 */
  __pyx_t_4 = ((__pyx_v_end != 0) != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_do_pack_rest != 0);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "_core.pyx":1582
 *         end = self.inst.get().GetEnd()
 *         if end != 0 or do_pack_rest:
 *             m.append(end)             # <<<<<<<<<<<<<<
 *             do_pack_rest = True
 *         start = self.inst.get().GetStart()
 */
    __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_end); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_m, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1582, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "_core.pyx":1583
 *         if end != 0 or do_pack_rest:
 *             m.append(end)
 *             do_pack_rest = True             # <<<<<<<<<<<<<<
 *         start = self.inst.get().GetStart()
 *         if start != 0 or do_pack_rest:
 */
    __pyx_v_do_pack_rest = 1;

    /* "_core.pyx":1581
 *             do_pack_rest = True
 *         end = self.inst.get().GetEnd()
 *         if end != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(end)
 *             do_pack_rest = True
 */
  }

  /* "_core.pyx":1584
 *             m.append(end)
 *             do_pack_rest = True
 *         start = self.inst.get().GetStart()             # <<<<<<<<<<<<<<
 *         if start != 0 or do_pack_rest:
 *             m.append(start)
 */
  __pyx_v_start = __pyx_v_self->inst.get()->GetStart();

  /* "_core.pyx":1585
 *             do_pack_rest = True
 *         start = self.inst.get().GetStart()
 *         if start != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(start)
 *             do_pack_rest = True
 */
  __pyx_t_4 = ((__pyx_v_start != 0) != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_do_pack_rest != 0);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_2) {

    /* "_core.pyx":1586
 *         start = self.inst.get().GetStart()
 *         if start != 0 or do_pack_rest:
 *             m.append(start)             # <<<<<<<<<<<<<<
 *             do_pack_rest = True
 *         matchedstring = self.inst.get().GetMatchedString()
 */
    __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_start); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_m, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1586, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "_core.pyx":1587
 *         if start != 0 or do_pack_rest:
 *             m.append(start)
 *             do_pack_rest = True             # <<<<<<<<<<<<<<
 *         matchedstring = self.inst.get().GetMatchedString()
 *         if len(matchedstring) != 0 or do_pack_rest:
 */
    __pyx_v_do_pack_rest = 1;

    /* "_core.pyx":1585
 *             do_pack_rest = True
 *         start = self.inst.get().GetStart()
 *         if start != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(start)
 *             do_pack_rest = True
 */
  }

  /* "_core.pyx":1588
 *             m.append(start)
 *             do_pack_rest = True
 *         matchedstring = self.inst.get().GetMatchedString()             # <<<<<<<<<<<<<<
 *         if len(matchedstring) != 0 or do_pack_rest:
 *             m.append(matchedstring)
 */
  __pyx_v_matchedstring = __pyx_v_self->inst.get()->GetMatchedString();

  /* "_core.pyx":1589
 *             do_pack_rest = True
 *         matchedstring = self.inst.get().GetMatchedString()
 *         if len(matchedstring) != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(matchedstring)
 *             do_pack_rest = True
 */
  __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_matchedstring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = ((__pyx_t_5 != 0) != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_do_pack_rest != 0);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L11_bool_binop_done:;
  if (__pyx_t_2) {

    /* "_core.pyx":1590
 *         matchedstring = self.inst.get().GetMatchedString()
 *         if len(matchedstring) != 0 or do_pack_rest:
 *             m.append(matchedstring)             # <<<<<<<<<<<<<<
 *             do_pack_rest = True
 *         rawvalue = self.inst.get().GetRawValueAsString()
 */
    __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_matchedstring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_m, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1590, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "_core.pyx":1591
 *         if len(matchedstring) != 0 or do_pack_rest:
 *             m.append(matchedstring)
 *             do_pack_rest = True             # <<<<<<<<<<<<<<
 *         rawvalue = self.inst.get().GetRawValueAsString()
 *         if len(rawvalue) != 0 or do_pack_rest:
 */
    __pyx_v_do_pack_rest = 1;

    /* "_core.pyx":1589
 *             do_pack_rest = True
 *         matchedstring = self.inst.get().GetMatchedString()
 *         if len(matchedstring) != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(matchedstring)
 *             do_pack_rest = True
 */
  }

  /* "_core.pyx":1592
 *             m.append(matchedstring)
 *             do_pack_rest = True
 *         rawvalue = self.inst.get().GetRawValueAsString()             # <<<<<<<<<<<<<<
 *         if len(rawvalue) != 0 or do_pack_rest:
 *             m.append(rawvalue)
 */
  try {
    __pyx_t_6 = __pyx_v_self->inst.get()->GetRawValueAsString();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1592, __pyx_L1_error)
  }
  __pyx_v_rawvalue = __pyx_t_6;

  /* "_core.pyx":1593
 *             do_pack_rest = True
 *         rawvalue = self.inst.get().GetRawValueAsString()
 *         if len(rawvalue) != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(rawvalue)
 *         m.reverse()
 */
  __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_rawvalue); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = ((__pyx_t_5 != 0) != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L14_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_do_pack_rest != 0);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L14_bool_binop_done:;
  if (__pyx_t_2) {

    /* "_core.pyx":1594
 *         rawvalue = self.inst.get().GetRawValueAsString()
 *         if len(rawvalue) != 0 or do_pack_rest:
 *             m.append(rawvalue)             # <<<<<<<<<<<<<<
 *         m.reverse()
 *         return msgpack.dumps(m)
 */
    __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_rawvalue); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_m, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1594, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "_core.pyx":1593
 *             do_pack_rest = True
 *         rawvalue = self.inst.get().GetRawValueAsString()
 *         if len(rawvalue) != 0 or do_pack_rest:             # <<<<<<<<<<<<<<
 *             m.append(rawvalue)
 *         m.reverse()
 */
  }

  /* "_core.pyx":1595
 *         if len(rawvalue) != 0 or do_pack_rest:
 *             m.append(rawvalue)
 *         m.reverse()             # <<<<<<<<<<<<<<
 *         return msgpack.dumps(m)
 * 
 */
  __pyx_t_3 = PyList_Reverse(__pyx_v_m); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1595, __pyx_L1_error)

  /* "_core.pyx":1596
 *             m.append(rawvalue)
 *         m.reverse()
 *         return msgpack.dumps(m)             # <<<<<<<<<<<<<<
 * 
 *     def __SetRawValue(self, str):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_msgpack); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_dumps); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_8, function);
    }
  }
  __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, __pyx_v_m) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_m);
  __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1573
 * 
 * 
 *     def dumps(self):             # <<<<<<<<<<<<<<
 *         m=[]
 *         do_pack_rest = False
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("_core.Match.dumps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_score);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1598
 *         return msgpack.dumps(m)
 * 
 *     def __SetRawValue(self, str):             # <<<<<<<<<<<<<<
 *          self.inst.get().SetRawValue(<libcpp_string> str)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_43__SetRawValue(PyObject *__pyx_v_self, PyObject *__pyx_v_str); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_43__SetRawValue(PyObject *__pyx_v_self, PyObject *__pyx_v_str) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__SetRawValue (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_42__SetRawValue(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v_str));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_42__SetRawValue(struct __pyx_obj_5_core_Match *__pyx_v_self, PyObject *__pyx_v_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  std::string __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__SetRawValue", 0);

  /* "_core.pyx":1599
 * 
 *     def __SetRawValue(self, str):
 *          self.inst.get().SetRawValue(<libcpp_string> str)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __pyx_t_1 = __pyx_convert_string_from_py_std__in_string(__pyx_v_str); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1599, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetRawValue(((std::string)__pyx_t_1));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1599, __pyx_L1_error)
  }

  /* "_core.pyx":1598
 *         return msgpack.dumps(m)
 * 
 *     def __SetRawValue(self, str):             # <<<<<<<<<<<<<<
 *          self.inst.get().SetRawValue(<libcpp_string> str)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.Match.__SetRawValue", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1602
 * 
 *     @staticmethod
 *     def loads(serialized_match):             # <<<<<<<<<<<<<<
 *         m=Match()
 *         unserialized = msgpack.loads(serialized_match)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_45loads(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_5_core_5Match_45loads = {"loads", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Match_45loads, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_5_core_5Match_45loads(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_serialized_match = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("loads (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_serialized_match,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_serialized_match)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "loads") < 0)) __PYX_ERR(0, 1602, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_serialized_match = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("loads", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1602, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.Match.loads", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_5Match_44loads(__pyx_v_serialized_match);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_44loads(PyObject *__pyx_v_serialized_match) {
  struct __pyx_obj_5_core_Match *__pyx_v_m = NULL;
  PyObject *__pyx_v_unserialized = NULL;
  Py_ssize_t __pyx_v_number_of_fields;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("loads", 0);

  /* "_core.pyx":1603
 *     @staticmethod
 *     def loads(serialized_match):
 *         m=Match()             # <<<<<<<<<<<<<<
 *         unserialized = msgpack.loads(serialized_match)
 *         number_of_fields = len(unserialized)
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_5_core_Match)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_m = ((struct __pyx_obj_5_core_Match *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "_core.pyx":1604
 *     def loads(serialized_match):
 *         m=Match()
 *         unserialized = msgpack.loads(serialized_match)             # <<<<<<<<<<<<<<
 *         number_of_fields = len(unserialized)
 *         if number_of_fields > 0:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_msgpack); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_loads); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_serialized_match) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_serialized_match);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_unserialized = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":1605
 *         m=Match()
 *         unserialized = msgpack.loads(serialized_match)
 *         number_of_fields = len(unserialized)             # <<<<<<<<<<<<<<
 *         if number_of_fields > 0:
 *             m.__SetRawValue(unserialized[0])
 */
  __pyx_t_4 = PyObject_Length(__pyx_v_unserialized); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1605, __pyx_L1_error)
  __pyx_v_number_of_fields = __pyx_t_4;

  /* "_core.pyx":1606
 *         unserialized = msgpack.loads(serialized_match)
 *         number_of_fields = len(unserialized)
 *         if number_of_fields > 0:             # <<<<<<<<<<<<<<
 *             m.__SetRawValue(unserialized[0])
 *             if number_of_fields > 1:
 */
  __pyx_t_5 = ((__pyx_v_number_of_fields > 0) != 0);
  if (__pyx_t_5) {

    /* "_core.pyx":1607
 *         number_of_fields = len(unserialized)
 *         if number_of_fields > 0:
 *             m.__SetRawValue(unserialized[0])             # <<<<<<<<<<<<<<
 *             if number_of_fields > 1:
 *                 m.SetMatchedString(unserialized[1])
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_m), __pyx_n_s_SetRawValue); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_unserialized, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "_core.pyx":1608
 *         if number_of_fields > 0:
 *             m.__SetRawValue(unserialized[0])
 *             if number_of_fields > 1:             # <<<<<<<<<<<<<<
 *                 m.SetMatchedString(unserialized[1])
 *                 if number_of_fields > 2:
 */
    __pyx_t_5 = ((__pyx_v_number_of_fields > 1) != 0);
    if (__pyx_t_5) {

      /* "_core.pyx":1609
 *             m.__SetRawValue(unserialized[0])
 *             if number_of_fields > 1:
 *                 m.SetMatchedString(unserialized[1])             # <<<<<<<<<<<<<<
 *                 if number_of_fields > 2:
 *                     m.SetStart(unserialized[2])
 */
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_m), __pyx_n_s_SetMatchedString); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_unserialized, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "_core.pyx":1610
 *             if number_of_fields > 1:
 *                 m.SetMatchedString(unserialized[1])
 *                 if number_of_fields > 2:             # <<<<<<<<<<<<<<
 *                     m.SetStart(unserialized[2])
 *                     if number_of_fields > 3:
 */
      __pyx_t_5 = ((__pyx_v_number_of_fields > 2) != 0);
      if (__pyx_t_5) {

        /* "_core.pyx":1611
 *                 m.SetMatchedString(unserialized[1])
 *                 if number_of_fields > 2:
 *                     m.SetStart(unserialized[2])             # <<<<<<<<<<<<<<
 *                     if number_of_fields > 3:
 *                          m.SetEnd(unserialized[3])
 */
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_m), __pyx_n_s_SetStart); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1611, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_unserialized, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1611, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
          }
        }
        __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1611, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "_core.pyx":1612
 *                 if number_of_fields > 2:
 *                     m.SetStart(unserialized[2])
 *                     if number_of_fields > 3:             # <<<<<<<<<<<<<<
 *                          m.SetEnd(unserialized[3])
 *                          if number_of_fields > 4:
 */
        __pyx_t_5 = ((__pyx_v_number_of_fields > 3) != 0);
        if (__pyx_t_5) {

          /* "_core.pyx":1613
 *                     m.SetStart(unserialized[2])
 *                     if number_of_fields > 3:
 *                          m.SetEnd(unserialized[3])             # <<<<<<<<<<<<<<
 *                          if number_of_fields > 4:
 *                              m.SetScore(unserialized[4])
 */
          __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_m), __pyx_n_s_SetEnd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1613, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_unserialized, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1613, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
            __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
            if (likely(__pyx_t_6)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
              __Pyx_INCREF(__pyx_t_6);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_3, function);
            }
          }
          __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1613, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

          /* "_core.pyx":1614
 *                     if number_of_fields > 3:
 *                          m.SetEnd(unserialized[3])
 *                          if number_of_fields > 4:             # <<<<<<<<<<<<<<
 *                              m.SetScore(unserialized[4])
 * 
 */
          __pyx_t_5 = ((__pyx_v_number_of_fields > 4) != 0);
          if (__pyx_t_5) {

            /* "_core.pyx":1615
 *                          m.SetEnd(unserialized[3])
 *                          if number_of_fields > 4:
 *                              m.SetScore(unserialized[4])             # <<<<<<<<<<<<<<
 * 
 *         return m
 */
            __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_m), __pyx_n_s_SetScore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1615, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_unserialized, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1615, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_6 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
              __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
              if (likely(__pyx_t_6)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
                __Pyx_INCREF(__pyx_t_6);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_3, function);
              }
            }
            __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1615, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

            /* "_core.pyx":1614
 *                     if number_of_fields > 3:
 *                          m.SetEnd(unserialized[3])
 *                          if number_of_fields > 4:             # <<<<<<<<<<<<<<
 *                              m.SetScore(unserialized[4])
 * 
 */
          }

          /* "_core.pyx":1612
 *                 if number_of_fields > 2:
 *                     m.SetStart(unserialized[2])
 *                     if number_of_fields > 3:             # <<<<<<<<<<<<<<
 *                          m.SetEnd(unserialized[3])
 *                          if number_of_fields > 4:
 */
        }

        /* "_core.pyx":1610
 *             if number_of_fields > 1:
 *                 m.SetMatchedString(unserialized[1])
 *                 if number_of_fields > 2:             # <<<<<<<<<<<<<<
 *                     m.SetStart(unserialized[2])
 *                     if number_of_fields > 3:
 */
      }

      /* "_core.pyx":1608
 *         if number_of_fields > 0:
 *             m.__SetRawValue(unserialized[0])
 *             if number_of_fields > 1:             # <<<<<<<<<<<<<<
 *                 m.SetMatchedString(unserialized[1])
 *                 if number_of_fields > 2:
 */
    }

    /* "_core.pyx":1606
 *         unserialized = msgpack.loads(serialized_match)
 *         number_of_fields = len(unserialized)
 *         if number_of_fields > 0:             # <<<<<<<<<<<<<<
 *             m.__SetRawValue(unserialized[0])
 *             if number_of_fields > 1:
 */
  }

  /* "_core.pyx":1617
 *                              m.SetScore(unserialized[4])
 * 
 *         return m             # <<<<<<<<<<<<<<
 * 
 * cdef class MultiWordCompletion:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_m));
  __pyx_r = ((PyObject *)__pyx_v_m);
  goto __pyx_L0;

  /* "_core.pyx":1602
 * 
 *     @staticmethod
 *     def loads(serialized_match):             # <<<<<<<<<<<<<<
 *         m=Match()
 *         unserialized = msgpack.loads(serialized_match)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.Match.loads", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_unserialized);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_47__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_47__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_46__reduce_cython__(((struct __pyx_obj_5_core_Match *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_46__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Match *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5Match_49__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_5Match_49__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_5Match_48__setstate_cython__(((struct __pyx_obj_5_core_Match *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_5Match_48__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_Match *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.Match.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1626
 *     cdef shared_ptr[_MultiWordCompletion] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_19MultiWordCompletion_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_19MultiWordCompletion_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_19MultiWordCompletion___dealloc__(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_19MultiWordCompletion___dealloc__(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1627
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1626
 *     cdef shared_ptr[_MultiWordCompletion] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1630
 * 
 * 
 *     def __init__(self, Dictionary in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void MultiWordCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_19MultiWordCompletion_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_19MultiWordCompletion_2__init__[] = "Cython signature: void MultiWordCompletion(shared_ptr[Dictionary])";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_19MultiWordCompletion_2__init__;
#endif
static int __pyx_pw_5_core_19MultiWordCompletion_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1630, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_in_0 = ((struct __pyx_obj_5_core_Dictionary *)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1630, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.MultiWordCompletion.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary, 1, "in_0", 0))) __PYX_ERR(0, 1630, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_19MultiWordCompletion_2__init__(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self), __pyx_v_in_0);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_19MultiWordCompletion_2__init__(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0) {
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_v_input_in_0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_t_2;
  keyvi::dictionary::completion::MultiWordCompletion *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":1632
 *     def __init__(self, Dictionary in_0 ):
 *         """Cython signature: void MultiWordCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         self.inst = shared_ptr[_MultiWordCompletion](new _MultiWordCompletion(input_in_0))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1632, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1633
 *         """Cython signature: void MultiWordCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_MultiWordCompletion](new _MultiWordCompletion(input_in_0))
 * 
 */
  __pyx_t_2 = __pyx_v_in_0->inst;
  __pyx_v_input_in_0 = __pyx_t_2;

  /* "_core.pyx":1634
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         self.inst = shared_ptr[_MultiWordCompletion](new _MultiWordCompletion(input_in_0))             # <<<<<<<<<<<<<<
 * 
 *     def _GetCompletions_0(self,  in_0 ):
 */
  try {
    __pyx_t_3 = new keyvi::dictionary::completion::MultiWordCompletion(((std::shared_ptr<keyvi::dictionary::Dictionary>  &)__pyx_v_input_in_0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1634, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::completion::MultiWordCompletion> (__pyx_t_3);

  /* "_core.pyx":1630
 * 
 * 
 *     def __init__(self, Dictionary in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void MultiWordCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.MultiWordCompletion.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1636
 *         self.inst = shared_ptr[_MultiWordCompletion](new _MultiWordCompletion(input_in_0))
 * 
 *     def _GetCompletions_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_5_GetCompletions_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_19MultiWordCompletion_4_GetCompletions_0[] = "Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_5_GetCompletions_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetCompletions_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19MultiWordCompletion_4_GetCompletions_0(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19MultiWordCompletion_4_GetCompletions_0(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, PyObject *__pyx_v_in_0) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetCompletions_0", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1638
 *     def _GetCompletions_0(self,  in_0 ):
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1638, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1639
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1640
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1639
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1641
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1641, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetCompletions(((std::string)__pyx_t_7));

  /* "_core.pyx":1642
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1642, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":1643
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":1644
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":1645
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1636
 *         self.inst = shared_ptr[_MultiWordCompletion](new _MultiWordCompletion(input_in_0))
 * 
 *     def _GetCompletions_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.MultiWordCompletion._GetCompletions_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1647
 *         return py_result
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_7_GetCompletions_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_19MultiWordCompletion_6_GetCompletions_1[] = "Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)";
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_7_GetCompletions_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetCompletions_1 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_GetCompletions_1", 1, 2, 2, 1); __PYX_ERR(0, 1647, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_GetCompletions_1") < 0)) __PYX_ERR(0, 1647, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_GetCompletions_1", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1647, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.MultiWordCompletion._GetCompletions_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_19MultiWordCompletion_6_GetCompletions_1(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19MultiWordCompletion_6_GetCompletions_1(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetCompletions_1", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1649
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1649, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1650
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 1650, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1651
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1652
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1651
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":1654
 *             in_0 = in_0.encode('utf-8')
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1654, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_in_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1654, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetCompletions(((std::string)__pyx_t_7), ((int)__pyx_t_8));

  /* "_core.pyx":1655
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1655, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":1656
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":1657
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":1658
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetCompletions(self, *args ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1647
 *         return py_result
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.MultiWordCompletion._GetCompletions_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1660
 *         return py_result
 * 
 *     def GetCompletions(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_9GetCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_19MultiWordCompletion_8GetCompletions[] = "\n          - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)\n          - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)\n";
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_9GetCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetCompletions (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "GetCompletions", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_19MultiWordCompletion_8GetCompletions(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19MultiWordCompletion_8GetCompletions(struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetCompletions", 0);

  /* "_core.pyx":1665
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1665, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 == 1) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = PyBytes_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L6_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":1666
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetCompletions_1(*args)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetCompletions_0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "_core.pyx":1665
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 */
  }

  /* "_core.pyx":1667
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_1(*args)
 *         else:
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1667, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_2 == 2) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = PyBytes_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_3 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_3 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_3;
  __pyx_L11_bool_binop_done:;
  __pyx_t_3 = (__pyx_t_5 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_5 = PyInt_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyLong_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L13_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L8_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":1668
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetCompletions_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetCompletions_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "_core.pyx":1667
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_1(*args)
 *         else:
 */
  }

  /* "_core.pyx":1670
 *             return self._GetCompletions_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 * cdef class PredictiveCompression:
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1670, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1670, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1670, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 1670, __pyx_L1_error)
  }

  /* "_core.pyx":1660
 *         return py_result
 * 
 *     def GetCompletions(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.MultiWordCompletion.GetCompletions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19MultiWordCompletion_10__reduce_cython__(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19MultiWordCompletion_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.MultiWordCompletion.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_19MultiWordCompletion_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_19MultiWordCompletion_12__setstate_cython__(((struct __pyx_obj_5_core_MultiWordCompletion *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_19MultiWordCompletion_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MultiWordCompletion *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.MultiWordCompletion.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1679
 *     cdef shared_ptr[_PredictiveCompression] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_21PredictiveCompression_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_21PredictiveCompression_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_21PredictiveCompression___dealloc__(((struct __pyx_obj_5_core_PredictiveCompression *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_21PredictiveCompression___dealloc__(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1680
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1679
 *     cdef shared_ptr[_PredictiveCompression] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1683
 * 
 * 
 *     def __init__(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void PredictiveCompression(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_21PredictiveCompression_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_21PredictiveCompression_2__init__[] = "Cython signature: void PredictiveCompression(libcpp_utf8_string)";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_21PredictiveCompression_2__init__;
#endif
static int __pyx_pw_5_core_21PredictiveCompression_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1683, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_in_0 = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1683, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.PredictiveCompression.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_21PredictiveCompression_2__init__(((struct __pyx_obj_5_core_PredictiveCompression *)__pyx_v_self), __pyx_v_in_0);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_21PredictiveCompression_2__init__(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, PyObject *__pyx_v_in_0) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  keyvi::compression::PredictiveCompression *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1685
 *     def __init__(self,  in_0 ):
 *         """Cython signature: void PredictiveCompression(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1685, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1686
 *         """Cython signature: void PredictiveCompression(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst = shared_ptr[_PredictiveCompression](new _PredictiveCompression((<libcpp_string>in_0)))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1687
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_PredictiveCompression](new _PredictiveCompression((<libcpp_string>in_0)))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1686
 *         """Cython signature: void PredictiveCompression(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst = shared_ptr[_PredictiveCompression](new _PredictiveCompression((<libcpp_string>in_0)))
 */
  }

  /* "_core.pyx":1688
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst = shared_ptr[_PredictiveCompression](new _PredictiveCompression((<libcpp_string>in_0)))             # <<<<<<<<<<<<<<
 * 
 *     def Compress(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1688, __pyx_L1_error)
  try {
    __pyx_t_8 = new keyvi::compression::PredictiveCompression(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1688, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::compression::PredictiveCompression> (__pyx_t_8);

  /* "_core.pyx":1683
 * 
 * 
 *     def __init__(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void PredictiveCompression(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.PredictiveCompression.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1690
 *         self.inst = shared_ptr[_PredictiveCompression](new _PredictiveCompression((<libcpp_string>in_0)))
 * 
 *     def Compress(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string Compress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21PredictiveCompression_5Compress(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21PredictiveCompression_4Compress[] = "Cython signature: libcpp_string Compress(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21PredictiveCompression_5Compress(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compress (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21PredictiveCompression_4Compress(((struct __pyx_obj_5_core_PredictiveCompression *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21PredictiveCompression_4Compress(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, PyObject *__pyx_v_in_0) {
  std::string __pyx_v__r;
  std::string __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Compress", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1692
 *     def Compress(self,  in_0 ):
 *         """Cython signature: libcpp_string Compress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1692, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1693
 *         """Cython signature: libcpp_string Compress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Compress((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1694
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef libcpp_string _r = self.inst.get().Compress((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1693
 *         """Cython signature: libcpp_string Compress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Compress((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1695
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Compress((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         py_result = <libcpp_string>_r
 *         return py_result
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1695, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Compress(((std::string)__pyx_t_7));

  /* "_core.pyx":1696
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Compress((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((std::string)__pyx_v__r);

  /* "_core.pyx":1697
 *         cdef libcpp_string _r = self.inst.get().Compress((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Uncompress(self,  in_0 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_py_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1690
 *         self.inst = shared_ptr[_PredictiveCompression](new _PredictiveCompression((<libcpp_string>in_0)))
 * 
 *     def Compress(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string Compress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.PredictiveCompression.Compress", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1699
 *         return py_result
 * 
 *     def Uncompress(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string Uncompress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21PredictiveCompression_7Uncompress(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21PredictiveCompression_6Uncompress[] = "Cython signature: libcpp_string Uncompress(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21PredictiveCompression_7Uncompress(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Uncompress (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21PredictiveCompression_6Uncompress(((struct __pyx_obj_5_core_PredictiveCompression *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21PredictiveCompression_6Uncompress(struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, PyObject *__pyx_v_in_0) {
  std::string __pyx_v__r;
  std::string __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Uncompress", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1701
 *     def Uncompress(self,  in_0 ):
 *         """Cython signature: libcpp_string Uncompress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1701, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1702
 *         """Cython signature: libcpp_string Uncompress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Uncompress((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1703
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef libcpp_string _r = self.inst.get().Uncompress((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1702
 *         """Cython signature: libcpp_string Uncompress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Uncompress((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1704
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Uncompress((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         py_result = <libcpp_string>_r
 *         return py_result
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1704, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Uncompress(((std::string)__pyx_t_7));

  /* "_core.pyx":1705
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_string _r = self.inst.get().Uncompress((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((std::string)__pyx_v__r);

  /* "_core.pyx":1706
 *         cdef libcpp_string _r = self.inst.get().Uncompress((<libcpp_string>in_0))
 *         py_result = <libcpp_string>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class PrefixCompletion:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_py_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "_core.pyx":1699
 *         return py_result
 * 
 *     def Uncompress(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_string Uncompress(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.PredictiveCompression.Uncompress", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21PredictiveCompression_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_21PredictiveCompression_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21PredictiveCompression_8__reduce_cython__(((struct __pyx_obj_5_core_PredictiveCompression *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21PredictiveCompression_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.PredictiveCompression.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21PredictiveCompression_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_21PredictiveCompression_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21PredictiveCompression_10__setstate_cython__(((struct __pyx_obj_5_core_PredictiveCompression *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21PredictiveCompression_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PredictiveCompression *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.PredictiveCompression.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1715
 *     cdef shared_ptr[_PrefixCompletion] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_16PrefixCompletion_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_16PrefixCompletion_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_16PrefixCompletion___dealloc__(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_16PrefixCompletion___dealloc__(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1716
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1715
 *     cdef shared_ptr[_PrefixCompletion] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1719
 * 
 * 
 *     def __init__(self, Dictionary in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void PrefixCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_16PrefixCompletion_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_16PrefixCompletion_2__init__[] = "Cython signature: void PrefixCompletion(shared_ptr[Dictionary])";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_16PrefixCompletion_2__init__;
#endif
static int __pyx_pw_5_core_16PrefixCompletion_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1719, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_in_0 = ((struct __pyx_obj_5_core_Dictionary *)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1719, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.PrefixCompletion.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary, 1, "in_0", 0))) __PYX_ERR(0, 1719, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_2__init__(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self), __pyx_v_in_0);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_16PrefixCompletion_2__init__(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, struct __pyx_obj_5_core_Dictionary *__pyx_v_in_0) {
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_v_input_in_0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  std::shared_ptr<keyvi::dictionary::Dictionary>  __pyx_t_2;
  keyvi::dictionary::completion::PrefixCompletion *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_core.pyx":1721
 *     def __init__(self, Dictionary in_0 ):
 *         """Cython signature: void PrefixCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         self.inst = shared_ptr[_PrefixCompletion](new _PrefixCompletion(input_in_0))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_in_0), __pyx_ptype_5_core_Dictionary); 
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1721, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1722
 *         """Cython signature: void PrefixCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_PrefixCompletion](new _PrefixCompletion(input_in_0))
 * 
 */
  __pyx_t_2 = __pyx_v_in_0->inst;
  __pyx_v_input_in_0 = __pyx_t_2;

  /* "_core.pyx":1723
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 *         cdef shared_ptr[_Dictionary] input_in_0 = in_0.inst
 *         self.inst = shared_ptr[_PrefixCompletion](new _PrefixCompletion(input_in_0))             # <<<<<<<<<<<<<<
 * 
 *     def _GetCompletions_0(self,  in_0 ):
 */
  try {
    __pyx_t_3 = new keyvi::dictionary::completion::PrefixCompletion(((std::shared_ptr<keyvi::dictionary::Dictionary>  &)__pyx_v_input_in_0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1723, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::completion::PrefixCompletion> (__pyx_t_3);

  /* "_core.pyx":1719
 * 
 * 
 *     def __init__(self, Dictionary in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void PrefixCompletion(shared_ptr[Dictionary])"""
 *         assert isinstance(in_0, Dictionary), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.PrefixCompletion.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1725
 *         self.inst = shared_ptr[_PrefixCompletion](new _PrefixCompletion(input_in_0))
 * 
 *     def _GetCompletions_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_16PrefixCompletion_5_GetCompletions_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_16PrefixCompletion_4_GetCompletions_0[] = "Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_16PrefixCompletion_5_GetCompletions_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetCompletions_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_4_GetCompletions_0(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_16PrefixCompletion_4_GetCompletions_0(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_in_0) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetCompletions_0", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1727
 *     def _GetCompletions_0(self,  in_0 ):
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1727, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1728
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1729
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1729, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1729, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1728
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1730
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1730, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetCompletions(((std::string)__pyx_t_7));

  /* "_core.pyx":1731
 *             in_0 = in_0.encode('utf-8')
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1731, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":1732
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":1733
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":1734
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1725
 *         self.inst = shared_ptr[_PrefixCompletion](new _PrefixCompletion(input_in_0))
 * 
 *     def _GetCompletions_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.PrefixCompletion._GetCompletions_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1736
 *         return py_result
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_16PrefixCompletion_7_GetCompletions_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_16PrefixCompletion_6_GetCompletions_1[] = "Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)";
static PyObject *__pyx_pw_5_core_16PrefixCompletion_7_GetCompletions_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_GetCompletions_1 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_GetCompletions_1", 1, 2, 2, 1); __PYX_ERR(0, 1736, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_GetCompletions_1") < 0)) __PYX_ERR(0, 1736, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_GetCompletions_1", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1736, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.PrefixCompletion._GetCompletions_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_6_GetCompletions_1(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_16PrefixCompletion_6_GetCompletions_1(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_GetCompletions_1", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1738
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1738, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1739
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 1739, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1740
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1741
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1741, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1741, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1740
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (int, long)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":1743
 *             in_0 = in_0.encode('utf-8')
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1743, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_in_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1743, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetCompletions(((std::string)__pyx_t_7), ((int)__pyx_t_8));

  /* "_core.pyx":1744
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1744, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":1745
 *         cdef _MatchIteratorPair _r = self.inst.get().GetCompletions((<libcpp_string>in_0), (<int>in_1))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":1746
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":1747
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def GetCompletions(self, *args ):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1736
 *         return py_result
 * 
 *     def _GetCompletions_1(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.PrefixCompletion._GetCompletions_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1749
 *         return py_result
 * 
 *     def GetCompletions(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_16PrefixCompletion_9GetCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_16PrefixCompletion_8GetCompletions[] = "\n          - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)\n          - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)\n";
static PyObject *__pyx_pw_5_core_16PrefixCompletion_9GetCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetCompletions (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "GetCompletions", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_8GetCompletions(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_16PrefixCompletion_8GetCompletions(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetCompletions", 0);

  /* "_core.pyx":1754
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1754, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 == 1) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = PyBytes_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L6_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":1755
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetCompletions_1(*args)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetCompletions_0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_v_args, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "_core.pyx":1754
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string, int)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 */
  }

  /* "_core.pyx":1756
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_1(*args)
 *         else:
 */
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1756, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_2 == 2) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = PyBytes_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_3 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_3 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_3;
  __pyx_L11_bool_binop_done:;
  __pyx_t_3 = (__pyx_t_5 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_5 = PyInt_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_3 = __pyx_t_6;
    goto __pyx_L13_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyLong_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L13_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L8_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":1757
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):
 *             return self._GetCompletions_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_GetCompletions_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "_core.pyx":1756
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *             return self._GetCompletions_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], (int, long))):             # <<<<<<<<<<<<<<
 *             return self._GetCompletions_1(*args)
 *         else:
 */
  }

  /* "_core.pyx":1759
 *             return self._GetCompletions_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def GetFuzzyCompletions(self,  in_0 ,  max_edit_distance ):
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 1759, __pyx_L1_error)
  }

  /* "_core.pyx":1749
 *         return py_result
 * 
 *     def GetCompletions(self, *args ):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: _MatchIteratorPair GetCompletions(libcpp_utf8_string)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.PrefixCompletion.GetCompletions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1761
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetFuzzyCompletions(self,  in_0 ,  max_edit_distance ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzyCompletions(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_16PrefixCompletion_11GetFuzzyCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_16PrefixCompletion_10GetFuzzyCompletions[] = "Cython signature: _MatchIteratorPair GetFuzzyCompletions(libcpp_utf8_string, int32_t max_edit_distance)";
static PyObject *__pyx_pw_5_core_16PrefixCompletion_11GetFuzzyCompletions(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_max_edit_distance = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetFuzzyCompletions (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_max_edit_distance,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_edit_distance)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("GetFuzzyCompletions", 1, 2, 2, 1); __PYX_ERR(0, 1761, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "GetFuzzyCompletions") < 0)) __PYX_ERR(0, 1761, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_max_edit_distance = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("GetFuzzyCompletions", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1761, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.PrefixCompletion.GetFuzzyCompletions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_10GetFuzzyCompletions(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self), __pyx_v_in_0, __pyx_v_max_edit_distance);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_16PrefixCompletion_10GetFuzzyCompletions(struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int32_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetFuzzyCompletions", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1763
 *     def GetFuzzyCompletions(self,  in_0 ,  max_edit_distance ):
 *         """Cython signature: _MatchIteratorPair GetFuzzyCompletions(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1763, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1764
 *         """Cython signature: _MatchIteratorPair GetFuzzyCompletions(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_max_edit_distance); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_max_edit_distance); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_max_edit_distance_wrong_type);
      __PYX_ERR(0, 1764, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1765
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1766
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzyCompletions((<libcpp_string>in_0), (<int32_t>max_edit_distance))
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1765
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":1768
 *             in_0 = in_0.encode('utf-8')
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzyCompletions((<libcpp_string>in_0), (<int32_t>max_edit_distance))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1768, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int32_t(__pyx_v_max_edit_distance); if (unlikely((__pyx_t_8 == ((int32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1768, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->GetFuzzyCompletions(((std::string)__pyx_t_7), ((int32_t)__pyx_t_8));

  /* "_core.pyx":1769
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzyCompletions((<libcpp_string>in_0), (<int32_t>max_edit_distance))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1769, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":1770
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzyCompletions((<libcpp_string>in_0), (<int32_t>max_edit_distance))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":1771
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":1772
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class ReadOnlyIndex:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1761
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetFuzzyCompletions(self,  in_0 ,  max_edit_distance ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzyCompletions(libcpp_utf8_string, int32_t max_edit_distance)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.PrefixCompletion.GetFuzzyCompletions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_16PrefixCompletion_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_16PrefixCompletion_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_12__reduce_cython__(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_16PrefixCompletion_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.PrefixCompletion.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_16PrefixCompletion_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_16PrefixCompletion_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_16PrefixCompletion_14__setstate_cython__(((struct __pyx_obj_5_core_PrefixCompletion *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_16PrefixCompletion_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_PrefixCompletion *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.PrefixCompletion.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1781
 *     cdef shared_ptr[_ReadOnlyIndex] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_13ReadOnlyIndex_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_13ReadOnlyIndex_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_13ReadOnlyIndex___dealloc__(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_13ReadOnlyIndex___dealloc__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1782
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1781
 *     cdef shared_ptr[_ReadOnlyIndex] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1785
 * 
 * 
 *     def _init_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_3_init_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_13ReadOnlyIndex_2_init_0[] = "Cython signature: void ReadOnlyIndex(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_3_init_0(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_2_init_0(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_2_init_0(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  keyvi::index::ReadOnlyIndex *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1787
 *     def _init_0(self,  in_0 ):
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1787, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1788
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1789
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1788
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 */
  }

  /* "_core.pyx":1790
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self,  in_0 , dict params ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1790, __pyx_L1_error)
  try {
    __pyx_t_8 = new keyvi::index::ReadOnlyIndex(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1790, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::index::ReadOnlyIndex> (__pyx_t_8);

  /* "_core.pyx":1785
 * 
 * 
 *     def _init_0(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.ReadOnlyIndex._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1792
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 * 
 *     def _init_1(self,  in_0 , dict params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_13ReadOnlyIndex_4_init_1[] = "Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)";
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_params = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_params,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_params)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_1", 1, 2, 2, 1); __PYX_ERR(0, 1792, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_1") < 0)) __PYX_ERR(0, 1792, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_params = ((PyObject*)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_1", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1792, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_params), (&PyDict_Type), 1, "params", 1))) __PYX_ERR(0, 1792, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_4_init_1(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), __pyx_v_in_0, __pyx_v_params);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_7_init_1_2generator49(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1795
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_73_genexpr(__pyx_ptype_5_core___pyx_scope_struct_73_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1795, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_13ReadOnlyIndex_7_init_1_2generator49, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_7_init_1_2generator49(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1795, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_params)) { __Pyx_RaiseClosureNameError("params"); __PYX_ERR(0, 1795, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1795, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_7_init_1_5generator50(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_74_genexpr(__pyx_ptype_5_core___pyx_scope_struct_74_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1795, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_13ReadOnlyIndex_7_init_1_5generator50, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_7_init_1_5generator50(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1795, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_params)) { __Pyx_RaiseClosureNameError("params"); __PYX_ERR(0, 1795, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1795, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1792
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 * 
 *     def _init_1(self,  in_0 , dict params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_4_init_1(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v1;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::map<std::string,std::string>  *__pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::index::ReadOnlyIndex *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_72__init_1(__pyx_ptype_5_core___pyx_scope_struct_72__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1792, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_params = __pyx_v_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_params);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1794
 *     def _init_1(self,  in_0 , dict params ):
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1794, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1795
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_4 = __pyx_cur_scope->__pyx_v_params;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_2 = PyDict_Check(__pyx_t_4); 
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_4 = __pyx_pf_5_core_13ReadOnlyIndex_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_13ReadOnlyIndex_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1795, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = __pyx_t_3;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_params_wrong_type);
      __PYX_ERR(0, 1795, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1796
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_3 = (__pyx_t_1 != 0);
  if (__pyx_t_3) {

    /* "_core.pyx":1797
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1797, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1797, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1796
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(params, dict) and all(isinstance(k, (bytes, unicode)) for k in params.keys()) and all(isinstance(v, (bytes, unicode)) for v in params.values()), 'arg params wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 */
  }

  /* "_core.pyx":1798
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_7 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1798, __pyx_L1_error)
  }
  __pyx_v_v1 = __pyx_t_7;

  /* "_core.pyx":1799
 *             in_0 = in_0.encode('utf-8')
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_8 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1799, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_params, 1, __pyx_n_s_items, (&__pyx_t_9), (&__pyx_t_10)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4);
  __pyx_t_4 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_4, __pyx_t_9, &__pyx_t_8, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_10);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1799, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "_core.pyx":1800
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_3 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_1 = (__pyx_t_3 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1801
 *         for key, value in params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1801, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_6 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1801, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "_core.pyx":1800
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v1 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1802
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_3 = (__pyx_t_1 != 0);
    if (__pyx_t_3) {

      /* "_core.pyx":1803
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1803, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_6 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1803, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "_core.pyx":1802
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1804
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v1)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1804, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1804, __pyx_L1_error)
    ((*__pyx_v_v1)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "_core.pyx":1807
 * 
 * 
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0), deref(v1)))             # <<<<<<<<<<<<<<
 *         del v1
 * 
 */
  __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1807, __pyx_L1_error)
  try {
    __pyx_t_15 = new keyvi::index::ReadOnlyIndex(((std::string)__pyx_t_13), (*__pyx_v_v1));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1807, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::index::ReadOnlyIndex> (__pyx_t_15);

  /* "_core.pyx":1808
 * 
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0), deref(v1)))
 *         del v1             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v1;

  /* "_core.pyx":1792
 *         self.inst = shared_ptr[_ReadOnlyIndex](new _ReadOnlyIndex((<libcpp_string>in_0)))
 * 
 *     def _init_1(self,  in_0 , dict params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.ReadOnlyIndex._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1810
 *         del v1
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void ReadOnlyIndex(libcpp_utf8_string)
 */

/* Python wrapper */
static int __pyx_pw_5_core_13ReadOnlyIndex_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_13ReadOnlyIndex_6__init__[] = "\n          - Cython signature: void ReadOnlyIndex(libcpp_utf8_string)\n          - Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_13ReadOnlyIndex_6__init__;
#endif
static int __pyx_pw_5_core_13ReadOnlyIndex_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_6__init__(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_8__init___2generator51(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1817
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_76_genexpr(__pyx_ptype_5_core___pyx_scope_struct_76_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1817, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_13ReadOnlyIndex_8__init___2generator51, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1817, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_8__init___2generator51(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1817, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1817, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1817, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_8__init___5generator52(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_77_genexpr(__pyx_ptype_5_core___pyx_scope_struct_77_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1817, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_13ReadOnlyIndex_8__init___5generator52, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1817, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_13ReadOnlyIndex_8__init___5generator52(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1817, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1817, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1817, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 1), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1810
 *         del v1
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void ReadOnlyIndex(libcpp_utf8_string)
 */

static int __pyx_pf_5_core_13ReadOnlyIndex_6__init__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_75___init__(__pyx_ptype_5_core___pyx_scope_struct_75___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1810, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1815
 *           - Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 */
  __pyx_t_2 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1815, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1815, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = ((__pyx_t_3 == 1) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_5 = PyBytes_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_4 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_2); 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = (__pyx_t_6 != 0);
  __pyx_t_4 = __pyx_t_5;
  __pyx_L6_bool_binop_done:;
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_1 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "_core.pyx":1816
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 *              self._init_1(*args)
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "_core.pyx":1815
 *           - Cython signature: void ReadOnlyIndex(libcpp_utf8_string, libcpp_map[libcpp_utf8_string,libcpp_utf8_string] params)
 * """
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1817
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_7 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_7);
  if (unlikely(__pyx_t_7 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1817, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_t_7); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = ((__pyx_t_3 == 2) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = PyBytes_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = (__pyx_t_4 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_6 = PyUnicode_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_4 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_4;
  __pyx_L11_bool_binop_done:;
  __pyx_t_4 = (__pyx_t_5 != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 1);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = PyDict_Check(__pyx_t_7); 
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = __pyx_pf_5_core_13ReadOnlyIndex_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_2 = __pyx_pf_5_core_13ReadOnlyIndex_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_1 = __pyx_t_5;
  __pyx_L8_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "_core.pyx":1818
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "_core.pyx":1817
 *         if (len(args)==1) and (isinstance(args[0], (bytes, unicode))):
 *              self._init_0(*args)
 *         elif (len(args)==2) and (isinstance(args[0], (bytes, unicode))) and (isinstance(args[1], dict) and all(isinstance(k, (bytes, unicode)) for k in args[1].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[1].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1820
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1820, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1820, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1820, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1820, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1810
 *         del v1
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void ReadOnlyIndex(libcpp_utf8_string)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1822
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_9GetFuzzy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_13ReadOnlyIndex_8GetFuzzy[] = "Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)";
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_9GetFuzzy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_max_edit_distance = 0;
  PyObject *__pyx_v_minimum_exact_prefix = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("GetFuzzy (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_max_edit_distance,&__pyx_n_s_minimum_exact_prefix,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_edit_distance)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 3, 3, 1); __PYX_ERR(0, 1822, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_minimum_exact_prefix)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 3, 3, 2); __PYX_ERR(0, 1822, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "GetFuzzy") < 0)) __PYX_ERR(0, 1822, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_max_edit_distance = values[1];
    __pyx_v_minimum_exact_prefix = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("GetFuzzy", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1822, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex.GetFuzzy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_8GetFuzzy(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), __pyx_v_in_0, __pyx_v_max_edit_distance, __pyx_v_minimum_exact_prefix);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_8GetFuzzy(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_max_edit_distance, PyObject *__pyx_v_minimum_exact_prefix) {
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_v__r;
  struct __pyx_obj_5_core_MatchIterator *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int32_t __pyx_t_8;
  size_t __pyx_t_9;
  keyvi::dictionary::MatchIterator::MatchIteratorPair __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("GetFuzzy", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1824
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1824, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1825
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_max_edit_distance); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_max_edit_distance); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_max_edit_distance_wrong_type);
      __PYX_ERR(0, 1825, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1826
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_minimum_exact_prefix); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_minimum_exact_prefix); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L7_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_minimum_exact_prefix_wrong_t);
      __PYX_ERR(0, 1826, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1827
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1828
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1827
 *         assert isinstance(max_edit_distance, (int, long)), 'arg max_edit_distance wrong type'
 *         assert isinstance(minimum_exact_prefix, (int, long)), 'arg minimum_exact_prefix wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":1831
 * 
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance), (<size_t>minimum_exact_prefix))             # <<<<<<<<<<<<<<
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1831, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyInt_As_int32_t(__pyx_v_max_edit_distance); if (unlikely((__pyx_t_8 == ((int32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1831, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_size_t(__pyx_v_minimum_exact_prefix); if (unlikely((__pyx_t_9 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1831, __pyx_L1_error)
  try {
    __pyx_t_10 = __pyx_v_self->inst.get()->GetFuzzy(((std::string)__pyx_t_7), ((int32_t)__pyx_t_8), ((size_t)__pyx_t_9));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1831, __pyx_L1_error)
  }
  __pyx_v__r = __pyx_t_10;

  /* "_core.pyx":1832
 * 
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance), (<size_t>minimum_exact_prefix))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)             # <<<<<<<<<<<<<<
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 */
  __pyx_t_4 = ((PyObject *)__pyx_tp_new_5_core_MatchIterator(((PyTypeObject *)__pyx_ptype_5_core_MatchIterator), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1832, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_MatchIterator *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "_core.pyx":1833
 *         cdef _MatchIteratorPair _r = self.inst.get().GetFuzzy((<libcpp_string>in_0), (<int32_t>max_edit_distance), (<size_t>minimum_exact_prefix))
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()             # <<<<<<<<<<<<<<
 *         py_result.end = _r.end()
 *         return py_result
 */
  __pyx_v_py_result->it = __pyx_v__r.begin();

  /* "_core.pyx":1834
 *         cdef MatchIterator py_result = MatchIterator.__new__(MatchIterator)
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->end = __pyx_v__r.end();

  /* "_core.pyx":1835
 *         py_result.it = _r.begin()
 *         py_result.end = _r.end()
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Get (self, key, default = None):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1822
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def GetFuzzy(self,  in_0 ,  max_edit_distance ,  minimum_exact_prefix ):             # <<<<<<<<<<<<<<
 *         """Cython signature: _MatchIteratorPair GetFuzzy(libcpp_utf8_string, int32_t max_edit_distance, size_t minimum_exact_prefix)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.GetFuzzy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1837
 *         return py_result
 * 
 *     def Get (self, key, default = None):             # <<<<<<<<<<<<<<
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_11Get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_13ReadOnlyIndex_10Get[] = "Return the value for key if key is in the dictionary, else default.";
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_11Get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_default = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Get (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_default,0};
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_default);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Get") < 0)) __PYX_ERR(0, 1837, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_key = values[0];
    __pyx_v_default = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1837, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.ReadOnlyIndex.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_10Get(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), __pyx_v_key, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_10Get(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_default) {
  std::shared_ptr<keyvi::dictionary::Match>  __pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Get", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":1839
 *     def Get (self, key, default = None):
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1840
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1840, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1840, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":1839
 *     def Get (self, key, default = None):
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
  }

  /* "_core.pyx":1841
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1841, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1843
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))             # <<<<<<<<<<<<<<
 * 
 *         if _r.get().IsEmpty():
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1843, __pyx_L1_error)
  __pyx_v__r = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match(((*__pyx_v_self->inst.get())[((std::string)__pyx_t_6)])));

  /* "_core.pyx":1845
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 */
  __pyx_t_2 = (__pyx_v__r.get()->IsEmpty() != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1846
 * 
 *         if _r.get().IsEmpty():
 *             return default             # <<<<<<<<<<<<<<
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_default);
    __pyx_r = __pyx_v_default;
    goto __pyx_L0;

    /* "_core.pyx":1845
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 */
  }

  /* "_core.pyx":1847
 *         if _r.get().IsEmpty():
 *             return default
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = _r
 *         return py_result
 */
  __pyx_t_3 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1847, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_core.pyx":1848
 *             return default
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->inst = __pyx_v__r;

  /* "_core.pyx":1849
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, key):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1837
 *         return py_result
 * 
 *     def Get (self, key, default = None):             # <<<<<<<<<<<<<<
 *         """Return the value for key if key is in the dictionary, else default."""
 *         if isinstance(key, unicode):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1851
 *         return py_result
 * 
 *     def __contains__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static int __pyx_pw_5_core_13ReadOnlyIndex_13__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static int __pyx_pw_5_core_13ReadOnlyIndex_13__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_12__contains__(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_13ReadOnlyIndex_12__contains__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":1852
 * 
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1853
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":1852
 * 
 *     def __contains__(self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":1855
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         return self.inst.get().Contains(key)
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1855, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1857
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         return self.inst.get().Contains(key)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__ (self, key):
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1857, __pyx_L1_error)
  __pyx_r = __pyx_v_self->inst.get()->Contains(__pyx_t_6);
  goto __pyx_L0;

  /* "_core.pyx":1851
 *         return py_result
 * 
 *     def __contains__(self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1859
 *         return self.inst.get().Contains(key)
 * 
 *     def __getitem__ (self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_15__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_15__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_14__getitem__(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_14__getitem__(struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, PyObject *__pyx_v_key) {
  std::shared_ptr<keyvi::dictionary::Match>  __pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  std::string __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);
  __Pyx_INCREF(__pyx_v_key);

  /* "_core.pyx":1860
 * 
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1861
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "_core.pyx":1860
 * 
 *     def __getitem__ (self, key):
 *         if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *             key = key.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":1863
 *             key = key.encode('utf-8')
 * 
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_key); 
    if (unlikely(!(__pyx_t_2 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1863, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1865
 *         assert isinstance(key, bytes), 'arg in_0 wrong type'
 * 
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))             # <<<<<<<<<<<<<<
 * 
 *         if _r.get().IsEmpty():
 */
  __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1865, __pyx_L1_error)
  __pyx_v__r = std::shared_ptr<keyvi::dictionary::Match> (new keyvi::dictionary::Match(((*__pyx_v_self->inst.get())[((std::string)__pyx_t_6)])));

  /* "_core.pyx":1867
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 */
  __pyx_t_2 = (__pyx_v__r.get()->IsEmpty() != 0);
  if (unlikely(__pyx_t_2)) {

    /* "_core.pyx":1868
 * 
 *         if _r.get().IsEmpty():
 *             raise KeyError(key)             # <<<<<<<<<<<<<<
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 */
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_KeyError, __pyx_v_key); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1868, __pyx_L1_error)

    /* "_core.pyx":1867
 *         cdef shared_ptr[_Match] _r = shared_ptr[_Match](new _Match(deref(self.inst.get())[(<libcpp_string>key)]))
 * 
 *         if _r.get().IsEmpty():             # <<<<<<<<<<<<<<
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 */
  }

  /* "_core.pyx":1869
 *         if _r.get().IsEmpty():
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = _r
 *         return py_result
 */
  __pyx_t_3 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_core.pyx":1870
 *             raise KeyError(key)
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result->inst = __pyx_v__r;

  /* "_core.pyx":1871
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = _r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class StringDictionaryCompiler:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":1859
 *         return self.inst.get().Contains(key)
 * 
 *     def __getitem__ (self, key):             # <<<<<<<<<<<<<<
 *         if isinstance(key, unicode):
 *             key = key.encode('utf-8')
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_17__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_17__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_16__reduce_cython__(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_19__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_13ReadOnlyIndex_19__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13ReadOnlyIndex_18__setstate_cython__(((struct __pyx_obj_5_core_ReadOnlyIndex *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13ReadOnlyIndex_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_ReadOnlyIndex *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.ReadOnlyIndex.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1880
 *     cdef shared_ptr[_StringDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_24StringDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_24StringDictionaryCompiler_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_24StringDictionaryCompiler___dealloc__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_24StringDictionaryCompiler___dealloc__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1881
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1880
 *     cdef shared_ptr[_StringDictionaryCompiler] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1884
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryCompiler()"""
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_24StringDictionaryCompiler_2_init_0[] = "Cython signature: void StringDictionaryCompiler()";
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_2_init_0(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_2_init_0(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::StringDictionaryCompiler *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1886
 *     def _init_0(self):
 *         """Cython signature: void StringDictionaryCompiler()"""
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::StringDictionaryCompiler();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1886, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::StringDictionaryCompiler> (__pyx_t_1);

  /* "_core.pyx":1884
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryCompiler()"""
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1888
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_24StringDictionaryCompiler_4_init_1[] = "Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1888, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_4_init_1(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_7_init_1_2generator53(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1890
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_79_genexpr(__pyx_ptype_5_core___pyx_scope_struct_79_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1890, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_24StringDictionaryCompiler_7_init_1_2generator53, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_7_init_1_2generator53(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1890, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1890, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1890, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_7_init_1_5generator54(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_80_genexpr(__pyx_ptype_5_core___pyx_scope_struct_80_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1890, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_24StringDictionaryCompiler_7_init_1_5generator54, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_7_init_1_5generator54(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1890, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1890, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1890, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1888
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_4_init_1(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::StringDictionaryCompiler *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_78__init_1(__pyx_ptype_5_core___pyx_scope_struct_78__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1888, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1890
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_24StringDictionaryCompiler_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_24StringDictionaryCompiler_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1890, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1890, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1891
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1891, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1892
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1892, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1892, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1892, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1893
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1894
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1894, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1894, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1893
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1895
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1896
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1896, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1896, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1895
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1897
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1897, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1897, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1900
 * 
 * 
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::StringDictionaryCompiler((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1900, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::StringDictionaryCompiler> (__pyx_t_15);

  /* "_core.pyx":1901
 * 
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1888
 *         self.inst = shared_ptr[_StringDictionaryCompiler](new _StringDictionaryCompiler())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1903
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryCompiler()
 */

/* Python wrapper */
static int __pyx_pw_5_core_24StringDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_24StringDictionaryCompiler_6__init__[] = "\n          - Cython signature: void StringDictionaryCompiler()\n          - Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_24StringDictionaryCompiler_6__init__;
#endif
static int __pyx_pw_5_core_24StringDictionaryCompiler_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_6__init__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_8__init___2generator55(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1910
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_82_genexpr(__pyx_ptype_5_core___pyx_scope_struct_82_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1910, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_24StringDictionaryCompiler_8__init___2generator55, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1910, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_8__init___2generator55(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1910, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1910, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1910, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1910, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_8__init___5generator56(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_83_genexpr(__pyx_ptype_5_core___pyx_scope_struct_83_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1910, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_24StringDictionaryCompiler_8__init___5generator56, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1910, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_24StringDictionaryCompiler_8__init___5generator56(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1910, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1910, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1910, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1910, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1903
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryCompiler()
 */

static int __pyx_pf_5_core_24StringDictionaryCompiler_6__init__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_81___init__(__pyx_ptype_5_core___pyx_scope_struct_81___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1903, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1908
 *           - Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1909
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1909, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1909, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1908
 *           - Cython signature: void StringDictionaryCompiler(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1910
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1910, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_24StringDictionaryCompiler_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_24StringDictionaryCompiler_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1910, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1911
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1910
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1913
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ,  in_1 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1913, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1913, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1913, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 1913, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1903
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryCompiler()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1915
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_24StringDictionaryCompiler_8Add[] = "Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_9Add(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_in_0 = 0;
  PyObject *__pyx_v_in_1 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_in_0,&__pyx_n_s_in_1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in_1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, 1); __PYX_ERR(0, 1915, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Add") < 0)) __PYX_ERR(0, 1915, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_in_0 = values[0];
    __pyx_v_in_1 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Add", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1915, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_8Add(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), __pyx_v_in_0, __pyx_v_in_1);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_8Add(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0, PyObject *__pyx_v_in_1) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  std::string __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);
  __Pyx_INCREF(__pyx_v_in_1);

  /* "_core.pyx":1917
 *     def Add(self,  in_0 ,  in_1 ):
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1917, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1918
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_1); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_1); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_1_wrong_type);
      __PYX_ERR(0, 1918, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1919
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1920
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1919
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         assert isinstance(in_1, (bytes, unicode)), 'arg in_1 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 */
  }

  /* "_core.pyx":1921
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):             # <<<<<<<<<<<<<<
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 */
  __pyx_t_2 = PyUnicode_Check(__pyx_v_in_1); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "_core.pyx":1922
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_1, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_1, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1921
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         if isinstance(in_1, unicode):             # <<<<<<<<<<<<<<
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 */
  }

  /* "_core.pyx":1923
 *         if isinstance(in_1, unicode):
 *             in_1 = in_1.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1923, __pyx_L1_error)
  __pyx_t_8 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1923, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7), ((std::string)__pyx_t_8));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1923, __pyx_L1_error)
  }

  /* "_core.pyx":1915
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string, libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XDECREF(__pyx_v_in_1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1925
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_24StringDictionaryCompiler_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_10SetManifest(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_10SetManifest(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1927
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1927, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1928
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1929
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1928
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1930
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1930, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1930, __pyx_L1_error)
  }

  /* "_core.pyx":1925
 *         self.inst.get().Add((<libcpp_string>in_0), (<libcpp_string>in_1))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1932
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_24StringDictionaryCompiler_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_12WriteToFile(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_12WriteToFile(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":1934
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 1934, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1935
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1936
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":1935
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":1937
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def __enter__(self):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1937, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1937, __pyx_L1_error)
  }

  /* "_core.pyx":1932
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1939
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_15__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_14__enter__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_14__enter__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__enter__", 0);

  /* "_core.pyx":1940
 * 
 *     def __enter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":1939
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 *     def __enter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1943
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

/* Python wrapper */
static int __pyx_pw_5_core_24StringDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_5_core_24StringDictionaryCompiler_17__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_16__setitem__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_24StringDictionaryCompiler_16__setitem__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "_core.pyx":1944
 * 
 *     def __setitem__(self, key, value):
 *         self.Add(key, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Add); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1944, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_key, __pyx_v_value};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1944, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_key);
    __Pyx_GIVEREF(__pyx_v_key);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_key);
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_value);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1943
 * 
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         self.Add(key, value)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1947
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_19__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  CYTHON_UNUSED PyObject *__pyx_v_value = 0;
  CYTHON_UNUSED PyObject *__pyx_v_traceback = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_traceback,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 1947, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 1947, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 1947, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_type = values[0];
    __pyx_v_value = values[1];
    __pyx_v_traceback = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1947, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_18__exit__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), __pyx_v_type, __pyx_v_value, __pyx_v_traceback);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_18__exit__(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_type, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__exit__", 0);

  /* "_core.pyx":1948
 * 
 *     def __exit__(self, type, value, traceback):
 *         self.Compile()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_Compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1947
 * 
 * 
 *     def __exit__(self, type, value, traceback):             # <<<<<<<<<<<<<<
 *         self.Compile()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1951
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_21Compile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Compile (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "Compile", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_20Compile(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), __pyx_v_args);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_20Compile(struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, PyObject *__pyx_v_args) {
  void *__pyx_v_callback;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("Compile", 0);

  /* "_core.pyx":1952
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1953
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
    {
        #ifdef WITH_THREAD
        PyThreadState *_save;
        Py_UNBLOCK_THREADS
        __Pyx_FastGIL_Remember();
        #endif
        /*try:*/ {

          /* "_core.pyx":1954
 *         if not args:
 *             with nogil:
 *                 self.inst.get().Compile()             # <<<<<<<<<<<<<<
 *             return
 * 
 */
          __pyx_v_self->inst.get()->Compile();
        }

        /* "_core.pyx":1953
 *     def Compile(self, *args):
 *         if not args:
 *             with nogil:             # <<<<<<<<<<<<<<
 *                 self.inst.get().Compile()
 *             return
 */
        /*finally:*/ {
          /*normal exit:*/{
            #ifdef WITH_THREAD
            __Pyx_FastGIL_Forget();
            Py_BLOCK_THREADS
            #endif
            goto __pyx_L6;
          }
          __pyx_L6:;
        }
    }

    /* "_core.pyx":1955
 *             with nogil:
 *                 self.inst.get().Compile()
 *             return             # <<<<<<<<<<<<<<
 * 
 *         cdef void* callback = <void*> args[0]
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "_core.pyx":1952
 * 
 *     def Compile(self, *args):
 *         if not args:             # <<<<<<<<<<<<<<
 *             with nogil:
 *                 self.inst.get().Compile()
 */
  }

  /* "_core.pyx":1957
 *             return
 * 
 *         cdef void* callback = <void*> args[0]             # <<<<<<<<<<<<<<
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)
 */
  __pyx_v_callback = ((void *)PyTuple_GET_ITEM(__pyx_v_args, 0));

  /* "_core.pyx":1958
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "_core.pyx":1959
 *         cdef void* callback = <void*> args[0]
 *         with nogil:
 *             self.inst.get().Compile(callback_wrapper, callback)             # <<<<<<<<<<<<<<
 * 
 * cdef class StringDictionaryMerger:
 */
        __pyx_v_self->inst.get()->Compile(__pyx_f_5_core_callback_wrapper, __pyx_v_callback);
      }

      /* "_core.pyx":1958
 * 
 *         cdef void* callback = <void*> args[0]
 *         with nogil:             # <<<<<<<<<<<<<<
 *             self.inst.get().Compile(callback_wrapper, callback)
 * 
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L9;
        }
        __pyx_L9:;
      }
  }

  /* "_core.pyx":1951
 * 
 * 
 *     def Compile(self, *args):             # <<<<<<<<<<<<<<
 *         if not args:
 *             with nogil:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_22__reduce_cython__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_24StringDictionaryCompiler_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_24StringDictionaryCompiler_24__setstate_cython__(((struct __pyx_obj_5_core_StringDictionaryCompiler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_24StringDictionaryCompiler_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryCompiler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringDictionaryCompiler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1968
 *     cdef shared_ptr[_StringDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_22StringDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_22StringDictionaryMerger_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_22StringDictionaryMerger___dealloc__(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_22StringDictionaryMerger___dealloc__(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":1969
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":1968
 *     cdef shared_ptr[_StringDictionaryMerger] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":1972
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryMerger()"""
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_22StringDictionaryMerger_2_init_0[] = "Cython signature: void StringDictionaryMerger()";
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_2_init_0(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_2_init_0(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::dictionary::StringDictionaryMerger *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":1974
 *     def _init_0(self):
 *         """Cython signature: void StringDictionaryMerger()"""
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::dictionary::StringDictionaryMerger();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1974, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::StringDictionaryMerger> (__pyx_t_1);

  /* "_core.pyx":1972
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryMerger()"""
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryMerger._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1976
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_22StringDictionaryMerger_4_init_1[] = "Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 1976, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_4_init_1(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_7_init_1_2generator57(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1978
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_85_genexpr(__pyx_ptype_5_core___pyx_scope_struct_85_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1978, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22StringDictionaryMerger_7_init_1_2generator57, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_7_init_1_2generator57(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1978, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1978, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1978, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_7_init_1_5generator58(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_86_genexpr(__pyx_ptype_5_core___pyx_scope_struct_86_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1978, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22StringDictionaryMerger_7_init_1_5generator58, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryMerger._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_7_init_1_5generator58(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1978, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 1978, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1978, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1976
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_4_init_1(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::dictionary::StringDictionaryMerger *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_84__init_1(__pyx_ptype_5_core___pyx_scope_struct_84__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1976, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":1978
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_22StringDictionaryMerger_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_22StringDictionaryMerger_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1978, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 1978, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":1979
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1979, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":1980
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1980, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 1980, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":1981
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":1982
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1982, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1982, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1981
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":1983
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":1984
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1984, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1984, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":1983
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":1985
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1985, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1985, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1988
 * 
 * 
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::dictionary::StringDictionaryMerger((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 1988, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::dictionary::StringDictionaryMerger> (__pyx_t_15);

  /* "_core.pyx":1989
 * 
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":1976
 *         self.inst = shared_ptr[_StringDictionaryMerger](new _StringDictionaryMerger())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.StringDictionaryMerger._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1991
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryMerger()
 */

/* Python wrapper */
static int __pyx_pw_5_core_22StringDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_22StringDictionaryMerger_6__init__[] = "\n          - Cython signature: void StringDictionaryMerger()\n          - Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_22StringDictionaryMerger_6__init__;
#endif
static int __pyx_pw_5_core_22StringDictionaryMerger_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_6__init__(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_8__init___2generator59(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":1998
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_88_genexpr(__pyx_ptype_5_core___pyx_scope_struct_88_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1998, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22StringDictionaryMerger_8__init___2generator59, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1998, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_8__init___2generator59(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1998, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1998, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 1998, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_8__init___5generator60(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_89_genexpr(__pyx_ptype_5_core___pyx_scope_struct_89_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1998, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_22StringDictionaryMerger_8__init___5generator60, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 1998, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringDictionaryMerger.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_22StringDictionaryMerger_8__init___5generator60(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 1998, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 1998, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1998, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 1998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":1991
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryMerger()
 */

static int __pyx_pf_5_core_22StringDictionaryMerger_6__init__(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_87___init__(__pyx_ptype_5_core___pyx_scope_struct_87___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1991, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":1996
 *           - Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":1997
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":1996
 *           - Cython signature: void StringDictionaryMerger(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":1998
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1998, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_22StringDictionaryMerger_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_22StringDictionaryMerger_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":1999
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1999, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1999, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":1998
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":2001
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def Add(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 2001, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":1991
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringDictionaryMerger()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.StringDictionaryMerger.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2003
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_22StringDictionaryMerger_8Add[] = "Cython signature: void Add(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_9Add(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Add (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_8Add(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_8Add(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Add", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":2005
 *     def Add(self,  in_0 ):
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 2005, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2006
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2007
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2007, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2007, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2006
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":2008
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Add((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2008, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->Add(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2008, __pyx_L1_error)
  }

  /* "_core.pyx":2003
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def Add(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Add(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringDictionaryMerger.Add", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2010
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_22StringDictionaryMerger_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_10SetManifest(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_10SetManifest(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":2012
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 2012, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2013
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2014
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2013
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":2015
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def Merge(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2015, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2015, __pyx_L1_error)
  }

  /* "_core.pyx":2010
 *         self.inst.get().Add((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringDictionaryMerger.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2017
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_22StringDictionaryMerger_12Merge[] = "Cython signature: void Merge(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_13Merge(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Merge (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_12Merge(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_12Merge(struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Merge", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":2019
 *     def Merge(self,  in_0 ):
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 2019, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2020
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2021
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().Merge((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2020
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":2022
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().Merge((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class StringVector:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2022, __pyx_L1_error)
  __pyx_v_self->inst.get()->Merge(((std::string)__pyx_t_7));

  /* "_core.pyx":2017
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def Merge(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void Merge(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringDictionaryMerger.Merge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_14__reduce_cython__(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringDictionaryMerger.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_22StringDictionaryMerger_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22StringDictionaryMerger_16__setstate_cython__(((struct __pyx_obj_5_core_StringDictionaryMerger *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22StringDictionaryMerger_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringDictionaryMerger *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringDictionaryMerger.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2031
 *     cdef shared_ptr[_StringVector] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_12StringVector_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_12StringVector_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_12StringVector___dealloc__(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_12StringVector___dealloc__(struct __pyx_obj_5_core_StringVector *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":2032
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":2031
 *     cdef shared_ptr[_StringVector] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":2035
 * 
 * 
 *     def __init__(self,  filename ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

/* Python wrapper */
static int __pyx_pw_5_core_12StringVector_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_12StringVector_2__init__[] = "Cython signature: void StringVector(libcpp_utf8_output_string filename)";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_12StringVector_2__init__;
#endif
static int __pyx_pw_5_core_12StringVector_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_filename = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_filename,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2035, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_filename = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2035, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.StringVector.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_12StringVector_2__init__(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self), __pyx_v_filename);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_core_12StringVector_2__init__(struct __pyx_obj_5_core_StringVector *__pyx_v_self, PyObject *__pyx_v_filename) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  keyvi::vector::StringVector *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_filename);

  /* "_core.pyx":2037
 *     def __init__(self,  filename ):
 *         """Cython signature: void StringVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_filename); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_filename); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_filename_wrong_type);
      __PYX_ERR(0, 2037, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2038
 *         """Cython signature: void StringVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_StringVector](new _StringVector((<libcpp_string>filename)))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_filename); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2039
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst = shared_ptr[_StringVector](new _StringVector((<libcpp_string>filename)))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_filename, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2038
 *         """Cython signature: void StringVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 *         if isinstance(filename, unicode):             # <<<<<<<<<<<<<<
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_StringVector](new _StringVector((<libcpp_string>filename)))
 */
  }

  /* "_core.pyx":2040
 *         if isinstance(filename, unicode):
 *             filename = filename.encode('utf-8')
 *         self.inst = shared_ptr[_StringVector](new _StringVector((<libcpp_string>filename)))             # <<<<<<<<<<<<<<
 * 
 *     def Get(self,  index ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_filename); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2040, __pyx_L1_error)
  try {
    __pyx_t_8 = new keyvi::vector::StringVector(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2040, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::vector::StringVector> (__pyx_t_8);

  /* "_core.pyx":2035
 * 
 * 
 *     def __init__(self,  filename ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVector(libcpp_utf8_output_string filename)"""
 *         assert isinstance(filename, (bytes, unicode)), 'arg filename wrong type'
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringVector.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_filename);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2042
 *         self.inst = shared_ptr[_StringVector](new _StringVector((<libcpp_string>filename)))
 * 
 *     def Get(self,  index ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string Get(size_t index)"""
 *         assert isinstance(index, (int, long)), 'arg index wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12StringVector_5Get(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static char __pyx_doc_5_core_12StringVector_4Get[] = "Cython signature: libcpp_utf8_output_string Get(size_t index)";
static PyObject *__pyx_pw_5_core_12StringVector_5Get(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Get (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12StringVector_4Get(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12StringVector_4Get(struct __pyx_obj_5_core_StringVector *__pyx_v_self, PyObject *__pyx_v_index) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Get", 0);

  /* "_core.pyx":2044
 *     def Get(self,  index ):
 *         """Cython signature: libcpp_utf8_output_string Get(size_t index)"""
 *         assert isinstance(index, (int, long)), 'arg index wrong type'             # <<<<<<<<<<<<<<
 * 
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Get((<size_t>index))
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyInt_Check(__pyx_v_index); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyLong_Check(__pyx_v_index); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_index_wrong_type);
      __PYX_ERR(0, 2044, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2046
 *         assert isinstance(index, (int, long)), 'arg index wrong type'
 * 
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Get((<size_t>index))             # <<<<<<<<<<<<<<
 *         py_result = _r.decode('utf-8')
 *         return py_result
 */
  __pyx_t_4 = __Pyx_PyInt_As_size_t(__pyx_v_index); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2046, __pyx_L1_error)
  __pyx_v__r = __pyx_v_self->inst.get()->Get(((size_t)__pyx_t_4));

  /* "_core.pyx":2047
 * 
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Get((<size_t>index))
 *         py_result = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_5 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v_py_result = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "_core.pyx":2048
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Get((<size_t>index))
 *         py_result = _r.decode('utf-8')
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Size(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":2042
 *         self.inst = shared_ptr[_StringVector](new _StringVector((<libcpp_string>filename)))
 * 
 *     def Get(self,  index ):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string Get(size_t index)"""
 *         assert isinstance(index, (int, long)), 'arg index wrong type'
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.StringVector.Get", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2050
 *         return py_result
 * 
 *     def Size(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12StringVector_7Size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_12StringVector_6Size[] = "Cython signature: size_t Size()";
static PyObject *__pyx_pw_5_core_12StringVector_7Size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Size (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12StringVector_6Size(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12StringVector_6Size(struct __pyx_obj_5_core_StringVector *__pyx_v_self) {
  size_t __pyx_v__r;
  size_t __pyx_v_py_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Size", 0);

  /* "_core.pyx":2052
 *     def Size(self):
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()             # <<<<<<<<<<<<<<
 *         py_result = <size_t>_r
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->Size();

  /* "_core.pyx":2053
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()
 *         py_result = <size_t>_r             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_v_py_result = ((size_t)__pyx_v__r);

  /* "_core.pyx":2054
 *         cdef size_t _r = self.inst.get().Size()
 *         py_result = <size_t>_r
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 *     def Manifest(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_py_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "_core.pyx":2050
 *         return py_result
 * 
 *     def Size(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: size_t Size()"""
 *         cdef size_t _r = self.inst.get().Size()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringVector.Size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2056
 *         return py_result
 * 
 *     def Manifest(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12StringVector_9Manifest(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_12StringVector_8Manifest[] = "Cython signature: libcpp_utf8_output_string Manifest()";
static PyObject *__pyx_pw_5_core_12StringVector_9Manifest(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Manifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12StringVector_8Manifest(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12StringVector_8Manifest(struct __pyx_obj_5_core_StringVector *__pyx_v_self) {
  std::string __pyx_v__r;
  PyObject *__pyx_v_py_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Manifest", 0);

  /* "_core.pyx":2058
 *     def Manifest(self):
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()             # <<<<<<<<<<<<<<
 *         py_result = _r.decode('utf-8')
 *         return py_result
 */
  __pyx_v__r = __pyx_v_self->inst.get()->Manifest();

  /* "_core.pyx":2059
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 *         py_result = _r.decode('utf-8')             # <<<<<<<<<<<<<<
 *         return py_result
 * 
 */
  __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v__r, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_py_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":2060
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 *         py_result = _r.decode('utf-8')
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * cdef class StringVectorGenerator:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_result);
  __pyx_r = __pyx_v_py_result;
  goto __pyx_L0;

  /* "_core.pyx":2056
 *         return py_result
 * 
 *     def Manifest(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: libcpp_utf8_output_string Manifest()"""
 *         cdef libcpp_utf8_output_string _r = self.inst.get().Manifest()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringVector.Manifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12StringVector_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_12StringVector_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12StringVector_10__reduce_cython__(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12StringVector_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVector *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringVector.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_12StringVector_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_12StringVector_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_12StringVector_12__setstate_cython__(((struct __pyx_obj_5_core_StringVector *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_12StringVector_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVector *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringVector.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2069
 *     cdef shared_ptr[_StringVectorGenerator] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

/* Python wrapper */
static void __pyx_pw_5_core_21StringVectorGenerator_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_core_21StringVectorGenerator_1__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_core_21StringVectorGenerator___dealloc__(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_core_21StringVectorGenerator___dealloc__(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_core.pyx":2070
 * 
 *     def __dealloc__(self):
 *          self.inst.reset()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->inst.reset();

  /* "_core.pyx":2069
 *     cdef shared_ptr[_StringVectorGenerator] inst
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *          self.inst.reset()
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_core.pyx":2073
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVectorGenerator()"""
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_5_core_21StringVectorGenerator_2_init_0[] = "Cython signature: void StringVectorGenerator()";
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_3_init_0(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_0 (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_2_init_0(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_2_init_0(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  keyvi::vector::StringVectorGenerator *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_0", 0);

  /* "_core.pyx":2075
 *     def _init_0(self):
 *         """Cython signature: void StringVectorGenerator()"""
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())             # <<<<<<<<<<<<<<
 * 
 *     def _init_1(self, dict value_store_params ):
 */
  try {
    __pyx_t_1 = new keyvi::vector::StringVectorGenerator();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2075, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::vector::StringVectorGenerator> (__pyx_t_1);

  /* "_core.pyx":2073
 * 
 * 
 *     def _init_0(self):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVectorGenerator()"""
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringVectorGenerator._init_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2077
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params); /*proto*/
static char __pyx_doc_5_core_21StringVectorGenerator_4_init_1[] = "Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)";
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_5_init_1(PyObject *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_1 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value_store_params), (&PyDict_Type), 1, "value_store_params", 1))) __PYX_ERR(0, 2077, __pyx_L1_error)
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_4_init_1(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self), ((PyObject*)__pyx_v_value_store_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21StringVectorGenerator_7_init_1_2generator61(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":2079
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_7_init_1_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_91_genexpr(__pyx_ptype_5_core___pyx_scope_struct_91_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2079, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21StringVectorGenerator_7_init_1_2generator61, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringVectorGenerator._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21StringVectorGenerator_7_init_1_2generator61(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 2079, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 2079, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21StringVectorGenerator_7_init_1_5generator62(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_7_init_1_3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_92_genexpr(__pyx_ptype_5_core___pyx_scope_struct_92_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2079, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21StringVectorGenerator_7_init_1_5generator62, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init_1_locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringVectorGenerator._init_1.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21StringVectorGenerator_7_init_1_5generator62(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params)) { __Pyx_RaiseClosureNameError("value_store_params"); __PYX_ERR(0, 2079, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 2079, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_value_store_params, 1, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2077
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_4_init_1(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_value_store_params) {
  struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *__pyx_cur_scope;
  std::map<std::string,std::string>  *__pyx_v_v0;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  std::map<std::string,std::string>  *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  std::string __pyx_t_13;
  std::string __pyx_t_14;
  keyvi::vector::StringVectorGenerator *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_init_1", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *)__pyx_tp_new_5_core___pyx_scope_struct_90__init_1(__pyx_ptype_5_core___pyx_scope_struct_90__init_1, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2077, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_value_store_params = __pyx_v_value_store_params;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_value_store_params);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_value_store_params);

  /* "_core.pyx":2079
 *     def _init_1(self, dict value_store_params ):
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'             # <<<<<<<<<<<<<<
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = __pyx_cur_scope->__pyx_v_value_store_params;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = PyDict_Check(__pyx_t_2); 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_2 = __pyx_pf_5_core_21StringVectorGenerator_7_init_1_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __pyx_pf_5_core_21StringVectorGenerator_7_init_1_3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_4;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!__pyx_t_1)) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_value_store_params_wrong_typ);
      __PYX_ERR(0, 2079, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2080
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()             # <<<<<<<<<<<<<<
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 */
  try {
    __pyx_t_6 = new std::map<std::string,std::string> ();
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2080, __pyx_L1_error)
  }
  __pyx_v_v0 = __pyx_t_6;

  /* "_core.pyx":2081
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():             # <<<<<<<<<<<<<<
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 */
  __pyx_t_7 = 0;
  if (unlikely(__pyx_cur_scope->__pyx_v_value_store_params == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2081, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_v_value_store_params, 1, __pyx_n_s_items, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_8, &__pyx_t_7, &__pyx_t_5, &__pyx_t_10, NULL, __pyx_t_9);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 2081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "_core.pyx":2082
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    __pyx_t_1 = PyUnicode_Check(__pyx_v_key); 
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "_core.pyx":2083
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')             # <<<<<<<<<<<<<<
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_key, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":2082
 *         cdef libcpp_map[libcpp_utf8_string, libcpp_utf8_string] * v0 = new libcpp_map[libcpp_utf8_string, libcpp_utf8_string]()
 *         for key, value in value_store_params.items():
 *             if isinstance(key, unicode):             # <<<<<<<<<<<<<<
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 */
    }

    /* "_core.pyx":2084
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
    __pyx_t_1 = (__pyx_t_4 != 0);
    if (__pyx_t_1) {

      /* "_core.pyx":2085
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')             # <<<<<<<<<<<<<<
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "_core.pyx":2084
 *             if isinstance(key, unicode):
 *                 key = key.encode('utf-8')
 *             if isinstance(value, unicode):             # <<<<<<<<<<<<<<
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)
 */
    }

    /* "_core.pyx":2086
 *             if isinstance(value, unicode):
 *                 value = value.encode('utf-8')
 *             deref(v0)[ (<libcpp_string>key) ] = (<libcpp_string>value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2086, __pyx_L1_error)
    __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_key); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2086, __pyx_L1_error)
    ((*__pyx_v_v0)[((std::string)__pyx_t_14)]) = ((std::string)__pyx_t_13);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2089
 * 
 * 
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator(deref(v0)))             # <<<<<<<<<<<<<<
 *         del v0
 * 
 */
  try {
    __pyx_t_15 = new keyvi::vector::StringVectorGenerator((*__pyx_v_v0));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2089, __pyx_L1_error)
  }
  __pyx_v_self->inst = std::shared_ptr<keyvi::vector::StringVectorGenerator> (__pyx_t_15);

  /* "_core.pyx":2090
 * 
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator(deref(v0)))
 *         del v0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args , **kwargs):
 */
  delete __pyx_v_v0;

  /* "_core.pyx":2077
 *         self.inst = shared_ptr[_StringVectorGenerator](new _StringVectorGenerator())
 * 
 *     def _init_1(self, dict value_store_params ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)"""
 *         assert isinstance(value_store_params, dict) and all(isinstance(k, (bytes, unicode)) for k in value_store_params.keys()) and all(isinstance(v, (bytes, unicode)) for v in value_store_params.values()), 'arg value_store_params wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("_core.StringVectorGenerator._init_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2092
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringVectorGenerator()
 */

/* Python wrapper */
static int __pyx_pw_5_core_21StringVectorGenerator_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5_core_21StringVectorGenerator_6__init__[] = "\n          - Cython signature: void StringVectorGenerator()\n          - Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)\n";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_5_core_21StringVectorGenerator_6__init__;
#endif
static int __pyx_pw_5_core_21StringVectorGenerator_7__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_6__init__(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21StringVectorGenerator_8__init___2generator63(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "_core.pyx":2099
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_8__init___genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_94_genexpr(__pyx_ptype_5_core___pyx_scope_struct_94_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2099, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21StringVectorGenerator_8__init___2generator63, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 2099, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringVectorGenerator.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21StringVectorGenerator_8__init___2generator63(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 2099, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 2099, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys");
    __PYX_ERR(0, 2099, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_keys, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 2099, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_k); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_5_core_21StringVectorGenerator_8__init___5generator64(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_8__init___3genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *)__pyx_tp_new_5_core___pyx_scope_struct_95_genexpr(__pyx_ptype_5_core___pyx_scope_struct_95_genexpr, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2099, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *) __pyx_self;
  __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_5_core_21StringVectorGenerator_8__init___5generator64, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_init___locals_genexpr, __pyx_n_s_core); if (unlikely(!gen)) __PYX_ERR(0, 2099, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("_core.StringVectorGenerator.__init__.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_5_core_21StringVectorGenerator_8__init___5generator64(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *__pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args)) { __Pyx_RaiseClosureNameError("args"); __PYX_ERR(0, 2099, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 2099, __pyx_L1_error)
  }
  if (unlikely(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0) == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 2099, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_args, 0), 0, __pyx_n_s_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_6 == 0)) break;
    if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 2099, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_8 = PyBytes_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_9 = PyUnicode_Check(__pyx_cur_scope->__pyx_v_v); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L7_bool_binop_done:;
    __pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
    if (__pyx_t_8) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2092
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringVectorGenerator()
 */

static int __pyx_pf_5_core_21StringVectorGenerator_6__init__(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *__pyx_cur_scope;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __pyx_cur_scope = (struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *)__pyx_tp_new_5_core___pyx_scope_struct_93___init__(__pyx_ptype_5_core___pyx_scope_struct_93___init__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2092, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_args = __pyx_v_args;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_args);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_args);

  /* "_core.pyx":2097
 *           - Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_cur_scope->__pyx_v_args) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2098
 * """
 *         if not args:
 *              self._init_0(*args)             # <<<<<<<<<<<<<<
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "_core.pyx":2097
 *           - Cython signature: void StringVectorGenerator(libcpp_map[libcpp_utf8_string,libcpp_utf8_string] value_store_params)
 * """
 *         if not args:             # <<<<<<<<<<<<<<
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":2099
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
  __pyx_t_4 = __pyx_cur_scope->__pyx_v_args;
  __Pyx_INCREF(__pyx_t_4);
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 2099, __pyx_L1_error)
  }
  __pyx_t_5 = PyTuple_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = ((__pyx_t_5 == 1) != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = PyTuple_GET_ITEM(__pyx_cur_scope->__pyx_v_args, 0);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_1 = PyDict_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_pf_5_core_21StringVectorGenerator_8__init___genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __pyx_pf_5_core_21StringVectorGenerator_8__init___3genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (likely(__pyx_t_2)) {

    /* "_core.pyx":2100
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):
 *              self._init_1(*args)             # <<<<<<<<<<<<<<
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_cur_scope->__pyx_v_args, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "_core.pyx":2099
 *         if not args:
 *              self._init_0(*args)
 *         elif (len(args)==1) and (isinstance(args[0], dict) and all(isinstance(k, (bytes, unicode)) for k in args[0].keys()) and all(isinstance(v, (bytes, unicode)) for v in args[0].values())):             # <<<<<<<<<<<<<<
 *              self._init_1(*args)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "_core.pyx":2102
 *              self._init_1(*args)
 *         else:
 *                raise Exception('can not handle type of %s' % (args,))             # <<<<<<<<<<<<<<
 * 
 *     def PushBack(self,  in_0 ):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_cur_scope->__pyx_v_args), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_can_not_handle_type_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 2102, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "_core.pyx":2092
 *         del v0
 * 
 *     def __init__(self, *args , **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *           - Cython signature: void StringVectorGenerator()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.StringVectorGenerator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2104
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def PushBack(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void PushBack(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_9PushBack(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21StringVectorGenerator_8PushBack[] = "Cython signature: void PushBack(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_9PushBack(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("PushBack (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_8PushBack(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_8PushBack(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PushBack", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":2106
 *     def PushBack(self,  in_0 ):
 *         """Cython signature: void PushBack(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 2106, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2107
 *         """Cython signature: void PushBack(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().PushBack((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2108
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().PushBack((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2107
 *         """Cython signature: void PushBack(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().PushBack((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":2109
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().PushBack((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def SetManifest(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2109, __pyx_L1_error)
  __pyx_v_self->inst.get()->PushBack(((std::string)__pyx_t_7));

  /* "_core.pyx":2104
 *                raise Exception('can not handle type of %s' % (args,))
 * 
 *     def PushBack(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void PushBack(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringVectorGenerator.PushBack", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2111
 *         self.inst.get().PushBack((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21StringVectorGenerator_10SetManifest[] = "Cython signature: void SetManifest(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_11SetManifest(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SetManifest (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_10SetManifest(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_10SetManifest(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SetManifest", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":2113
 *     def SetManifest(self,  in_0 ):
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 2113, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2114
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2115
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2114
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":2116
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().SetManifest((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 *     def WriteToFile(self,  in_0 ):
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2116, __pyx_L1_error)
  __pyx_v_self->inst.get()->SetManifest(((std::string)__pyx_t_7));

  /* "_core.pyx":2111
 *         self.inst.get().PushBack((<libcpp_string>in_0))
 * 
 *     def SetManifest(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void SetManifest(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringVectorGenerator.SetManifest", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2118
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0); /*proto*/
static char __pyx_doc_5_core_21StringVectorGenerator_12WriteToFile[] = "Cython signature: void WriteToFile(libcpp_utf8_string)";
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_13WriteToFile(PyObject *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WriteToFile (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_12WriteToFile(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_in_0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_12WriteToFile(struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, PyObject *__pyx_v_in_0) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  std::string __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("WriteToFile", 0);
  __Pyx_INCREF(__pyx_v_in_0);

  /* "_core.pyx":2120
 *     def WriteToFile(self,  in_0 ):
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'             # <<<<<<<<<<<<<<
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    __pyx_t_2 = PyBytes_Check(__pyx_v_in_0); 
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_3 = PyUnicode_Check(__pyx_v_in_0); 
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L3_bool_binop_done:;
    if (unlikely(!(__pyx_t_1 != 0))) {
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_arg_in_0_wrong_type);
      __PYX_ERR(0, 2120, __pyx_L1_error)
    }
  }
  #endif

  /* "_core.pyx":2121
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_in_0); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_core.pyx":2122
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')             # <<<<<<<<<<<<<<
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_in_0, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_in_0, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "_core.pyx":2121
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 *         if isinstance(in_0, unicode):             # <<<<<<<<<<<<<<
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))
 */
  }

  /* "_core.pyx":2123
 *         if isinstance(in_0, unicode):
 *             in_0 = in_0.encode('utf-8')
 *         self.inst.get().WriteToFile((<libcpp_string>in_0))             # <<<<<<<<<<<<<<
 * 
 * cdef class loading_strategy_types:
 */
  __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_v_in_0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2123, __pyx_L1_error)
  try {
    __pyx_v_self->inst.get()->WriteToFile(((std::string)__pyx_t_7));
  } catch(...) {
    __Pyx_CppExn2PyErr();
    __PYX_ERR(0, 2123, __pyx_L1_error)
  }

  /* "_core.pyx":2118
 *         self.inst.get().SetManifest((<libcpp_string>in_0))
 * 
 *     def WriteToFile(self,  in_0 ):             # <<<<<<<<<<<<<<
 *         """Cython signature: void WriteToFile(libcpp_utf8_string)"""
 *         assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_core.StringVectorGenerator.WriteToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_in_0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_15__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_14__reduce_cython__(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_14__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringVectorGenerator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_21StringVectorGenerator_17__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_21StringVectorGenerator_16__setstate_cython__(((struct __pyx_obj_5_core_StringVectorGenerator *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_21StringVectorGenerator_16__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_StringVectorGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.StringVectorGenerator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2135
 *     populate_key_part_no_readahead_value_part = 7
 * 
 *     def getMapping(self):             # <<<<<<<<<<<<<<
 *         return dict([ (v, k) for k, v in self.__class__.__dict__.items() if isinstance(v, int) ])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22loading_strategy_types_1getMapping(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_22loading_strategy_types_1getMapping(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getMapping (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22loading_strategy_types_getMapping(((struct __pyx_obj_5_core_loading_strategy_types *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22loading_strategy_types_getMapping(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v_self) {
  PyObject *__pyx_9genexpr62__pyx_v_k = NULL;
  PyObject *__pyx_9genexpr62__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("getMapping", 0);

  /* "_core.pyx":2136
 * 
 *     def getMapping(self):
 *         return dict([ (v, k) for k, v in self.__class__.__dict__.items() if isinstance(v, int) ])             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2136, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = 0;
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2136, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2136, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_t_7 == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
      __PYX_ERR(0, 2136, __pyx_L5_error)
    }
    __pyx_t_6 = __Pyx_dict_iterator(__pyx_t_7, 0, __pyx_n_s_items, (&__pyx_t_4), (&__pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2136, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_2);
    __pyx_t_2 = __pyx_t_6;
    __pyx_t_6 = 0;
    while (1) {
      __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_4, &__pyx_t_3, &__pyx_t_6, &__pyx_t_7, NULL, __pyx_t_5);
      if (unlikely(__pyx_t_8 == 0)) break;
      if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 2136, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_9genexpr62__pyx_v_k, __pyx_t_6);
      __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_9genexpr62__pyx_v_v, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_9 = PyInt_Check(__pyx_9genexpr62__pyx_v_v); 
      __pyx_t_10 = (__pyx_t_9 != 0);
      if (__pyx_t_10) {
        __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2136, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_INCREF(__pyx_9genexpr62__pyx_v_v);
        __Pyx_GIVEREF(__pyx_9genexpr62__pyx_v_v);
        PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_9genexpr62__pyx_v_v);
        __Pyx_INCREF(__pyx_9genexpr62__pyx_v_k);
        __Pyx_GIVEREF(__pyx_9genexpr62__pyx_v_k);
        PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_9genexpr62__pyx_v_k);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 2136, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_k); __pyx_9genexpr62__pyx_v_k = 0;
    __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_v); __pyx_9genexpr62__pyx_v_v = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_k); __pyx_9genexpr62__pyx_v_k = 0;
    __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_v); __pyx_9genexpr62__pyx_v_v = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "_core.pyx":2135
 *     populate_key_part_no_readahead_value_part = 7
 * 
 *     def getMapping(self):             # <<<<<<<<<<<<<<
 *         return dict([ (v, k) for k, v in self.__class__.__dict__.items() if isinstance(v, int) ])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.loading_strategy_types.getMapping", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_k);
  __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22loading_strategy_types_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_22loading_strategy_types_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22loading_strategy_types_2__reduce_cython__(((struct __pyx_obj_5_core_loading_strategy_types *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22loading_strategy_types_2__reduce_cython__(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = ()             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __Pyx_INCREF(__pyx_empty_tuple);
  __pyx_v_state = __pyx_empty_tuple;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = ()
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v__dict = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":7
 *     state = ()
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_2 = (__pyx_v__dict != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = False
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = ()
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = False             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, None), state
 */
  /*else*/ {
    __pyx_v_use_setstate = 0;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = False
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, None), state
 *     else:
 */
  __pyx_t_3 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_3) {

    /* "(tree fragment)":13
 *         use_setstate = False
 *     if use_setstate:
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_loading_strategy); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_222419149);
    __Pyx_GIVEREF(__pyx_int_222419149);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_222419149);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = False
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, None), state
 *     else:
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_loading_strategy_types__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_loading_strategy); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_222419149);
    __Pyx_GIVEREF(__pyx_int_222419149);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_222419149);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __pyx_t_5 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.loading_strategy_types.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_loading_strategy_types__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_22loading_strategy_types_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_22loading_strategy_types_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_22loading_strategy_types_4__setstate_cython__(((struct __pyx_obj_5_core_loading_strategy_types *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_22loading_strategy_types_4__setstate_cython__(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_loading_strategy_types__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_5_core___pyx_unpickle_loading_strategy_types__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_loading_strategy_types, (type(self), 0xd41d8cd, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_loading_strategy_types__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.loading_strategy_types.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2157
 * 
 * 
 * def get_package_root():             # <<<<<<<<<<<<<<
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_3get_package_root(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_5_core_3get_package_root = {"get_package_root", (PyCFunction)__pyx_pw_5_core_3get_package_root, METH_NOARGS, 0};
static PyObject *__pyx_pw_5_core_3get_package_root(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_package_root (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_2get_package_root(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_2get_package_root(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_v_module_location = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_package_root", 0);

  /* "_core.pyx":2158
 * 
 * def get_package_root():
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))             # <<<<<<<<<<<<<<
 * 
 *     if (PY_MAJOR_VERSION >= 3):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_path); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_abspath); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_os); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_path); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_join); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_os); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_path); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_dirname); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_os); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_path); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_abspath); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_keyvi); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_pycore); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_file); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8);
    if (likely(__pyx_t_10)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_10);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_8, function);
    }
  }
  __pyx_t_7 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_10, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_6, function);
    }
  }
  __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = NULL;
  __pyx_t_11 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_11 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_5, __pyx_kp_u__55};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2158, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_5, __pyx_kp_u__55};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2158, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_11, __pyx_t_5);
    __Pyx_INCREF(__pyx_kp_u__55);
    __Pyx_GIVEREF(__pyx_kp_u__55);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_11, __pyx_kp_u__55);
    __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_module_location = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "_core.pyx":2160
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))
 * 
 *     if (PY_MAJOR_VERSION >= 3):             # <<<<<<<<<<<<<<
 *         module_location = module_location.encode('utf-8')
 * 
 */
  __pyx_t_12 = ((PY_MAJOR_VERSION >= 3) != 0);
  if (__pyx_t_12) {

    /* "_core.pyx":2161
 * 
 *     if (PY_MAJOR_VERSION >= 3):
 *         module_location = module_location.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *     return module_location
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_module_location, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_module_location, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "_core.pyx":2160
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))
 * 
 *     if (PY_MAJOR_VERSION >= 3):             # <<<<<<<<<<<<<<
 *         module_location = module_location.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":2163
 *         module_location = module_location.encode('utf-8')
 * 
 *     return module_location             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_module_location);
  __pyx_r = __pyx_v_module_location;
  goto __pyx_L0;

  /* "_core.pyx":2157
 * 
 * 
 * def get_package_root():             # <<<<<<<<<<<<<<
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("_core.get_package_root", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_module_location);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2166
 * 
 * 
 * def get_interpreter_executable():             # <<<<<<<<<<<<<<
 *     executable = sys.executable
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_5get_interpreter_executable(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_5_core_5get_interpreter_executable = {"get_interpreter_executable", (PyCFunction)__pyx_pw_5_core_5get_interpreter_executable, METH_NOARGS, 0};
static PyObject *__pyx_pw_5_core_5get_interpreter_executable(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_interpreter_executable (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_4get_interpreter_executable(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_4get_interpreter_executable(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_v_executable = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_interpreter_executable", 0);

  /* "_core.pyx":2167
 * 
 * def get_interpreter_executable():
 *     executable = sys.executable             # <<<<<<<<<<<<<<
 * 
 *     if (PY_MAJOR_VERSION >= 3):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_sys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_executable); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_executable = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "_core.pyx":2169
 *     executable = sys.executable
 * 
 *     if (PY_MAJOR_VERSION >= 3):             # <<<<<<<<<<<<<<
 *         executable = executable.encode('utf-8')
 * 
 */
  __pyx_t_3 = ((PY_MAJOR_VERSION >= 3) != 0);
  if (__pyx_t_3) {

    /* "_core.pyx":2170
 * 
 *     if (PY_MAJOR_VERSION >= 3):
 *         executable = executable.encode('utf-8')             # <<<<<<<<<<<<<<
 * 
 *     return executable
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_executable, __pyx_n_s_encode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2170, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_4, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_u_utf_8);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2170, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_executable, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "_core.pyx":2169
 *     executable = sys.executable
 * 
 *     if (PY_MAJOR_VERSION >= 3):             # <<<<<<<<<<<<<<
 *         executable = executable.encode('utf-8')
 * 
 */
  }

  /* "_core.pyx":2172
 *         executable = executable.encode('utf-8')
 * 
 *     return executable             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_executable);
  __pyx_r = __pyx_v_executable;
  goto __pyx_L0;

  /* "_core.pyx":2166
 * 
 * 
 * def get_interpreter_executable():             # <<<<<<<<<<<<<<
 *     executable = sys.executable
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_core.get_interpreter_executable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_executable);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2198
 *     #    self.it = it
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13MatchIterator_1__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_core_13MatchIterator_1__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13MatchIterator___iter__(((struct __pyx_obj_5_core_MatchIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13MatchIterator___iter__(struct __pyx_obj_5_core_MatchIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "_core.pyx":2199
 * 
 *     def __iter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     #def __dealloc__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "_core.pyx":2198
 *     #    self.it = it
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_core.pyx":2207
 *     #    del self.end
 * 
 *     def __next__(self):             # <<<<<<<<<<<<<<
 *         # This works correctly by using "*it" and "*end" in the code,
 *         #if  co.dereference( self.it ) == co.dereference( self.end ) :
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13MatchIterator_3__next__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_core_13MatchIterator_3__next__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__next__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13MatchIterator_2__next__(((struct __pyx_obj_5_core_MatchIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13MatchIterator_2__next__(struct __pyx_obj_5_core_MatchIterator *__pyx_v_self) {
  keyvi::dictionary::Match *__pyx_v__r;
  struct __pyx_obj_5_core_Match *__pyx_v_py_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__next__", 0);

  /* "_core.pyx":2210
 *         # This works correctly by using "*it" and "*end" in the code,
 *         #if  co.dereference( self.it ) == co.dereference( self.end ) :
 *         if  self.it == self.end:             # <<<<<<<<<<<<<<
 * 
 *             raise StopIteration()
 */
  __pyx_t_1 = ((__pyx_v_self->it == __pyx_v_self->end) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "_core.pyx":2212
 *         if  self.it == self.end:
 * 
 *             raise StopIteration()             # <<<<<<<<<<<<<<
 *         cdef _Match * _r = new _Match(co.dereference( self.it ))
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_builtin_StopIteration); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2212, __pyx_L1_error)

    /* "_core.pyx":2210
 *         # This works correctly by using "*it" and "*end" in the code,
 *         #if  co.dereference( self.it ) == co.dereference( self.end ) :
 *         if  self.it == self.end:             # <<<<<<<<<<<<<<
 * 
 *             raise StopIteration()
 */
  }

  /* "_core.pyx":2213
 * 
 *             raise StopIteration()
 *         cdef _Match * _r = new _Match(co.dereference( self.it ))             # <<<<<<<<<<<<<<
 * 
 *         # This also does the expected thing.
 */
  __pyx_v__r = new keyvi::dictionary::Match((*__pyx_v_self->it));

  /* "_core.pyx":2216
 * 
 *         # This also does the expected thing.
 *         co.preincrement( self.it )             # <<<<<<<<<<<<<<
 * 
 *         cdef Match py_result = Match.__new__(Match)
 */
  (void)((++__pyx_v_self->it));

  /* "_core.pyx":2218
 *         co.preincrement( self.it )
 * 
 *         cdef Match py_result = Match.__new__(Match)             # <<<<<<<<<<<<<<
 *         py_result.inst = shared_ptr[_Match](_r)
 * 
 */
  __pyx_t_2 = ((PyObject *)__pyx_tp_new_5_core_Match(((PyTypeObject *)__pyx_ptype_5_core_Match), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2218, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __pyx_v_py_result = ((struct __pyx_obj_5_core_Match *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "_core.pyx":2219
 * 
 *         cdef Match py_result = Match.__new__(Match)
 *         py_result.inst = shared_ptr[_Match](_r)             # <<<<<<<<<<<<<<
 * 
 *         return py_result
 */
  __pyx_v_py_result->inst = std::shared_ptr<keyvi::dictionary::Match> (__pyx_v__r);

  /* "_core.pyx":2221
 *         py_result.inst = shared_ptr[_Match](_r)
 * 
 *         return py_result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_py_result));
  __pyx_r = ((PyObject *)__pyx_v_py_result);
  goto __pyx_L0;

  /* "_core.pyx":2207
 *     #    del self.end
 * 
 *     def __next__(self):             # <<<<<<<<<<<<<<
 *         # This works correctly by using "*it" and "*end" in the code,
 *         #if  co.dereference( self.it ) == co.dereference( self.end ) :
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_core.MatchIterator.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_py_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13MatchIterator_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_core_13MatchIterator_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13MatchIterator_4__reduce_cython__(((struct __pyx_obj_5_core_MatchIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13MatchIterator_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MatchIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.MatchIterator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_13MatchIterator_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_5_core_13MatchIterator_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_core_13MatchIterator_6__setstate_cython__(((struct __pyx_obj_5_core_MatchIterator *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_13MatchIterator_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_5_core_MatchIterator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_core.MatchIterator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_loading_strategy_types(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_core_7__pyx_unpickle_loading_strategy_types(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_5_core_7__pyx_unpickle_loading_strategy_types = {"__pyx_unpickle_loading_strategy_types", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_7__pyx_unpickle_loading_strategy_types, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_5_core_7__pyx_unpickle_loading_strategy_types(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_loading_strategy_types (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_loading_strategy_types", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_loading_strategy_types", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_loading_strategy_types") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_loading_strategy_types", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("_core.__pyx_unpickle_loading_strategy_types", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_core_6__pyx_unpickle_loading_strategy_types(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_core_6__pyx_unpickle_loading_strategy_types(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_loading_strategy_types", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xd41d8cd:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xd41d8cd) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xd41d8cd:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)
 *     __pyx_result = loading_strategy_types.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xd41d8cd:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = loading_strategy_types.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xd4, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xd41d8cd:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)
 *     __pyx_result = loading_strategy_types.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5_core_loading_strategy_types), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)
 *     __pyx_result = loading_strategy_types.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = loading_strategy_types.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_5_core___pyx_unpickle_loading_strategy_types__set_state(((struct __pyx_obj_5_core_loading_strategy_types *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xd41d8cd = ())" % __pyx_checksum)
 *     __pyx_result = loading_strategy_types.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):
 *     if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_loading_strategy_types(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_core.__pyx_unpickle_loading_strategy_types", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[0])
 */

static PyObject *__pyx_f_5_core___pyx_unpickle_loading_strategy_types__set_state(struct __pyx_obj_5_core_loading_strategy_types *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_loading_strategy_types__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):
 *     if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[0])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):
 *     if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[0])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 13, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 0));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):
 *     if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[0])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_loading_strategy_types__set_state(<loading_strategy_types> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_loading_strategy_types__set_state(loading_strategy_types __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 0 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[0])
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_core.__pyx_unpickle_loading_strategy_types__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "string.from_py":13
 * 
 * @cname("__pyx_convert_string_from_py_std__in_string")
 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *:             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t length = 0
 *     cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length)
 */

static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v_o) {
  Py_ssize_t __pyx_v_length;
  char const *__pyx_v_data;
  std::string __pyx_r;
  __Pyx_RefNannyDeclarations
  char const *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_string_from_py_std__in_string", 0);

  /* "string.from_py":14
 * @cname("__pyx_convert_string_from_py_std__in_string")
 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *:
 *     cdef Py_ssize_t length = 0             # <<<<<<<<<<<<<<
 *     cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length)
 *     return string(data, length)
 */
  __pyx_v_length = 0;

  /* "string.from_py":15
 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *:
 *     cdef Py_ssize_t length = 0
 *     cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length)             # <<<<<<<<<<<<<<
 *     return string(data, length)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == ((char const *)NULL))) __PYX_ERR(1, 15, __pyx_L1_error)
  __pyx_v_data = __pyx_t_1;

  /* "string.from_py":16
 *     cdef Py_ssize_t length = 0
 *     cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length)
 *     return string(data, length)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = std::string(__pyx_v_data, __pyx_v_length);
  goto __pyx_L0;

  /* "string.from_py":13
 * 
 * @cname("__pyx_convert_string_from_py_std__in_string")
 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *:             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t length = 0
 *     cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "string.to_py":31
 * 
 * @cname("__pyx_convert_PyObject_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyObject_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_std__in_string", 0);

  /* "string.to_py":32
 * @cname("__pyx_convert_PyObject_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s):
 *     return __Pyx_PyObject_FromStringAndSize(s.data(), s.size())             # <<<<<<<<<<<<<<
 * cdef extern from *:
 *     cdef object __Pyx_PyUnicode_FromStringAndSize(const char*, size_t)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "string.to_py":31
 * 
 * @cname("__pyx_convert_PyObject_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyObject_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "string.to_py":37
 * 
 * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_std__in_string", 0);

  /* "string.to_py":38
 * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s):
 *     return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size())             # <<<<<<<<<<<<<<
 * cdef extern from *:
 *     cdef object __Pyx_PyStr_FromStringAndSize(const char*, size_t)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyUnicode_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "string.to_py":37
 * 
 * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "string.to_py":43
 * 
 * @cname("__pyx_convert_PyStr_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyStr_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_std__in_string", 0);

  /* "string.to_py":44
 * @cname("__pyx_convert_PyStr_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s):
 *     return __Pyx_PyStr_FromStringAndSize(s.data(), s.size())             # <<<<<<<<<<<<<<
 * cdef extern from *:
 *     cdef object __Pyx_PyBytes_FromStringAndSize(const char*, size_t)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyStr_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "string.to_py":43
 * 
 * @cname("__pyx_convert_PyStr_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyStr_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "string.to_py":49
 * 
 * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_std__in_string", 0);

  /* "string.to_py":50
 * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s):
 *     return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size())             # <<<<<<<<<<<<<<
 * cdef extern from *:
 *     cdef object __Pyx_PyByteArray_FromStringAndSize(const char*, size_t)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "string.to_py":49
 * 
 * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size())
 * cdef extern from *:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "string.to_py":55
 * 
 * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size())
 * 
 */

static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_std__in_string", 0);

  /* "string.to_py":56
 * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s):
 *     return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size())             # <<<<<<<<<<<<<<
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyByteArray_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "string.to_py":55
 * 
 * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_5_core_CompletionDictionaryCompiler(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_CompletionDictionaryCompiler *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_CompletionDictionaryCompiler *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::CompletionDictionaryCompiler> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_CompletionDictionaryCompiler(PyObject *o) {
  struct __pyx_obj_5_core_CompletionDictionaryCompiler *p = (struct __pyx_obj_5_core_CompletionDictionaryCompiler *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_28CompletionDictionaryCompiler_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_CompletionDictionaryCompiler(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_28CompletionDictionaryCompiler_17__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_CompletionDictionaryCompiler[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_3_init_0, METH_NOARGS, __pyx_doc_5_core_28CompletionDictionaryCompiler_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_5_init_1, METH_O, __pyx_doc_5_core_28CompletionDictionaryCompiler_4_init_1},
  {"Add", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_28CompletionDictionaryCompiler_9Add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_28CompletionDictionaryCompiler_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_11SetManifest, METH_O, __pyx_doc_5_core_28CompletionDictionaryCompiler_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_13WriteToFile, METH_O, __pyx_doc_5_core_28CompletionDictionaryCompiler_12WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_15__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_28CompletionDictionaryCompiler_19__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_28CompletionDictionaryCompiler_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_28CompletionDictionaryCompiler_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_CompletionDictionaryCompiler = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_CompletionDictionaryCompiler, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_CompletionDictionaryCompiler = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.CompletionDictionaryCompiler", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_CompletionDictionaryCompiler), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_CompletionDictionaryCompiler, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_CompletionDictionaryCompiler, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _CompletionDictionaryCompiler\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_CompletionDictionaryCompiler, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_28CompletionDictionaryCompiler_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_CompletionDictionaryCompiler, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_CompletionDictionaryMerger(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_CompletionDictionaryMerger *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_CompletionDictionaryMerger *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::CompletionDictionaryMerger> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_CompletionDictionaryMerger(PyObject *o) {
  struct __pyx_obj_5_core_CompletionDictionaryMerger *p = (struct __pyx_obj_5_core_CompletionDictionaryMerger *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_26CompletionDictionaryMerger_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_CompletionDictionaryMerger[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_3_init_0, METH_NOARGS, __pyx_doc_5_core_26CompletionDictionaryMerger_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_5_init_1, METH_O, __pyx_doc_5_core_26CompletionDictionaryMerger_4_init_1},
  {"Add", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_9Add, METH_O, __pyx_doc_5_core_26CompletionDictionaryMerger_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_11SetManifest, METH_O, __pyx_doc_5_core_26CompletionDictionaryMerger_10SetManifest},
  {"Merge", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_13Merge, METH_O, __pyx_doc_5_core_26CompletionDictionaryMerger_12Merge},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_26CompletionDictionaryMerger_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_CompletionDictionaryMerger = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.CompletionDictionaryMerger", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_CompletionDictionaryMerger), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_CompletionDictionaryMerger, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _CompletionDictionaryMerger\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_CompletionDictionaryMerger, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_26CompletionDictionaryMerger_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_CompletionDictionaryMerger, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_Dictionary(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_Dictionary *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_Dictionary *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::Dictionary> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_Dictionary(PyObject *o) {
  struct __pyx_obj_5_core_Dictionary *p = (struct __pyx_obj_5_core_Dictionary *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_10Dictionary_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_5_core_Dictionary(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyMethodDef __pyx_methods_5_core_Dictionary[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_10Dictionary_3_init_0, METH_O, __pyx_doc_5_core_10Dictionary_2_init_0},
  {"_init_1", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_10Dictionary_5_init_1, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_10Dictionary_4_init_1},
  {"Get", (PyCFunction)__pyx_pw_5_core_10Dictionary_9Get, METH_O, __pyx_doc_5_core_10Dictionary_8Get},
  {"_GetNear_0", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_10Dictionary_11_GetNear_0, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_10Dictionary_10_GetNear_0},
  {"_GetNear_1", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_10Dictionary_13_GetNear_1, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_10Dictionary_12_GetNear_1},
  {"GetNear", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_10Dictionary_15GetNear, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_10Dictionary_14GetNear},
  {"GetFuzzy", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_10Dictionary_17GetFuzzy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_10Dictionary_16GetFuzzy},
  {"Lookup", (PyCFunction)__pyx_pw_5_core_10Dictionary_19Lookup, METH_O, __pyx_doc_5_core_10Dictionary_18Lookup},
  {"LookupText", (PyCFunction)__pyx_pw_5_core_10Dictionary_21LookupText, METH_O, __pyx_doc_5_core_10Dictionary_20LookupText},
  {"GetManifest", (PyCFunction)__pyx_pw_5_core_10Dictionary_23GetManifest, METH_NOARGS, __pyx_doc_5_core_10Dictionary_22GetManifest},
  {"get", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_10Dictionary_25get, METH_VARARGS|METH_KEYWORDS, 0},
  {"_key_iterator_wrapper", (PyCFunction)__pyx_pw_5_core_10Dictionary_33_key_iterator_wrapper, METH_O, 0},
  {"_value_iterator_wrapper", (PyCFunction)__pyx_pw_5_core_10Dictionary_36_value_iterator_wrapper, METH_O, 0},
  {"_item_iterator_wrapper", (PyCFunction)__pyx_pw_5_core_10Dictionary_39_item_iterator_wrapper, METH_O, 0},
  {"GetAllKeys", (PyCFunction)__pyx_pw_5_core_10Dictionary_42GetAllKeys, METH_NOARGS, 0},
  {"GetAllValues", (PyCFunction)__pyx_pw_5_core_10Dictionary_44GetAllValues, METH_NOARGS, 0},
  {"GetAllItems", (PyCFunction)__pyx_pw_5_core_10Dictionary_46GetAllItems, METH_NOARGS, 0},
  {"GetStatistics", (PyCFunction)__pyx_pw_5_core_10Dictionary_48GetStatistics, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_10Dictionary_50__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_10Dictionary_52__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_Dictionary = {
  __pyx_pw_5_core_10Dictionary_29__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_5_core_Dictionary, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  __pyx_pw_5_core_10Dictionary_27__contains__, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Dictionary = {
  __pyx_pw_5_core_10Dictionary_29__len__, /*mp_length*/
  __pyx_pw_5_core_10Dictionary_31__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_Dictionary = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.Dictionary", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_Dictionary), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_Dictionary, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_Dictionary, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Dictionary, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _Dictionary\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_Dictionary, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_10Dictionary_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_Dictionary, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_ForwardBackwardCompletion(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_ForwardBackwardCompletion *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_ForwardBackwardCompletion *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::completion::ForwardBackwardCompletion> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_ForwardBackwardCompletion(PyObject *o) {
  struct __pyx_obj_5_core_ForwardBackwardCompletion *p = (struct __pyx_obj_5_core_ForwardBackwardCompletion *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_25ForwardBackwardCompletion_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_ForwardBackwardCompletion[] = {
  {"_GetCompletions_0", (PyCFunction)__pyx_pw_5_core_25ForwardBackwardCompletion_5_GetCompletions_0, METH_O, __pyx_doc_5_core_25ForwardBackwardCompletion_4_GetCompletions_0},
  {"_GetCompletions_1", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_25ForwardBackwardCompletion_7_GetCompletions_1, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_25ForwardBackwardCompletion_6_GetCompletions_1},
  {"GetCompletions", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_25ForwardBackwardCompletion_9GetCompletions, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_25ForwardBackwardCompletion_8GetCompletions},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_25ForwardBackwardCompletion_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_25ForwardBackwardCompletion_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_ForwardBackwardCompletion = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.ForwardBackwardCompletion", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_ForwardBackwardCompletion), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_ForwardBackwardCompletion, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _ForwardBackwardCompletion\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_ForwardBackwardCompletion, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_25ForwardBackwardCompletion_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_ForwardBackwardCompletion, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_FsaTransform(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_FsaTransform *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_FsaTransform *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::transform::FsaTransform> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_FsaTransform(PyObject *o) {
  struct __pyx_obj_5_core_FsaTransform *p = (struct __pyx_obj_5_core_FsaTransform *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_12FsaTransform_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_FsaTransform[] = {
  {"Normalize", (PyCFunction)__pyx_pw_5_core_12FsaTransform_5Normalize, METH_O, __pyx_doc_5_core_12FsaTransform_4Normalize},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_12FsaTransform_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_12FsaTransform_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_FsaTransform = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.FsaTransform", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_FsaTransform), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_FsaTransform, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _FsaTransform\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_FsaTransform, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_12FsaTransform_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_FsaTransform, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_Index(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_Index *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_Index *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::index::Index> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_Index(PyObject *o) {
  struct __pyx_obj_5_core_Index *p = (struct __pyx_obj_5_core_Index *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_5Index_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_5_core_Index(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_5_core_Index(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript assignment not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
  else {
    return __pyx_pw_5_core_5Index_17__delitem__(o, i);
  }
}

static PyMethodDef __pyx_methods_5_core_Index[] = {
  {"Set", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Index_3Set, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_5Index_2Set},
  {"GetFuzzy", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Index_5GetFuzzy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_5Index_4GetFuzzy},
  {"Delete", (PyCFunction)__pyx_pw_5_core_5Index_7Delete, METH_O, __pyx_doc_5_core_5Index_6Delete},
  {"_Flush_0", (PyCFunction)__pyx_pw_5_core_5Index_9_Flush_0, METH_NOARGS, __pyx_doc_5_core_5Index_8_Flush_0},
  {"_Flush_1", (PyCFunction)__pyx_pw_5_core_5Index_11_Flush_1, METH_O, __pyx_doc_5_core_5Index_10_Flush_1},
  {"Flush", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Index_13Flush, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_5Index_12Flush},
  {"Get", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Index_19Get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_5Index_18Get},
  {"MSet", (PyCFunction)__pyx_pw_5_core_5Index_25MSet, METH_O, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_5Index_27__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_5Index_29__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_Index = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_5_core_Index, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  __pyx_pw_5_core_5Index_21__contains__, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Index = {
  0, /*mp_length*/
  __pyx_pw_5_core_5Index_23__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_Index, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_Index = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.Index", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_Index), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_Index, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_Index, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Index, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _Index\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_Index, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_5Index_15__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_Index, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_IntDictionaryCompiler(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_IntDictionaryCompiler *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_IntDictionaryCompiler *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::IntDictionaryCompiler> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_IntDictionaryCompiler(PyObject *o) {
  struct __pyx_obj_5_core_IntDictionaryCompiler *p = (struct __pyx_obj_5_core_IntDictionaryCompiler *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_21IntDictionaryCompiler_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_IntDictionaryCompiler(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_21IntDictionaryCompiler_17__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_IntDictionaryCompiler[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_3_init_0, METH_NOARGS, __pyx_doc_5_core_21IntDictionaryCompiler_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_5_init_1, METH_O, __pyx_doc_5_core_21IntDictionaryCompiler_4_init_1},
  {"Add", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_21IntDictionaryCompiler_9Add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_21IntDictionaryCompiler_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_11SetManifest, METH_O, __pyx_doc_5_core_21IntDictionaryCompiler_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_13WriteToFile, METH_O, __pyx_doc_5_core_21IntDictionaryCompiler_12WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_15__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_21IntDictionaryCompiler_19__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_21IntDictionaryCompiler_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_21IntDictionaryCompiler_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_IntDictionaryCompiler = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_IntDictionaryCompiler, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_IntDictionaryCompiler = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.IntDictionaryCompiler", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_IntDictionaryCompiler), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_IntDictionaryCompiler, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_IntDictionaryCompiler, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _IntDictionaryCompiler\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_IntDictionaryCompiler, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_21IntDictionaryCompiler_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_IntDictionaryCompiler, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_IntDictionaryCompilerSmallData(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::IntDictionaryCompilerSmallData> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_IntDictionaryCompilerSmallData(PyObject *o) {
  struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *p = (struct __pyx_obj_5_core_IntDictionaryCompilerSmallData *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_30IntDictionaryCompilerSmallData_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_IntDictionaryCompilerSmallData(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_30IntDictionaryCompilerSmallData_17__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_IntDictionaryCompilerSmallData[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_3_init_0, METH_NOARGS, __pyx_doc_5_core_30IntDictionaryCompilerSmallData_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_5_init_1, METH_O, __pyx_doc_5_core_30IntDictionaryCompilerSmallData_4_init_1},
  {"Add", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_9Add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_30IntDictionaryCompilerSmallData_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_11SetManifest, METH_O, __pyx_doc_5_core_30IntDictionaryCompilerSmallData_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_13WriteToFile, METH_O, __pyx_doc_5_core_30IntDictionaryCompilerSmallData_12WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_15__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_19__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_30IntDictionaryCompilerSmallData_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_IntDictionaryCompilerSmallData = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_IntDictionaryCompilerSmallData, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_IntDictionaryCompilerSmallData = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.IntDictionaryCompilerSmallData", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_IntDictionaryCompilerSmallData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_IntDictionaryCompilerSmallData, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_IntDictionaryCompilerSmallData, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _IntDictionaryCompilerSmallData\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_IntDictionaryCompilerSmallData, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_30IntDictionaryCompilerSmallData_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_IntDictionaryCompilerSmallData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_IntDictionaryMerger(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_IntDictionaryMerger *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_IntDictionaryMerger *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::IntDictionaryMerger> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_IntDictionaryMerger(PyObject *o) {
  struct __pyx_obj_5_core_IntDictionaryMerger *p = (struct __pyx_obj_5_core_IntDictionaryMerger *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_19IntDictionaryMerger_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_IntDictionaryMerger[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_3_init_0, METH_NOARGS, __pyx_doc_5_core_19IntDictionaryMerger_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_5_init_1, METH_O, __pyx_doc_5_core_19IntDictionaryMerger_4_init_1},
  {"Add", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_9Add, METH_O, __pyx_doc_5_core_19IntDictionaryMerger_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_11SetManifest, METH_O, __pyx_doc_5_core_19IntDictionaryMerger_10SetManifest},
  {"Merge", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_13Merge, METH_O, __pyx_doc_5_core_19IntDictionaryMerger_12Merge},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_19IntDictionaryMerger_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_IntDictionaryMerger = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.IntDictionaryMerger", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_IntDictionaryMerger), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_IntDictionaryMerger, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _IntDictionaryMerger\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_IntDictionaryMerger, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_19IntDictionaryMerger_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_IntDictionaryMerger, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_JsonDictionaryCompiler(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_JsonDictionaryCompiler *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_JsonDictionaryCompiler *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::JsonDictionaryCompiler> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_JsonDictionaryCompiler(PyObject *o) {
  struct __pyx_obj_5_core_JsonDictionaryCompiler *p = (struct __pyx_obj_5_core_JsonDictionaryCompiler *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_22JsonDictionaryCompiler_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_JsonDictionaryCompiler(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_22JsonDictionaryCompiler_17__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_JsonDictionaryCompiler[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_3_init_0, METH_NOARGS, __pyx_doc_5_core_22JsonDictionaryCompiler_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_5_init_1, METH_O, __pyx_doc_5_core_22JsonDictionaryCompiler_4_init_1},
  {"Add", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_22JsonDictionaryCompiler_9Add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_22JsonDictionaryCompiler_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_11SetManifest, METH_O, __pyx_doc_5_core_22JsonDictionaryCompiler_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_13WriteToFile, METH_O, __pyx_doc_5_core_22JsonDictionaryCompiler_12WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_15__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_22JsonDictionaryCompiler_19__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_22JsonDictionaryCompiler_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_22JsonDictionaryCompiler_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_JsonDictionaryCompiler = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_JsonDictionaryCompiler, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_JsonDictionaryCompiler = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.JsonDictionaryCompiler", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_JsonDictionaryCompiler), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_JsonDictionaryCompiler, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_JsonDictionaryCompiler, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _JsonDictionaryCompiler\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_JsonDictionaryCompiler, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_22JsonDictionaryCompiler_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_JsonDictionaryCompiler, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_JsonDictionaryCompilerSmallData(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::JsonDictionaryCompilerSmallData> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_JsonDictionaryCompilerSmallData(PyObject *o) {
  struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *p = (struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_JsonDictionaryCompilerSmallData(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_15__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_JsonDictionaryCompilerSmallData[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_3_init_0, METH_NOARGS, __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_5_init_1, METH_O, __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_4_init_1},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_9SetManifest, METH_O, __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_8SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_11WriteToFile, METH_O, __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_10WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_13__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_17__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Add", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_19Add, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_31JsonDictionaryCompilerSmallData_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_JsonDictionaryCompilerSmallData = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_JsonDictionaryCompilerSmallData, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_JsonDictionaryCompilerSmallData = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.JsonDictionaryCompilerSmallData", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_JsonDictionaryCompilerSmallData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_JsonDictionaryCompilerSmallData, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_JsonDictionaryCompilerSmallData, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _JsonDictionaryCompilerSmallData\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_JsonDictionaryCompilerSmallData, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_31JsonDictionaryCompilerSmallData_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_JsonDictionaryCompilerSmallData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_JsonDictionaryMerger(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_JsonDictionaryMerger *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_JsonDictionaryMerger *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::JsonDictionaryMerger> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_JsonDictionaryMerger(PyObject *o) {
  struct __pyx_obj_5_core_JsonDictionaryMerger *p = (struct __pyx_obj_5_core_JsonDictionaryMerger *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_20JsonDictionaryMerger_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_JsonDictionaryMerger[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_3_init_0, METH_NOARGS, __pyx_doc_5_core_20JsonDictionaryMerger_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_5_init_1, METH_O, __pyx_doc_5_core_20JsonDictionaryMerger_4_init_1},
  {"Add", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_9Add, METH_O, __pyx_doc_5_core_20JsonDictionaryMerger_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_11SetManifest, METH_O, __pyx_doc_5_core_20JsonDictionaryMerger_10SetManifest},
  {"Merge", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_13Merge, METH_O, __pyx_doc_5_core_20JsonDictionaryMerger_12Merge},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_20JsonDictionaryMerger_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_JsonDictionaryMerger = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.JsonDictionaryMerger", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_JsonDictionaryMerger), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_JsonDictionaryMerger, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _JsonDictionaryMerger\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_JsonDictionaryMerger, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_20JsonDictionaryMerger_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_JsonDictionaryMerger, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_JsonVector(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_JsonVector *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_JsonVector *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::vector::JsonVector> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_JsonVector(PyObject *o) {
  struct __pyx_obj_5_core_JsonVector *p = (struct __pyx_obj_5_core_JsonVector *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_10JsonVector_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_JsonVector[] = {
  {"Size", (PyCFunction)__pyx_pw_5_core_10JsonVector_5Size, METH_NOARGS, __pyx_doc_5_core_10JsonVector_4Size},
  {"Manifest", (PyCFunction)__pyx_pw_5_core_10JsonVector_7Manifest, METH_NOARGS, __pyx_doc_5_core_10JsonVector_6Manifest},
  {"Get", (PyCFunction)__pyx_pw_5_core_10JsonVector_9Get, METH_O, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_10JsonVector_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_10JsonVector_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_JsonVector = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.JsonVector", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_JsonVector), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_JsonVector, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _JsonVector\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_JsonVector, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_10JsonVector_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_JsonVector, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_JsonVectorGenerator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_JsonVectorGenerator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_JsonVectorGenerator *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::vector::JsonVectorGenerator> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_JsonVectorGenerator(PyObject *o) {
  struct __pyx_obj_5_core_JsonVectorGenerator *p = (struct __pyx_obj_5_core_JsonVectorGenerator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_19JsonVectorGenerator_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_JsonVectorGenerator[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_3_init_0, METH_NOARGS, __pyx_doc_5_core_19JsonVectorGenerator_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_5_init_1, METH_O, __pyx_doc_5_core_19JsonVectorGenerator_4_init_1},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_9SetManifest, METH_O, __pyx_doc_5_core_19JsonVectorGenerator_8SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_11WriteToFile, METH_O, __pyx_doc_5_core_19JsonVectorGenerator_10WriteToFile},
  {"PushBack", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_13PushBack, METH_O, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_19JsonVectorGenerator_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_JsonVectorGenerator = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.JsonVectorGenerator", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_JsonVectorGenerator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_JsonVectorGenerator, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _JsonVectorGenerator\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_JsonVectorGenerator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_19JsonVectorGenerator_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_JsonVectorGenerator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_KeyOnlyDictionaryCompiler(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryCompiler> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_KeyOnlyDictionaryCompiler(PyObject *o) {
  struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *p = (struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_KeyOnlyDictionaryCompiler(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_17__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_KeyOnlyDictionaryCompiler[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_3_init_0, METH_NOARGS, __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_5_init_1, METH_O, __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_4_init_1},
  {"Add", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_9Add, METH_O, __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_11SetManifest, METH_O, __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_13WriteToFile, METH_O, __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_12WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_15__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_19__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_25KeyOnlyDictionaryCompiler_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_KeyOnlyDictionaryCompiler = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_KeyOnlyDictionaryCompiler, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_KeyOnlyDictionaryCompiler = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.KeyOnlyDictionaryCompiler", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_KeyOnlyDictionaryCompiler), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_KeyOnlyDictionaryCompiler, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_KeyOnlyDictionaryCompiler, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _KeyOnlyDictionaryCompiler\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_KeyOnlyDictionaryCompiler, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_25KeyOnlyDictionaryCompiler_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_KeyOnlyDictionaryCompiler, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_KeyOnlyDictionaryGenerator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryGenerator> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_KeyOnlyDictionaryGenerator(PyObject *o) {
  struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *p = (struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_26KeyOnlyDictionaryGenerator_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_KeyOnlyDictionaryGenerator[] = {
  {"Add", (PyCFunction)__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_5Add, METH_O, __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_4Add},
  {"CloseFeeding", (PyCFunction)__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_7CloseFeeding, METH_NOARGS, __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_6CloseFeeding},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_9WriteToFile, METH_O, __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_8WriteToFile},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_26KeyOnlyDictionaryGenerator_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_KeyOnlyDictionaryGenerator = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.KeyOnlyDictionaryGenerator", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_KeyOnlyDictionaryGenerator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_KeyOnlyDictionaryGenerator, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _KeyOnlyDictionaryGenerator\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_KeyOnlyDictionaryGenerator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_26KeyOnlyDictionaryGenerator_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_KeyOnlyDictionaryGenerator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_KeyOnlyDictionaryMerger(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::KeyOnlyDictionaryMerger> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_KeyOnlyDictionaryMerger(PyObject *o) {
  struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *p = (struct __pyx_obj_5_core_KeyOnlyDictionaryMerger *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_23KeyOnlyDictionaryMerger_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_KeyOnlyDictionaryMerger[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_3_init_0, METH_NOARGS, __pyx_doc_5_core_23KeyOnlyDictionaryMerger_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_5_init_1, METH_O, __pyx_doc_5_core_23KeyOnlyDictionaryMerger_4_init_1},
  {"Add", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_9Add, METH_O, __pyx_doc_5_core_23KeyOnlyDictionaryMerger_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_11SetManifest, METH_O, __pyx_doc_5_core_23KeyOnlyDictionaryMerger_10SetManifest},
  {"Merge", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_13Merge, METH_O, __pyx_doc_5_core_23KeyOnlyDictionaryMerger_12Merge},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_23KeyOnlyDictionaryMerger_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_KeyOnlyDictionaryMerger = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.KeyOnlyDictionaryMerger", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_KeyOnlyDictionaryMerger), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_KeyOnlyDictionaryMerger, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _KeyOnlyDictionaryMerger\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_KeyOnlyDictionaryMerger, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_23KeyOnlyDictionaryMerger_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_KeyOnlyDictionaryMerger, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_Match(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_Match *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_Match *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::Match> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_Match(PyObject *o) {
  struct __pyx_obj_5_core_Match *p = (struct __pyx_obj_5_core_Match *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_5Match_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_Match[] = {
  {"__copy__", (PyCFunction)__pyx_pw_5_core_5Match_3__copy__, METH_NOARGS, 0},
  {"__deepcopy__", (PyCFunction)__pyx_pw_5_core_5Match_5__deepcopy__, METH_O, 0},
  {"_init_0", (PyCFunction)__pyx_pw_5_core_5Match_7_init_0, METH_NOARGS, __pyx_doc_5_core_5Match_6_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_5Match_9_init_1, METH_O, __pyx_doc_5_core_5Match_8_init_1},
  {"GetStart", (PyCFunction)__pyx_pw_5_core_5Match_13GetStart, METH_NOARGS, __pyx_doc_5_core_5Match_12GetStart},
  {"SetStart", (PyCFunction)__pyx_pw_5_core_5Match_15SetStart, METH_O, __pyx_doc_5_core_5Match_14SetStart},
  {"GetEnd", (PyCFunction)__pyx_pw_5_core_5Match_17GetEnd, METH_NOARGS, __pyx_doc_5_core_5Match_16GetEnd},
  {"SetEnd", (PyCFunction)__pyx_pw_5_core_5Match_19SetEnd, METH_O, __pyx_doc_5_core_5Match_18SetEnd},
  {"GetScore", (PyCFunction)__pyx_pw_5_core_5Match_21GetScore, METH_NOARGS, __pyx_doc_5_core_5Match_20GetScore},
  {"SetScore", (PyCFunction)__pyx_pw_5_core_5Match_23SetScore, METH_O, __pyx_doc_5_core_5Match_22SetScore},
  {"GetMatchedString", (PyCFunction)__pyx_pw_5_core_5Match_25GetMatchedString, METH_NOARGS, __pyx_doc_5_core_5Match_24GetMatchedString},
  {"SetMatchedString", (PyCFunction)__pyx_pw_5_core_5Match_27SetMatchedString, METH_O, __pyx_doc_5_core_5Match_26SetMatchedString},
  {"GetValueAsString", (PyCFunction)__pyx_pw_5_core_5Match_29GetValueAsString, METH_NOARGS, __pyx_doc_5_core_5Match_28GetValueAsString},
  {"GetRawValueAsString", (PyCFunction)__pyx_pw_5_core_5Match_31GetRawValueAsString, METH_NOARGS, __pyx_doc_5_core_5Match_30GetRawValueAsString},
  {"IsEmpty", (PyCFunction)__pyx_pw_5_core_5Match_33IsEmpty, METH_NOARGS, __pyx_doc_5_core_5Match_32IsEmpty},
  {"GetAttribute", (PyCFunction)__pyx_pw_5_core_5Match_35GetAttribute, METH_O, 0},
  {"SetAttribute", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Match_37SetAttribute, METH_VARARGS|METH_KEYWORDS, 0},
  {"GetValue", (PyCFunction)__pyx_pw_5_core_5Match_39GetValue, METH_NOARGS, __pyx_doc_5_core_5Match_38GetValue},
  {"dumps", (PyCFunction)__pyx_pw_5_core_5Match_41dumps, METH_NOARGS, 0},
  {"__SetRawValue", (PyCFunction)__pyx_pw_5_core_5Match_43__SetRawValue, METH_O, 0},
  {"loads", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_5Match_45loads, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_5Match_47__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_5Match_49__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_Match = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.Match", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_Match), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_Match, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _Match\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_Match, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_5Match_11__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_Match, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_MultiWordCompletion(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_MultiWordCompletion *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_MultiWordCompletion *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::completion::MultiWordCompletion> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_MultiWordCompletion(PyObject *o) {
  struct __pyx_obj_5_core_MultiWordCompletion *p = (struct __pyx_obj_5_core_MultiWordCompletion *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_19MultiWordCompletion_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_MultiWordCompletion[] = {
  {"_GetCompletions_0", (PyCFunction)__pyx_pw_5_core_19MultiWordCompletion_5_GetCompletions_0, METH_O, __pyx_doc_5_core_19MultiWordCompletion_4_GetCompletions_0},
  {"_GetCompletions_1", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_19MultiWordCompletion_7_GetCompletions_1, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_19MultiWordCompletion_6_GetCompletions_1},
  {"GetCompletions", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_19MultiWordCompletion_9GetCompletions, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_19MultiWordCompletion_8GetCompletions},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_19MultiWordCompletion_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_19MultiWordCompletion_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_MultiWordCompletion = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.MultiWordCompletion", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_MultiWordCompletion), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_MultiWordCompletion, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _MultiWordCompletion\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_MultiWordCompletion, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_19MultiWordCompletion_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_MultiWordCompletion, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_PredictiveCompression(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_PredictiveCompression *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_PredictiveCompression *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::compression::PredictiveCompression> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_PredictiveCompression(PyObject *o) {
  struct __pyx_obj_5_core_PredictiveCompression *p = (struct __pyx_obj_5_core_PredictiveCompression *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_21PredictiveCompression_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_PredictiveCompression[] = {
  {"Compress", (PyCFunction)__pyx_pw_5_core_21PredictiveCompression_5Compress, METH_O, __pyx_doc_5_core_21PredictiveCompression_4Compress},
  {"Uncompress", (PyCFunction)__pyx_pw_5_core_21PredictiveCompression_7Uncompress, METH_O, __pyx_doc_5_core_21PredictiveCompression_6Uncompress},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_21PredictiveCompression_9__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_21PredictiveCompression_11__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_PredictiveCompression = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.PredictiveCompression", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_PredictiveCompression), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_PredictiveCompression, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _PredictiveCompression\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_PredictiveCompression, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_21PredictiveCompression_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_PredictiveCompression, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_PrefixCompletion(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_PrefixCompletion *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_PrefixCompletion *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::completion::PrefixCompletion> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_PrefixCompletion(PyObject *o) {
  struct __pyx_obj_5_core_PrefixCompletion *p = (struct __pyx_obj_5_core_PrefixCompletion *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_16PrefixCompletion_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_PrefixCompletion[] = {
  {"_GetCompletions_0", (PyCFunction)__pyx_pw_5_core_16PrefixCompletion_5_GetCompletions_0, METH_O, __pyx_doc_5_core_16PrefixCompletion_4_GetCompletions_0},
  {"_GetCompletions_1", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_16PrefixCompletion_7_GetCompletions_1, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_16PrefixCompletion_6_GetCompletions_1},
  {"GetCompletions", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_16PrefixCompletion_9GetCompletions, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_16PrefixCompletion_8GetCompletions},
  {"GetFuzzyCompletions", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_16PrefixCompletion_11GetFuzzyCompletions, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_16PrefixCompletion_10GetFuzzyCompletions},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_16PrefixCompletion_13__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_16PrefixCompletion_15__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_PrefixCompletion = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.PrefixCompletion", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_PrefixCompletion), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_PrefixCompletion, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _PrefixCompletion\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_PrefixCompletion, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_16PrefixCompletion_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_PrefixCompletion, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_ReadOnlyIndex(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_ReadOnlyIndex *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_ReadOnlyIndex *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::index::ReadOnlyIndex> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_ReadOnlyIndex(PyObject *o) {
  struct __pyx_obj_5_core_ReadOnlyIndex *p = (struct __pyx_obj_5_core_ReadOnlyIndex *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_13ReadOnlyIndex_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_5_core_ReadOnlyIndex(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static PyMethodDef __pyx_methods_5_core_ReadOnlyIndex[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_13ReadOnlyIndex_3_init_0, METH_O, __pyx_doc_5_core_13ReadOnlyIndex_2_init_0},
  {"_init_1", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_13ReadOnlyIndex_5_init_1, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_13ReadOnlyIndex_4_init_1},
  {"GetFuzzy", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_13ReadOnlyIndex_9GetFuzzy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_13ReadOnlyIndex_8GetFuzzy},
  {"Get", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_13ReadOnlyIndex_11Get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_13ReadOnlyIndex_10Get},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_13ReadOnlyIndex_17__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_13ReadOnlyIndex_19__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_ReadOnlyIndex = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_5_core_ReadOnlyIndex, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  __pyx_pw_5_core_13ReadOnlyIndex_13__contains__, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ReadOnlyIndex = {
  0, /*mp_length*/
  __pyx_pw_5_core_13ReadOnlyIndex_15__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_ReadOnlyIndex = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.ReadOnlyIndex", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_ReadOnlyIndex), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_ReadOnlyIndex, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_ReadOnlyIndex, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ReadOnlyIndex, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _ReadOnlyIndex\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_ReadOnlyIndex, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_13ReadOnlyIndex_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_ReadOnlyIndex, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_StringDictionaryCompiler(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_StringDictionaryCompiler *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_StringDictionaryCompiler *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::StringDictionaryCompiler> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_StringDictionaryCompiler(PyObject *o) {
  struct __pyx_obj_5_core_StringDictionaryCompiler *p = (struct __pyx_obj_5_core_StringDictionaryCompiler *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_24StringDictionaryCompiler_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_mp_ass_subscript_5_core_StringDictionaryCompiler(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_5_core_24StringDictionaryCompiler_17__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_5_core_StringDictionaryCompiler[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_3_init_0, METH_NOARGS, __pyx_doc_5_core_24StringDictionaryCompiler_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_5_init_1, METH_O, __pyx_doc_5_core_24StringDictionaryCompiler_4_init_1},
  {"Add", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_24StringDictionaryCompiler_9Add, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5_core_24StringDictionaryCompiler_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_11SetManifest, METH_O, __pyx_doc_5_core_24StringDictionaryCompiler_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_13WriteToFile, METH_O, __pyx_doc_5_core_24StringDictionaryCompiler_12WriteToFile},
  {"__enter__", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_15__enter__, METH_NOARGS, 0},
  {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_24StringDictionaryCompiler_19__exit__, METH_VARARGS|METH_KEYWORDS, 0},
  {"Compile", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5_core_24StringDictionaryCompiler_21Compile, METH_VARARGS|METH_KEYWORDS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_23__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_24StringDictionaryCompiler_25__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyMappingMethods __pyx_tp_as_mapping_StringDictionaryCompiler = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  __pyx_mp_ass_subscript_5_core_StringDictionaryCompiler, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_5_core_StringDictionaryCompiler = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.StringDictionaryCompiler", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_StringDictionaryCompiler), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_StringDictionaryCompiler, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_StringDictionaryCompiler, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _StringDictionaryCompiler\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_StringDictionaryCompiler, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_24StringDictionaryCompiler_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_StringDictionaryCompiler, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_StringDictionaryMerger(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_StringDictionaryMerger *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_StringDictionaryMerger *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::dictionary::StringDictionaryMerger> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_StringDictionaryMerger(PyObject *o) {
  struct __pyx_obj_5_core_StringDictionaryMerger *p = (struct __pyx_obj_5_core_StringDictionaryMerger *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_22StringDictionaryMerger_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_StringDictionaryMerger[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_3_init_0, METH_NOARGS, __pyx_doc_5_core_22StringDictionaryMerger_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_5_init_1, METH_O, __pyx_doc_5_core_22StringDictionaryMerger_4_init_1},
  {"Add", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_9Add, METH_O, __pyx_doc_5_core_22StringDictionaryMerger_8Add},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_11SetManifest, METH_O, __pyx_doc_5_core_22StringDictionaryMerger_10SetManifest},
  {"Merge", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_13Merge, METH_O, __pyx_doc_5_core_22StringDictionaryMerger_12Merge},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_22StringDictionaryMerger_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_StringDictionaryMerger = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.StringDictionaryMerger", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_StringDictionaryMerger), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_StringDictionaryMerger, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _StringDictionaryMerger\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_StringDictionaryMerger, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_22StringDictionaryMerger_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_StringDictionaryMerger, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_StringVector(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_StringVector *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_StringVector *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::vector::StringVector> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_StringVector(PyObject *o) {
  struct __pyx_obj_5_core_StringVector *p = (struct __pyx_obj_5_core_StringVector *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_12StringVector_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_StringVector[] = {
  {"Get", (PyCFunction)__pyx_pw_5_core_12StringVector_5Get, METH_O, __pyx_doc_5_core_12StringVector_4Get},
  {"Size", (PyCFunction)__pyx_pw_5_core_12StringVector_7Size, METH_NOARGS, __pyx_doc_5_core_12StringVector_6Size},
  {"Manifest", (PyCFunction)__pyx_pw_5_core_12StringVector_9Manifest, METH_NOARGS, __pyx_doc_5_core_12StringVector_8Manifest},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_12StringVector_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_12StringVector_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_StringVector = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.StringVector", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_StringVector), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_StringVector, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _StringVector\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_StringVector, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_12StringVector_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_StringVector, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_StringVectorGenerator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_StringVectorGenerator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_StringVectorGenerator *)o);
  new((void*)&(p->inst)) std::shared_ptr<keyvi::vector::StringVectorGenerator> ();
  return o;
}

static void __pyx_tp_dealloc_5_core_StringVectorGenerator(PyObject *o) {
  struct __pyx_obj_5_core_StringVectorGenerator *p = (struct __pyx_obj_5_core_StringVectorGenerator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_5_core_21StringVectorGenerator_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->inst);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_StringVectorGenerator[] = {
  {"_init_0", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_3_init_0, METH_NOARGS, __pyx_doc_5_core_21StringVectorGenerator_2_init_0},
  {"_init_1", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_5_init_1, METH_O, __pyx_doc_5_core_21StringVectorGenerator_4_init_1},
  {"PushBack", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_9PushBack, METH_O, __pyx_doc_5_core_21StringVectorGenerator_8PushBack},
  {"SetManifest", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_11SetManifest, METH_O, __pyx_doc_5_core_21StringVectorGenerator_10SetManifest},
  {"WriteToFile", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_13WriteToFile, METH_O, __pyx_doc_5_core_21StringVectorGenerator_12WriteToFile},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_15__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_21StringVectorGenerator_17__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_StringVectorGenerator = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.StringVectorGenerator", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_StringVectorGenerator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_StringVectorGenerator, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "\n    Cython implementation of _StringVectorGenerator\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_StringVectorGenerator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_5_core_21StringVectorGenerator_7__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_StringVectorGenerator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_loading_strategy_types(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_5_core_loading_strategy_types(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_5_core_loading_strategy_types[] = {
  {"getMapping", (PyCFunction)__pyx_pw_5_core_22loading_strategy_types_1getMapping, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_22loading_strategy_types_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_22loading_strategy_types_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_loading_strategy_types = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.loading_strategy_types", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_loading_strategy_types), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_loading_strategy_types, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_core_loading_strategy_types, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_loading_strategy_types, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_5_core_MatchIterator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_5_core_MatchIterator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_5_core_MatchIterator *)o);
  new((void*)&(p->it)) keyvi::dictionary::MatchIterator();
  new((void*)&(p->end)) keyvi::dictionary::MatchIterator();
  return o;
}

static void __pyx_tp_dealloc_5_core_MatchIterator(PyObject *o) {
  struct __pyx_obj_5_core_MatchIterator *p = (struct __pyx_obj_5_core_MatchIterator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  __Pyx_call_destructor(p->it);
  __Pyx_call_destructor(p->end);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyObject *__pyx_specialmethod___pyx_pw_5_core_13MatchIterator_3__next__(PyObject *self, CYTHON_UNUSED PyObject *arg) {return __pyx_pw_5_core_13MatchIterator_3__next__(self);}

static PyMethodDef __pyx_methods_5_core_MatchIterator[] = {
  {"__next__", (PyCFunction)__pyx_specialmethod___pyx_pw_5_core_13MatchIterator_3__next__, METH_NOARGS|METH_COEXIST, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_5_core_13MatchIterator_5__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_5_core_13MatchIterator_7__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_5_core_MatchIterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.MatchIterator", /*tp_name*/
  sizeof(struct __pyx_obj_5_core_MatchIterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core_MatchIterator, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_5_core_13MatchIterator_1__iter__, /*tp_iter*/
  __pyx_pw_5_core_13MatchIterator_3__next__, /*tp_iternext*/
  __pyx_methods_5_core_MatchIterator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core_MatchIterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct___init_1 *__pyx_freelist_5_core___pyx_scope_struct___init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct___init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct___init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct___init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct___init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct___init_1[--__pyx_freecount_5_core___pyx_scope_struct___init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct___init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct___init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct___init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct___init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct___init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct___init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct___init_1[__pyx_freecount_5_core___pyx_scope_struct___init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct___init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct___init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct___init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct___init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct___init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct___init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct___init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct___init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct___init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct___init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct___init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct___init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct___init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct___init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *__pyx_freelist_5_core___pyx_scope_struct_1_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_1_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_1_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_1_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_1_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_1_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_1_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_1_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_1_genexpr[__pyx_freecount_5_core___pyx_scope_struct_1_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_1_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_1_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_1_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_1_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_1_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_1_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_1_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *__pyx_freelist_5_core___pyx_scope_struct_2_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_2_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_2_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_2_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_2_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_2_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_2_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_2_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_2_genexpr[__pyx_freecount_5_core___pyx_scope_struct_2_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_2_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_2_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_2_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_2_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_2_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_2_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_2_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *__pyx_freelist_5_core___pyx_scope_struct_3___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_3___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_3___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_3___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_3___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_3___init__[--__pyx_freecount_5_core___pyx_scope_struct_3___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_3___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_3___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_3___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_3___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_3___init__[__pyx_freecount_5_core___pyx_scope_struct_3___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_3___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_3___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_3___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_3___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_3___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_3___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_3___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_3___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_3___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_3___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *__pyx_freelist_5_core___pyx_scope_struct_4_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_4_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_4_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_4_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_4_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_4_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_4_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_4_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_4_genexpr[__pyx_freecount_5_core___pyx_scope_struct_4_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_4_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_4_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_4_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_4_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_4_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_4_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_4_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *__pyx_freelist_5_core___pyx_scope_struct_5_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_5_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_5_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_5_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_5_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_5_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_5_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_5_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_5_genexpr[__pyx_freecount_5_core___pyx_scope_struct_5_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_5_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_5_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_5_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_5_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_5_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_5_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_5_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *__pyx_freelist_5_core___pyx_scope_struct_6__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_6__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_6__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_6__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_6__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_6__init_1[--__pyx_freecount_5_core___pyx_scope_struct_6__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_6__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_6__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_6__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_6__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_6__init_1[__pyx_freecount_5_core___pyx_scope_struct_6__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_6__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_6__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_6__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_6__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_6__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_6__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_6__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_6__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_6__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_6__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *__pyx_freelist_5_core___pyx_scope_struct_7_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_7_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_7_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_7_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_7_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_7_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_7_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_7_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_7_genexpr[__pyx_freecount_5_core___pyx_scope_struct_7_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_7_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_7_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_7_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_7_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_7_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_7_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_7_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *__pyx_freelist_5_core___pyx_scope_struct_8_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_8_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_8_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_8_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_8_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_8_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_8_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_8_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_8_genexpr[__pyx_freecount_5_core___pyx_scope_struct_8_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_8_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_8_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_8_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_8_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_8_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_8_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_8_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *__pyx_freelist_5_core___pyx_scope_struct_9___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_9___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_9___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_9___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_9___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_9___init__[--__pyx_freecount_5_core___pyx_scope_struct_9___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_9___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_9___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_9___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_9___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_9___init__[__pyx_freecount_5_core___pyx_scope_struct_9___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_9___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_9___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_9___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_9___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_9___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_9___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_9___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_9___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_9___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_9___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *__pyx_freelist_5_core___pyx_scope_struct_10_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_10_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_10_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_10_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_10_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_10_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_10_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_10_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_10_genexpr[__pyx_freecount_5_core___pyx_scope_struct_10_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_10_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_10_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_10_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_10_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_10_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_10_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_10_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *__pyx_freelist_5_core___pyx_scope_struct_11_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_11_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_11_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_11_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_11_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_11_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_11_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_11_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_11_genexpr[__pyx_freecount_5_core___pyx_scope_struct_11_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_11_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_11_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_11_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_11_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_11_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_11_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_11_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *__pyx_freelist_5_core___pyx_scope_struct_12__key_iterator_wrapper[8];
static int __pyx_freecount_5_core___pyx_scope_struct_12__key_iterator_wrapper = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_12__key_iterator_wrapper(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_12__key_iterator_wrapper > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_12__key_iterator_wrapper[--__pyx_freecount_5_core___pyx_scope_struct_12__key_iterator_wrapper];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_12__key_iterator_wrapper(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *p = (struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_iterator);
  Py_CLEAR(p->__pyx_v_m);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_t_0);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_12__key_iterator_wrapper < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper)))) {
    __pyx_freelist_5_core___pyx_scope_struct_12__key_iterator_wrapper[__pyx_freecount_5_core___pyx_scope_struct_12__key_iterator_wrapper++] = ((struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_12__key_iterator_wrapper(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *p = (struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper *)o;
  if (p->__pyx_v_iterator) {
    e = (*v)(p->__pyx_v_iterator, a); if (e) return e;
  }
  if (p->__pyx_v_m) {
    e = (*v)(p->__pyx_v_m, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_12__key_iterator_wrapper", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_12__key_iterator_wrapper), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_12__key_iterator_wrapper, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_12__key_iterator_wrapper, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_12__key_iterator_wrapper, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *__pyx_freelist_5_core___pyx_scope_struct_13__value_iterator_wrapper[8];
static int __pyx_freecount_5_core___pyx_scope_struct_13__value_iterator_wrapper = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_13__value_iterator_wrapper(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_13__value_iterator_wrapper > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_13__value_iterator_wrapper[--__pyx_freecount_5_core___pyx_scope_struct_13__value_iterator_wrapper];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_13__value_iterator_wrapper(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *p = (struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_iterator);
  Py_CLEAR(p->__pyx_v_m);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_t_0);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_13__value_iterator_wrapper < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper)))) {
    __pyx_freelist_5_core___pyx_scope_struct_13__value_iterator_wrapper[__pyx_freecount_5_core___pyx_scope_struct_13__value_iterator_wrapper++] = ((struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_13__value_iterator_wrapper(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *p = (struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper *)o;
  if (p->__pyx_v_iterator) {
    e = (*v)(p->__pyx_v_iterator, a); if (e) return e;
  }
  if (p->__pyx_v_m) {
    e = (*v)(p->__pyx_v_m, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_13__value_iterator_wrapper", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_13__value_iterator_wrapper), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_13__value_iterator_wrapper, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_13__value_iterator_wrapper, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_13__value_iterator_wrapper, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *__pyx_freelist_5_core___pyx_scope_struct_14__item_iterator_wrapper[8];
static int __pyx_freecount_5_core___pyx_scope_struct_14__item_iterator_wrapper = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_14__item_iterator_wrapper(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_14__item_iterator_wrapper > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_14__item_iterator_wrapper[--__pyx_freecount_5_core___pyx_scope_struct_14__item_iterator_wrapper];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_14__item_iterator_wrapper(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *p = (struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_iterator);
  Py_CLEAR(p->__pyx_v_m);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_t_0);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_14__item_iterator_wrapper < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper)))) {
    __pyx_freelist_5_core___pyx_scope_struct_14__item_iterator_wrapper[__pyx_freecount_5_core___pyx_scope_struct_14__item_iterator_wrapper++] = ((struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_14__item_iterator_wrapper(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *p = (struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper *)o;
  if (p->__pyx_v_iterator) {
    e = (*v)(p->__pyx_v_iterator, a); if (e) return e;
  }
  if (p->__pyx_v_m) {
    e = (*v)(p->__pyx_v_m, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_14__item_iterator_wrapper", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_14__item_iterator_wrapper), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_14__item_iterator_wrapper, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_14__item_iterator_wrapper, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_14__item_iterator_wrapper, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *__pyx_freelist_5_core___pyx_scope_struct_15___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_15___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_15___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_15___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_15___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_15___init__[--__pyx_freecount_5_core___pyx_scope_struct_15___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_15___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_15___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_15___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_15___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_15___init__[__pyx_freecount_5_core___pyx_scope_struct_15___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_15___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_15___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_15___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_15___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_15___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_15___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_15___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_15___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_15___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_15___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *__pyx_freelist_5_core___pyx_scope_struct_16_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_16_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_16_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_16_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_16_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_16_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_16_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_16_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_16_genexpr[__pyx_freecount_5_core___pyx_scope_struct_16_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_16_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_16_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_16_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_16_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_16_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_16_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_16_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *__pyx_freelist_5_core___pyx_scope_struct_17_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_17_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_17_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_17_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_17_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_17_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_17_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_17_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_17_genexpr[__pyx_freecount_5_core___pyx_scope_struct_17_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_17_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_17_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_17_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_17_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_17_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_17_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_17_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *__pyx_freelist_5_core___pyx_scope_struct_18__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_18__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_18__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_18__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_18__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_18__init_1[--__pyx_freecount_5_core___pyx_scope_struct_18__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_18__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_18__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_18__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_18__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_18__init_1[__pyx_freecount_5_core___pyx_scope_struct_18__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_18__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_18__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_18__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_18__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_18__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_18__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_18__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_18__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_18__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_18__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *__pyx_freelist_5_core___pyx_scope_struct_19_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_19_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_19_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_19_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_19_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_19_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_19_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_19_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_19_genexpr[__pyx_freecount_5_core___pyx_scope_struct_19_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_19_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_19_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_19_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_19_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_19_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_19_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_19_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *__pyx_freelist_5_core___pyx_scope_struct_20_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_20_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_20_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_20_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_20_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_20_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_20_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_20_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_20_genexpr[__pyx_freecount_5_core___pyx_scope_struct_20_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_20_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_20_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_20_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_20_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_20_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_20_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_20_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *__pyx_freelist_5_core___pyx_scope_struct_21___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_21___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_21___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_21___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_21___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_21___init__[--__pyx_freecount_5_core___pyx_scope_struct_21___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_21___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_21___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_21___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_21___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_21___init__[__pyx_freecount_5_core___pyx_scope_struct_21___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_21___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_21___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_21___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_21___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_21___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_21___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_21___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_21___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_21___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_21___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *__pyx_freelist_5_core___pyx_scope_struct_22_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_22_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_22_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_22_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_22_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_22_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_22_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_22_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_22_genexpr[__pyx_freecount_5_core___pyx_scope_struct_22_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_22_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_22_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_22_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_22_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_22_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_22_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_22_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *__pyx_freelist_5_core___pyx_scope_struct_23_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_23_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_23_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_23_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_23_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_23_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_23_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_23_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_23_genexpr[__pyx_freecount_5_core___pyx_scope_struct_23_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_23_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_23_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_23_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_23_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_23_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_23_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_23_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *__pyx_freelist_5_core___pyx_scope_struct_24__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_24__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_24__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_24__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_24__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_24__init_1[--__pyx_freecount_5_core___pyx_scope_struct_24__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_24__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_24__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_24__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_24__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_24__init_1[__pyx_freecount_5_core___pyx_scope_struct_24__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_24__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_24__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_24__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_24__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_24__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_24__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_24__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_24__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_24__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_24__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *__pyx_freelist_5_core___pyx_scope_struct_25_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_25_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_25_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_25_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_25_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_25_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_25_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_25_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_25_genexpr[__pyx_freecount_5_core___pyx_scope_struct_25_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_25_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_25_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_25_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_25_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_25_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_25_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_25_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *__pyx_freelist_5_core___pyx_scope_struct_26_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_26_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_26_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_26_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_26_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_26_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_26_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_26_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_26_genexpr[__pyx_freecount_5_core___pyx_scope_struct_26_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_26_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_26_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_26_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_26_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_26_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_26_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_26_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *__pyx_freelist_5_core___pyx_scope_struct_27___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_27___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_27___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_27___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_27___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_27___init__[--__pyx_freecount_5_core___pyx_scope_struct_27___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_27___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_27___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_27___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_27___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_27___init__[__pyx_freecount_5_core___pyx_scope_struct_27___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_27___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_27___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_27___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_27___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_27___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_27___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_27___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_27___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_27___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_27___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *__pyx_freelist_5_core___pyx_scope_struct_28_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_28_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_28_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_28_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_28_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_28_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_28_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_28_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_28_genexpr[__pyx_freecount_5_core___pyx_scope_struct_28_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_28_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_28_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_28_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_28_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_28_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_28_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_28_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *__pyx_freelist_5_core___pyx_scope_struct_29_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_29_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_29_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_29_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_29_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_29_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_29_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_29_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_29_genexpr[__pyx_freecount_5_core___pyx_scope_struct_29_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_29_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_29_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_29_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_29_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_29_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_29_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_29_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *__pyx_freelist_5_core___pyx_scope_struct_30__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_30__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_30__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_30__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_30__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_30__init_1[--__pyx_freecount_5_core___pyx_scope_struct_30__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_30__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_30__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_30__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_30__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_30__init_1[__pyx_freecount_5_core___pyx_scope_struct_30__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_30__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_30__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_30__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_30__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_30__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_30__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_30__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_30__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_30__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_30__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *__pyx_freelist_5_core___pyx_scope_struct_31_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_31_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_31_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_31_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_31_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_31_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_31_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_31_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_31_genexpr[__pyx_freecount_5_core___pyx_scope_struct_31_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_31_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_31_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_31_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_31_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_31_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_31_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_31_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *__pyx_freelist_5_core___pyx_scope_struct_32_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_32_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_32_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_32_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_32_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_32_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_32_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_32_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_32_genexpr[__pyx_freecount_5_core___pyx_scope_struct_32_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_32_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_32_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_32_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_32_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_32_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_32_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_32_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *__pyx_freelist_5_core___pyx_scope_struct_33___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_33___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_33___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_33___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_33___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_33___init__[--__pyx_freecount_5_core___pyx_scope_struct_33___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_33___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_33___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_33___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_33___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_33___init__[__pyx_freecount_5_core___pyx_scope_struct_33___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_33___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_33___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_33___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_33___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_33___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_33___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_33___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_33___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_33___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_33___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *__pyx_freelist_5_core___pyx_scope_struct_34_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_34_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_34_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_34_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_34_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_34_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_34_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_34_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_34_genexpr[__pyx_freecount_5_core___pyx_scope_struct_34_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_34_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_34_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_34_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_34_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_34_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_34_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_34_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *__pyx_freelist_5_core___pyx_scope_struct_35_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_35_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_35_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_35_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_35_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_35_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_35_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_35_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_35_genexpr[__pyx_freecount_5_core___pyx_scope_struct_35_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_35_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_35_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_35_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_35_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_35_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_35_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_35_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *__pyx_freelist_5_core___pyx_scope_struct_36__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_36__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_36__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_36__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_36__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_36__init_1[--__pyx_freecount_5_core___pyx_scope_struct_36__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_36__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_36__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_36__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_36__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_36__init_1[__pyx_freecount_5_core___pyx_scope_struct_36__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_36__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_36__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_36__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_36__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_36__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_36__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_36__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_36__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_36__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_36__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *__pyx_freelist_5_core___pyx_scope_struct_37_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_37_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_37_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_37_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_37_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_37_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_37_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_37_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_37_genexpr[__pyx_freecount_5_core___pyx_scope_struct_37_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_37_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_37_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_37_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_37_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_37_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_37_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_37_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *__pyx_freelist_5_core___pyx_scope_struct_38_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_38_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_38_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_38_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_38_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_38_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_38_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_38_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_38_genexpr[__pyx_freecount_5_core___pyx_scope_struct_38_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_38_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_38_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_38_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_38_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_38_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_38_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_38_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *__pyx_freelist_5_core___pyx_scope_struct_39___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_39___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_39___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_39___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_39___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_39___init__[--__pyx_freecount_5_core___pyx_scope_struct_39___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_39___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_39___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_39___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_39___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_39___init__[__pyx_freecount_5_core___pyx_scope_struct_39___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_39___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_39___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_39___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_39___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_39___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_39___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_39___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_39___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_39___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_39___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *__pyx_freelist_5_core___pyx_scope_struct_40_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_40_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_40_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_40_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_40_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_40_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_40_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_40_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_40_genexpr[__pyx_freecount_5_core___pyx_scope_struct_40_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_40_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_40_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_40_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_40_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_40_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_40_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_40_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *__pyx_freelist_5_core___pyx_scope_struct_41_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_41_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_41_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_41_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_41_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_41_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_41_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_41_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_41_genexpr[__pyx_freecount_5_core___pyx_scope_struct_41_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_41_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_41_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_41_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_41_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_41_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_41_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_41_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *__pyx_freelist_5_core___pyx_scope_struct_42__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_42__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_42__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_42__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_42__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_42__init_1[--__pyx_freecount_5_core___pyx_scope_struct_42__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_42__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_42__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_42__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_42__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_42__init_1[__pyx_freecount_5_core___pyx_scope_struct_42__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_42__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_42__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_42__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_42__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_42__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_42__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_42__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_42__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_42__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_42__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *__pyx_freelist_5_core___pyx_scope_struct_43_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_43_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_43_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_43_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_43_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_43_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_43_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_43_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_43_genexpr[__pyx_freecount_5_core___pyx_scope_struct_43_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_43_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_43_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_43_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_43_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_43_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_43_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_43_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *__pyx_freelist_5_core___pyx_scope_struct_44_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_44_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_44_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_44_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_44_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_44_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_44_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_44_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_44_genexpr[__pyx_freecount_5_core___pyx_scope_struct_44_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_44_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_44_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_44_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_44_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_44_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_44_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_44_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *__pyx_freelist_5_core___pyx_scope_struct_45___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_45___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_45___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_45___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_45___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_45___init__[--__pyx_freecount_5_core___pyx_scope_struct_45___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_45___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_45___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_45___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_45___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_45___init__[__pyx_freecount_5_core___pyx_scope_struct_45___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_45___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_45___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_45___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_45___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_45___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_45___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_45___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_45___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_45___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_45___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *__pyx_freelist_5_core___pyx_scope_struct_46_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_46_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_46_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_46_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_46_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_46_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_46_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_46_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_46_genexpr[__pyx_freecount_5_core___pyx_scope_struct_46_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_46_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_46_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_46_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_46_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_46_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_46_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_46_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *__pyx_freelist_5_core___pyx_scope_struct_47_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_47_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_47_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_47_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_47_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_47_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_47_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_47_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_47_genexpr[__pyx_freecount_5_core___pyx_scope_struct_47_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_47_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_47_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_47_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_47_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_47_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_47_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_47_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *__pyx_freelist_5_core___pyx_scope_struct_48__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_48__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_48__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_48__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_48__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_48__init_1[--__pyx_freecount_5_core___pyx_scope_struct_48__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_48__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_48__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_48__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_48__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_48__init_1[__pyx_freecount_5_core___pyx_scope_struct_48__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_48__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_48__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_48__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_48__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_48__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_48__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_48__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_48__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_48__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_48__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *__pyx_freelist_5_core___pyx_scope_struct_49_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_49_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_49_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_49_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_49_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_49_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_49_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_49_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_49_genexpr[__pyx_freecount_5_core___pyx_scope_struct_49_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_49_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_49_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_49_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_49_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_49_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_49_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_49_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *__pyx_freelist_5_core___pyx_scope_struct_50_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_50_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_50_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_50_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_50_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_50_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_50_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_50_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_50_genexpr[__pyx_freecount_5_core___pyx_scope_struct_50_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_50_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_50_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_50_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_50_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_50_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_50_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_50_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *__pyx_freelist_5_core___pyx_scope_struct_51___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_51___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_51___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_51___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_51___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_51___init__[--__pyx_freecount_5_core___pyx_scope_struct_51___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_51___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_51___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_51___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_51___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_51___init__[__pyx_freecount_5_core___pyx_scope_struct_51___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_51___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_51___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_51___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_51___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_51___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_51___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_51___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_51___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_51___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_51___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *__pyx_freelist_5_core___pyx_scope_struct_52_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_52_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_52_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_52_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_52_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_52_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_52_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_52_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_52_genexpr[__pyx_freecount_5_core___pyx_scope_struct_52_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_52_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_52_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_52_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_52_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_52_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_52_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_52_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *__pyx_freelist_5_core___pyx_scope_struct_53_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_53_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_53_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_53_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_53_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_53_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_53_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_53_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_53_genexpr[__pyx_freecount_5_core___pyx_scope_struct_53_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_53_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_53_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_53_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_53_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_53_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_53_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_53_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *__pyx_freelist_5_core___pyx_scope_struct_54__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_54__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_54__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_54__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_54__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_54__init_1[--__pyx_freecount_5_core___pyx_scope_struct_54__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_54__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_54__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_54__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_54__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_54__init_1[__pyx_freecount_5_core___pyx_scope_struct_54__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_54__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_54__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_54__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_54__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_54__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_54__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_54__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_54__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_54__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_54__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *__pyx_freelist_5_core___pyx_scope_struct_55_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_55_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_55_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_55_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_55_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_55_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_55_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_55_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_55_genexpr[__pyx_freecount_5_core___pyx_scope_struct_55_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_55_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_55_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_55_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_55_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_55_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_55_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_55_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *__pyx_freelist_5_core___pyx_scope_struct_56_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_56_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_56_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_56_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_56_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_56_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_56_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_56_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_56_genexpr[__pyx_freecount_5_core___pyx_scope_struct_56_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_56_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_56_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_56_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_56_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_56_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_56_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_56_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *__pyx_freelist_5_core___pyx_scope_struct_57___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_57___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_57___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_57___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_57___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_57___init__[--__pyx_freecount_5_core___pyx_scope_struct_57___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_57___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_57___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_57___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_57___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_57___init__[__pyx_freecount_5_core___pyx_scope_struct_57___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_57___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_57___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_57___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_57___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_57___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_57___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_57___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_57___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_57___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_57___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *__pyx_freelist_5_core___pyx_scope_struct_58_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_58_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_58_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_58_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_58_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_58_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_58_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_58_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_58_genexpr[__pyx_freecount_5_core___pyx_scope_struct_58_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_58_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_58_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_58_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_58_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_58_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_58_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_58_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *__pyx_freelist_5_core___pyx_scope_struct_59_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_59_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_59_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_59_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_59_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_59_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_59_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_59_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_59_genexpr[__pyx_freecount_5_core___pyx_scope_struct_59_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_59_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_59_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_59_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_59_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_59_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_59_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_59_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *__pyx_freelist_5_core___pyx_scope_struct_60__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_60__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_60__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_60__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_60__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_60__init_1[--__pyx_freecount_5_core___pyx_scope_struct_60__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_60__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_60__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_60__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_60__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_60__init_1[__pyx_freecount_5_core___pyx_scope_struct_60__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_60__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_60__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_60__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_60__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_60__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_60__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_60__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_60__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_60__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_60__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *__pyx_freelist_5_core___pyx_scope_struct_61_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_61_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_61_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_61_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_61_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_61_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_61_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_61_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_61_genexpr[__pyx_freecount_5_core___pyx_scope_struct_61_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_61_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_61_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_61_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_61_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_61_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_61_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_61_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *__pyx_freelist_5_core___pyx_scope_struct_62_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_62_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_62_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_62_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_62_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_62_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_62_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_62_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_62_genexpr[__pyx_freecount_5_core___pyx_scope_struct_62_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_62_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_62_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_62_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_62_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_62_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_62_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_62_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *__pyx_freelist_5_core___pyx_scope_struct_63___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_63___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_63___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_63___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_63___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_63___init__[--__pyx_freecount_5_core___pyx_scope_struct_63___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_63___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_63___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_63___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_63___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_63___init__[__pyx_freecount_5_core___pyx_scope_struct_63___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_63___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_63___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_63___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_63___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_63___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_63___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_63___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_63___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_63___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_63___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *__pyx_freelist_5_core___pyx_scope_struct_64_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_64_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_64_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_64_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_64_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_64_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_64_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_64_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_64_genexpr[__pyx_freecount_5_core___pyx_scope_struct_64_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_64_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_64_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_64_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_64_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_64_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_64_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_64_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *__pyx_freelist_5_core___pyx_scope_struct_65_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_65_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_65_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_65_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_65_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_65_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_65_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_65_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_65_genexpr[__pyx_freecount_5_core___pyx_scope_struct_65_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_65_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_65_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_65_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_65_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_65_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_65_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_65_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *__pyx_freelist_5_core___pyx_scope_struct_66__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_66__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_66__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_66__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_66__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_66__init_1[--__pyx_freecount_5_core___pyx_scope_struct_66__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_66__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_66__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_66__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_66__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_66__init_1[__pyx_freecount_5_core___pyx_scope_struct_66__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_66__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_66__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_66__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_66__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_66__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_66__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_66__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_66__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_66__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_66__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *__pyx_freelist_5_core___pyx_scope_struct_67_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_67_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_67_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_67_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_67_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_67_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_67_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_67_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_67_genexpr[__pyx_freecount_5_core___pyx_scope_struct_67_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_67_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_67_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_67_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_67_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_67_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_67_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_67_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *__pyx_freelist_5_core___pyx_scope_struct_68_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_68_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_68_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_68_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_68_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_68_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_68_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_68_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_68_genexpr[__pyx_freecount_5_core___pyx_scope_struct_68_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_68_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_68_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_68_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_68_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_68_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_68_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_68_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *__pyx_freelist_5_core___pyx_scope_struct_69___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_69___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_69___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_69___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_69___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_69___init__[--__pyx_freecount_5_core___pyx_scope_struct_69___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_69___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_69___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_69___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_69___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_69___init__[__pyx_freecount_5_core___pyx_scope_struct_69___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_69___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_69___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_69___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_69___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_69___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_69___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_69___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_69___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_69___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_69___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *__pyx_freelist_5_core___pyx_scope_struct_70_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_70_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_70_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_70_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_70_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_70_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_70_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_70_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_70_genexpr[__pyx_freecount_5_core___pyx_scope_struct_70_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_70_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_70_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_70_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_70_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_70_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_70_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_70_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *__pyx_freelist_5_core___pyx_scope_struct_71_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_71_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_71_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_71_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_71_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_71_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_71_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_71_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_71_genexpr[__pyx_freecount_5_core___pyx_scope_struct_71_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_71_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_71_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_71_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_71_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_71_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_71_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_71_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *__pyx_freelist_5_core___pyx_scope_struct_72__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_72__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_72__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_72__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_72__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_72__init_1[--__pyx_freecount_5_core___pyx_scope_struct_72__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_72__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_72__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_72__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_72__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_72__init_1[__pyx_freecount_5_core___pyx_scope_struct_72__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_72__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *)o;
  if (p->__pyx_v_params) {
    e = (*v)(p->__pyx_v_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_72__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_72__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_params);
  p->__pyx_v_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_72__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_72__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_72__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_72__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_72__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_72__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_72__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *__pyx_freelist_5_core___pyx_scope_struct_73_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_73_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_73_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_73_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_73_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_73_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_73_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_73_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_73_genexpr[__pyx_freecount_5_core___pyx_scope_struct_73_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_73_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_73_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_73_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_73_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_73_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_73_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_73_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *__pyx_freelist_5_core___pyx_scope_struct_74_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_74_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_74_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_74_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_74_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_74_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_74_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_74_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_74_genexpr[__pyx_freecount_5_core___pyx_scope_struct_74_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_74_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_74_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_74_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_74_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_74_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_74_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_74_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *__pyx_freelist_5_core___pyx_scope_struct_75___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_75___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_75___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_75___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_75___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_75___init__[--__pyx_freecount_5_core___pyx_scope_struct_75___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_75___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_75___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_75___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_75___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_75___init__[__pyx_freecount_5_core___pyx_scope_struct_75___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_75___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_75___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_75___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_75___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_75___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_75___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_75___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_75___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_75___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_75___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *__pyx_freelist_5_core___pyx_scope_struct_76_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_76_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_76_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_76_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_76_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_76_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_76_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_76_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_76_genexpr[__pyx_freecount_5_core___pyx_scope_struct_76_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_76_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_76_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_76_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_76_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_76_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_76_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_76_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *__pyx_freelist_5_core___pyx_scope_struct_77_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_77_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_77_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_77_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_77_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_77_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_77_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_77_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_77_genexpr[__pyx_freecount_5_core___pyx_scope_struct_77_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_77_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_77_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_77_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_77_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_77_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_77_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_77_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *__pyx_freelist_5_core___pyx_scope_struct_78__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_78__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_78__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_78__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_78__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_78__init_1[--__pyx_freecount_5_core___pyx_scope_struct_78__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_78__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_78__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_78__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_78__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_78__init_1[__pyx_freecount_5_core___pyx_scope_struct_78__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_78__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_78__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_78__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_78__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_78__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_78__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_78__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_78__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_78__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_78__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *__pyx_freelist_5_core___pyx_scope_struct_79_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_79_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_79_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_79_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_79_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_79_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_79_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_79_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_79_genexpr[__pyx_freecount_5_core___pyx_scope_struct_79_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_79_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_79_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_79_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_79_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_79_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_79_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_79_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *__pyx_freelist_5_core___pyx_scope_struct_80_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_80_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_80_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_80_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_80_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_80_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_80_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_80_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_80_genexpr[__pyx_freecount_5_core___pyx_scope_struct_80_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_80_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_80_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_80_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_80_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_80_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_80_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_80_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *__pyx_freelist_5_core___pyx_scope_struct_81___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_81___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_81___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_81___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_81___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_81___init__[--__pyx_freecount_5_core___pyx_scope_struct_81___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_81___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_81___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_81___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_81___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_81___init__[__pyx_freecount_5_core___pyx_scope_struct_81___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_81___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_81___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_81___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_81___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_81___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_81___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_81___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_81___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_81___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_81___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *__pyx_freelist_5_core___pyx_scope_struct_82_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_82_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_82_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_82_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_82_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_82_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_82_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_82_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_82_genexpr[__pyx_freecount_5_core___pyx_scope_struct_82_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_82_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_82_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_82_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_82_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_82_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_82_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_82_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *__pyx_freelist_5_core___pyx_scope_struct_83_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_83_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_83_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_83_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_83_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_83_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_83_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_83_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_83_genexpr[__pyx_freecount_5_core___pyx_scope_struct_83_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_83_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_83_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_83_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_83_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_83_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_83_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_83_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *__pyx_freelist_5_core___pyx_scope_struct_84__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_84__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_84__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_84__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_84__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_84__init_1[--__pyx_freecount_5_core___pyx_scope_struct_84__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_84__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_84__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_84__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_84__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_84__init_1[__pyx_freecount_5_core___pyx_scope_struct_84__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_84__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_84__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_84__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_84__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_84__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_84__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_84__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_84__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_84__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_84__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *__pyx_freelist_5_core___pyx_scope_struct_85_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_85_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_85_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_85_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_85_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_85_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_85_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_85_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_85_genexpr[__pyx_freecount_5_core___pyx_scope_struct_85_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_85_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_85_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_85_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_85_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_85_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_85_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_85_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *__pyx_freelist_5_core___pyx_scope_struct_86_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_86_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_86_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_86_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_86_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_86_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_86_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_86_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_86_genexpr[__pyx_freecount_5_core___pyx_scope_struct_86_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_86_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_86_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_86_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_86_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_86_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_86_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_86_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *__pyx_freelist_5_core___pyx_scope_struct_87___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_87___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_87___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_87___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_87___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_87___init__[--__pyx_freecount_5_core___pyx_scope_struct_87___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_87___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_87___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_87___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_87___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_87___init__[__pyx_freecount_5_core___pyx_scope_struct_87___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_87___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_87___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_87___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_87___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_87___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_87___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_87___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_87___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_87___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_87___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *__pyx_freelist_5_core___pyx_scope_struct_88_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_88_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_88_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_88_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_88_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_88_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_88_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_88_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_88_genexpr[__pyx_freecount_5_core___pyx_scope_struct_88_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_88_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_88_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_88_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_88_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_88_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_88_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_88_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *__pyx_freelist_5_core___pyx_scope_struct_89_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_89_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_89_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_89_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_89_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_89_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_89_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_89_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_89_genexpr[__pyx_freecount_5_core___pyx_scope_struct_89_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_89_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_89_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_89_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_89_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_89_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_89_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_89_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *__pyx_freelist_5_core___pyx_scope_struct_90__init_1[8];
static int __pyx_freecount_5_core___pyx_scope_struct_90__init_1 = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_90__init_1(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_90__init_1 > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_90__init_1)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_90__init_1[--__pyx_freecount_5_core___pyx_scope_struct_90__init_1];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_90__init_1));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_90__init_1(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_value_store_params);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_90__init_1 < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_90__init_1)))) {
    __pyx_freelist_5_core___pyx_scope_struct_90__init_1[__pyx_freecount_5_core___pyx_scope_struct_90__init_1++] = ((struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_90__init_1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *)o;
  if (p->__pyx_v_value_store_params) {
    e = (*v)(p->__pyx_v_value_store_params, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_90__init_1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *p = (struct __pyx_obj_5_core___pyx_scope_struct_90__init_1 *)o;
  tmp = ((PyObject*)p->__pyx_v_value_store_params);
  p->__pyx_v_value_store_params = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_90__init_1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_90__init_1", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_90__init_1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_90__init_1, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_90__init_1, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_90__init_1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_90__init_1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *__pyx_freelist_5_core___pyx_scope_struct_91_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_91_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_91_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_91_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_91_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_91_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_91_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_91_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_91_genexpr[__pyx_freecount_5_core___pyx_scope_struct_91_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_91_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_91_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_91_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_91_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_91_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_91_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_91_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *__pyx_freelist_5_core___pyx_scope_struct_92_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_92_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_92_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_92_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_92_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_92_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_92_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_92_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_92_genexpr[__pyx_freecount_5_core___pyx_scope_struct_92_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_92_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_92_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_92_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_92_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_92_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_92_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_92_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *__pyx_freelist_5_core___pyx_scope_struct_93___init__[8];
static int __pyx_freecount_5_core___pyx_scope_struct_93___init__ = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_93___init__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_93___init__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_93___init__)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_93___init__[--__pyx_freecount_5_core___pyx_scope_struct_93___init__];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_93___init__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_93___init__(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_args);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_93___init__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_93___init__)))) {
    __pyx_freelist_5_core___pyx_scope_struct_93___init__[__pyx_freecount_5_core___pyx_scope_struct_93___init__++] = ((struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_93___init__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *)o;
  if (p->__pyx_v_args) {
    e = (*v)(p->__pyx_v_args, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_core___pyx_scope_struct_93___init__(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *p = (struct __pyx_obj_5_core___pyx_scope_struct_93___init__ *)o;
  tmp = ((PyObject*)p->__pyx_v_args);
  p->__pyx_v_args = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_93___init__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_93___init__", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_93___init__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_93___init__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_93___init__, /*tp_traverse*/
  __pyx_tp_clear_5_core___pyx_scope_struct_93___init__, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_93___init__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *__pyx_freelist_5_core___pyx_scope_struct_94_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_94_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_94_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_94_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_94_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_94_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_94_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_k);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_94_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_94_genexpr[__pyx_freecount_5_core___pyx_scope_struct_94_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_94_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_94_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_94_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_94_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_94_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_94_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_94_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *__pyx_freelist_5_core___pyx_scope_struct_95_genexpr[8];
static int __pyx_freecount_5_core___pyx_scope_struct_95_genexpr = 0;

static PyObject *__pyx_tp_new_5_core___pyx_scope_struct_95_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_5_core___pyx_scope_struct_95_genexpr > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr)))) {
    o = (PyObject*)__pyx_freelist_5_core___pyx_scope_struct_95_genexpr[--__pyx_freecount_5_core___pyx_scope_struct_95_genexpr];
    memset(o, 0, sizeof(struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_5_core___pyx_scope_struct_95_genexpr(PyObject *o) {
  struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_v_v);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_5_core___pyx_scope_struct_95_genexpr < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr)))) {
    __pyx_freelist_5_core___pyx_scope_struct_95_genexpr[__pyx_freecount_5_core___pyx_scope_struct_95_genexpr++] = ((struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_5_core___pyx_scope_struct_95_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *p = (struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr *)o;
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_5_core___pyx_scope_struct_95_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "_core.__pyx_scope_struct_95_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_5_core___pyx_scope_struct_95_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_core___pyx_scope_struct_95_genexpr, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_core___pyx_scope_struct_95_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_core___pyx_scope_struct_95_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec__core(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec__core},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "_core",
    0, /* m_doc */
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    0, /* m_size */
  #else
    -1, /* m_size */
  #endif
    __pyx_methods /* m_methods */,
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    __pyx_moduledef_slots, /* m_slots */
  #else
    NULL, /* m_reload */
  #endif
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_n_s_Add, __pyx_k_Add, sizeof(__pyx_k_Add), 0, 0, 1, 1},
  {&__pyx_n_s_Compile, __pyx_k_Compile, sizeof(__pyx_k_Compile), 0, 0, 1, 1},
  {&__pyx_n_s_CompletionDictionaryCompiler, __pyx_k_CompletionDictionaryCompiler, sizeof(__pyx_k_CompletionDictionaryCompiler), 0, 0, 1, 1},
  {&__pyx_n_s_CompletionDictionaryMerger, __pyx_k_CompletionDictionaryMerger, sizeof(__pyx_k_CompletionDictionaryMerger), 0, 0, 1, 1},
  {&__pyx_n_s_Dictionary, __pyx_k_Dictionary, sizeof(__pyx_k_Dictionary), 0, 0, 1, 1},
  {&__pyx_n_s_Dictionary__item_iterator_wrappe, __pyx_k_Dictionary__item_iterator_wrappe, sizeof(__pyx_k_Dictionary__item_iterator_wrappe), 0, 0, 1, 1},
  {&__pyx_n_s_Dictionary__key_iterator_wrapper, __pyx_k_Dictionary__key_iterator_wrapper, sizeof(__pyx_k_Dictionary__key_iterator_wrapper), 0, 0, 1, 1},
  {&__pyx_n_s_Dictionary__value_iterator_wrapp, __pyx_k_Dictionary__value_iterator_wrapp, sizeof(__pyx_k_Dictionary__value_iterator_wrapp), 0, 0, 1, 1},
  {&__pyx_n_s_Flush_0, __pyx_k_Flush_0, sizeof(__pyx_k_Flush_0), 0, 0, 1, 1},
  {&__pyx_n_s_Flush_1, __pyx_k_Flush_1, sizeof(__pyx_k_Flush_1), 0, 0, 1, 1},
  {&__pyx_n_s_ForwardBackwardCompletion, __pyx_k_ForwardBackwardCompletion, sizeof(__pyx_k_ForwardBackwardCompletion), 0, 0, 1, 1},
  {&__pyx_n_s_FsaTransform, __pyx_k_FsaTransform, sizeof(__pyx_k_FsaTransform), 0, 0, 1, 1},
  {&__pyx_n_s_GetCompletions_0, __pyx_k_GetCompletions_0, sizeof(__pyx_k_GetCompletions_0), 0, 0, 1, 1},
  {&__pyx_n_s_GetCompletions_1, __pyx_k_GetCompletions_1, sizeof(__pyx_k_GetCompletions_1), 0, 0, 1, 1},
  {&__pyx_n_s_GetMatchedString, __pyx_k_GetMatchedString, sizeof(__pyx_k_GetMatchedString), 0, 0, 1, 1},
  {&__pyx_n_s_GetNear_0, __pyx_k_GetNear_0, sizeof(__pyx_k_GetNear_0), 0, 0, 1, 1},
  {&__pyx_n_s_GetNear_1, __pyx_k_GetNear_1, sizeof(__pyx_k_GetNear_1), 0, 0, 1, 1},
  {&__pyx_n_s_GetValue, __pyx_k_GetValue, sizeof(__pyx_k_GetValue), 0, 0, 1, 1},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0xd4, __pyx_k_Incompatible_checksums_s_vs_0xd4, sizeof(__pyx_k_Incompatible_checksums_s_vs_0xd4), 0, 0, 1, 0},
  {&__pyx_n_s_Index, __pyx_k_Index, sizeof(__pyx_k_Index), 0, 0, 1, 1},
  {&__pyx_n_s_IntDictionaryCompiler, __pyx_k_IntDictionaryCompiler, sizeof(__pyx_k_IntDictionaryCompiler), 0, 0, 1, 1},
  {&__pyx_n_s_IntDictionaryCompilerSmallData, __pyx_k_IntDictionaryCompilerSmallData, sizeof(__pyx_k_IntDictionaryCompilerSmallData), 0, 0, 1, 1},
  {&__pyx_n_s_IntDictionaryMerger, __pyx_k_IntDictionaryMerger, sizeof(__pyx_k_IntDictionaryMerger), 0, 0, 1, 1},
  {&__pyx_n_s_JsonDictionaryCompiler, __pyx_k_JsonDictionaryCompiler, sizeof(__pyx_k_JsonDictionaryCompiler), 0, 0, 1, 1},
  {&__pyx_n_s_JsonDictionaryCompilerSmallData, __pyx_k_JsonDictionaryCompilerSmallData, sizeof(__pyx_k_JsonDictionaryCompilerSmallData), 0, 0, 1, 1},
  {&__pyx_n_s_JsonDictionaryMerger, __pyx_k_JsonDictionaryMerger, sizeof(__pyx_k_JsonDictionaryMerger), 0, 0, 1, 1},
  {&__pyx_n_s_JsonVector, __pyx_k_JsonVector, sizeof(__pyx_k_JsonVector), 0, 0, 1, 1},
  {&__pyx_n_s_JsonVectorGenerator, __pyx_k_JsonVectorGenerator, sizeof(__pyx_k_JsonVectorGenerator), 0, 0, 1, 1},
  {&__pyx_n_s_JumpConsistentHashString, __pyx_k_JumpConsistentHashString, sizeof(__pyx_k_JumpConsistentHashString), 0, 0, 1, 1},
  {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1},
  {&__pyx_n_s_KeyOnlyDictionaryCompiler, __pyx_k_KeyOnlyDictionaryCompiler, sizeof(__pyx_k_KeyOnlyDictionaryCompiler), 0, 0, 1, 1},
  {&__pyx_n_s_KeyOnlyDictionaryGenerator, __pyx_k_KeyOnlyDictionaryGenerator, sizeof(__pyx_k_KeyOnlyDictionaryGenerator), 0, 0, 1, 1},
  {&__pyx_n_s_KeyOnlyDictionaryMerger, __pyx_k_KeyOnlyDictionaryMerger, sizeof(__pyx_k_KeyOnlyDictionaryMerger), 0, 0, 1, 1},
  {&__pyx_n_s_Match, __pyx_k_Match, sizeof(__pyx_k_Match), 0, 0, 1, 1},
  {&__pyx_n_s_MatchIterator, __pyx_k_MatchIterator, sizeof(__pyx_k_MatchIterator), 0, 0, 1, 1},
  {&__pyx_n_s_MultiWordCompletion, __pyx_k_MultiWordCompletion, sizeof(__pyx_k_MultiWordCompletion), 0, 0, 1, 1},
  {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
  {&__pyx_n_s_PredictiveCompression, __pyx_k_PredictiveCompression, sizeof(__pyx_k_PredictiveCompression), 0, 0, 1, 1},
  {&__pyx_n_s_PrefixCompletion, __pyx_k_PrefixCompletion, sizeof(__pyx_k_PrefixCompletion), 0, 0, 1, 1},
  {&__pyx_n_s_ReadOnlyIndex, __pyx_k_ReadOnlyIndex, sizeof(__pyx_k_ReadOnlyIndex), 0, 0, 1, 1},
  {&__pyx_n_s_SetEnd, __pyx_k_SetEnd, sizeof(__pyx_k_SetEnd), 0, 0, 1, 1},
  {&__pyx_n_s_SetMatchedString, __pyx_k_SetMatchedString, sizeof(__pyx_k_SetMatchedString), 0, 0, 1, 1},
  {&__pyx_n_s_SetRawValue, __pyx_k_SetRawValue, sizeof(__pyx_k_SetRawValue), 0, 0, 1, 1},
  {&__pyx_n_s_SetScore, __pyx_k_SetScore, sizeof(__pyx_k_SetScore), 0, 0, 1, 1},
  {&__pyx_n_s_SetStart, __pyx_k_SetStart, sizeof(__pyx_k_SetStart), 0, 0, 1, 1},
  {&__pyx_n_s_StopIteration, __pyx_k_StopIteration, sizeof(__pyx_k_StopIteration), 0, 0, 1, 1},
  {&__pyx_n_s_StringDictionaryCompiler, __pyx_k_StringDictionaryCompiler, sizeof(__pyx_k_StringDictionaryCompiler), 0, 0, 1, 1},
  {&__pyx_n_s_StringDictionaryMerger, __pyx_k_StringDictionaryMerger, sizeof(__pyx_k_StringDictionaryMerger), 0, 0, 1, 1},
  {&__pyx_n_s_StringVector, __pyx_k_StringVector, sizeof(__pyx_k_StringVector), 0, 0, 1, 1},
  {&__pyx_n_s_StringVectorGenerator, __pyx_k_StringVectorGenerator, sizeof(__pyx_k_StringVectorGenerator), 0, 0, 1, 1},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_kp_u_UTF_8, __pyx_k_UTF_8, sizeof(__pyx_k_UTF_8), 0, 1, 0, 0},
  {&__pyx_kp_u_Unsupported_Value_Type, __pyx_k_Unsupported_Value_Type, sizeof(__pyx_k_Unsupported_Value_Type), 0, 1, 0, 0},
  {&__pyx_kp_b__11, __pyx_k__11, sizeof(__pyx_k__11), 0, 0, 0, 0},
  {&__pyx_kp_u__55, __pyx_k__55, sizeof(__pyx_k__55), 0, 1, 0, 0},
  {&__pyx_n_s_abspath, __pyx_k_abspath, sizeof(__pyx_k_abspath), 0, 0, 1, 1},
  {&__pyx_kp_u_arg_end_wrong_type, __pyx_k_arg_end_wrong_type, sizeof(__pyx_k_arg_end_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_filename_wrong_type, __pyx_k_arg_filename_wrong_type, sizeof(__pyx_k_arg_filename_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_greedy_wrong_type, __pyx_k_arg_greedy_wrong_type, sizeof(__pyx_k_arg_greedy_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_in_0_wrong_type, __pyx_k_arg_in_0_wrong_type, sizeof(__pyx_k_arg_in_0_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_in_1_wrong_type, __pyx_k_arg_in_1_wrong_type, sizeof(__pyx_k_arg_in_1_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_index_wrong_type, __pyx_k_arg_index_wrong_type, sizeof(__pyx_k_arg_index_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_m_wrong_type, __pyx_k_arg_m_wrong_type, sizeof(__pyx_k_arg_m_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_matched_string_wrong_type, __pyx_k_arg_matched_string_wrong_type, sizeof(__pyx_k_arg_matched_string_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_max_edit_distance_wrong_type, __pyx_k_arg_max_edit_distance_wrong_type, sizeof(__pyx_k_arg_max_edit_distance_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_minimum_exact_prefix_wrong_t, __pyx_k_arg_minimum_exact_prefix_wrong_t, sizeof(__pyx_k_arg_minimum_exact_prefix_wrong_t), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_minimum_prefix_length_wrong, __pyx_k_arg_minimum_prefix_length_wrong, sizeof(__pyx_k_arg_minimum_prefix_length_wrong), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_params_wrong_type, __pyx_k_arg_params_wrong_type, sizeof(__pyx_k_arg_params_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_score_wrong_type, __pyx_k_arg_score_wrong_type, sizeof(__pyx_k_arg_score_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_start_wrong_type, __pyx_k_arg_start_wrong_type, sizeof(__pyx_k_arg_start_wrong_type), 0, 1, 0, 0},
  {&__pyx_kp_u_arg_value_store_params_wrong_typ, __pyx_k_arg_value_store_params_wrong_typ, sizeof(__pyx_k_arg_value_store_params_wrong_typ), 0, 1, 0, 0},
  {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
  {&__pyx_kp_u_can_not_handle_type_of, __pyx_k_can_not_handle_type_of, sizeof(__pyx_k_can_not_handle_type_of), 0, 1, 0, 0},
  {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1},
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1},
  {&__pyx_n_s_core, __pyx_k_core, sizeof(__pyx_k_core), 0, 0, 1, 1},
  {&__pyx_kp_s_core_pyx, __pyx_k_core_pyx, sizeof(__pyx_k_core_pyx), 0, 0, 1, 0},
  {&__pyx_n_s_default, __pyx_k_default, sizeof(__pyx_k_default), 0, 0, 1, 1},
  {&__pyx_n_s_default_os, __pyx_k_default_os, sizeof(__pyx_k_default_os), 0, 0, 1, 1},
  {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1},
  {&__pyx_n_s_dirname, __pyx_k_dirname, sizeof(__pyx_k_dirname), 0, 0, 1, 1},
  {&__pyx_n_s_dumps, __pyx_k_dumps, sizeof(__pyx_k_dumps), 0, 0, 1, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_executable, __pyx_k_executable, sizeof(__pyx_k_executable), 0, 0, 1, 1},
  {&__pyx_n_s_file, __pyx_k_file, sizeof(__pyx_k_file), 0, 0, 1, 1},
  {&__pyx_n_s_filename, __pyx_k_filename, sizeof(__pyx_k_filename), 0, 0, 1, 1},
  {&__pyx_n_s_genexpr, __pyx_k_genexpr, sizeof(__pyx_k_genexpr), 0, 0, 1, 1},
  {&__pyx_n_s_get_interpreter_executable, __pyx_k_get_interpreter_executable, sizeof(__pyx_k_get_interpreter_executable), 0, 0, 1, 1},
  {&__pyx_n_s_get_package_root, __pyx_k_get_package_root, sizeof(__pyx_k_get_package_root), 0, 0, 1, 1},
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
  {&__pyx_n_s_greedy, __pyx_k_greedy, sizeof(__pyx_k_greedy), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_in_0, __pyx_k_in_0, sizeof(__pyx_k_in_0), 0, 0, 1, 1},
  {&__pyx_n_s_in_1, __pyx_k_in_1, sizeof(__pyx_k_in_1), 0, 0, 1, 1},
  {&__pyx_n_s_init_0, __pyx_k_init_0, sizeof(__pyx_k_init_0), 0, 0, 1, 1},
  {&__pyx_n_s_init_1, __pyx_k_init_1, sizeof(__pyx_k_init_1), 0, 0, 1, 1},
  {&__pyx_n_s_init_1_locals_genexpr, __pyx_k_init_1_locals_genexpr, sizeof(__pyx_k_init_1_locals_genexpr), 0, 0, 1, 1},
  {&__pyx_n_s_init___locals_genexpr, __pyx_k_init___locals_genexpr, sizeof(__pyx_k_init___locals_genexpr), 0, 0, 1, 1},
  {&__pyx_n_s_item_iterator_wrapper, __pyx_k_item_iterator_wrapper, sizeof(__pyx_k_item_iterator_wrapper), 0, 0, 1, 1},
  {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1},
  {&__pyx_n_s_join, __pyx_k_join, sizeof(__pyx_k_join), 0, 0, 1, 1},
  {&__pyx_n_s_json, __pyx_k_json, sizeof(__pyx_k_json), 0, 0, 1, 1},
  {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1},
  {&__pyx_n_s_key_iterator_wrapper, __pyx_k_key_iterator_wrapper, sizeof(__pyx_k_key_iterator_wrapper), 0, 0, 1, 1},
  {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1},
  {&__pyx_n_s_keyvi, __pyx_k_keyvi, sizeof(__pyx_k_keyvi), 0, 0, 1, 1},
  {&__pyx_n_s_keyvi__pycore, __pyx_k_keyvi__pycore, sizeof(__pyx_k_keyvi__pycore), 0, 0, 1, 1},
  {&__pyx_n_b_keyvimerger_bin, __pyx_k_keyvimerger_bin, sizeof(__pyx_k_keyvimerger_bin), 0, 0, 0, 1},
  {&__pyx_kp_b_keyvimerger_py, __pyx_k_keyvimerger_py, sizeof(__pyx_k_keyvimerger_py), 0, 0, 0, 0},
  {&__pyx_n_s_lazy, __pyx_k_lazy, sizeof(__pyx_k_lazy), 0, 0, 1, 1},
  {&__pyx_n_s_lazy_no_readahead, __pyx_k_lazy_no_readahead, sizeof(__pyx_k_lazy_no_readahead), 0, 0, 1, 1},
  {&__pyx_n_s_lazy_no_readahead_value_part, __pyx_k_lazy_no_readahead_value_part, sizeof(__pyx_k_lazy_no_readahead_value_part), 0, 0, 1, 1},
  {&__pyx_n_s_loading_strategy_types, __pyx_k_loading_strategy_types, sizeof(__pyx_k_loading_strategy_types), 0, 0, 1, 1},
  {&__pyx_n_s_loads, __pyx_k_loads, sizeof(__pyx_k_loads), 0, 0, 1, 1},
  {&__pyx_n_s_m, __pyx_k_m, sizeof(__pyx_k_m), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_max_edit_distance, __pyx_k_max_edit_distance, sizeof(__pyx_k_max_edit_distance), 0, 0, 1, 1},
  {&__pyx_n_s_minimum_exact_prefix, __pyx_k_minimum_exact_prefix, sizeof(__pyx_k_minimum_exact_prefix), 0, 0, 1, 1},
  {&__pyx_n_s_minimum_prefix_length, __pyx_k_minimum_prefix_length, sizeof(__pyx_k_minimum_prefix_length), 0, 0, 1, 1},
  {&__pyx_n_s_module_location, __pyx_k_module_location, sizeof(__pyx_k_module_location), 0, 0, 1, 1},
  {&__pyx_n_s_msgpack, __pyx_k_msgpack, sizeof(__pyx_k_msgpack), 0, 0, 1, 1},
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {&__pyx_n_s_new, __pyx_k_new, sizeof(__pyx_k_new), 0, 0, 1, 1},
  {&__pyx_n_s_number_of_fields, __pyx_k_number_of_fields, sizeof(__pyx_k_number_of_fields), 0, 0, 1, 1},
  {&__pyx_n_s_os, __pyx_k_os, sizeof(__pyx_k_os), 0, 0, 1, 1},
  {&__pyx_n_s_os_path, __pyx_k_os_path, sizeof(__pyx_k_os_path), 0, 0, 1, 1},
  {&__pyx_n_s_params, __pyx_k_params, sizeof(__pyx_k_params), 0, 0, 1, 1},
  {&__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1},
  {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
  {&__pyx_n_s_populate, __pyx_k_populate, sizeof(__pyx_k_populate), 0, 0, 1, 1},
  {&__pyx_n_s_populate_key_part, __pyx_k_populate_key_part, sizeof(__pyx_k_populate_key_part), 0, 0, 1, 1},
  {&__pyx_n_s_populate_key_part_no_readahead_v, __pyx_k_populate_key_part_no_readahead_v, sizeof(__pyx_k_populate_key_part_no_readahead_v), 0, 0, 1, 1},
  {&__pyx_n_s_populate_lazy, __pyx_k_populate_lazy, sizeof(__pyx_k_populate_lazy), 0, 0, 1, 1},
  {&__pyx_n_s_py_result, __pyx_k_py_result, sizeof(__pyx_k_py_result), 0, 0, 1, 1},
  {&__pyx_n_b_pycore, __pyx_k_pycore, sizeof(__pyx_k_pycore), 0, 0, 0, 1},
  {&__pyx_n_s_pycore, __pyx_k_pycore, sizeof(__pyx_k_pycore), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError, sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum, sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_result, __pyx_k_pyx_result, sizeof(__pyx_k_pyx_result), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_type, __pyx_k_pyx_type, sizeof(__pyx_k_pyx_type), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_loading_strategy, __pyx_k_pyx_unpickle_loading_strategy, sizeof(__pyx_k_pyx_unpickle_loading_strategy), 0, 0, 1, 1},
  {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1},
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
  {&__pyx_kp_s_self_end_self_it_cannot_be_conve, __pyx_k_self_end_self_it_cannot_be_conve, sizeof(__pyx_k_self_end_self_it_cannot_be_conve), 0, 0, 1, 0},
  {&__pyx_kp_s_self_inst_cannot_be_converted_to, __pyx_k_self_inst_cannot_be_converted_to, sizeof(__pyx_k_self_inst_cannot_be_converted_to), 0, 0, 1, 0},
  {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1},
  {&__pyx_n_s_serialized_match, __pyx_k_serialized_match, sizeof(__pyx_k_serialized_match), 0, 0, 1, 1},
  {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
  {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
  {&__pyx_n_s_staticmethod, __pyx_k_staticmethod, sizeof(__pyx_k_staticmethod), 0, 0, 1, 1},
  {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0},
  {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1},
  {&__pyx_n_s_traceback, __pyx_k_traceback, sizeof(__pyx_k_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
  {&__pyx_n_s_unserialized, __pyx_k_unserialized, sizeof(__pyx_k_unserialized), 0, 0, 1, 1},
  {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1},
  {&__pyx_kp_u_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 1, 0, 0},
  {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
  {&__pyx_n_s_value_iterator_wrapper, __pyx_k_value_iterator_wrapper, sizeof(__pyx_k_value_iterator_wrapper), 0, 0, 1, 1},
  {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(0, 1601, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(0, 382, __pyx_L1_error)
  __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) __PYX_ERR(0, 2212, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple_);
  __Pyx_GIVEREF(__pyx_tuple_);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__2);
  __Pyx_GIVEREF(__pyx_tuple__2);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__3);
  __Pyx_GIVEREF(__pyx_tuple__3);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__7);
  __Pyx_GIVEREF(__pyx_tuple__7);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__8);
  __Pyx_GIVEREF(__pyx_tuple__8);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__10);
  __Pyx_GIVEREF(__pyx_tuple__10);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__14);
  __Pyx_GIVEREF(__pyx_tuple__14);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__20);
  __Pyx_GIVEREF(__pyx_tuple__20);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__22);
  __Pyx_GIVEREF(__pyx_tuple__22);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__24);
  __Pyx_GIVEREF(__pyx_tuple__24);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__26);
  __Pyx_GIVEREF(__pyx_tuple__26);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__32);
  __Pyx_GIVEREF(__pyx_tuple__32);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__33);
  __Pyx_GIVEREF(__pyx_tuple__33);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__34);
  __Pyx_GIVEREF(__pyx_tuple__34);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__35);
  __Pyx_GIVEREF(__pyx_tuple__35);

  /* "_core.pyx":1561
 *             self.inst.get().SetAttribute(<libcpp_string> key, <bool> value)
 *         else:
 *             raise Exception("Unsupported Value Type")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_u_Unsupported_Value_Type); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 1561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__36);
  __Pyx_GIVEREF(__pyx_tuple__36);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__37 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__37);
  __Pyx_GIVEREF(__pyx_tuple__37);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__38 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__38);
  __Pyx_GIVEREF(__pyx_tuple__38);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__39 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__40 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__40);
  __Pyx_GIVEREF(__pyx_tuple__40);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__41);
  __Pyx_GIVEREF(__pyx_tuple__41);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__42);
  __Pyx_GIVEREF(__pyx_tuple__42);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__44);
  __Pyx_GIVEREF(__pyx_tuple__44);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__45);
  __Pyx_GIVEREF(__pyx_tuple__45);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__46);
  __Pyx_GIVEREF(__pyx_tuple__46);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__47);
  __Pyx_GIVEREF(__pyx_tuple__47);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__48);
  __Pyx_GIVEREF(__pyx_tuple__48);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__50);
  __Pyx_GIVEREF(__pyx_tuple__50);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__51);
  __Pyx_GIVEREF(__pyx_tuple__51);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__52);
  __Pyx_GIVEREF(__pyx_tuple__52);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__53);
  __Pyx_GIVEREF(__pyx_tuple__53);

  /* "(tree fragment)":4
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.inst cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_self_inst_cannot_be_converted_to); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_s_self_end_self_it_cannot_be_conve); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__56);
  __Pyx_GIVEREF(__pyx_tuple__56);

  /* "(tree fragment)":4
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.end,self.it cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__57 = PyTuple_Pack(1, __pyx_kp_s_self_end_self_it_cannot_be_conve); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__57);
  __Pyx_GIVEREF(__pyx_tuple__57);

  /* "_core.pyx":52
 * cdef extern from "autowrap_tools.hpp":
 *     char * _cast_const_away(char *)
 * def JumpConsistentHashString( in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *     """Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)"""
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */
  __pyx_tuple__58 = PyTuple_Pack(4, __pyx_n_s_in_0, __pyx_n_s_in_1, __pyx_n_s_r, __pyx_n_s_py_result); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_core_pyx, __pyx_n_s_JumpConsistentHashString, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 52, __pyx_L1_error)

  /* "_core.pyx":1602
 * 
 *     @staticmethod
 *     def loads(serialized_match):             # <<<<<<<<<<<<<<
 *         m=Match()
 *         unserialized = msgpack.loads(serialized_match)
 */
  __pyx_tuple__60 = PyTuple_Pack(4, __pyx_n_s_serialized_match, __pyx_n_s_m, __pyx_n_s_unserialized, __pyx_n_s_number_of_fields); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 1602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__60);
  __Pyx_GIVEREF(__pyx_tuple__60);
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_core_pyx, __pyx_n_s_loads, 1602, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 1602, __pyx_L1_error)

  /* "_core.pyx":2157
 * 
 * 
 * def get_package_root():             # <<<<<<<<<<<<<<
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))
 * 
 */
  __pyx_tuple__62 = PyTuple_Pack(1, __pyx_n_s_module_location); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__62);
  __Pyx_GIVEREF(__pyx_tuple__62);
  __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_core_pyx, __pyx_n_s_get_package_root, 2157, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 2157, __pyx_L1_error)

  /* "_core.pyx":2166
 * 
 * 
 * def get_interpreter_executable():             # <<<<<<<<<<<<<<
 *     executable = sys.executable
 * 
 */
  __pyx_tuple__64 = PyTuple_Pack(1, __pyx_n_s_executable); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 2166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__64);
  __Pyx_GIVEREF(__pyx_tuple__64);
  __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_core_pyx, __pyx_n_s_get_interpreter_executable, 2166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 2166, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __pyx_unpickle_loading_strategy_types(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_tuple__66 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__66);
  __Pyx_GIVEREF(__pyx_tuple__66);
  __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_loading_strategy, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_222419149 = PyInt_FromLong(222419149L); if (unlikely(!__pyx_int_222419149)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  if (PyType_Ready(&__pyx_type_5_core_CompletionDictionaryCompiler) < 0) __PYX_ERR(0, 63, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_CompletionDictionaryCompiler.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_CompletionDictionaryCompiler.tp_dictoffset && __pyx_type_5_core_CompletionDictionaryCompiler.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_CompletionDictionaryCompiler.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_CompletionDictionaryCompiler, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 63, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_28CompletionDictionaryCompiler_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_28CompletionDictionaryCompiler_6__init__.doc = __pyx_doc_5_core_28CompletionDictionaryCompiler_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_28CompletionDictionaryCompiler_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CompletionDictionaryCompiler, (PyObject *)&__pyx_type_5_core_CompletionDictionaryCompiler) < 0) __PYX_ERR(0, 63, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_CompletionDictionaryCompiler) < 0) __PYX_ERR(0, 63, __pyx_L1_error)
  __pyx_ptype_5_core_CompletionDictionaryCompiler = &__pyx_type_5_core_CompletionDictionaryCompiler;
  if (PyType_Ready(&__pyx_type_5_core_CompletionDictionaryMerger) < 0) __PYX_ERR(0, 155, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_CompletionDictionaryMerger.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_CompletionDictionaryMerger.tp_dictoffset && __pyx_type_5_core_CompletionDictionaryMerger.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_CompletionDictionaryMerger.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_CompletionDictionaryMerger, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 155, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_26CompletionDictionaryMerger_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_26CompletionDictionaryMerger_6__init__.doc = __pyx_doc_5_core_26CompletionDictionaryMerger_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_26CompletionDictionaryMerger_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CompletionDictionaryMerger, (PyObject *)&__pyx_type_5_core_CompletionDictionaryMerger) < 0) __PYX_ERR(0, 155, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_CompletionDictionaryMerger) < 0) __PYX_ERR(0, 155, __pyx_L1_error)
  __pyx_ptype_5_core_CompletionDictionaryMerger = &__pyx_type_5_core_CompletionDictionaryMerger;
  if (PyType_Ready(&__pyx_type_5_core_Dictionary) < 0) __PYX_ERR(0, 218, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_Dictionary.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_Dictionary.tp_dictoffset && __pyx_type_5_core_Dictionary.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_Dictionary.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_Dictionary, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 218, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_10Dictionary_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_10Dictionary_6__init__.doc = __pyx_doc_5_core_10Dictionary_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_10Dictionary_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Dictionary, (PyObject *)&__pyx_type_5_core_Dictionary) < 0) __PYX_ERR(0, 218, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_Dictionary) < 0) __PYX_ERR(0, 218, __pyx_L1_error)
  __pyx_ptype_5_core_Dictionary = &__pyx_type_5_core_Dictionary;
  if (PyType_Ready(&__pyx_type_5_core_ForwardBackwardCompletion) < 0) __PYX_ERR(0, 427, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_ForwardBackwardCompletion.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_ForwardBackwardCompletion.tp_dictoffset && __pyx_type_5_core_ForwardBackwardCompletion.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_ForwardBackwardCompletion.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_ForwardBackwardCompletion, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 427, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_25ForwardBackwardCompletion_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_25ForwardBackwardCompletion_2__init__.doc = __pyx_doc_5_core_25ForwardBackwardCompletion_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_25ForwardBackwardCompletion_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ForwardBackwardCompletion, (PyObject *)&__pyx_type_5_core_ForwardBackwardCompletion) < 0) __PYX_ERR(0, 427, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_ForwardBackwardCompletion) < 0) __PYX_ERR(0, 427, __pyx_L1_error)
  __pyx_ptype_5_core_ForwardBackwardCompletion = &__pyx_type_5_core_ForwardBackwardCompletion;
  if (PyType_Ready(&__pyx_type_5_core_FsaTransform) < 0) __PYX_ERR(0, 482, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_FsaTransform.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_FsaTransform.tp_dictoffset && __pyx_type_5_core_FsaTransform.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_FsaTransform.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_FsaTransform, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 482, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_12FsaTransform_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_12FsaTransform_2__init__.doc = __pyx_doc_5_core_12FsaTransform_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_12FsaTransform_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FsaTransform, (PyObject *)&__pyx_type_5_core_FsaTransform) < 0) __PYX_ERR(0, 482, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_FsaTransform) < 0) __PYX_ERR(0, 482, __pyx_L1_error)
  __pyx_ptype_5_core_FsaTransform = &__pyx_type_5_core_FsaTransform;
  if (PyType_Ready(&__pyx_type_5_core_Index) < 0) __PYX_ERR(0, 508, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_Index.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_Index.tp_dictoffset && __pyx_type_5_core_Index.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_Index.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Index, (PyObject *)&__pyx_type_5_core_Index) < 0) __PYX_ERR(0, 508, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_Index) < 0) __PYX_ERR(0, 508, __pyx_L1_error)
  __pyx_ptype_5_core_Index = &__pyx_type_5_core_Index;
  if (PyType_Ready(&__pyx_type_5_core_IntDictionaryCompiler) < 0) __PYX_ERR(0, 666, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_IntDictionaryCompiler.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_IntDictionaryCompiler.tp_dictoffset && __pyx_type_5_core_IntDictionaryCompiler.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_IntDictionaryCompiler.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_IntDictionaryCompiler, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 666, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_21IntDictionaryCompiler_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_21IntDictionaryCompiler_6__init__.doc = __pyx_doc_5_core_21IntDictionaryCompiler_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_21IntDictionaryCompiler_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_IntDictionaryCompiler, (PyObject *)&__pyx_type_5_core_IntDictionaryCompiler) < 0) __PYX_ERR(0, 666, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_IntDictionaryCompiler) < 0) __PYX_ERR(0, 666, __pyx_L1_error)
  __pyx_ptype_5_core_IntDictionaryCompiler = &__pyx_type_5_core_IntDictionaryCompiler;
  if (PyType_Ready(&__pyx_type_5_core_IntDictionaryCompilerSmallData) < 0) __PYX_ERR(0, 753, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_IntDictionaryCompilerSmallData.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_IntDictionaryCompilerSmallData.tp_dictoffset && __pyx_type_5_core_IntDictionaryCompilerSmallData.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_IntDictionaryCompilerSmallData.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_IntDictionaryCompilerSmallData, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 753, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_30IntDictionaryCompilerSmallData_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_30IntDictionaryCompilerSmallData_6__init__.doc = __pyx_doc_5_core_30IntDictionaryCompilerSmallData_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_30IntDictionaryCompilerSmallData_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_IntDictionaryCompilerSmallData, (PyObject *)&__pyx_type_5_core_IntDictionaryCompilerSmallData) < 0) __PYX_ERR(0, 753, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_IntDictionaryCompilerSmallData) < 0) __PYX_ERR(0, 753, __pyx_L1_error)
  __pyx_ptype_5_core_IntDictionaryCompilerSmallData = &__pyx_type_5_core_IntDictionaryCompilerSmallData;
  if (PyType_Ready(&__pyx_type_5_core_IntDictionaryMerger) < 0) __PYX_ERR(0, 840, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_IntDictionaryMerger.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_IntDictionaryMerger.tp_dictoffset && __pyx_type_5_core_IntDictionaryMerger.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_IntDictionaryMerger.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_IntDictionaryMerger, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 840, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_19IntDictionaryMerger_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_19IntDictionaryMerger_6__init__.doc = __pyx_doc_5_core_19IntDictionaryMerger_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_19IntDictionaryMerger_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_IntDictionaryMerger, (PyObject *)&__pyx_type_5_core_IntDictionaryMerger) < 0) __PYX_ERR(0, 840, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_IntDictionaryMerger) < 0) __PYX_ERR(0, 840, __pyx_L1_error)
  __pyx_ptype_5_core_IntDictionaryMerger = &__pyx_type_5_core_IntDictionaryMerger;
  if (PyType_Ready(&__pyx_type_5_core_JsonDictionaryCompiler) < 0) __PYX_ERR(0, 903, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_JsonDictionaryCompiler.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_JsonDictionaryCompiler.tp_dictoffset && __pyx_type_5_core_JsonDictionaryCompiler.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_JsonDictionaryCompiler.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_JsonDictionaryCompiler, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 903, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_22JsonDictionaryCompiler_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_22JsonDictionaryCompiler_6__init__.doc = __pyx_doc_5_core_22JsonDictionaryCompiler_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_22JsonDictionaryCompiler_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_JsonDictionaryCompiler, (PyObject *)&__pyx_type_5_core_JsonDictionaryCompiler) < 0) __PYX_ERR(0, 903, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_JsonDictionaryCompiler) < 0) __PYX_ERR(0, 903, __pyx_L1_error)
  __pyx_ptype_5_core_JsonDictionaryCompiler = &__pyx_type_5_core_JsonDictionaryCompiler;
  if (PyType_Ready(&__pyx_type_5_core_JsonDictionaryCompilerSmallData) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_JsonDictionaryCompilerSmallData.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_JsonDictionaryCompilerSmallData.tp_dictoffset && __pyx_type_5_core_JsonDictionaryCompilerSmallData.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_JsonDictionaryCompilerSmallData.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_JsonDictionaryCompilerSmallData, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 991, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_31JsonDictionaryCompilerSmallData_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_31JsonDictionaryCompilerSmallData_6__init__.doc = __pyx_doc_5_core_31JsonDictionaryCompilerSmallData_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_31JsonDictionaryCompilerSmallData_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_JsonDictionaryCompilerSmallData, (PyObject *)&__pyx_type_5_core_JsonDictionaryCompilerSmallData) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_JsonDictionaryCompilerSmallData) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  __pyx_ptype_5_core_JsonDictionaryCompilerSmallData = &__pyx_type_5_core_JsonDictionaryCompilerSmallData;
  if (PyType_Ready(&__pyx_type_5_core_JsonDictionaryMerger) < 0) __PYX_ERR(0, 1084, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_JsonDictionaryMerger.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_JsonDictionaryMerger.tp_dictoffset && __pyx_type_5_core_JsonDictionaryMerger.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_JsonDictionaryMerger.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_JsonDictionaryMerger, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1084, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_20JsonDictionaryMerger_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_20JsonDictionaryMerger_6__init__.doc = __pyx_doc_5_core_20JsonDictionaryMerger_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_20JsonDictionaryMerger_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_JsonDictionaryMerger, (PyObject *)&__pyx_type_5_core_JsonDictionaryMerger) < 0) __PYX_ERR(0, 1084, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_JsonDictionaryMerger) < 0) __PYX_ERR(0, 1084, __pyx_L1_error)
  __pyx_ptype_5_core_JsonDictionaryMerger = &__pyx_type_5_core_JsonDictionaryMerger;
  if (PyType_Ready(&__pyx_type_5_core_JsonVector) < 0) __PYX_ERR(0, 1147, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_JsonVector.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_JsonVector.tp_dictoffset && __pyx_type_5_core_JsonVector.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_JsonVector.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_JsonVector, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1147, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_10JsonVector_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_10JsonVector_2__init__.doc = __pyx_doc_5_core_10JsonVector_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_10JsonVector_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_JsonVector, (PyObject *)&__pyx_type_5_core_JsonVector) < 0) __PYX_ERR(0, 1147, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_JsonVector) < 0) __PYX_ERR(0, 1147, __pyx_L1_error)
  __pyx_ptype_5_core_JsonVector = &__pyx_type_5_core_JsonVector;
  if (PyType_Ready(&__pyx_type_5_core_JsonVectorGenerator) < 0) __PYX_ERR(0, 1184, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_JsonVectorGenerator.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_JsonVectorGenerator.tp_dictoffset && __pyx_type_5_core_JsonVectorGenerator.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_JsonVectorGenerator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_JsonVectorGenerator, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1184, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_19JsonVectorGenerator_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_19JsonVectorGenerator_6__init__.doc = __pyx_doc_5_core_19JsonVectorGenerator_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_19JsonVectorGenerator_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_JsonVectorGenerator, (PyObject *)&__pyx_type_5_core_JsonVectorGenerator) < 0) __PYX_ERR(0, 1184, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_JsonVectorGenerator) < 0) __PYX_ERR(0, 1184, __pyx_L1_error)
  __pyx_ptype_5_core_JsonVectorGenerator = &__pyx_type_5_core_JsonVectorGenerator;
  if (PyType_Ready(&__pyx_type_5_core_KeyOnlyDictionaryCompiler) < 0) __PYX_ERR(0, 1244, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_KeyOnlyDictionaryCompiler.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_KeyOnlyDictionaryCompiler.tp_dictoffset && __pyx_type_5_core_KeyOnlyDictionaryCompiler.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_KeyOnlyDictionaryCompiler.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_KeyOnlyDictionaryCompiler, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1244, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_25KeyOnlyDictionaryCompiler_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_25KeyOnlyDictionaryCompiler_6__init__.doc = __pyx_doc_5_core_25KeyOnlyDictionaryCompiler_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_25KeyOnlyDictionaryCompiler_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_KeyOnlyDictionaryCompiler, (PyObject *)&__pyx_type_5_core_KeyOnlyDictionaryCompiler) < 0) __PYX_ERR(0, 1244, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_KeyOnlyDictionaryCompiler) < 0) __PYX_ERR(0, 1244, __pyx_L1_error)
  __pyx_ptype_5_core_KeyOnlyDictionaryCompiler = &__pyx_type_5_core_KeyOnlyDictionaryCompiler;
  if (PyType_Ready(&__pyx_type_5_core_KeyOnlyDictionaryGenerator) < 0) __PYX_ERR(0, 1329, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_KeyOnlyDictionaryGenerator.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_KeyOnlyDictionaryGenerator.tp_dictoffset && __pyx_type_5_core_KeyOnlyDictionaryGenerator.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_KeyOnlyDictionaryGenerator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_KeyOnlyDictionaryGenerator, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1329, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_26KeyOnlyDictionaryGenerator_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_26KeyOnlyDictionaryGenerator_2__init__.doc = __pyx_doc_5_core_26KeyOnlyDictionaryGenerator_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_26KeyOnlyDictionaryGenerator_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_KeyOnlyDictionaryGenerator, (PyObject *)&__pyx_type_5_core_KeyOnlyDictionaryGenerator) < 0) __PYX_ERR(0, 1329, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_KeyOnlyDictionaryGenerator) < 0) __PYX_ERR(0, 1329, __pyx_L1_error)
  __pyx_ptype_5_core_KeyOnlyDictionaryGenerator = &__pyx_type_5_core_KeyOnlyDictionaryGenerator;
  if (PyType_Ready(&__pyx_type_5_core_KeyOnlyDictionaryMerger) < 0) __PYX_ERR(0, 1362, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_KeyOnlyDictionaryMerger.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_KeyOnlyDictionaryMerger.tp_dictoffset && __pyx_type_5_core_KeyOnlyDictionaryMerger.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_KeyOnlyDictionaryMerger.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_KeyOnlyDictionaryMerger, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1362, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_23KeyOnlyDictionaryMerger_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_23KeyOnlyDictionaryMerger_6__init__.doc = __pyx_doc_5_core_23KeyOnlyDictionaryMerger_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_23KeyOnlyDictionaryMerger_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_KeyOnlyDictionaryMerger, (PyObject *)&__pyx_type_5_core_KeyOnlyDictionaryMerger) < 0) __PYX_ERR(0, 1362, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_KeyOnlyDictionaryMerger) < 0) __PYX_ERR(0, 1362, __pyx_L1_error)
  __pyx_ptype_5_core_KeyOnlyDictionaryMerger = &__pyx_type_5_core_KeyOnlyDictionaryMerger;
  if (PyType_Ready(&__pyx_type_5_core_Match) < 0) __PYX_ERR(0, 1425, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_Match.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_Match.tp_dictoffset && __pyx_type_5_core_Match.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_Match.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_Match, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1425, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_5Match_10__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_5Match_10__init__.doc = __pyx_doc_5_core_5Match_10__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_5Match_10__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Match, (PyObject *)&__pyx_type_5_core_Match) < 0) __PYX_ERR(0, 1425, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_Match) < 0) __PYX_ERR(0, 1425, __pyx_L1_error)
  __pyx_ptype_5_core_Match = &__pyx_type_5_core_Match;
  if (PyType_Ready(&__pyx_type_5_core_MultiWordCompletion) < 0) __PYX_ERR(0, 1619, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_MultiWordCompletion.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_MultiWordCompletion.tp_dictoffset && __pyx_type_5_core_MultiWordCompletion.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_MultiWordCompletion.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_MultiWordCompletion, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1619, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_19MultiWordCompletion_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_19MultiWordCompletion_2__init__.doc = __pyx_doc_5_core_19MultiWordCompletion_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_19MultiWordCompletion_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MultiWordCompletion, (PyObject *)&__pyx_type_5_core_MultiWordCompletion) < 0) __PYX_ERR(0, 1619, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_MultiWordCompletion) < 0) __PYX_ERR(0, 1619, __pyx_L1_error)
  __pyx_ptype_5_core_MultiWordCompletion = &__pyx_type_5_core_MultiWordCompletion;
  if (PyType_Ready(&__pyx_type_5_core_PredictiveCompression) < 0) __PYX_ERR(0, 1672, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_PredictiveCompression.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_PredictiveCompression.tp_dictoffset && __pyx_type_5_core_PredictiveCompression.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_PredictiveCompression.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_PredictiveCompression, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1672, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_21PredictiveCompression_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_21PredictiveCompression_2__init__.doc = __pyx_doc_5_core_21PredictiveCompression_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_21PredictiveCompression_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_PredictiveCompression, (PyObject *)&__pyx_type_5_core_PredictiveCompression) < 0) __PYX_ERR(0, 1672, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_PredictiveCompression) < 0) __PYX_ERR(0, 1672, __pyx_L1_error)
  __pyx_ptype_5_core_PredictiveCompression = &__pyx_type_5_core_PredictiveCompression;
  if (PyType_Ready(&__pyx_type_5_core_PrefixCompletion) < 0) __PYX_ERR(0, 1708, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_PrefixCompletion.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_PrefixCompletion.tp_dictoffset && __pyx_type_5_core_PrefixCompletion.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_PrefixCompletion.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_PrefixCompletion, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1708, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_16PrefixCompletion_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_16PrefixCompletion_2__init__.doc = __pyx_doc_5_core_16PrefixCompletion_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_16PrefixCompletion_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_PrefixCompletion, (PyObject *)&__pyx_type_5_core_PrefixCompletion) < 0) __PYX_ERR(0, 1708, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_PrefixCompletion) < 0) __PYX_ERR(0, 1708, __pyx_L1_error)
  __pyx_ptype_5_core_PrefixCompletion = &__pyx_type_5_core_PrefixCompletion;
  if (PyType_Ready(&__pyx_type_5_core_ReadOnlyIndex) < 0) __PYX_ERR(0, 1774, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_ReadOnlyIndex.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_ReadOnlyIndex.tp_dictoffset && __pyx_type_5_core_ReadOnlyIndex.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_ReadOnlyIndex.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_ReadOnlyIndex, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1774, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_13ReadOnlyIndex_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_13ReadOnlyIndex_6__init__.doc = __pyx_doc_5_core_13ReadOnlyIndex_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_13ReadOnlyIndex_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ReadOnlyIndex, (PyObject *)&__pyx_type_5_core_ReadOnlyIndex) < 0) __PYX_ERR(0, 1774, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_ReadOnlyIndex) < 0) __PYX_ERR(0, 1774, __pyx_L1_error)
  __pyx_ptype_5_core_ReadOnlyIndex = &__pyx_type_5_core_ReadOnlyIndex;
  if (PyType_Ready(&__pyx_type_5_core_StringDictionaryCompiler) < 0) __PYX_ERR(0, 1873, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_StringDictionaryCompiler.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_StringDictionaryCompiler.tp_dictoffset && __pyx_type_5_core_StringDictionaryCompiler.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_StringDictionaryCompiler.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_StringDictionaryCompiler, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1873, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_24StringDictionaryCompiler_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_24StringDictionaryCompiler_6__init__.doc = __pyx_doc_5_core_24StringDictionaryCompiler_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_24StringDictionaryCompiler_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_StringDictionaryCompiler, (PyObject *)&__pyx_type_5_core_StringDictionaryCompiler) < 0) __PYX_ERR(0, 1873, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_StringDictionaryCompiler) < 0) __PYX_ERR(0, 1873, __pyx_L1_error)
  __pyx_ptype_5_core_StringDictionaryCompiler = &__pyx_type_5_core_StringDictionaryCompiler;
  if (PyType_Ready(&__pyx_type_5_core_StringDictionaryMerger) < 0) __PYX_ERR(0, 1961, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_StringDictionaryMerger.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_StringDictionaryMerger.tp_dictoffset && __pyx_type_5_core_StringDictionaryMerger.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_StringDictionaryMerger.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_StringDictionaryMerger, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1961, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_22StringDictionaryMerger_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_22StringDictionaryMerger_6__init__.doc = __pyx_doc_5_core_22StringDictionaryMerger_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_22StringDictionaryMerger_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_StringDictionaryMerger, (PyObject *)&__pyx_type_5_core_StringDictionaryMerger) < 0) __PYX_ERR(0, 1961, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_StringDictionaryMerger) < 0) __PYX_ERR(0, 1961, __pyx_L1_error)
  __pyx_ptype_5_core_StringDictionaryMerger = &__pyx_type_5_core_StringDictionaryMerger;
  if (PyType_Ready(&__pyx_type_5_core_StringVector) < 0) __PYX_ERR(0, 2024, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_StringVector.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_StringVector.tp_dictoffset && __pyx_type_5_core_StringVector.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_StringVector.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_StringVector, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 2024, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_12StringVector_2__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_12StringVector_2__init__.doc = __pyx_doc_5_core_12StringVector_2__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_12StringVector_2__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_StringVector, (PyObject *)&__pyx_type_5_core_StringVector) < 0) __PYX_ERR(0, 2024, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_StringVector) < 0) __PYX_ERR(0, 2024, __pyx_L1_error)
  __pyx_ptype_5_core_StringVector = &__pyx_type_5_core_StringVector;
  if (PyType_Ready(&__pyx_type_5_core_StringVectorGenerator) < 0) __PYX_ERR(0, 2062, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_StringVectorGenerator.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_StringVectorGenerator.tp_dictoffset && __pyx_type_5_core_StringVectorGenerator.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_StringVectorGenerator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_5_core_StringVectorGenerator, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 2062, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_5_core_21StringVectorGenerator_6__init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_5_core_21StringVectorGenerator_6__init__.doc = __pyx_doc_5_core_21StringVectorGenerator_6__init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_5_core_21StringVectorGenerator_6__init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_StringVectorGenerator, (PyObject *)&__pyx_type_5_core_StringVectorGenerator) < 0) __PYX_ERR(0, 2062, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_StringVectorGenerator) < 0) __PYX_ERR(0, 2062, __pyx_L1_error)
  __pyx_ptype_5_core_StringVectorGenerator = &__pyx_type_5_core_StringVectorGenerator;
  if (PyType_Ready(&__pyx_type_5_core_loading_strategy_types) < 0) __PYX_ERR(0, 2125, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_loading_strategy_types.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_loading_strategy_types.tp_dictoffset && __pyx_type_5_core_loading_strategy_types.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_loading_strategy_types.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_loading_strategy_types, (PyObject *)&__pyx_type_5_core_loading_strategy_types) < 0) __PYX_ERR(0, 2125, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_loading_strategy_types) < 0) __PYX_ERR(0, 2125, __pyx_L1_error)
  __pyx_ptype_5_core_loading_strategy_types = &__pyx_type_5_core_loading_strategy_types;
  if (PyType_Ready(&__pyx_type_5_core_MatchIterator) < 0) __PYX_ERR(0, 2186, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core_MatchIterator.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core_MatchIterator.tp_dictoffset && __pyx_type_5_core_MatchIterator.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core_MatchIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MatchIterator, (PyObject *)&__pyx_type_5_core_MatchIterator) < 0) __PYX_ERR(0, 2186, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5_core_MatchIterator) < 0) __PYX_ERR(0, 2186, __pyx_L1_error)
  __pyx_ptype_5_core_MatchIterator = &__pyx_type_5_core_MatchIterator;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct___init_1) < 0) __PYX_ERR(0, 78, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct___init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct___init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct___init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct___init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct___init_1 = &__pyx_type_5_core___pyx_scope_struct___init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 80, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_1_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_1_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_1_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_1_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_1_genexpr = &__pyx_type_5_core___pyx_scope_struct_1_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_2_genexpr) < 0) __PYX_ERR(0, 80, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_2_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_2_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_2_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_2_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_2_genexpr = &__pyx_type_5_core___pyx_scope_struct_2_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_3___init__) < 0) __PYX_ERR(0, 93, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_3___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_3___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_3___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_3___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_3___init__ = &__pyx_type_5_core___pyx_scope_struct_3___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_4_genexpr) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_4_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_4_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_4_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_4_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_4_genexpr = &__pyx_type_5_core___pyx_scope_struct_4_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_5_genexpr) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_5_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_5_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_5_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_5_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_5_genexpr = &__pyx_type_5_core___pyx_scope_struct_5_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_6__init_1) < 0) __PYX_ERR(0, 170, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_6__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_6__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_6__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_6__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_6__init_1 = &__pyx_type_5_core___pyx_scope_struct_6__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_7_genexpr) < 0) __PYX_ERR(0, 172, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_7_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_7_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_7_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_7_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_7_genexpr = &__pyx_type_5_core___pyx_scope_struct_7_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_8_genexpr) < 0) __PYX_ERR(0, 172, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_8_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_8_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_8_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_8_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_8_genexpr = &__pyx_type_5_core___pyx_scope_struct_8_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_9___init__) < 0) __PYX_ERR(0, 185, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_9___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_9___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_9___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_9___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_9___init__ = &__pyx_type_5_core___pyx_scope_struct_9___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_10_genexpr) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_10_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_10_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_10_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_10_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_10_genexpr = &__pyx_type_5_core___pyx_scope_struct_10_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_11_genexpr) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_11_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_11_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_11_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_11_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_11_genexpr = &__pyx_type_5_core___pyx_scope_struct_11_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper) < 0) __PYX_ERR(0, 387, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_12__key_iterator_wrapper = &__pyx_type_5_core___pyx_scope_struct_12__key_iterator_wrapper;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper) < 0) __PYX_ERR(0, 391, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_13__value_iterator_wrapper = &__pyx_type_5_core___pyx_scope_struct_13__value_iterator_wrapper;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper) < 0) __PYX_ERR(0, 395, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_14__item_iterator_wrapper = &__pyx_type_5_core___pyx_scope_struct_14__item_iterator_wrapper;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_15___init__) < 0) __PYX_ERR(0, 573, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_15___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_15___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_15___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_15___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_15___init__ = &__pyx_type_5_core___pyx_scope_struct_15___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_16_genexpr) < 0) __PYX_ERR(0, 577, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_16_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_16_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_16_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_16_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_16_genexpr = &__pyx_type_5_core___pyx_scope_struct_16_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_17_genexpr) < 0) __PYX_ERR(0, 577, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_17_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_17_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_17_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_17_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_17_genexpr = &__pyx_type_5_core___pyx_scope_struct_17_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_18__init_1) < 0) __PYX_ERR(0, 681, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_18__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_18__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_18__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_18__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_18__init_1 = &__pyx_type_5_core___pyx_scope_struct_18__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_19_genexpr) < 0) __PYX_ERR(0, 683, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_19_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_19_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_19_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_19_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_19_genexpr = &__pyx_type_5_core___pyx_scope_struct_19_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_20_genexpr) < 0) __PYX_ERR(0, 683, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_20_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_20_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_20_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_20_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_20_genexpr = &__pyx_type_5_core___pyx_scope_struct_20_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_21___init__) < 0) __PYX_ERR(0, 696, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_21___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_21___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_21___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_21___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_21___init__ = &__pyx_type_5_core___pyx_scope_struct_21___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_22_genexpr) < 0) __PYX_ERR(0, 703, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_22_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_22_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_22_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_22_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_22_genexpr = &__pyx_type_5_core___pyx_scope_struct_22_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_23_genexpr) < 0) __PYX_ERR(0, 703, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_23_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_23_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_23_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_23_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_23_genexpr = &__pyx_type_5_core___pyx_scope_struct_23_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_24__init_1) < 0) __PYX_ERR(0, 768, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_24__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_24__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_24__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_24__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_24__init_1 = &__pyx_type_5_core___pyx_scope_struct_24__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_25_genexpr) < 0) __PYX_ERR(0, 770, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_25_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_25_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_25_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_25_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_25_genexpr = &__pyx_type_5_core___pyx_scope_struct_25_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_26_genexpr) < 0) __PYX_ERR(0, 770, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_26_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_26_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_26_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_26_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_26_genexpr = &__pyx_type_5_core___pyx_scope_struct_26_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_27___init__) < 0) __PYX_ERR(0, 783, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_27___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_27___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_27___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_27___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_27___init__ = &__pyx_type_5_core___pyx_scope_struct_27___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_28_genexpr) < 0) __PYX_ERR(0, 790, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_28_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_28_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_28_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_28_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_28_genexpr = &__pyx_type_5_core___pyx_scope_struct_28_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_29_genexpr) < 0) __PYX_ERR(0, 790, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_29_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_29_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_29_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_29_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_29_genexpr = &__pyx_type_5_core___pyx_scope_struct_29_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_30__init_1) < 0) __PYX_ERR(0, 855, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_30__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_30__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_30__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_30__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_30__init_1 = &__pyx_type_5_core___pyx_scope_struct_30__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_31_genexpr) < 0) __PYX_ERR(0, 857, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_31_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_31_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_31_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_31_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_31_genexpr = &__pyx_type_5_core___pyx_scope_struct_31_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_32_genexpr) < 0) __PYX_ERR(0, 857, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_32_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_32_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_32_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_32_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_32_genexpr = &__pyx_type_5_core___pyx_scope_struct_32_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_33___init__) < 0) __PYX_ERR(0, 870, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_33___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_33___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_33___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_33___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_33___init__ = &__pyx_type_5_core___pyx_scope_struct_33___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_34_genexpr) < 0) __PYX_ERR(0, 877, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_34_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_34_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_34_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_34_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_34_genexpr = &__pyx_type_5_core___pyx_scope_struct_34_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_35_genexpr) < 0) __PYX_ERR(0, 877, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_35_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_35_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_35_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_35_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_35_genexpr = &__pyx_type_5_core___pyx_scope_struct_35_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_36__init_1) < 0) __PYX_ERR(0, 918, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_36__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_36__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_36__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_36__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_36__init_1 = &__pyx_type_5_core___pyx_scope_struct_36__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_37_genexpr) < 0) __PYX_ERR(0, 920, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_37_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_37_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_37_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_37_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_37_genexpr = &__pyx_type_5_core___pyx_scope_struct_37_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_38_genexpr) < 0) __PYX_ERR(0, 920, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_38_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_38_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_38_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_38_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_38_genexpr = &__pyx_type_5_core___pyx_scope_struct_38_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_39___init__) < 0) __PYX_ERR(0, 933, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_39___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_39___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_39___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_39___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_39___init__ = &__pyx_type_5_core___pyx_scope_struct_39___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_40_genexpr) < 0) __PYX_ERR(0, 940, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_40_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_40_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_40_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_40_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_40_genexpr = &__pyx_type_5_core___pyx_scope_struct_40_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_41_genexpr) < 0) __PYX_ERR(0, 940, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_41_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_41_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_41_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_41_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_41_genexpr = &__pyx_type_5_core___pyx_scope_struct_41_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_42__init_1) < 0) __PYX_ERR(0, 1006, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_42__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_42__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_42__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_42__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_42__init_1 = &__pyx_type_5_core___pyx_scope_struct_42__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_43_genexpr) < 0) __PYX_ERR(0, 1008, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_43_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_43_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_43_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_43_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_43_genexpr = &__pyx_type_5_core___pyx_scope_struct_43_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_44_genexpr) < 0) __PYX_ERR(0, 1008, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_44_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_44_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_44_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_44_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_44_genexpr = &__pyx_type_5_core___pyx_scope_struct_44_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_45___init__) < 0) __PYX_ERR(0, 1021, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_45___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_45___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_45___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_45___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_45___init__ = &__pyx_type_5_core___pyx_scope_struct_45___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_46_genexpr) < 0) __PYX_ERR(0, 1028, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_46_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_46_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_46_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_46_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_46_genexpr = &__pyx_type_5_core___pyx_scope_struct_46_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_47_genexpr) < 0) __PYX_ERR(0, 1028, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_47_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_47_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_47_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_47_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_47_genexpr = &__pyx_type_5_core___pyx_scope_struct_47_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_48__init_1) < 0) __PYX_ERR(0, 1099, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_48__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_48__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_48__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_48__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_48__init_1 = &__pyx_type_5_core___pyx_scope_struct_48__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_49_genexpr) < 0) __PYX_ERR(0, 1101, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_49_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_49_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_49_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_49_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_49_genexpr = &__pyx_type_5_core___pyx_scope_struct_49_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_50_genexpr) < 0) __PYX_ERR(0, 1101, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_50_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_50_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_50_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_50_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_50_genexpr = &__pyx_type_5_core___pyx_scope_struct_50_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_51___init__) < 0) __PYX_ERR(0, 1114, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_51___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_51___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_51___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_51___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_51___init__ = &__pyx_type_5_core___pyx_scope_struct_51___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_52_genexpr) < 0) __PYX_ERR(0, 1121, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_52_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_52_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_52_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_52_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_52_genexpr = &__pyx_type_5_core___pyx_scope_struct_52_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_53_genexpr) < 0) __PYX_ERR(0, 1121, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_53_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_53_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_53_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_53_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_53_genexpr = &__pyx_type_5_core___pyx_scope_struct_53_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_54__init_1) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_54__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_54__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_54__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_54__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_54__init_1 = &__pyx_type_5_core___pyx_scope_struct_54__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_55_genexpr) < 0) __PYX_ERR(0, 1201, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_55_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_55_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_55_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_55_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_55_genexpr = &__pyx_type_5_core___pyx_scope_struct_55_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_56_genexpr) < 0) __PYX_ERR(0, 1201, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_56_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_56_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_56_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_56_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_56_genexpr = &__pyx_type_5_core___pyx_scope_struct_56_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_57___init__) < 0) __PYX_ERR(0, 1214, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_57___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_57___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_57___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_57___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_57___init__ = &__pyx_type_5_core___pyx_scope_struct_57___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_58_genexpr) < 0) __PYX_ERR(0, 1221, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_58_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_58_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_58_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_58_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_58_genexpr = &__pyx_type_5_core___pyx_scope_struct_58_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_59_genexpr) < 0) __PYX_ERR(0, 1221, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_59_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_59_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_59_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_59_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_59_genexpr = &__pyx_type_5_core___pyx_scope_struct_59_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_60__init_1) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_60__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_60__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_60__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_60__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_60__init_1 = &__pyx_type_5_core___pyx_scope_struct_60__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_61_genexpr) < 0) __PYX_ERR(0, 1261, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_61_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_61_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_61_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_61_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_61_genexpr = &__pyx_type_5_core___pyx_scope_struct_61_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_62_genexpr) < 0) __PYX_ERR(0, 1261, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_62_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_62_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_62_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_62_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_62_genexpr = &__pyx_type_5_core___pyx_scope_struct_62_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_63___init__) < 0) __PYX_ERR(0, 1274, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_63___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_63___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_63___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_63___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_63___init__ = &__pyx_type_5_core___pyx_scope_struct_63___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_64_genexpr) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_64_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_64_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_64_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_64_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_64_genexpr = &__pyx_type_5_core___pyx_scope_struct_64_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_65_genexpr) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_65_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_65_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_65_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_65_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_65_genexpr = &__pyx_type_5_core___pyx_scope_struct_65_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_66__init_1) < 0) __PYX_ERR(0, 1377, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_66__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_66__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_66__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_66__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_66__init_1 = &__pyx_type_5_core___pyx_scope_struct_66__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_67_genexpr) < 0) __PYX_ERR(0, 1379, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_67_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_67_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_67_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_67_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_67_genexpr = &__pyx_type_5_core___pyx_scope_struct_67_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_68_genexpr) < 0) __PYX_ERR(0, 1379, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_68_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_68_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_68_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_68_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_68_genexpr = &__pyx_type_5_core___pyx_scope_struct_68_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_69___init__) < 0) __PYX_ERR(0, 1392, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_69___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_69___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_69___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_69___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_69___init__ = &__pyx_type_5_core___pyx_scope_struct_69___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_70_genexpr) < 0) __PYX_ERR(0, 1399, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_70_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_70_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_70_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_70_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_70_genexpr = &__pyx_type_5_core___pyx_scope_struct_70_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_71_genexpr) < 0) __PYX_ERR(0, 1399, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_71_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_71_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_71_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_71_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_71_genexpr = &__pyx_type_5_core___pyx_scope_struct_71_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_72__init_1) < 0) __PYX_ERR(0, 1792, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_72__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_72__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_72__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_72__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_72__init_1 = &__pyx_type_5_core___pyx_scope_struct_72__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_73_genexpr) < 0) __PYX_ERR(0, 1795, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_73_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_73_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_73_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_73_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_73_genexpr = &__pyx_type_5_core___pyx_scope_struct_73_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_74_genexpr) < 0) __PYX_ERR(0, 1795, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_74_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_74_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_74_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_74_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_74_genexpr = &__pyx_type_5_core___pyx_scope_struct_74_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_75___init__) < 0) __PYX_ERR(0, 1810, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_75___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_75___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_75___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_75___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_75___init__ = &__pyx_type_5_core___pyx_scope_struct_75___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_76_genexpr) < 0) __PYX_ERR(0, 1817, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_76_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_76_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_76_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_76_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_76_genexpr = &__pyx_type_5_core___pyx_scope_struct_76_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_77_genexpr) < 0) __PYX_ERR(0, 1817, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_77_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_77_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_77_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_77_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_77_genexpr = &__pyx_type_5_core___pyx_scope_struct_77_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_78__init_1) < 0) __PYX_ERR(0, 1888, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_78__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_78__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_78__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_78__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_78__init_1 = &__pyx_type_5_core___pyx_scope_struct_78__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_79_genexpr) < 0) __PYX_ERR(0, 1890, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_79_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_79_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_79_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_79_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_79_genexpr = &__pyx_type_5_core___pyx_scope_struct_79_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_80_genexpr) < 0) __PYX_ERR(0, 1890, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_80_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_80_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_80_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_80_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_80_genexpr = &__pyx_type_5_core___pyx_scope_struct_80_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_81___init__) < 0) __PYX_ERR(0, 1903, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_81___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_81___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_81___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_81___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_81___init__ = &__pyx_type_5_core___pyx_scope_struct_81___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_82_genexpr) < 0) __PYX_ERR(0, 1910, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_82_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_82_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_82_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_82_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_82_genexpr = &__pyx_type_5_core___pyx_scope_struct_82_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_83_genexpr) < 0) __PYX_ERR(0, 1910, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_83_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_83_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_83_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_83_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_83_genexpr = &__pyx_type_5_core___pyx_scope_struct_83_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_84__init_1) < 0) __PYX_ERR(0, 1976, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_84__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_84__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_84__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_84__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_84__init_1 = &__pyx_type_5_core___pyx_scope_struct_84__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_85_genexpr) < 0) __PYX_ERR(0, 1978, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_85_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_85_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_85_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_85_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_85_genexpr = &__pyx_type_5_core___pyx_scope_struct_85_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_86_genexpr) < 0) __PYX_ERR(0, 1978, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_86_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_86_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_86_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_86_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_86_genexpr = &__pyx_type_5_core___pyx_scope_struct_86_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_87___init__) < 0) __PYX_ERR(0, 1991, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_87___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_87___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_87___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_87___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_87___init__ = &__pyx_type_5_core___pyx_scope_struct_87___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_88_genexpr) < 0) __PYX_ERR(0, 1998, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_88_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_88_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_88_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_88_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_88_genexpr = &__pyx_type_5_core___pyx_scope_struct_88_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_89_genexpr) < 0) __PYX_ERR(0, 1998, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_89_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_89_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_89_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_89_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_89_genexpr = &__pyx_type_5_core___pyx_scope_struct_89_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_90__init_1) < 0) __PYX_ERR(0, 2077, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_90__init_1.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_90__init_1.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_90__init_1.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_90__init_1.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_90__init_1 = &__pyx_type_5_core___pyx_scope_struct_90__init_1;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_91_genexpr) < 0) __PYX_ERR(0, 2079, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_91_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_91_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_91_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_91_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_91_genexpr = &__pyx_type_5_core___pyx_scope_struct_91_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_92_genexpr) < 0) __PYX_ERR(0, 2079, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_92_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_92_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_92_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_92_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_92_genexpr = &__pyx_type_5_core___pyx_scope_struct_92_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_93___init__) < 0) __PYX_ERR(0, 2092, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_93___init__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_93___init__.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_93___init__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_93___init__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_93___init__ = &__pyx_type_5_core___pyx_scope_struct_93___init__;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_94_genexpr) < 0) __PYX_ERR(0, 2099, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_94_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_94_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_94_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_94_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_94_genexpr = &__pyx_type_5_core___pyx_scope_struct_94_genexpr;
  if (PyType_Ready(&__pyx_type_5_core___pyx_scope_struct_95_genexpr) < 0) __PYX_ERR(0, 2099, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_5_core___pyx_scope_struct_95_genexpr.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5_core___pyx_scope_struct_95_genexpr.tp_dictoffset && __pyx_type_5_core___pyx_scope_struct_95_genexpr.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_5_core___pyx_scope_struct_95_genexpr.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_5_core___pyx_scope_struct_95_genexpr = &__pyx_type_5_core___pyx_scope_struct_95_genexpr;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", 
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(PyTypeObject),
  #else
  sizeof(PyHeapTypeObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}


#ifndef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#elif PY_MAJOR_VERSION < 3
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" void
#else
#define __Pyx_PyMODINIT_FUNC void
#endif
#else
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyObject *
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC init_core(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC init_core(void)
#else
__Pyx_PyMODINIT_FUNC PyInit__core(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit__core(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) {
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec__core(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module '_core' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit__core(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("_core", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_b);
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_cython_runtime);
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main__core) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "_core")) {
      if (unlikely(PyDict_SetItemString(modules, "_core", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  (void)__Pyx_modinit_variable_export_code();
  (void)__Pyx_modinit_function_export_code();
  if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_variable_import_code();
  (void)__Pyx_modinit_function_import_code();
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "_core.pyx":52
 * cdef extern from "autowrap_tools.hpp":
 *     char * _cast_const_away(char *)
 * def JumpConsistentHashString( in_0 ,  in_1 ):             # <<<<<<<<<<<<<<
 *     """Cython signature: uint32_t JumpConsistentHashString(libcpp_utf8_string, uint32_t)"""
 *     assert isinstance(in_0, (bytes, unicode)), 'arg in_0 wrong type'
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5_core_1JumpConsistentHashString, NULL, __pyx_n_s_core); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_JumpConsistentHashString, __pyx_t_1) < 0) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "_core.pyx":1602
 * 
 *     @staticmethod
 *     def loads(serialized_match):             # <<<<<<<<<<<<<<
 *         m=Match()
 *         unserialized = msgpack.loads(serialized_match)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5_core_5Match_45loads, NULL, __pyx_n_s_core); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_Match->tp_dict, __pyx_n_s_loads, __pyx_t_1) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_5_core_Match);

  /* "_core.pyx":1601
 *          self.inst.get().SetRawValue(<libcpp_string> str)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def loads(serialized_match):
 *         m=Match()
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_5_core_Match, __pyx_n_s_loads); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_Match->tp_dict, __pyx_n_s_loads, __pyx_t_2) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_5_core_Match);

  /* "_core.pyx":2126
 * 
 * cdef class loading_strategy_types:
 *     default_os = 0             # <<<<<<<<<<<<<<
 *     lazy = 1
 *     populate = 2
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_default_os, __pyx_int_0) < 0) __PYX_ERR(0, 2126, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2127
 * cdef class loading_strategy_types:
 *     default_os = 0
 *     lazy = 1             # <<<<<<<<<<<<<<
 *     populate = 2
 *     populate_key_part = 3
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_lazy, __pyx_int_1) < 0) __PYX_ERR(0, 2127, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2128
 *     default_os = 0
 *     lazy = 1
 *     populate = 2             # <<<<<<<<<<<<<<
 *     populate_key_part = 3
 *     populate_lazy = 4
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_populate, __pyx_int_2) < 0) __PYX_ERR(0, 2128, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2129
 *     lazy = 1
 *     populate = 2
 *     populate_key_part = 3             # <<<<<<<<<<<<<<
 *     populate_lazy = 4
 *     lazy_no_readahead = 5
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_populate_key_part, __pyx_int_3) < 0) __PYX_ERR(0, 2129, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2130
 *     populate = 2
 *     populate_key_part = 3
 *     populate_lazy = 4             # <<<<<<<<<<<<<<
 *     lazy_no_readahead = 5
 *     lazy_no_readahead_value_part = 6
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_populate_lazy, __pyx_int_4) < 0) __PYX_ERR(0, 2130, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2131
 *     populate_key_part = 3
 *     populate_lazy = 4
 *     lazy_no_readahead = 5             # <<<<<<<<<<<<<<
 *     lazy_no_readahead_value_part = 6
 *     populate_key_part_no_readahead_value_part = 7
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_lazy_no_readahead, __pyx_int_5) < 0) __PYX_ERR(0, 2131, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2132
 *     populate_lazy = 4
 *     lazy_no_readahead = 5
 *     lazy_no_readahead_value_part = 6             # <<<<<<<<<<<<<<
 *     populate_key_part_no_readahead_value_part = 7
 * 
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_lazy_no_readahead_value_part, __pyx_int_6) < 0) __PYX_ERR(0, 2132, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2133
 *     lazy_no_readahead = 5
 *     lazy_no_readahead_value_part = 6
 *     populate_key_part_no_readahead_value_part = 7             # <<<<<<<<<<<<<<
 * 
 *     def getMapping(self):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_5_core_loading_strategy_types->tp_dict, __pyx_n_s_populate_key_part_no_readahead_v, __pyx_int_7) < 0) __PYX_ERR(0, 2133, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_5_core_loading_strategy_types);

  /* "_core.pyx":2150
 * from std_smart_ptr cimport shared_ptr as s_shared_ptr
 * 
 * import json             # <<<<<<<<<<<<<<
 * import msgpack
 * import keyvi._pycore
 */
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_json, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_json, __pyx_t_2) < 0) __PYX_ERR(0, 2150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2151
 * 
 * import json
 * import msgpack             # <<<<<<<<<<<<<<
 * import keyvi._pycore
 * import os.path
 */
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_msgpack, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_msgpack, __pyx_t_2) < 0) __PYX_ERR(0, 2151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2152
 * import json
 * import msgpack
 * import keyvi._pycore             # <<<<<<<<<<<<<<
 * import os.path
 * import sys
 */
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_keyvi__pycore, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_keyvi, __pyx_t_2) < 0) __PYX_ERR(0, 2152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2153
 * import msgpack
 * import keyvi._pycore
 * import os.path             # <<<<<<<<<<<<<<
 * import sys
 * 
 */
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_os_path, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_os, __pyx_t_2) < 0) __PYX_ERR(0, 2153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2154
 * import keyvi._pycore
 * import os.path
 * import sys             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_sys, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_2) < 0) __PYX_ERR(0, 2154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2157
 * 
 * 
 * def get_package_root():             # <<<<<<<<<<<<<<
 *     module_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(keyvi._pycore.__file__)), ".."))
 * 
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5_core_3get_package_root, NULL, __pyx_n_s_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_package_root, __pyx_t_2) < 0) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":2166
 * 
 * 
 * def get_interpreter_executable():             # <<<<<<<<<<<<<<
 *     executable = sys.executable
 * 
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5_core_5get_interpreter_executable, NULL, __pyx_n_s_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_interpreter_executable, __pyx_t_2) < 0) __PYX_ERR(0, 2166, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_loading_strategy_types(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5_core_7__pyx_unpickle_loading_strategy_types, NULL, __pyx_n_s_core); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_loading_strategy, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "_core.pyx":1
 * #cython: c_string_encoding=ascii  # for cython>=0.19             # <<<<<<<<<<<<<<
 * #cython: embedsignature=False
 * from  libcpp.string  cimport string as libcpp_string
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "string.to_py":55
 * 
 * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string")
 * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s):             # <<<<<<<<<<<<<<
 *     return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size())
 * 
 */

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init _core", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_CLEAR(__pyx_m);
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init _core");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    int flags = PyCFunction_GET_FLAGS(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
        return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL);
    } else {
        return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs);
    }
}
#endif

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif
#endif

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCall2Args */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args, *result = NULL;
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyFunction_FastCall(function, args, 2);
    }
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyCFunction_FastCall(function, args, 2);
    }
    #endif
    args = PyTuple_New(2);
    if (unlikely(!args)) goto done;
    Py_INCREF(arg1);
    PyTuple_SET_ITEM(args, 0, arg1);
    Py_INCREF(arg2);
    PyTuple_SET_ITEM(args, 1, arg2);
    Py_INCREF(function);
    result = __Pyx_PyObject_Call(function, args, NULL);
    Py_DECREF(args);
    Py_DECREF(function);
done:
    return result;
}

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
    if (likely(PyCFunction_Check(func))) {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (__Pyx_PyFastCFunction_Check(func)) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* ArgTypeTest */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
#if CYTHON_FAST_THREAD_STATE
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject* exc_type = tstate->curexc_type;
    if (unlikely(exc_type)) {
        if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
            PyObject *exc_value, *exc_tb;
            exc_value = tstate->curexc_value;
            exc_tb = tstate->curexc_traceback;
            tstate->curexc_type = 0;
            tstate->curexc_value = 0;
            tstate->curexc_traceback = 0;
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#else
    if (unlikely(PyErr_Occurred())) {
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
            PyErr_Clear();
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#endif
}

/* PyObjectCallNoArg */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
#else
    if (likely(PyCFunction_Check(func)))
#endif
    {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* PyObjectGetMethod */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if PY_MAJOR_VERSION >= 3
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type)))
        #endif
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (descr != NULL) {
        *method = descr;
        return 0;
    }
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(name));
#endif
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}

/* PyObjectCallMethod0 */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    } else {
        return __Pyx_IterFinish();
    }
    return 0;
}

/* RaiseNoneIterError */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else if (PyTuple_GET_SIZE(t) < index) {
      __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t));
    } else {
      __Pyx_RaiseTooManyValuesError(index);
    }
}

/* UnpackTuple2 */
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_COMPILING_IN_PYPY
    value1 = PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_COMPILING_IN_PYPY
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = Py_TYPE(iter)->tp_iternext;
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_COMPILING_IN_PYPY
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#elif PY_MAJOR_VERSION >= 3
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_COMPILING_IN_PYPY
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_COMPILING_IN_PYPY
    if (source_is_dict) {
        PyObject *key, *value;
        if (unlikely(orig_length != PyDict_Size(iter_obj))) {
            PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
            return -1;
        }
        if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
            return 0;
        }
        if (pitem) {
            PyObject* tuple = PyTuple_New(2);
            if (unlikely(!tuple)) {
                return -1;
            }
            Py_INCREF(key);
            Py_INCREF(value);
            PyTuple_SET_ITEM(tuple, 0, key);
            PyTuple_SET_ITEM(tuple, 1, value);
            *pitem = tuple;
        } else {
            if (pkey) {
                Py_INCREF(key);
                *pkey = key;
            }
            if (pvalue) {
                Py_INCREF(value);
                *pvalue = value;
            }
        }
        return 1;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyList_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* None */
static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname) {
    PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname);
}

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    #if PY_MAJOR_VERSION < 3
    if (likely(PyString_CheckExact(s))) {
        PyObject *result = PyUnicode_FromEncodedObject(s, NULL, "strict");
        Py_DECREF(s);
        return result;
    }
    #endif
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
#ifdef _MSC_VER
    else state = (PyGILState_STATE)-1;
#endif
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* PyIntCompare */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) {
    if (op1 == op2) {
        Py_RETURN_TRUE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a == b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = Py_SIZE(op1);
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        if (intval == 0) {
            if (size == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (size >= 0)
                Py_RETURN_FALSE;
            intval = -intval;
            size = -size;
        } else {
            if (size <= 0)
                Py_RETURN_FALSE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
        if ((double)a == (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* decode_c_bytes */
static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes(
         const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    if (unlikely((start < 0) | (stop < 0))) {
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    if (stop > length)
        stop = length;
    if (unlikely(stop <= start))
        return __Pyx_NewRef(__pyx_empty_unicode);
    length = stop - start;
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* PyDictVersioning */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* PyIntCompare */
static CYTHON_INLINE PyObject* __Pyx_PyInt_NeObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) {
    if (op1 == op2) {
        Py_RETURN_FALSE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a != b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = Py_SIZE(op1);
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        if (intval == 0) {
            if (size != 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (size >= 0)
                Py_RETURN_TRUE;
            intval = -intval;
            size = -size;
        } else {
            if (size <= 0)
                Py_RETURN_TRUE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal != 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
        if ((double)a != (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_NE));
}

/* PyErrExceptionMatches */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    PyObject *exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
    if (unlikely(PyTuple_Check(err)))
        return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
}
#endif

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3
    if (likely(PyUnicode_Check(n)))
#else
    if (likely(PyString_Check(n)))
#endif
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* GetAttr3 */
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r = __Pyx_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* HasAttr */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!__Pyx_PyBaseString_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_GetAttr(o, n);
    if (unlikely(!r)) {
        PyErr_Clear();
        return 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}

/* PyObject_GenericGetAttrNoDict */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, attr_name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(attr_name));
#endif
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError */
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
}

/* SetupReduce */
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD;
#else
    if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD;
#endif
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython);
            if (likely(reduce_cython)) {
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred())
        PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* TypeImport */
#ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
    size_t size, enum __Pyx_ImportType_CheckSize check_size)
{
    PyObject *result = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if ((size_t)basicsize < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* GetNameInClass */
static PyObject *__Pyx_GetGlobalNameAfterAttributeLookup(PyObject *name) {
    PyObject *result;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    __Pyx_GetModuleGlobalNameUncached(result, name);
    return result;
}
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    result = __Pyx_PyObject_GetAttrStr(nmspace, name);
    if (!result) {
        result = __Pyx_GetGlobalNameAfterAttributeLookup(name);
    }
    return result;
}

/* CLineInTraceback */
#ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

/* CIntFromPyVerify */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntFromPy */
static CYTHON_INLINE uint32_t __Pyx_PyInt_As_uint32_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(uint32_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(uint32_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (uint32_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (uint32_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(uint32_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(uint32_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) >= 2 * PyLong_SHIFT) {
                            return (uint32_t) (((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(uint32_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) >= 3 * PyLong_SHIFT) {
                            return (uint32_t) (((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(uint32_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) >= 4 * PyLong_SHIFT) {
                            return (uint32_t) (((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (uint32_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(uint32_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (uint32_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(uint32_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(uint32_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(uint32_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT) {
                            return (uint32_t) (((uint32_t)-1)*(((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(uint32_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT) {
                            return (uint32_t) ((((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT) {
                            return (uint32_t) (((uint32_t)-1)*(((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(uint32_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT) {
                            return (uint32_t) ((((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) - 1 > 4 * PyLong_SHIFT) {
                            return (uint32_t) (((uint32_t)-1)*(((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(uint32_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint32_t) - 1 > 4 * PyLong_SHIFT) {
                            return (uint32_t) ((((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(uint32_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint32_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(uint32_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint32_t, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            uint32_t val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (uint32_t) -1;
        }
    } else {
        uint32_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (uint32_t) -1;
        val = __Pyx_PyInt_As_uint32_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to uint32_t");
    return (uint32_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to uint32_t");
    return (uint32_t) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint32_t(uint32_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(uint32_t) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(uint32_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(uint32_t) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(uint32_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(uint32_t),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const size_t neg_one = (size_t) -1, const_zero = (size_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(size_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(size_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (size_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (size_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(size_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 2 * PyLong_SHIFT) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 3 * PyLong_SHIFT) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 4 * PyLong_SHIFT) {
                            return (size_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (size_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(size_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (size_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(size_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(size_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) ((((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(size_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(size_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            size_t val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (size_t) -1;
        }
    } else {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyInt_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE int32_t __Pyx_PyInt_As_int32_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int32_t neg_one = (int32_t) -1, const_zero = (int32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int32_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int32_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int32_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int32_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int32_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(int32_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) >= 2 * PyLong_SHIFT) {
                            return (int32_t) (((((int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int32_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) >= 3 * PyLong_SHIFT) {
                            return (int32_t) (((((((int32_t)digits[2]) << PyLong_SHIFT) | (int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int32_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) >= 4 * PyLong_SHIFT) {
                            return (int32_t) (((((((((int32_t)digits[3]) << PyLong_SHIFT) | (int32_t)digits[2]) << PyLong_SHIFT) | (int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int32_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int32_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int32_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int32_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int32_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int32_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int32_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int32_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int32_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) - 1 > 2 * PyLong_SHIFT) {
                            return (int32_t) (((int32_t)-1)*(((((int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int32_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) - 1 > 2 * PyLong_SHIFT) {
                            return (int32_t) ((((((int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int32_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) - 1 > 3 * PyLong_SHIFT) {
                            return (int32_t) (((int32_t)-1)*(((((((int32_t)digits[2]) << PyLong_SHIFT) | (int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int32_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) - 1 > 3 * PyLong_SHIFT) {
                            return (int32_t) ((((((((int32_t)digits[2]) << PyLong_SHIFT) | (int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int32_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) - 1 > 4 * PyLong_SHIFT) {
                            return (int32_t) (((int32_t)-1)*(((((((((int32_t)digits[3]) << PyLong_SHIFT) | (int32_t)digits[2]) << PyLong_SHIFT) | (int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int32_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int32_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int32_t) - 1 > 4 * PyLong_SHIFT) {
                            return (int32_t) ((((((((((int32_t)digits[3]) << PyLong_SHIFT) | (int32_t)digits[2]) << PyLong_SHIFT) | (int32_t)digits[1]) << PyLong_SHIFT) | (int32_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int32_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int32_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int32_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int32_t, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int32_t val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int32_t) -1;
        }
    } else {
        int32_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int32_t) -1;
        val = __Pyx_PyInt_As_int32_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int32_t");
    return (int32_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int32_t");
    return (int32_t) -1;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = a->tp_base;
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
    if (!res) {
        res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
    return res;
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* FetchCommonType */
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
    PyObject* fake_module;
    PyTypeObject* cached_type = NULL;
    fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI);
    if (!fake_module) return NULL;
    Py_INCREF(fake_module);
    cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name);
    if (cached_type) {
        if (!PyType_Check((PyObject*)cached_type)) {
            PyErr_Format(PyExc_TypeError,
                "Shared Cython type %.200s is not a type object",
                type->tp_name);
            goto bad;
        }
        if (cached_type->tp_basicsize != type->tp_basicsize) {
            PyErr_Format(PyExc_TypeError,
                "Shared Cython type %.200s has the wrong size, try recompiling",
                type->tp_name);
            goto bad;
        }
    } else {
        if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
        PyErr_Clear();
        if (PyType_Ready(type) < 0) goto bad;
        if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0)
            goto bad;
        Py_INCREF(type);
        cached_type = type;
    }
done:
    Py_DECREF(fake_module);
    return cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* GetTopmostException */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    #endif
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
#endif

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
    #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* PyObjectCallMethod1 */
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
}

/* CoroutineBase */
#include <structmember.h>
#include <frameobject.h>
#define __Pyx_Coroutine_Undelegate(gen) Py_CLEAR((gen)->yieldfrom)
static int __Pyx_PyGen__FetchStopIterationValue(CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject **pvalue) {
    PyObject *et, *ev, *tb;
    PyObject *value = NULL;
    __Pyx_ErrFetch(&et, &ev, &tb);
    if (!et) {
        Py_XDECREF(tb);
        Py_XDECREF(ev);
        Py_INCREF(Py_None);
        *pvalue = Py_None;
        return 0;
    }
    if (likely(et == PyExc_StopIteration)) {
        if (!ev) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#if PY_VERSION_HEX >= 0x030300A0
        else if (Py_TYPE(ev) == (PyTypeObject*)PyExc_StopIteration) {
            value = ((PyStopIterationObject *)ev)->value;
            Py_INCREF(value);
            Py_DECREF(ev);
        }
#endif
        else if (unlikely(PyTuple_Check(ev))) {
            if (PyTuple_GET_SIZE(ev) >= 1) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                value = PyTuple_GET_ITEM(ev, 0);
                Py_INCREF(value);
#else
                value = PySequence_ITEM(ev, 0);
#endif
            } else {
                Py_INCREF(Py_None);
                value = Py_None;
            }
            Py_DECREF(ev);
        }
        else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) {
            value = ev;
        }
        if (likely(value)) {
            Py_XDECREF(tb);
            Py_DECREF(et);
            *pvalue = value;
            return 0;
        }
    } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    PyErr_NormalizeException(&et, &ev, &tb);
    if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    Py_XDECREF(tb);
    Py_DECREF(et);
#if PY_VERSION_HEX >= 0x030300A0
    value = ((PyStopIterationObject *)ev)->value;
    Py_INCREF(value);
    Py_DECREF(ev);
#else
    {
        PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args);
        Py_DECREF(ev);
        if (likely(args)) {
            value = PySequence_GetItem(args, 0);
            Py_DECREF(args);
        }
        if (unlikely(!value)) {
            __Pyx_ErrRestore(NULL, NULL, NULL);
            Py_INCREF(Py_None);
            value = Py_None;
        }
    }
#endif
    *pvalue = value;
    return 0;
}
static CYTHON_INLINE
void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
    PyObject *t, *v, *tb;
    t = exc_state->exc_type;
    v = exc_state->exc_value;
    tb = exc_state->exc_traceback;
    exc_state->exc_type = NULL;
    exc_state->exc_value = NULL;
    exc_state->exc_traceback = NULL;
    Py_XDECREF(t);
    Py_XDECREF(v);
    Py_XDECREF(tb);
}
#define __Pyx_Coroutine_AlreadyRunningError(gen)  (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyRunningError(CYTHON_UNUSED __pyx_CoroutineObject *gen) {
    const char *msg;
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check((PyObject*)gen)) {
        msg = "coroutine already executing";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) {
        msg = "async generator already executing";
    #endif
    } else {
        msg = "generator already executing";
    }
    PyErr_SetString(PyExc_ValueError, msg);
}
#define __Pyx_Coroutine_NotStartedError(gen)  (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_NotStartedError(CYTHON_UNUSED PyObject *gen) {
    const char *msg;
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check(gen)) {
        msg = "can't send non-None value to a just-started coroutine";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact(gen)) {
        msg = "can't send non-None value to a just-started async generator";
    #endif
    } else {
        msg = "can't send non-None value to a just-started generator";
    }
    PyErr_SetString(PyExc_TypeError, msg);
}
#define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing)  (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyTerminatedError(CYTHON_UNUSED PyObject *gen, PyObject *value, CYTHON_UNUSED int closing) {
    #ifdef __Pyx_Coroutine_USED
    if (!closing && __Pyx_Coroutine_Check(gen)) {
        PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine");
    } else
    #endif
    if (value) {
        #ifdef __Pyx_AsyncGen_USED
        if (__Pyx_AsyncGen_CheckExact(gen))
            PyErr_SetNone(__Pyx_PyExc_StopAsyncIteration);
        else
        #endif
        PyErr_SetNone(PyExc_StopIteration);
    }
}
static
PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) {
    __Pyx_PyThreadState_declare
    PyThreadState *tstate;
    __Pyx_ExcInfoStruct *exc_state;
    PyObject *retval;
    assert(!self->is_running);
    if (unlikely(self->resume_label == 0)) {
        if (unlikely(value && value != Py_None)) {
            return __Pyx_Coroutine_NotStartedError((PyObject*)self);
        }
    }
    if (unlikely(self->resume_label == -1)) {
        return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing);
    }
#if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    tstate = __pyx_tstate;
#else
    tstate = __Pyx_PyThreadState_Current;
#endif
    exc_state = &self->gi_exc_state;
    if (exc_state->exc_type) {
        #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
        #else
        if (exc_state->exc_traceback) {
            PyTracebackObject *tb = (PyTracebackObject *) exc_state->exc_traceback;
            PyFrameObject *f = tb->tb_frame;
            Py_XINCREF(tstate->frame);
            assert(f->f_back == NULL);
            f->f_back = tstate->frame;
        }
        #endif
    }
#if CYTHON_USE_EXC_INFO_STACK
    exc_state->previous_item = tstate->exc_info;
    tstate->exc_info = exc_state;
#else
    if (exc_state->exc_type) {
        __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    } else {
        __Pyx_Coroutine_ExceptionClear(exc_state);
        __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    }
#endif
    self->is_running = 1;
    retval = self->body((PyObject *) self, tstate, value);
    self->is_running = 0;
#if CYTHON_USE_EXC_INFO_STACK
    exc_state = &self->gi_exc_state;
    tstate->exc_info = exc_state->previous_item;
    exc_state->previous_item = NULL;
    __Pyx_Coroutine_ResetFrameBackpointer(exc_state);
#endif
    return retval;
}
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) {
    PyObject *exc_tb = exc_state->exc_traceback;
    if (likely(exc_tb)) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
#else
        PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
        PyFrameObject *f = tb->tb_frame;
        Py_CLEAR(f->f_back);
#endif
    }
}
static CYTHON_INLINE
PyObject *__Pyx_Coroutine_MethodReturn(CYTHON_UNUSED PyObject* gen, PyObject *retval) {
    if (unlikely(!retval)) {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        if (!__Pyx_PyErr_Occurred()) {
            PyObject *exc = PyExc_StopIteration;
            #ifdef __Pyx_AsyncGen_USED
            if (__Pyx_AsyncGen_CheckExact(gen))
                exc = __Pyx_PyExc_StopAsyncIteration;
            #endif
            __Pyx_PyErr_SetNone(exc);
        }
    }
    return retval;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
static CYTHON_INLINE
PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) {
#if PY_VERSION_HEX <= 0x030A00A1
    return _PyGen_Send(gen, arg);
#else
    PyObject *result;
    if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) {
        if (PyAsyncGen_CheckExact(gen)) {
            assert(result == Py_None);
            PyErr_SetNone(PyExc_StopAsyncIteration);
        }
        else if (result == Py_None) {
            PyErr_SetNone(PyExc_StopIteration);
        }
        else {
            _PyGen_SetStopIterationValue(result);
        }
        Py_CLEAR(result);
    }
    return result;
#endif
}
#endif
static CYTHON_INLINE
PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) {
    PyObject *ret;
    PyObject *val = NULL;
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val);
    ret = __Pyx_Coroutine_SendEx(gen, val, 0);
    Py_XDECREF(val);
    return ret;
}
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
    PyObject *retval;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *yf = gen->yieldfrom;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        PyObject *ret;
        gen->is_running = 1;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_AsyncGen_USED
        if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
            ret = __Pyx_async_gen_asend_send(yf, value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
        if (PyCoro_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
        {
            if (value == Py_None)
                ret = Py_TYPE(yf)->tp_iternext(yf);
            else
                ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value);
        }
        gen->is_running = 0;
        if (likely(ret)) {
            return ret;
        }
        retval = __Pyx_Coroutine_FinishDelegation(gen);
    } else {
        retval = __Pyx_Coroutine_SendEx(gen, value, 0);
    }
    return __Pyx_Coroutine_MethodReturn(self, retval);
}
static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) {
    PyObject *retval = NULL;
    int err = 0;
    #ifdef __Pyx_Generator_USED
    if (__Pyx_Generator_CheckExact(yf)) {
        retval = __Pyx_Coroutine_Close(yf);
        if (!retval)
            return -1;
    } else
    #endif
    #ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(yf)) {
        retval = __Pyx_Coroutine_Close(yf);
        if (!retval)
            return -1;
    } else
    if (__Pyx_CoroutineAwait_CheckExact(yf)) {
        retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL);
        if (!retval)
            return -1;
    } else
    #endif
    #ifdef __Pyx_AsyncGen_USED
    if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
        retval = __Pyx_async_gen_asend_close(yf, NULL);
    } else
    if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) {
        retval = __Pyx_async_gen_athrow_close(yf, NULL);
    } else
    #endif
    {
        PyObject *meth;
        gen->is_running = 1;
        meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_close);
        if (unlikely(!meth)) {
            if (!PyErr_ExceptionMatches(PyExc_AttributeError)) {
                PyErr_WriteUnraisable(yf);
            }
            PyErr_Clear();
        } else {
            retval = PyObject_CallFunction(meth, NULL);
            Py_DECREF(meth);
            if (!retval)
                err = -1;
        }
        gen->is_running = 0;
    }
    Py_XDECREF(retval);
    return err;
}
static PyObject *__Pyx_Generator_Next(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *yf = gen->yieldfrom;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        PyObject *ret;
        gen->is_running = 1;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Generator_Next(yf);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, Py_None);
        } else
        #endif
            ret = Py_TYPE(yf)->tp_iternext(yf);
        gen->is_running = 0;
        if (likely(ret)) {
            return ret;
        }
        return __Pyx_Coroutine_FinishDelegation(gen);
    }
    return __Pyx_Coroutine_SendEx(gen, Py_None, 0);
}
static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, CYTHON_UNUSED PyObject *arg) {
    return __Pyx_Coroutine_Close(self);
}
static PyObject *__Pyx_Coroutine_Close(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *retval, *raised_exception;
    PyObject *yf = gen->yieldfrom;
    int err = 0;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        Py_INCREF(yf);
        err = __Pyx_Coroutine_CloseIter(gen, yf);
        __Pyx_Coroutine_Undelegate(gen);
        Py_DECREF(yf);
    }
    if (err == 0)
        PyErr_SetNone(PyExc_GeneratorExit);
    retval = __Pyx_Coroutine_SendEx(gen, NULL, 1);
    if (unlikely(retval)) {
        const char *msg;
        Py_DECREF(retval);
        if ((0)) {
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_Coroutine_Check(self)) {
            msg = "coroutine ignored GeneratorExit";
        #endif
        #ifdef __Pyx_AsyncGen_USED
        } else if (__Pyx_AsyncGen_CheckExact(self)) {
#if PY_VERSION_HEX < 0x03060000
            msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)";
#else
            msg = "async generator ignored GeneratorExit";
#endif
        #endif
        } else {
            msg = "generator ignored GeneratorExit";
        }
        PyErr_SetString(PyExc_RuntimeError, msg);
        return NULL;
    }
    raised_exception = PyErr_Occurred();
    if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))) {
        if (raised_exception) PyErr_Clear();
        Py_INCREF(Py_None);
        return Py_None;
    }
    return NULL;
}
static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb,
                                        PyObject *args, int close_on_genexit) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *yf = gen->yieldfrom;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        PyObject *ret;
        Py_INCREF(yf);
        if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) {
            int err = __Pyx_Coroutine_CloseIter(gen, yf);
            Py_DECREF(yf);
            __Pyx_Coroutine_Undelegate(gen);
            if (err < 0)
                return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0));
            goto throw_here;
        }
        gen->is_running = 1;
        if (0
        #ifdef __Pyx_Generator_USED
            || __Pyx_Generator_CheckExact(yf)
        #endif
        #ifdef __Pyx_Coroutine_USED
            || __Pyx_Coroutine_Check(yf)
        #endif
            ) {
            ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit);
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_CoroutineAwait_CheckExact(yf)) {
            ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit);
        #endif
        } else {
            PyObject *meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_throw);
            if (unlikely(!meth)) {
                Py_DECREF(yf);
                if (!PyErr_ExceptionMatches(PyExc_AttributeError)) {
                    gen->is_running = 0;
                    return NULL;
                }
                PyErr_Clear();
                __Pyx_Coroutine_Undelegate(gen);
                gen->is_running = 0;
                goto throw_here;
            }
            if (likely(args)) {
                ret = PyObject_CallObject(meth, args);
            } else {
                ret = PyObject_CallFunctionObjArgs(meth, typ, val, tb, NULL);
            }
            Py_DECREF(meth);
        }
        gen->is_running = 0;
        Py_DECREF(yf);
        if (!ret) {
            ret = __Pyx_Coroutine_FinishDelegation(gen);
        }
        return __Pyx_Coroutine_MethodReturn(self, ret);
    }
throw_here:
    __Pyx_Raise(typ, val, tb, NULL);
    return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0));
}
static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) {
    PyObject *typ;
    PyObject *val = NULL;
    PyObject *tb = NULL;
    if (!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb))
        return NULL;
    return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1);
}
static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) {
    Py_VISIT(exc_state->exc_type);
    Py_VISIT(exc_state->exc_value);
    Py_VISIT(exc_state->exc_traceback);
    return 0;
}
static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) {
    Py_VISIT(gen->closure);
    Py_VISIT(gen->classobj);
    Py_VISIT(gen->yieldfrom);
    return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg);
}
static int __Pyx_Coroutine_clear(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    Py_CLEAR(gen->closure);
    Py_CLEAR(gen->classobj);
    Py_CLEAR(gen->yieldfrom);
    __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer);
    }
#endif
    Py_CLEAR(gen->gi_code);
    Py_CLEAR(gen->gi_name);
    Py_CLEAR(gen->gi_qualname);
    Py_CLEAR(gen->gi_modulename);
    return 0;
}
static void __Pyx_Coroutine_dealloc(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject_GC_UnTrack(gen);
    if (gen->gi_weakreflist != NULL)
        PyObject_ClearWeakRefs(self);
    if (gen->resume_label >= 0) {
        PyObject_GC_Track(self);
#if PY_VERSION_HEX >= 0x030400a1 && CYTHON_USE_TP_FINALIZE
        if (PyObject_CallFinalizerFromDealloc(self))
#else
        Py_TYPE(gen)->tp_del(self);
        if (self->ob_refcnt > 0)
#endif
        {
            return;
        }
        PyObject_GC_UnTrack(self);
    }
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        /* We have to handle this case for asynchronous generators
           right here, because this code has to be between UNTRACK
           and GC_Del. */
        Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer);
    }
#endif
    __Pyx_Coroutine_clear(self);
    PyObject_GC_Del(gen);
}
static void __Pyx_Coroutine_del(PyObject *self) {
    PyObject *error_type, *error_value, *error_traceback;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PyThreadState_declare
    if (gen->resume_label < 0) {
        return;
    }
#if !CYTHON_USE_TP_FINALIZE
    assert(self->ob_refcnt == 0);
    __Pyx_SET_REFCNT(self, 1);
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&error_type, &error_value, &error_traceback);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self;
        PyObject *finalizer = agen->ag_finalizer;
        if (finalizer && !agen->ag_closed) {
            PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self);
            if (unlikely(!res)) {
                PyErr_WriteUnraisable(self);
            } else {
                Py_DECREF(res);
            }
            __Pyx_ErrRestore(error_type, error_value, error_traceback);
            return;
        }
    }
#endif
    if (unlikely(gen->resume_label == 0 && !error_value)) {
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Generator_USED
    if (!__Pyx_Generator_CheckExact(self))
#endif
        {
        PyObject_GC_UnTrack(self);
#if PY_MAJOR_VERSION >= 3  || defined(PyErr_WarnFormat)
        if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0))
            PyErr_WriteUnraisable(self);
#else
        {PyObject *msg;
        char *cmsg;
        #if CYTHON_COMPILING_IN_PYPY
        msg = NULL;
        cmsg = (char*) "coroutine was never awaited";
        #else
        char *cname;
        PyObject *qualname;
        qualname = gen->gi_qualname;
        cname = PyString_AS_STRING(qualname);
        msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname);
        if (unlikely(!msg)) {
            PyErr_Clear();
            cmsg = (char*) "coroutine was never awaited";
        } else {
            cmsg = PyString_AS_STRING(msg);
        }
        #endif
        if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0))
            PyErr_WriteUnraisable(self);
        Py_XDECREF(msg);}
#endif
        PyObject_GC_Track(self);
        }
#endif
    } else {
        PyObject *res = __Pyx_Coroutine_Close(self);
        if (unlikely(!res)) {
            if (PyErr_Occurred())
                PyErr_WriteUnraisable(self);
        } else {
            Py_DECREF(res);
        }
    }
    __Pyx_ErrRestore(error_type, error_value, error_traceback);
#if !CYTHON_USE_TP_FINALIZE
    assert(self->ob_refcnt > 0);
    if (--self->ob_refcnt == 0) {
        return;
    }
    {
        Py_ssize_t refcnt = self->ob_refcnt;
        _Py_NewReference(self);
        __Pyx_SET_REFCNT(self, refcnt);
    }
#if CYTHON_COMPILING_IN_CPYTHON
    assert(PyType_IS_GC(self->ob_type) &&
           _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);
    _Py_DEC_REFTOTAL;
#endif
#ifdef COUNT_ALLOCS
    --Py_TYPE(self)->tp_frees;
    --Py_TYPE(self)->tp_allocs;
#endif
#endif
}
static PyObject *
__Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context)
{
    PyObject *name = self->gi_name;
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context)
{
    PyObject *tmp;
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    tmp = self->gi_name;
    Py_INCREF(value);
    self->gi_name = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context)
{
    PyObject *name = self->gi_qualname;
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context)
{
    PyObject *tmp;
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    tmp = self->gi_qualname;
    Py_INCREF(value);
    self->gi_qualname = value;
    Py_XDECREF(tmp);
    return 0;
}
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
            PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type);
    if (unlikely(!gen))
        return NULL;
    return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    gen->body = body;
    gen->closure = closure;
    Py_XINCREF(closure);
    gen->is_running = 0;
    gen->resume_label = 0;
    gen->classobj = NULL;
    gen->yieldfrom = NULL;
    gen->gi_exc_state.exc_type = NULL;
    gen->gi_exc_state.exc_value = NULL;
    gen->gi_exc_state.exc_traceback = NULL;
#if CYTHON_USE_EXC_INFO_STACK
    gen->gi_exc_state.previous_item = NULL;
#endif
    gen->gi_weakreflist = NULL;
    Py_XINCREF(qualname);
    gen->gi_qualname = qualname;
    Py_XINCREF(name);
    gen->gi_name = name;
    Py_XINCREF(module_name);
    gen->gi_modulename = module_name;
    Py_XINCREF(code);
    gen->gi_code = code;
    PyObject_GC_Track(gen);
    return gen;
}

/* PatchModuleWithCoroutine */
static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) {
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
    int result;
    PyObject *globals, *result_obj;
    globals = PyDict_New();  if (unlikely(!globals)) goto ignore;
    result = PyDict_SetItemString(globals, "_cython_coroutine_type",
    #ifdef __Pyx_Coroutine_USED
        (PyObject*)__pyx_CoroutineType);
    #else
        Py_None);
    #endif
    if (unlikely(result < 0)) goto ignore;
    result = PyDict_SetItemString(globals, "_cython_generator_type",
    #ifdef __Pyx_Generator_USED
        (PyObject*)__pyx_GeneratorType);
    #else
        Py_None);
    #endif
    if (unlikely(result < 0)) goto ignore;
    if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)) goto ignore;
    if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)) goto ignore;
    result_obj = PyRun_String(py_code, Py_file_input, globals, globals);
    if (unlikely(!result_obj)) goto ignore;
    Py_DECREF(result_obj);
    Py_DECREF(globals);
    return module;
ignore:
    Py_XDECREF(globals);
    PyErr_WriteUnraisable(module);
    if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)) {
        Py_DECREF(module);
        module = NULL;
    }
#else
    py_code++;
#endif
    return module;
}

/* PatchGeneratorABC */
#ifndef CYTHON_REGISTER_ABCS
#define CYTHON_REGISTER_ABCS 1
#endif
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
static PyObject* __Pyx_patch_abc_module(PyObject *module);
static PyObject* __Pyx_patch_abc_module(PyObject *module) {
    module = __Pyx_Coroutine_patch_module(
        module, ""
"if _cython_generator_type is not None:\n"
"    try: Generator = _module.Generator\n"
"    except AttributeError: pass\n"
"    else: Generator.register(_cython_generator_type)\n"
"if _cython_coroutine_type is not None:\n"
"    try: Coroutine = _module.Coroutine\n"
"    except AttributeError: pass\n"
"    else: Coroutine.register(_cython_coroutine_type)\n"
    );
    return module;
}
#endif
static int __Pyx_patch_abc(void) {
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
    static int abc_patched = 0;
    if (CYTHON_REGISTER_ABCS && !abc_patched) {
        PyObject *module;
        module = PyImport_ImportModule((PY_MAJOR_VERSION >= 3) ? "collections.abc" : "collections");
        if (!module) {
            PyErr_WriteUnraisable(NULL);
            if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning,
                    ((PY_MAJOR_VERSION >= 3) ?
                        "Cython module failed to register with collections.abc module" :
                        "Cython module failed to register with collections module"), 1) < 0)) {
                return -1;
            }
        } else {
            module = __Pyx_patch_abc_module(module);
            abc_patched = 1;
            if (unlikely(!module))
                return -1;
            Py_DECREF(module);
        }
        module = PyImport_ImportModule("backports_abc");
        if (module) {
            module = __Pyx_patch_abc_module(module);
            Py_XDECREF(module);
        }
        if (!module) {
            PyErr_Clear();
        }
    }
#else
    if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL);
#endif
    return 0;
}

/* Generator */
static PyMethodDef __pyx_Generator_methods[] = {
    {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O,
     (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")},
    {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS,
     (char*) PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")},
    {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS,
     (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")},
    {0, 0, 0, 0}
};
static PyMemberDef __pyx_Generator_memberlist[] = {
    {(char *) "gi_running", T_BOOL, offsetof(__pyx_CoroutineObject, is_running), READONLY, NULL},
    {(char*) "gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY,
     (char*) PyDoc_STR("object being iterated by 'yield from', or None")},
    {(char*) "gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL},
    {0, 0, 0, 0, 0}
};
static PyGetSetDef __pyx_Generator_getsets[] = {
    {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name,
     (char*) PyDoc_STR("name of the generator"), 0},
    {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
     (char*) PyDoc_STR("qualified name of the generator"), 0},
    {0, 0, 0, 0, 0}
};
static PyTypeObject __pyx_GeneratorType_type = {
    PyVarObject_HEAD_INIT(0, 0)
    "generator",
    sizeof(__pyx_CoroutineObject),
    0,
    (destructor) __Pyx_Coroutine_dealloc,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE,
    0,
    (traverseproc) __Pyx_Coroutine_traverse,
    0,
    0,
    offsetof(__pyx_CoroutineObject, gi_weakreflist),
    0,
    (iternextfunc) __Pyx_Generator_Next,
    __pyx_Generator_methods,
    __pyx_Generator_memberlist,
    __pyx_Generator_getsets,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
#if CYTHON_USE_TP_FINALIZE
    0,
#else
    __Pyx_Coroutine_del,
#endif
    0,
#if CYTHON_USE_TP_FINALIZE
    __Pyx_Coroutine_del,
#elif PY_VERSION_HEX >= 0x030400a1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
    0,
#endif
};
static int __pyx_Generator_init(void) {
    __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
    __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter;
    __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type);
    if (unlikely(!__pyx_GeneratorType)) {
        return -1;
    }
    return 0;
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* InitStrings */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type %.200s).  "
                "The ability to return an instance of a strict subclass of int "
                "is deprecated, and may be removed in a future version of Python.",
                Py_TYPE(result)->tp_name)) {
            Py_DECREF(result);
            return NULL;
        }
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type %.200s)",
                 type_name, type_name, Py_TYPE(result)->tp_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
