anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: cubewise-code/tm1py
Issue: Question mark '?' in element attribute name causes elements.delete_element_attribute() function to fail with "Quote mismatch: <End-of-Input>"

**Describe the bug**
>When a dimension/hierarchy has an element attribute ending with `?` the elements.delete_element_attribute() function fails with the following error:
```
Traceback (most recent call last):
  File "..\\test.py", line 7, in <module>
    tm1source.elements.delete_element_attribute(
  File "..TM1py\\Services\\ElementService.py", line 681, in delete_element_attribute
    raise ex
  File "..TM1py\\Services\\ElementService.py", line 676, in delete_element_attribute
    return self._rest.DELETE(url, **kwargs)
  File "..TM1py\\Services\\RestService.py", line 73, in wrapper
    self.verify_response(response=response)
  File "..TM1py\\Services\\RestService.py", line 517, in verify_response
    raise TM1pyRestException(response.text,
TM1py.Exceptions.Exceptions.TM1pyRestException: Text: '{"error":{"code":"278","message":"Quote mismatch: <End-of-Input>"}}' - Status Code: 400 - Reason: 'Bad Request' - Headers: {'Date': 'Thu, 09 Mar 2023 03:27:12 GMT', 'Server': 'Apache', 'Strict-Transport-Security': 'max-age=31536000; includeSubdomains', 'Content-Length': '84', 'Content-Encoding': 'gzip', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json; charset=utf-8', 'OData-Version': '4.0', 'X-Content-Type-Options': 'nosniff', 'Connection': 'close'}
```

**To Reproduce**

1. Add an element attribute to a dimension with a question mark. For example **`Opening Account?`**
2. Execute code:
```python
tm1source.elements.delete_element_attribute(
                dimension_name='Account',
                hierarchy_name='Account',
                element_attribute='Opening Account?')
```
**Expected behavior**
Attribute deleted, no errors.

**Version**
TM1py latest from master.zip
TM1 Server Version: 11.8.01700.1

**Additional context**
>In addition to the failing delete_element_attribute() function, every function which is calling this function from its code fails as well. **dimensions.update()** as example.


Changed files:
TM1py/Utils/Utils.py

diff --git a/TM1py/Utils/Utils.py b/TM1py/Utils/Utils.py
index 05a8a74..25055de 100644
--- a/TM1py/Utils/Utils.py
+++ b/TM1py/Utils/Utils.py
@@ -166,7 +166,7 @@ def update_server_on_adminhost(adminhost: str = 'localhost', server_as_dict: Dic
 
 
 def build_url_friendly_object_name(object_name: str) -> str:
-    return object_name.replace("'", "''").replace('%', '%25').replace('#', '%23')
+    return object_name.replace("'", "''").replace('%', '%25').replace('#', '%23').replace('?', '%3F')
 
 
 def format_url(url, *args: str, **kwargs: str) -> str:
Repository: cubewise-code/tm1py
Issue: execute_mdx_dataframe encoding error 

**Describe the bug**

When using the new 1.11 version of TM1Py I implemented the new "use_blob" argument for the execute_mdx_dataframe method. 

When running this code retrieving data from TM1 I am getting the following error: 

 'utf-8' codec can't decode byte 0x96 in position 77793: invalid start byte. 

**To Reproduce**

Using TM1Py 1.11 use the "use_blob" argument as seen below:

tm1.cells.execute_mdx_dataframe(mdx = mdxstr, use_blob=True)

**Expected behavior**
Expecting data to be returned in a dataframe with the correct encoding. 

**Version**
TM1py 1.11
TM1 Server Version: PA Cloud


Changed files:
setup.py, TM1py/Services/CellService.py, docs/conf.py, TM1py/__init__.py

diff --git a/TM1py/Services/CellService.py b/TM1py/Services/CellService.py
index 4f0c615..dddb759 100644
--- a/TM1py/Services/CellService.py
+++ b/TM1py/Services/CellService.py
@@ -1174,7 +1174,6 @@ class CellService(ObjectService):
             process.add_variable(name=variable, variable_type='String')
 
         prolog_procedure = f"""
-        SetOutputCharacterSet('{file_name}.blb','TM1CS_UTF8');
         {self.generate_enable_sandbox_ti(sandbox_name)}
         ViewExtractSkipCalcsSet('{cube}', '{view_name}', {'1' if skip_consolidated_cells else '0'});
         ViewExtractSkipRuleValuesSet('{cube}', '{view_name}', {'1' if skip_rule_derived_cells else '0'});
@@ -1187,7 +1186,10 @@ class CellService(ObjectService):
 
         # ignore some variable in file and output variables ordered by their ordinal e.g. v2,v4,v5,v11
         comma_sep_variables = ",".join(sorted(set(variables) - set(skip_variables), key=lambda v: int(v[1:])))
-        data_procedure_pre = """
+        data_procedure_pre = f"""
+        IF (nRecord = 0);
+          SetOutputCharacterSet('{file_name}.blb','TM1CS_UTF8');
+        ENDIF;
         nRecord = nRecord + 1;
         """
         if header_line:
diff --git a/TM1py/__init__.py b/TM1py/__init__.py
index d55adba..51d2f34 100644
--- a/TM1py/__init__.py
+++ b/TM1py/__init__.py
@@ -62,4 +62,4 @@ from TM1py.Services.TM1Service import TM1Service
 from TM1py.Services.ViewService import ViewService
 from TM1py.Utils import Utils
 
-__version__ = "1.11"
+__version__ = "1.11.1"
diff --git a/docs/conf.py b/docs/conf.py
index 1f7a2c4..085b3a2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -59,9 +59,9 @@ author = 'Marius Wirtz'
 # built documents.
 #
 # The short X.Y version.
-version = '1.11'
+version = '1.11.1'
 # The full version, including alpha/beta/rc tags.
-release = '1.11'
+release = '1.11.1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/setup.py b/setup.py
index 35cdb5c..1c815a1 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup
 
-SCHEDULE_VERSION = '1.11'
+SCHEDULE_VERSION = '1.11.1'
 SCHEDULE_DOWNLOAD_URL = (
         'https://github.com/Cubewise-code/TM1py/tarball/' + SCHEDULE_VERSION
 )
Repository: cubewise-code/tm1py
Issue: Writing dataframe error

**Describe the bug**
Revtrieving values from TM1 and writing back ignores decimal. Values in cube are now much higher. Dataframe values are with correct decimal. 

Probably something to do with the language setup. Local machine ENG, Server GER. 

**To Reproduce**
```Python

cubeName = "plan_BudgetPlan"

from mdxpy import *
mdx = MdxBuilder.from_cube(cubeName) \\
.add_hierarchy_set_to_axis(1, MdxHierarchySet.all_leaves("plan_version")) \\
.add_hierarchy_set_to_axis(1, MdxHierarchySet.all_leaves("plan_business_unit")) \\
.add_hierarchy_set_to_axis(1, MdxHierarchySet.all_leaves("plan_department")) \\
.add_hierarchy_set_to_axis(1, MdxHierarchySet.all_leaves("plan_chart_of_accounts")) \\
.add_hierarchy_set_to_axis(1, MdxHierarchySet.member(Member.of("plan_exchange_rates",'local'))) \\
.add_hierarchy_set_to_axis(1, MdxHierarchySet.member(Member.of("plan_source",'input'))) \\
.add_hierarchy_set_to_axis(0, MdxHierarchySet.all_leaves("plan_time")) \\
.to_mdx()

with TM1Service(address=servername, port=instanceport, ssl=True, integrated_login=True, integrated_login_host=spn) as tm1:
      df = tm1.cubes.cells.execute_mdx_dataframe(mdx)

print(df.head(10))

with TM1Service(address=servername, port=instanceport, ssl=True, integrated_login=True, integrated_login_host=spn) as tm1:
  tm1.cells.write_dataframe(cubeName, df)
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Version**
TM1py Current GitHub Master
TM1 Server Version: 2.0.9.3


Changed files:
TM1py/Services/CellService.py

diff --git a/TM1py/Services/CellService.py b/TM1py/Services/CellService.py
index 2ce425f..9ad3cf4 100644
--- a/TM1py/Services/CellService.py
+++ b/TM1py/Services/CellService.py
@@ -526,7 +526,7 @@ class CellService(ObjectService):
                     dim, dim, elem)
                 for dim, elem
                 in zip(dimensions, element_tuple)]
-            body_as_dict["Value"] = str(value) if value else ""
+            body_as_dict["Value"] = value if value else ""
             updates.append(json.dumps(body_as_dict, ensure_ascii=False))
         updates = '[' + ','.join(updates) + ']'
         return self._rest.POST(url=url, data=updates, **kwargs)
Repository: osuakatsuki/bancho.py
Issue: bug: Scores aren't submitted for players with space at the end of the nickname.

### Describe the bug

The score will not submit if the player has space at the end of the nickname, probably issue may cause in other similar cases, but didn't test yet.

### To Reproduce

1. -

### Expected behavior

Submit score.

### bancho.py Version

4.7.2

### Python Version

3.9.X (Default)

### Relevant log output

_No response_

### Additional context

_No response_

Changed files:
app/api/domains/osu.py

diff --git a/app/api/domains/osu.py b/app/api/domains/osu.py
index eb1e35b..2a13667 100644
--- a/app/api/domains/osu.py
+++ b/app/api/domains/osu.py
@@ -689,7 +689,12 @@ async def osuSubmitModularSelector(
         # Map does not exist, most likely unsubmitted.
         return b"error: beatmap"
 
-    username = score_data[1].rstrip()  # rstrip 1 space if client has supporter
+    # if the client has supporter, a space is appended
+    # but usernames may also end with a space, which must be preserved
+    username = score_data[1]
+    if username[-1] == " ":
+        username = username[:-1]
+
     player = await app.state.sessions.players.from_login(username, pw_md5)
     if not player:
         # Player is not online, return nothing so that their