nebius/SWE-bench-extra huggingface dataset:
Repository: alife-data-standards/alife-std-dev-python

Issue:
Publish on pypi?
Would there be any interest in publishing this software via pypi?

Comments:

Patch:
diff --git a/ALifeStdDev/ALifeStdDev/__init__.py b/ALifeStdDev/ALifeStdDev/__init__.py
new file mode 100644
index 0000000..09a5400
--- /dev/null
+++ b/ALifeStdDev/ALifeStdDev/__init__.py
@@ -0,0 +1,9 @@
+"""Convenience namespace for ALife data standards dev tools."""
+
+from .. import phylogeny
+
+from ..phylogeny import *
+
+__all__ = [
+    "phylogeny",
+]
diff --git a/ALifeStdDev/__init__.py b/ALifeStdDev/__init__.py
index d31c31e..dddea34 100644
--- a/ALifeStdDev/__init__.py
+++ b/ALifeStdDev/__init__.py
@@ -1,1 +1,3 @@
+"""Top level package for ALife data standards dev tools."""
+
 __version__ = "0.2.3"
diff --git a/README.md b/README.md
index e16b28d..c18d2de 100644
--- a/README.md
+++ b/README.md
@@ -16,3 +16,19 @@ ALifeStdDev can be installed using pip:
 ```
 pip install ALifeStdDev
 ```
+
+# Usage Instructions
+
+To load a single submodule,
+
+```python3
+from ALifeStdDev import phylogeny as asd_phylo
+asd_phylo.load_phylogeny_to_pandas_df("myfile.csv")
+```
+
+To load the library as a flat namespace,
+
+```python3
+from ALifeStdDev import ALifeStdDev as asd
+asd.load_phylogeny_to_pandas_df("myfile.csv")
+```
diff --git a/setup.py b/setup.py
index 7588023..275a6e0 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from setuptools import setup
+from setuptools import setup, find_packages
 
 with open('README.md') as readme_file:
     readme = readme_file.read()
@@ -30,7 +30,7 @@ setup(name='ALifeStdDev',
       include_package_data=True,
       keywords='artificial life',
       test_suite='tests',
-      packages=['ALifeStdDev'],
+      packages=find_packages(include=['ALifeStdDev', 'ALifeStdDev.*']),
       install_requires=['networkx', 'pandas'],
       tests_require=['pytest'],
       zip_safe=False,


Test patch:
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/test_flat_namespace.py b/tests/test_flat_namespace.py
new file mode 100644
index 0000000..4818cb0
--- /dev/null
+++ b/tests/test_flat_namespace.py
@@ -0,0 +1,8 @@
+import typing
+
+from ALifeStdDev import ALifeStdDev as asd
+
+
+def test_access():
+    assert hasattr(asd, "load_phylogeny_to_networkx")
+    assert isinstance(asd.load_phylogeny_to_networkx, typing.Callable)
Repository: allo-media/text2num

Issue:
Spanish numbers like ciento veintitrés not correctly converted
The number "ciento veintitrés" in Spanish is converted to 100 instead of 123. It seems "veintitrés" is not recognized.

Comments:

Patch:
diff --git a/text_to_num/lang/spanish.py b/text_to_num/lang/spanish.py
index cecbf8d..679ccde 100644
--- a/text_to_num/lang/spanish.py
+++ b/text_to_num/lang/spanish.py
@@ -61,6 +61,10 @@ STENS: Dict[str, int] = {
     )
 }
 
+STENS["veintitrés"] = 23
+STENS["veintidós"] = 22
+
+
 # Ten multiples
 # Ten multiples may be followed by a unit only;
 MTENS: Dict[str, int] = {


Test patch:
diff --git a/tests/test_text_to_num_es.py b/tests/test_text_to_num_es.py
index 7633952..e6974ae 100644
--- a/tests/test_text_to_num_es.py
+++ b/tests/test_text_to_num_es.py
@@ -38,6 +38,8 @@ class TestTextToNumES(TestCase):
         self.assertEqual(text2num("diecinueve", "es"), 19)
         self.assertEqual(text2num("veinte", "es"), 20)
         self.assertEqual(text2num("veintiuno", "es"), 21)
+        self.assertEqual(text2num("veintitres", "es"), 23)
+        self.assertEqual(text2num("veintitrés", "es"), 23)
         self.assertEqual(text2num("treinta", "es"), 30)
         self.assertEqual(text2num("treinta y uno", "es"), 31)
         self.assertEqual(text2num("treinta y dos", "es"), 32)
Repository: allrod5/parameters-validation

Issue:
Decorated function can not return right value. 
I think I found a bug.

**How to reproduce:**
```python
from parameters_validation import non_null, validate_parameters

@validate_parameters
def concat(front: str, back: non_null(str)):
    result = None
    if front:
        result = front + '-' + back
    print('inner_result = {}'.format(result))
    return result

result_str = concat('one' , 'two')
print('outer_result = {}'.format(result_str)
```
step 1: Run above coce
step 2: 'inner_result' should be same with 'outer_result'.  But they are different
step 3: If you comment out '@validate_parameters' line, the output has no problem.


Comments:

Patch:
diff --git a/parameters_validation/validate_parameters_decorator.py b/parameters_validation/validate_parameters_decorator.py
index 877f496..7aea24b 100644
--- a/parameters_validation/validate_parameters_decorator.py
+++ b/parameters_validation/validate_parameters_decorator.py
@@ -33,6 +33,6 @@ def validate_parameters(func):
                 continue
             annotation(parameters[parameter], parameter)
 
-        func(*args, **kwargs)
+        return func(*args, **kwargs)
 
     return wrapper
diff --git a/setup.py b/setup.py
index 884467f..efdb614 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ extras = {
 
 setup(
     name='parameters-validation',
-    version='1.1.0',
+    version='1.1.1',
     packages=['parameters_validation'],
     url='https://github.com/allrod5/parameters-validation',
     license='MIT',


Test patch:
diff --git a/test/__init__.py b/tests/__init__.py
similarity index 100%
rename from test/__init__.py
rename to tests/__init__.py
diff --git a/tests/bugfixes/__init__.py b/tests/bugfixes/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/bugfixes/test_return_value_is_preserved.py b/tests/bugfixes/test_return_value_is_preserved.py
new file mode 100644
index 0000000..af96bc4
--- /dev/null
+++ b/tests/bugfixes/test_return_value_is_preserved.py
@@ -0,0 +1,27 @@
+"""
+This test covers a fix for a bug first reported in
+https://github.com/allrod5/parameters-validation/issues/2
+
+In version 1.1.0 a function annotated with decorator
+@validate_parameters would return None regardless of it's actual
+return value
+
+This bug was fixed in version 1.1.1
+"""
+from parameters_validation import non_null, validate_parameters
+
+
+def test_return_value_is_preserved():
+    # given
+    @validate_parameters
+    def guinea_pig(front: str, back: non_null(str)):
+        result = None
+        if front:
+            result = front + '-' + back
+        return result
+
+    # when
+    return_value = guinea_pig("one", "two")
+
+    # then
+    assert return_value == "one-two"