anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: ccxt/ccxt
Issue: ImportError: cannot import name 'Literal' from 'typing'

### Operating System

amazon linux 2

### Programming Languages

python

### CCXT Version

Since version 3.0.46

### Description

import ccxt
In the syntax, the following error occurs.

    import ccxt
  File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/__init__.py", line 29, in <module>
    from ccxt.base.exchange import Exchange                     # noqa: F401
  File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/__init__.py", line 24, in <module>
    from ccxt.base import exchange
  File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/exchange.py", line 31, in <module>
    from ccxt.base.types import Balance, IndexType, OrderSide, OrderType
  File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/types.py", line 2, in <module>
    from typing import Union, Literal
ImportError: cannot import name 'Literal' from 'typing' (/usr/lib64/python3.7/typing.py)


In versions prior to 3.0.45 it works fine.
It seems that the ccxt/base/types.py file needs to be modified.
Please check!

### Code

```
import ccxt
```

I think the types.py file can be modified as follows.

import sys
from typing import Union

try:
    from typing import Literal
except ImportError:
    from typing_extensions import Literal
    
if sys.version_info.minor > 7:
    from typing import TypedDict
else:
    TypedDict = dict


OrderSide = Literal['buy', 'sell']
OrderType = Literal['limit', 'market']


class Balance(TypedDict):
    free: Union[None, str, float]
    used: Union[None, str, float]
    total: Union[None, str, float]


IndexType = Union[str, int]




Changed files:
python/ccxt/base/types.py

diff --git a/python/ccxt/base/types.py b/python/ccxt/base/types.py
index 67e4958515..965d39d554 100644
--- a/python/ccxt/base/types.py
+++ b/python/ccxt/base/types.py
@@ -1,10 +1,11 @@
 import sys
-from typing import Union, Literal
+from typing import Union
 
 if sys.version_info.minor > 7:
-    from typing import TypedDict
+    from typing import TypedDict, Literal
 else:
     TypedDict = dict
+    from typing_extensions import Literal
 
 
 OrderSide = Literal['buy', 'sell']
Repository: ccxt/ccxt
Issue: Bybit withdraw 10004 error

### Operating System

Windows 10

### Programming Languages

python

### CCXT Version

3.0.59

### Description

I cannot send a request for withdrawal of funds, API keys are correct, I have recreated them several times, and I am passing the correct parameters!

### Code

Try to 

```
amount_to_withdrawal = 4
symbolWithdraw = "ARB"
network = "Arbitrum One"
address = "0x..."

def bybit_withdraw(address, amount_to_withdrawal):
    exchange = ccxt.bybit({
        'apiKey': API.bybit_apikey,
        'secret': API.bybit_apisecret,
    })

    try:
        exchange.withdraw(
            code=symbolWithdraw,
            amount=amount_to_withdrawal,
            address=address,
            tag=None,
            params={
                "network": network
            }
        )
        print(f'\\n>>>[ByBit] Send {amount_to_withdrawal} {symbolWithdraw} ', flush=True)
        print(f'    {address}', flush=True)
    except Exception as error:
        print(f'\\n>>>[ByBit] Error to withdrawal {amount_to_withdrawal} {symbolWithdraw}: {error} ', flush=True)
        print(f'    {address}', flush=True)
```

Got

`bybit {"retCode":10004,"retMsg":"error sign! origin_string[accountType=FUND\\u0026address="0x_MY_ADDRESS"\\u0026amount=1.54\\u0026api_key="MY_PUBLIC_API_KEY"\\u0026chain=Arbitrum One\\u0026coin=USDT\\u0026forceChain=0\\u0026recv_window=5000\\u0026timestamp=1681399839636]","result":{},"retExtInfo":{},"time":1681399839221}`

Changed files:
python/ccxt/base/exchange.py

diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index 5384f4ba43..4f0fe3c13d 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -1036,7 +1036,7 @@ class Exchange(object):
         for key, value in params.items():
             if isinstance(value, bool):
                 params[key] = 'true' if value else 'false'
-        return _urlencode.urlencode(params, doseq)
+        return _urlencode.urlencode(params, doseq, quote_via=_urlencode.quote)
 
     @staticmethod
     def urlencode_with_array_repeat(params={}):
Repository: explosion/spacy
Issue: Hindi example is broken

```
$ python3 spacy/lang/hi/examples.py
 File "spacy/lang/hi/examples.py", line 15
        "स्वायत्त कार निर्माताओं की ओर बीमा दायित्व रखती है",
      ^
SyntaxError: invalid character in identifier
```

This is because the whitespace contains U+00A0 (NO-BREAK SPACE) which Python does not understand.

Changed files:
spacy/lang/hi/examples.py

diff --git a/spacy/lang/hi/examples.py b/spacy/lang/hi/examples.py
index 651a76e80..938435f1d 100644
--- a/spacy/lang/hi/examples.py
+++ b/spacy/lang/hi/examples.py
@@ -1,4 +1,4 @@
-  # coding: utf8
+# coding: utf8
 from __future__ import unicode_literals
 
 
@@ -11,12 +11,12 @@ Example sentences to test spaCy and its language models.
 
 
 sentences = [
-     "एप्पल 1 अरब डॉलर के लिए यू.के. स्टार्टअप खरीदने पर विचार कर रहा है",
-     "स्वायत्त कार निर्माताओं की ओर बीमा दायित्व रखती है",
-     "सैन फ्रांसिस्को फुटवे डिलीवरी रोबोटों पर प्रतिबंध लगाने का विचार कर रहा है",
-     "लंदन यूनाइटेड किंगडम का बड़ा शहर है।",
-     "आप कहाँ हैं?",
-     "फ्रांस के राष्ट्रपति कौन हैं?",
-     "संयुक्त राज्य की राजधानी क्या है?",
-     "बराक ओबामा का जन्म हुआ था?"
+    "एप्पल 1 अरब डॉलर के लिए यू.के. स्टार्टअप खरीदने पर विचार कर रहा है",
+    "स्वायत्त कार निर्माताओं की ओर बीमा दायित्व रखती है",
+    "सैन फ्रांसिस्को फुटवे डिलीवरी रोबोटों पर प्रतिबंध लगाने का विचार कर रहा है",
+    "लंदन यूनाइटेड किंगडम का बड़ा शहर है।",
+    "आप कहाँ हैं?",
+    "फ्रांस के राष्ट्रपति कौन हैं?",
+    "संयुक्त राज्य की राजधानी क्या है?",
+    "बराक ओबामा का जन्म हुआ था?",
 ]