anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: neuralmagic/sparseml
Issue: global_sparsity not serialized

**Describe the bug**
`global_sparsity` property of pruning modifiers is not serialized.

**To Reproduce**
```
    yaml_modifier = AnyPruningModifier.load_obj(yaml_str)   
    serialized_modifier = AnyPruningModifier.load_obj(
        str(yaml_modifier)
    ) 
```

`str(yaml_modifier)` doesn't contain `global_sparsity` property, so `serialized_modifier` will be initialized with the default value, instead of the expected one from `yaml_modifier` class.

**Errors**
Loading pruning modifiers from serialized representations (for example `str(yaml_modifier)`) produces a modifier with default value of `global_sparsity` instead to replicate the serialized object.


Changed files:
src/sparseml/pytorch/sparsification/pruning/modifier_pruning_base.py

diff --git a/src/sparseml/pytorch/sparsification/pruning/modifier_pruning_base.py b/src/sparseml/pytorch/sparsification/pruning/modifier_pruning_base.py
index 66f199e5f0..6870f6104c 100644
--- a/src/sparseml/pytorch/sparsification/pruning/modifier_pruning_base.py
+++ b/src/sparseml/pytorch/sparsification/pruning/modifier_pruning_base.py
@@ -222,6 +222,13 @@ class BasePruningModifier(ABC, ScheduledUpdateModifier):
         """
         return self._leave_enabled
 
+    @ModifierProp()
+    def global_sparsity(self) -> bool:
+        """
+        :return: value of global_sparsity that is passed to mask_creator methods
+        """
+        return self._global_sparsity
+
     @property
     def module_masks(self) -> Optional[ModuleParamPruningMask]:
         """
@@ -252,13 +259,6 @@ class BasePruningModifier(ABC, ScheduledUpdateModifier):
         """
         return self._scorer
 
-    @property
-    def global_sparsity(self) -> bool:
-        """
-        :return: value of global_sparsity that is passed to mask_creator methods
-        """
-        return self._global_sparsity
-
     @property
     def allow_reintroduction(self) -> bool:
         """
Repository: pybuilder/pybuilder
Issue: Release 0.11.0 claims to support 3.2

Related to #161 

> Programming Language :: Python :: 3.2

Needs to be removed.


Changed files:
build.py

diff --git a/build.py b/build.py
index a58cdb2..76a560c 100755
--- a/build.py
+++ b/build.py
@@ -68,7 +68,9 @@ authors = [Author("Alexander Metzner", "alexander.metzner@gmail.com"),
            Author("Maximilien Riehl", "max@riehl.io"),
            Author("Michael Gruber", "aelgru@gmail.com"),
            Author("Udo Juettner", "udo.juettner@gmail.com"),
-           Author("Marcel Wolf", "marcel.wolf@me.com")]
+           Author("Marcel Wolf", "marcel.wolf@me.com"),
+           Author("Arcadiy Ivanov", "arcadiy@ivanov.biz"),
+           ]
 url = "http://pybuilder.github.io"
 license = "Apache License"
 version = "0.11.0"
@@ -128,7 +130,6 @@ def initialize(project):
                          'Programming Language :: Python :: 2.6',
                          'Programming Language :: Python :: 2.7',
                          'Programming Language :: Python :: 3',
-                         'Programming Language :: Python :: 3.2',
                          'Programming Language :: Python :: 3.3',
                          'Programming Language :: Python :: 3.4',
                          'Development Status :: 4 - Beta',
Repository: pybuilder/pybuilder
Issue: Pathing issues on pypi upload on Windows

BUILD FAILED - [Errno 22] invalid mode ('w') or filename: 'c:\\Users\\jcorson\\pythonWorkspace\\projectNameHere\\target/reports\\distutils\\sdist__upload__-r__http:123.123.120.117:8080'

I am on windows working in the Git Bash. pybuilder version 0.11.8. I saw another closed issue about pathing and you made him upgrade but this is very recent

This issue didn't exist when it was the public PyPI server but I changed it to a local pypi that I need to store my project in. As a result, it seems to append the -r and the URL I provided

project.set_property("distutils_upload_repository", 'http://123.123.120.117:8080')


Changed files:
src/main/python/pybuilder/plugins/python/distutils_plugin.py

diff --git a/src/main/python/pybuilder/plugins/python/distutils_plugin.py b/src/main/python/pybuilder/plugins/python/distutils_plugin.py
index 8ca8e61..32b8b1d 100644
--- a/src/main/python/pybuilder/plugins/python/distutils_plugin.py
+++ b/src/main/python/pybuilder/plugins/python/distutils_plugin.py
@@ -35,7 +35,7 @@ from pybuilder.core import (after,
                             RequirementsFile,
                             Dependency)
 from pybuilder.errors import BuildFailedException
-from pybuilder.utils import as_list, is_string, is_notstr_iterable, get_dist_version_string
+from pybuilder.utils import as_list, is_string, is_notstr_iterable, get_dist_version_string, safe_log_file_name
 from pybuilder.pip_utils import build_dependency_version_string
 from textwrap import dedent
 from pybuilder.pip_utils import pip_install
@@ -257,9 +257,9 @@ def execute_distutils(project, logger, distutils_commands, clean=False):
     for command in distutils_commands:
         logger.debug("Executing distutils command %s", command)
         if is_string(command):
-            output_file_path = os.path.join(reports_dir, command.replace("/", ""))
+            output_file_path = os.path.join(reports_dir, safe_log_file_name(command))
         else:
-            output_file_path = os.path.join(reports_dir, "__".join(command).replace("/", ""))
+            output_file_path = os.path.join(reports_dir, safe_log_file_name("__".join(command)))
         with open(output_file_path, "w") as output_file:
             commands = [sys.executable, setup_script]
             if project.get_property("verbose"):