instance_id stringlengths 17 36 | text stringlengths 14k 547k | repo stringclasses 4
values | base_commit stringlengths 40 40 | problem_statement stringclasses 10
values | hints_text stringclasses 8
values | created_at stringlengths 20 20 | patch stringclasses 10
values | test_patch stringclasses 10
values | version stringclasses 2
values | FAIL_TO_PASS stringclasses 1
value | PASS_TO_PASS stringclasses 1
value | environment_setup_commit stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
mixpanel__mixpanel-python-64 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
flush function for Buffered Consumer not working
Hi,
in class BufferedConsumer the flush function in line 338 should change to
def flush (self,api_key=None)
and then in line 444-445 should change to:
... | mixpanel/mixpanel-python | 40c98e0b285898384cc4aa6cc803d8d0f46f6218 | flush function for Buffered Consumer not working
Hi,
in class BufferedConsumer the flush function in line 338 should change to
def flush (self,api_key=None)
and then in line 444-445 should change to:
for endpoint in self._buffers.keys():
self._flush_endpoint(endpoint,api_key=api_key)
| +1
I have the same issue. The exception is: "Mixpanel error: token, missing or empty" because of this bug.
+1 I also just ran into this. Is it worth submitting a PR for this? I see 3 unmerged PRs that are a few years old. | 2016-12-22T00:07:05Z | <patch>
diff --git a/mixpanel/__init__.py b/mixpanel/__init__.py
--- a/mixpanel/__init__.py
+++ b/mixpanel/__init__.py
@@ -345,6 +345,7 @@ def send(self, endpoint, json_message, api_key=None):
:param endpoint: the Mixpanel API endpoint appropriate for the message
:type endpoint: "events" | "people" | ... | diff --git a/test_mixpanel.py b/test_mixpanel.py
--- a/test_mixpanel.py
+++ b/test_mixpanel.py
@@ -353,40 +353,32 @@ class TestBufferedConsumer:
def setup_class(cls):
cls.MAX_LENGTH = 10
cls.consumer = mixpanel.BufferedConsumer(cls.MAX_LENGTH)
- cls.mock = Mock()
- cls.mock.read.ret... | 4.3 | |||
NVIDIA__NeMo-7124 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Installation instructions should better indicate mandatory steps to make tests pass (or reinstall.sh needs an update)
**Is your feature request related to a problem? Please describe.**
I wanted to setup a de... | NVIDIA/NeMo | fcfc0ebb23b428a9bee6d847d1e0b37ca0784ba5 | Installation instructions should better indicate mandatory steps to make tests pass (or reinstall.sh needs an update)
**Is your feature request related to a problem? Please describe.**
I wanted to setup a dev conda environment for NeMo, so I followed steps at https://github.com/NVIDIA/NeMo/tree/main#from-source
A... | These libraries cannot be installed automatically due to this dependence on on extra index for distribution.
But these tests and the dali support itself should be import guarded. Do you have a stack trace of which tests failed ?
Sure, here's the stack trace:
```shell
> pytest --cpu
A valid `test_data.tar.gz` t... | 2023-07-28T19:34:30Z | <patch>
diff --git a/nemo/utils/model_utils.py b/nemo/utils/model_utils.py
--- a/nemo/utils/model_utils.py
+++ b/nemo/utils/model_utils.py
@@ -576,7 +576,7 @@ def check_lib_version(lib_name: str, checked_version: str, operator) -> Tuple[Op
f"Could not check version compatibility."
)
... | diff --git a/tests/collections/nlp/test_flash_attention.py b/tests/collections/nlp/test_flash_attention.py
--- a/tests/collections/nlp/test_flash_attention.py
+++ b/tests/collections/nlp/test_flash_attention.py
@@ -44,16 +44,23 @@
except (ImportError, ModuleNotFoundError):
HAVE_TRITON = False
-import pynvml
+tr... | 1.0 | |||
slackapi__python-slack-events-api-34 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Add support for request signing
### Description
Request signing went live and we should add support into our SDKs. https://api.slack.com/docs/verifying-requests-from-slack
### What type of issue is this? ... | slackapi/python-slack-events-api | 79949e66cc442b241eaed08ffe79d8dc7a166638 | Add support for request signing
### Description
Request signing went live and we should add support into our SDKs. https://api.slack.com/docs/verifying-requests-from-slack
### What type of issue is this? (place an `x` in one of the `[ ]`)
- [ ] bug
- [x] enhancement (feature request)
- [ ] question
- [ ] docu... | someone has a branch somewhere with this implemented, i hear 👂
we'll get some more details into here asap. | 2018-08-08T18:22:04Z | <patch>
diff --git a/example/example.py b/example/example.py
--- a/example/example.py
+++ b/example/example.py
@@ -3,12 +3,12 @@
import os
# Our app's Slack Event Adapter for receiving actions via the Events API
-SLACK_VERIFICATION_TOKEN = os.environ["SLACK_VERIFICATION_TOKEN"]
-slack_events_adapter = SlackEventAda... | diff --git a/tests/conftest.py b/tests/conftest.py
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,8 +1,19 @@
-import pytest
import json
+import hashlib
+import hmac
+import pytest
from slackeventsapi import SlackEventAdapter
+def create_signature(secret, timestamp, data):
+ req = str.encode('v0:' + str(... | 1.0 | |||
celery__celery-2666 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Celerybeat runs periodic tasks every 5 seconds regardless of interval
I recently upgraded to celery 3 and have been experiencing some strange behavior with celerybeat, which was acting normally before the upgra... | celery/celery | 6bf4664e076c4d8b6d728190802124aa5c112c5d | Celerybeat runs periodic tasks every 5 seconds regardless of interval
I recently upgraded to celery 3 and have been experiencing some strange behavior with celerybeat, which was acting normally before the upgrade.
My environment:
python 2.7.3
django 1.4.1
virtualenv
django-celery 3.0.6
celery 3.0.6
Regardless of w... | Could you try upgrading to celery 3.0.7? Also please delete an existing `celerybeat-schedule` file if any.
Thanks - Will try that and update later today.
On Tue, Aug 28, 2012 at 12:02 PM, Ask Solem Hoel
notifications@github.comwrote:
> Could you try upgrading to celery 3.0.7? Also please delete an existing
> celery... | 2015-06-19T00:01:16Z | <patch>
diff --git a/celery/schedules.py b/celery/schedules.py
--- a/celery/schedules.py
+++ b/celery/schedules.py
@@ -134,9 +134,7 @@ def is_due(self, last_run_at):
return schedstate(is_due=False, next=remaining_s)
def maybe_make_aware(self, dt):
- if self.utc_enabled:
- return maybe_... | diff --git a/celery/tests/app/test_beat.py b/celery/tests/app/test_beat.py
--- a/celery/tests/app/test_beat.py
+++ b/celery/tests/app/test_beat.py
@@ -521,7 +521,7 @@ def test_maybe_make_aware(self):
self.assertTrue(d.tzinfo)
x.utc_enabled = False
d2 = x.maybe_make_aware(datetime.utcnow())
- ... | 1.0 | |||
NVIDIA__NeMo-5724 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
EMA Doesn't delete previous EMA ckpts when k > 0 for checkpointing
**Describe the bug**
EMA saves a separate EMA based ckpt when normally saving. The problem is when saving a set amount of checkpoints (i.e k... | NVIDIA/NeMo | eee715f831f2b088075f75cc7c95de60f4ef1d38 | EMA Doesn't delete previous EMA ckpts when k > 0 for checkpointing
**Describe the bug**
EMA saves a separate EMA based ckpt when normally saving. The problem is when saving a set amount of checkpoints (i.e k=5) the older EMA ckpts are not being deleted. This means there is an excess of EMA based ckpts.
What is ex... | cc @carmocca
Ideally, we would find a better solution. However, since that would require a larger refactor - to `ModelCheckpoint` and/or NeMo - and the `NemoModelCheckpoint` callback already relies heavily on overriding protected methods, I'm fine with adding one more.
That's sounds like a good interim measure.
PR crea... | 2023-01-03T11:05:25Z | <patch>
diff --git a/nemo/collections/common/callbacks/ema.py b/nemo/collections/common/callbacks/ema.py
--- a/nemo/collections/common/callbacks/ema.py
+++ b/nemo/collections/common/callbacks/ema.py
@@ -13,13 +13,13 @@
# limitations under the License.
import contextlib
import copy
-import logging
import os
import ... | diff --git a/tests/collections/common/test_ema.py b/tests/collections/common/test_ema.py
--- a/tests/collections/common/test_ema.py
+++ b/tests/collections/common/test_ema.py
@@ -27,7 +27,10 @@
from nemo.collections.common.callbacks.ema import EMAOptimizer
from nemo.core import ModelPT
from nemo.utils.exp_manager im... | 1.0 | |||
NVIDIA__NeMo-6097 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Spectrogram Enhancer doesn't generalize to spectrogram lengths unseen during training
**Describe the bug**
If one trains TTS spectrogram enhancer (#5565) on short spectrograms, at inference time it doesn't g... | NVIDIA/NeMo | 66aeb4c36dd86a777cc47e9878e701bd8029b654 | Spectrogram Enhancer doesn't generalize to spectrogram lengths unseen during training
**Describe the bug**
If one trains TTS spectrogram enhancer (#5565) on short spectrograms, at inference time it doesn't generalize to longer ones. A patch in the beginning gets enhanced but further frames do not.
Example (before... | A temporary fix: given a trained model, clone first patch of the initial tensor length-wise:
```
max_init_length = enhancer.generator.initial_block.shape[-1]
m = 6
for i in range(1, max_init_length // m):
enhancer.generator.initial_block.data[:,:,:,i*m:(i+1)*m] = enhancer.generator.initial_block.data[:,:,:,0:m... | 2023-02-23T22:43:15Z | <patch>
diff --git a/nemo/collections/tts/modules/spectrogram_enhancer.py b/nemo/collections/tts/modules/spectrogram_enhancer.py
--- a/nemo/collections/tts/modules/spectrogram_enhancer.py
+++ b/nemo/collections/tts/modules/spectrogram_enhancer.py
@@ -230,14 +230,7 @@ def forward(self, x):
class Generator(torch.nn.Mo... | diff --git a/tests/collections/tts/test_spectrogram_enhancer.py b/tests/collections/tts/test_spectrogram_enhancer.py
--- a/tests/collections/tts/test_spectrogram_enhancer.py
+++ b/tests/collections/tts/test_spectrogram_enhancer.py
@@ -37,7 +37,6 @@ def enhancer_config():
"network_capacity": network_capacit... | 1.0 | |||
NVIDIA__NeMo-3159 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Punctuation data set uses too much memory
**Describe the bug**
Punctuation datasets cannot be constructed with more than a few million examples (depending on the max length). Even these small datasets can co... | NVIDIA/NeMo | c607061264713c9f4c35d1fbc5afaaf41471317e | Punctuation data set uses too much memory
**Describe the bug**
Punctuation datasets cannot be constructed with more than a few million examples (depending on the max length). Even these small datasets can consume a huge amount of memory while preprocessing (100's of GB) and while training (10's of GB per process).
... | 2021-11-10T13:43:43Z | <patch>
diff --git a/examples/nlp/token_classification/data/create_punctuation_capitalization_tarred_dataset.py b/examples/nlp/token_classification/data/create_punctuation_capitalization_tarred_dataset.py
new file mode 100644
--- /dev/null
+++ b/examples/nlp/token_classification/data/create_punctuation_capitalization_t... | diff --git a/tests/collections/nlp/test_pretrained_models_performance.py b/tests/collections/nlp/test_pretrained_models_performance.py
--- a/tests/collections/nlp/test_pretrained_models_performance.py
+++ b/tests/collections/nlp/test_pretrained_models_performance.py
@@ -48,6 +48,29 @@ def get_metrics(data_dir, model):
... | 1.0 | ||||
NVIDIA__NeMo-6060 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Spectrogram Enhancer doesn't generalize to spectrogram lengths unseen during training
**Describe the bug**
If one trains TTS spectrogram enhancer (#5565) on short spectrograms, at inference time it doesn't g... | NVIDIA/NeMo | 64b74dc9eaa6a23e52b697c9f9b7ad87528a2373 | Spectrogram Enhancer doesn't generalize to spectrogram lengths unseen during training
**Describe the bug**
If one trains TTS spectrogram enhancer (#5565) on short spectrograms, at inference time it doesn't generalize to longer ones. A patch in the beginning gets enhanced but further frames do not.
Example (before... | A temporary fix: given a trained model, clone first patch of the initial tensor length-wise:
```
max_init_length = enhancer.generator.initial_block.shape[-1]
m = 6
for i in range(1, max_init_length // m):
enhancer.generator.initial_block.data[:,:,:,i*m:(i+1)*m] = enhancer.generator.initial_block.data[:,:,:,0:m... | 2023-02-20T16:02:45Z | <patch>
diff --git a/nemo/collections/tts/modules/spectrogram_enhancer.py b/nemo/collections/tts/modules/spectrogram_enhancer.py
--- a/nemo/collections/tts/modules/spectrogram_enhancer.py
+++ b/nemo/collections/tts/modules/spectrogram_enhancer.py
@@ -230,14 +230,7 @@ def forward(self, x):
class Generator(torch.nn.Mo... | diff --git a/tests/collections/tts/test_spectrogram_enhancer.py b/tests/collections/tts/test_spectrogram_enhancer.py
--- a/tests/collections/tts/test_spectrogram_enhancer.py
+++ b/tests/collections/tts/test_spectrogram_enhancer.py
@@ -37,7 +37,6 @@ def enhancer_config():
"network_capacity": network_capacit... | 1.0 | |||
celery__celery-567 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Introduce CELERYCTL variable in /etc/init.d/celeryd and /etc/default/celeryd
I ran into a problem with '/etc/init.d/celeryd status' not finding celeryctl when using django-celery in a virtualenv. These changes... | celery/celery | 9998b55af267446a077b31fdf35806c59b943b2d | Introduce CELERYCTL variable in /etc/init.d/celeryd and /etc/default/celeryd
I ran into a problem with '/etc/init.d/celeryd status' not finding celeryctl when using django-celery in a virtualenv. These changes replace the 'celeryctl' reference with a $CELERYCTL variable so /etc/default/celeryd can be updated with the ... | 2011-12-12T12:49:09Z | <patch>
diff --git a/celery/__init__.py b/celery/__init__.py
--- a/celery/__init__.py
+++ b/celery/__init__.py
@@ -5,32 +5,31 @@
from __future__ import absolute_import
-import os
-import sys
-
-VERSION = (2, 4, 5)
-
+VERSION = (2, 5, 0, "b1")
__version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:])
... | diff --git a/celery/tests/config.py b/celery/tests/config.py
--- a/celery/tests/config.py
+++ b/celery/tests/config.py
@@ -28,3 +28,17 @@
CELERY_REDIS_PORT = int(os.environ.get("REDIS_PORT") or 6379)
CELERY_REDIS_DB = os.environ.get("REDIS_DB") or 0
CELERY_REDIS_PASSWORD = os.environ.get("REDIS_PASSWORD")
+
+# Mongo... | 1.0 | ||||
NVIDIA__NeMo-1323 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Loading NLP and ASR models might result in `Missing key(s) in state_dict` error
**Describe the bug**
After #1278 is merged, any model that uses Metrics (WERBPE, WER, TopKClassificationAccuracy, Classificatio... | NVIDIA/NeMo | 5cf042856bf718d27233a7538e0b094ce576d5c4 | Loading NLP and ASR models might result in `Missing key(s) in state_dict` error
**Describe the bug**
After #1278 is merged, any model that uses Metrics (WERBPE, WER, TopKClassificationAccuracy, ClassificationReport, Perplexity) might throw an error like:
```
RuntimeError: Error(s) in loading state_dict for Punctua... | 2020-10-21T20:01:26Z | <patch>
diff --git a/examples/asr/speech_to_text_infer.py b/examples/asr/speech_to_text_infer.py
--- a/examples/asr/speech_to_text_infer.py
+++ b/examples/asr/speech_to_text_infer.py
@@ -56,12 +56,10 @@ def main():
if args.asr_model.endswith('.nemo'):
logging.info(f"Using local ASR model from {args.asr_... | diff --git a/examples/tts/test_tts_infer.py b/examples/tts/test_tts_infer.py
--- a/examples/tts/test_tts_infer.py
+++ b/examples/tts/test_tts_infer.py
@@ -75,8 +75,7 @@ def main():
logging.set_verbosity(logging.DEBUG)
logging.info(f"Using NGC cloud ASR model {args.asr_model}")
- # TODO: Remove strict... | 1.0 | ||||
slackapi__python-slack-events-api-76 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Lack of X-Slack-Request-Timestamp and/or X-Slack-Signature in requests results in 500
### Description
I noticed that a test I wrote to simulate a user probing the events URL returned a 500 when I would have ... | slackapi/python-slack-events-api | 2d298a9b90b5b4a5599d120bd0acb45a1b77fa4b | Lack of X-Slack-Request-Timestamp and/or X-Slack-Signature in requests results in 500
### Description
I noticed that a test I wrote to simulate a user probing the events URL returned a 500 when I would have expected a 400.
### What type of issue is this? (place an `x` in one of the `[ ]`)
- [x] bug
- [ ] enhanc... | Apologies for submitting without the form filled out, I have completed it now. The fix is quite simple, but I will need to get Spotify to sign the CLA (or confirm that they already have) to fix it myself.
This also affects lack of Signature, though that may want to be a separate issue as it is an entirely different par... | 2020-07-24T02:34:34Z | <patch>
diff --git a/slackeventsapi/server.py b/slackeventsapi/server.py
--- a/slackeventsapi/server.py
+++ b/slackeventsapi/server.py
@@ -89,7 +89,7 @@ def event():
# Each request comes with request timestamp and request signature
# emit an error if the timestamp is out of range
... | diff --git a/tests/test_server.py b/tests/test_server.py
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -56,6 +56,32 @@ def test_url_challenge(client):
assert bytes.decode(res.data) == "valid_challenge_token"
+def test_no_request_timestamp_header(client):
+ data = pytest.reaction_event_fixture
+ ... | 1.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.