anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: unit8co/darts
Issue: [BUG] Extra convolutions in TCN

**Describe the bug**
There are extra 1x1 convolutions in the first and the last residual blocks in a case of the fixed number of channels, say input_dim=4, num_filters=4, output_dim=4. There are no need to add such convolutions because the residual summation can be directly performed to the output of the second convolution.

**To Reproduce**
```python
from numpy.random import randn
from darts.models import TCNModel
train_sample = (randn(10, 4), None, randn(10, 4))
model = TCNModel(input_chunk_length=10, output_chunk_length=9, num_layers=2, num_filters=4)
model._create_model(train_sample)
```
<img src='https://user-images.githubusercontent.com/12996098/132572236-13ca3d6b-72f2-4de1-a7af-b07d0284c0b9.png' width=500>


**Expected behavior**
There are no extra convolutions

**System**
 - darts version 0.11.0

Changed files:
darts/models/tcn_model.py

diff --git a/darts/models/tcn_model.py b/darts/models/tcn_model.py
index 9dcacaa0..a8c3c5f7 100644
--- a/darts/models/tcn_model.py
+++ b/darts/models/tcn_model.py
@@ -84,7 +84,7 @@ class _ResidualBlock(nn.Module):
         if weight_norm:
             self.conv1, self.conv2 = nn.utils.weight_norm(self.conv1), nn.utils.weight_norm(self.conv2)
 
-        if nr_blocks_below == 0 or nr_blocks_below == num_layers - 1:
+        if input_dim != output_dim:
             self.conv3 = nn.Conv1d(input_dim, output_dim, 1)
 
     def forward(self, x):
@@ -103,7 +103,7 @@ class _ResidualBlock(nn.Module):
         x = self.dropout_fn(x)
 
         # add residual
-        if self.nr_blocks_below in {0, self.num_layers - 1}:
+        if self.conv1.in_channels != self.conv2.out_channels:
             residual = self.conv3(residual)
         x += residual
Repository: unit8co/darts
Issue: [BUG] spelling mistake in time_series.py

**Describe the bug**
fill_missing_date->fill_missing_dates

as people are cut and paste from the error, this is a bit annoying

**To Reproduce**
Steps to reproduce the behavior, preferably code snippet.

**Expected behavior**
A clear and concise description of what you expected to happen.

**System (please complete the following information):**
 - Python version: [e.g. 3.7]
 - darts version [e.g. 0.5.0]

**Additional context**
Add any other context about the problem here.


Changed files:
darts/timeseries.py

diff --git a/darts/timeseries.py b/darts/timeseries.py
index 69e7d348..3fc6249e 100644
--- a/darts/timeseries.py
+++ b/darts/timeseries.py
@@ -85,7 +85,7 @@ class TimeSeries:
                      'The time index of the provided DataArray is missing the freq attribute, and the frequency could '
                      'not be directly inferred. '
                      'This probably comes from inconsistent date frequencies with missing dates. '
-                     'If you know the actual frequency, try setting `fill_missing_date=True, freq=actual_frequency`. '
+                     'If you know the actual frequency, try setting `fill_missing_dates=True, freq=actual_frequency`. '
                      'If not, try setting `fill_missing_dates=True, freq=None` to see if a frequency can be inferred.',
                      logger)
Repository: hummingbot/hummingbot
Issue: Failed to refresh the listen key - Binance Perpetuals

After running Hummingbot trading on Binance perpetuals for 1 hour (almost exactly 1 hour), I get the following error:
"Failed to refresh the listen key {my key here} {'code': -2014, 'msg': 'API-key format invalid.'}"

This bug can be reproduced by just running any script for 1 hour on binance perpetuals.

I am using version 1.7.0 of Hummingbot

Discord: klakteuh#2368


Changed files:
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py

diff --git a/hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py b/hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py
index 12b6f37a2..4a2acd5d6 100644
--- a/hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py
+++ b/hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py
@@ -98,6 +98,7 @@ class BinancePerpetualUserStreamDataSource(UserStreamTrackerDataSource):
                 domain=self._domain,
                 params={"listenKey": self._current_listen_key},
                 method=RESTMethod.PUT,
+                is_auth_required=True,
                 return_err=True)
 
             if "code" in data:
Repository: hummingbot/hummingbot
Issue: Binance rate oracle - default rate oracle for USDT using binanceUS

### Describe the bug

BInance rate oracle, incorrect rate for token USDT

![image](https://github.com/hummingbot/hummingbot/assets/83953535/f049cdcb-4d66-45bb-acf5-a712aabf0abe)
https://www.binance.us/spot-trade/usdt_usd
![image](https://github.com/hummingbot/hummingbot/assets/83953535/d7fba551-9213-439d-ba32-a16630bf4ef9)

binance.com:
![image](https://github.com/hummingbot/hummingbot/assets/83953535/c2d2c131-302a-4251-ba3a-1fd3689cc60e)



### Steps to reproduce

1. Clone latest development branch
2. connect binance
3. check balance
4. check rate --token USDT


### Release version

dev-1.18.0

### Type of installation

Source

### Attach required files

P.s. As option could be solved with changing global_token.global_token_name to USDT

![image](https://github.com/hummingbot/hummingbot/assets/83953535/6ced0059-7245-4ad3-a391-3a8aae0d9a9f)


Changed files:
hummingbot/client/config/client_config_map.py, test/hummingbot/client/command/test_config_command.py

diff --git a/hummingbot/client/config/client_config_map.py b/hummingbot/client/config/client_config_map.py
index 2f5d0e25e..2fe35eb8a 100644
--- a/hummingbot/client/config/client_config_map.py
+++ b/hummingbot/client/config/client_config_map.py
@@ -600,7 +600,7 @@ class GatewayConfigMap(BaseClientModel):
 
 class GlobalTokenConfigMap(BaseClientModel):
     global_token_name: str = Field(
-        default="USD",
+        default="USDT",
         client_data=ClientFieldData(
             prompt=lambda
                 cm: "What is your default display token? (e.g. USD,EUR,BTC)",
diff --git a/test/hummingbot/client/command/test_config_command.py b/test/hummingbot/client/command/test_config_command.py
index 712ff5c5d..c56414bc7 100644
--- a/test/hummingbot/client/command/test_config_command.py
+++ b/test/hummingbot/client/command/test_config_command.py
@@ -87,7 +87,7 @@ class ConfigCommandTest(unittest.TestCase):
                            "    | ∟ gateway_api_port                | 15888                |\\n"
                            "    | rate_oracle_source                | binance              |\\n"
                            "    | global_token                      |                      |\\n"
-                           "    | ∟ global_token_name               | USD                  |\\n"
+                           "    | ∟ global_token_name               | USDT                 |\\n"
                            "    | ∟ global_token_symbol             | $                    |\\n"
                            "    | rate_limits_share_pct             | 100                  |\\n"
                            "    | commands_timeout                  |                      |\\n"