<commit_before># URL of the first bug: https://sourceforge.net/p/swig/bugs/1379/
# URL of the second bug: https://sourceforge.net/p/swig/bugs/1370/
--- eossdk_wrap.cpp-t
+++ eossdk_wrap.cpp-t
@@ -1618,6 +1618,7 @@
   if (!SwigPyObject_Check(next)) {
     return NULL;
   }
+  ((SwigPyObject *)next)->next = sobj->next;
   sobj->next = next;
   Py_INCREF(next);
   return SWIG_Py_Void();
@@ -3440,7 +3440,11 @@
     }
       
   public:
-    virtual ~SwigPyIterator() {}
+    virtual ~SwigPyIterator() {
+       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+       _seq = 0;
+       SWIG_PYTHON_THREAD_END_BLOCK;<commit_msg>@2009208 Better fix of SWIG Python multiple inheritance issue.<commit_after># URL of the first bug: https://sourceforge.net/p/swig/bugs/1379/
# URL of the second bug: https://sourceforge.net/p/swig/bugs/1370/
--- eossdk_wrap.cpp-t
+++ eossdk_wrap.cpp-t
@@ -1618,6 +1618,10 @@
   if (!SwigPyObject_Check(next)) {
     return NULL;
   }
+  while (sobj->next && SwigPyObject_Check(sobj->next)) {
+     sobj = (SwigPyObject *)sobj->next;
+  }
+  ((SwigPyObject *)next)->next = sobj->next;
   sobj->next = next;
   Py_INCREF(next);
   return SWIG_Py_Void();
@@ -3440,7 +3440,11 @@
     }
       
   public:
-    virtual ~SwigPyIterator() {}
+    virtual ~SwigPyIterator() {
+       SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+       _seq = 0;
+       SWIG_PYTHON_THREAD_END_BLOCK;
{'fraction_non_alphanumeric': 0.16448326055312956, 'fraction_numerical': 0.049490538573508006, 'mean_word_length': 3.141566265060241, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6734501', 'n_tokens_mistral': 588, 'n_tokens_neox': 548, 'n_words': 93}