repo
stringlengths
5
51
instance_id
stringlengths
11
56
base_commit
stringlengths
40
40
patch
stringlengths
400
333k
test_patch
stringlengths
0
895k
problem_statement
stringlengths
27
55.6k
hints_text
stringlengths
0
72k
created_at
int64
1,447B
1,739B
labels
listlengths
0
7
category
stringclasses
4 values
edit_functions
listlengths
1
10
added_functions
listlengths
0
20
edit_functions_length
int64
1
10
joselc/life-sim-first-try
joselc__life-sim-first-try-2
77d5c01d3090655b776faf9a0c14b352a36b9695
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..56b8df8 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,25 @@ +# Description + +Please include a summary of the changes and the related issue. + +Fixes # (issue) + +## Type of change + +P...
diff --git a/tests/hexagons/test_plant.py b/tests/hexagons/test_plant.py index cd752d1..fbaa086 100644 --- a/tests/hexagons/test_plant.py +++ b/tests/hexagons/test_plant.py @@ -1,6 +1,7 @@ """Unit tests for the PlantHexagon class.""" import unittest +from unittest.mock import Mock, patch from src.hexagons.plant im...
Plants seeds can die before growing A plant seed can die before evolving to a growing plant. This behavior will be decided randomly during the seed phase of the plant. A threshold will be established to decide if the seed evolves or not. The seed will be able to evolve at the end of its seed phase, where it will be dec...
1,739,100,868,000
[]
Feature Request
[ "src/hexagons/plant_states.py:PlantStateManager.__init__", "src/hexagons/plant_states.py:PlantStateManager.update", "src/mesh/hex_mesh.py:HexMesh.__init__", "src/mesh/hex_mesh.py:HexMesh.update" ]
[ "src/hexagons/plant_states.py:PlantStateManager.seed_survival_threshold", "src/hexagons/plant_states.py:PlantStateManager._check_seed_survival", "src/mesh/hex_mesh.py:HexMesh._is_position_valid", "src/mesh/hex_mesh.py:HexMesh._convert_plants_to_ground" ]
4
UXARRAY/uxarray
UXARRAY__uxarray-1117
fe4cae1311db7fb21187b505e06018334a015c48
diff --git a/uxarray/grid/connectivity.py b/uxarray/grid/connectivity.py index 78e936117..54bd1017e 100644 --- a/uxarray/grid/connectivity.py +++ b/uxarray/grid/connectivity.py @@ -146,13 +146,14 @@ def _build_n_nodes_per_face(face_nodes, n_face, n_max_face_nodes): """Constructs ``n_nodes_per_face``, which contain...
Optimize Face Centroid Calculations If `Grid.face_lon` does not exist, `_populate_face_centroids()`, actually `_construct_face_centroids()` in it, takes extremely long for large datasets. For instance, the benchmark/profiling below is for a ~4GB SCREAM dataset, around 5 mins: @rajeeja FYI: I'm already working on this ...
1,734,798,627,000
[ "run-benchmark" ]
Performance Issue
[ "uxarray/grid/connectivity.py:_build_n_nodes_per_face", "uxarray/grid/coordinates.py:_construct_face_centroids" ]
[]
2
nautobot/nautobot
nautobot__nautobot-6832
903171e8d6ba05d4239b374dfc965ff7be09041c
diff --git a/changes/6808.changed b/changes/6808.changed new file mode 100644 index 0000000000..a363f1c45c --- /dev/null +++ b/changes/6808.changed @@ -0,0 +1,1 @@ +Improved returned data when syncing a Git repository via the REST API. diff --git a/nautobot/docs/user-guide/platform-functionality/gitrepository.md b/naut...
diff --git a/nautobot/extras/tests/test_api.py b/nautobot/extras/tests/test_api.py index af6efc332e..bb4f8ba759 100644 --- a/nautobot/extras/tests/test_api.py +++ b/nautobot/extras/tests/test_api.py @@ -1207,6 +1207,10 @@ def test_run_git_sync_with_permissions(self, _): url = reverse("extras-api:gitrepository-...
Improve returned data when syncing a Git repository via the REST API ### As ... Austin - Network Automation Engineer ### I want ... to be able to see more useful return data when syncing a Git repository via the REST API. Today, e.g.: ``` curl -s -X POST \ -H "Authorization: Token $TOKEN" \ -H "Content-Type: applic...
1,738,165,750,000
[]
Feature Request
[ "nautobot/extras/api/views.py:GitRepositoryViewSet.sync" ]
[]
1
gitlabform/gitlabform
gitlabform__gitlabform-929
ad13d613f5b41ac4fea8f44b6fbcca7c67274150
diff --git a/gitlabform/gitlab/projects.py b/gitlabform/gitlab/projects.py index 4cf21b23..649121ba 100644 --- a/gitlabform/gitlab/projects.py +++ b/gitlabform/gitlab/projects.py @@ -126,21 +126,6 @@ def get_project_settings(self, project_and_group_name): except NotFoundException: return dict() ...
Migrate `project_settings` config to use python-gitlab library Goal of this issue is to migrate the `project_settings` configuration section to use [python-gitlab library](https://python-gitlab.readthedocs.io/en/stable/) instead of using homegrown API in this project. High level Tasks: - Update `gitlabform/processors...
1,737,329,350,000
[]
Feature Request
[ "gitlabform/gitlab/projects.py:GitLabProjects.put_project_settings", "gitlabform/processors/project/project_settings_processor.py:ProjectSettingsProcessor.__init__" ]
[ "gitlabform/processors/project/project_settings_processor.py:ProjectSettingsProcessor._process_configuration", "gitlabform/processors/project/project_settings_processor.py:ProjectSettingsProcessor.get_project_settings", "gitlabform/processors/project/project_settings_processor.py:ProjectSettingsProcessor._print...
2
ultralytics/ultralytics
ultralytics__ultralytics-17810
d8c43874ae830a36d2adeac4a44a8ce5697e972c
diff --git a/ultralytics/utils/ops.py b/ultralytics/utils/ops.py index 25e83c61c3a..ac53546ed1b 100644 --- a/ultralytics/utils/ops.py +++ b/ultralytics/utils/ops.py @@ -75,9 +75,8 @@ def segment2box(segment, width=640, height=640): (np.ndarray): the minimum and maximum x and y values of the segment. """ ...
Training labels not applied properly to training data ### Search before asking - [X] I have searched the Ultralytics YOLO [issues](https://github.com/ultralytics/ultralytics/issues) and found no similar bug report. ### Ultralytics YOLO Component Train ### Bug # Bug Labels are not included in the gener...
👋 Hello @TheOfficialOzone, thank you for bringing this to our attention 🚀! We understand that you're encountering an issue with labels not being applied correctly during the training of a segmentation model on the Ultralytics repository. For us to assist you effectively, please ensure that you've provided a [minimum...
1,732,632,265,000
[ "enhancement", "segment" ]
Bug Report
[ "ultralytics/utils/ops.py:segment2box" ]
[]
1
Chainlit/chainlit
Chainlit__chainlit-1575
8b2d4bacfd4fa2c8af72e2d140d527d20125b07b
diff --git a/backend/chainlit/config.py b/backend/chainlit/config.py index b90f162f07..18ee6be8db 100644 --- a/backend/chainlit/config.py +++ b/backend/chainlit/config.py @@ -311,6 +311,8 @@ class CodeSettings: @dataclass() class ProjectSettings(DataClassJsonMixin): allow_origins: List[str] = Field(default_facto...
diff --git a/cypress/e2e/copilot/.chainlit/config.toml b/cypress/e2e/copilot/.chainlit/config.toml index e2a93af08f..9c42755715 100644 --- a/cypress/e2e/copilot/.chainlit/config.toml +++ b/cypress/e2e/copilot/.chainlit/config.toml @@ -13,7 +13,7 @@ session_timeout = 3600 cache = false # Authorized origins -allow_or...
Security: allowed origins should not be * by default CORS headers should be restricted to the current domain at least, by default.
@dosu Where do we have to look in the settings/code to set this to a sensible/safe default value? <!-- Answer --> To set the allowed origins for CORS headers to a sensible/safe default value, you need to look at the `allow_origins` setting in the `config.toml` file. ```toml # Authorized origins allow_origins = ["*"] `...
1,733,733,602,000
[ "size:M" ]
Security Vulnerability
[ "backend/chainlit/server.py:get_html_template", "backend/chainlit/socket.py:build_anon_user_identifier", "backend/chainlit/socket.py:connect", "backend/chainlit/socket.py:connection_successful", "backend/chainlit/socket.py:window_message" ]
[]
5
strawberry-graphql/strawberry
strawberry-graphql__strawberry-3720
882e98940a7b5df01ea50180af27085bd1e443f5
diff --git a/.alexrc b/.alexrc index ea3756ce5a..0d9c4005d9 100644 --- a/.alexrc +++ b/.alexrc @@ -9,6 +9,7 @@ "executed", "executes", "execution", + "reject", "special", "primitive", "invalid", diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..2a0c1a0554 --- /...
diff --git a/docs/integrations/litestar.md b/docs/integrations/litestar.md index 002fb5cbee..77af89472a 100644 --- a/docs/integrations/litestar.md +++ b/docs/integrations/litestar.md @@ -327,6 +327,7 @@ extended by overriding any of the following methods: - `def decode_json(self, data: Union[str, bytes]) -> object` -...
Add handler method to process websocket connections <!--- Provide a general summary of your changes in the title above. --> Allow an application to process the connection request for `graphql_transport_ws` and `graphql_ws` protocols, perform authentication, reject a connection and return custom response payload ...
see #1652 Thanks for adding the `RELEASE.md` file! ![](https://media.giphy.com/media/xq1FxHkABwW7m/giphy.gif) Here's a preview of the changelog: --- Adding the possiblity to process `payload` sent with a websockets `connection_init` message, and provide a response payload included with the `connection_ack` messa...
1,733,764,416,000
[ "bot:has-release-file", "bot:release-type-minor" ]
Feature Request
[ "strawberry/http/async_base_view.py:AsyncBaseHTTPView.run", "strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py:BaseGraphQLTransportWSHandler.__init__", "strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py:BaseGraphQLTransportWSHandler.handle_connection_init", "strawberry/subs...
[ "strawberry/exceptions/__init__.py:ConnectionRejectionError.__init__", "strawberry/http/async_base_view.py:AsyncBaseHTTPView.on_ws_connect" ]
7
WebOfTrust/keria
WebOfTrust__keria-334
912e68144ee0f31536c77d67f732ee82469d210c
diff --git a/src/keria/app/agenting.py b/src/keria/app/agenting.py index 3d6f96a4..1fc8a210 100644 --- a/src/keria/app/agenting.py +++ b/src/keria/app/agenting.py @@ -4,6 +4,7 @@ keria.app.agenting module """ +from base64 import b64decode import json import os import datetime @@ -53,7 +54,8 @@ def setup(nam...
diff --git a/tests/app/test_agenting.py b/tests/app/test_agenting.py index 6f4cf910..e0338f38 100644 --- a/tests/app/test_agenting.py +++ b/tests/app/test_agenting.py @@ -5,6 +5,7 @@ Testing the Mark II Agent """ +from base64 import b64encode import json import os import shutil @@ -248,7 +249,7 @@ def test_agenc...
Provide a way to protect the boot endpoint ### Feature request description/rationale I suggest there should be a way to protect the boot endpoint with some simple authentication. In my opinion, this is convenient even if the boot port is not exposed publicly on the internet. It would also make it easier for people to ...
This makes sense to me for test servers deployed publicly. Would just want to make sure a simple username/pass doesn't end up becoming the norm. I wrote a simple Spring Cloud Gateway service in Java that provisions one-time use boot URLs and emails them to clients. Used it to protect our infrastructure in an alpha p...
1,733,756,077,000
[]
Feature Request
[ "src/keria/app/agenting.py:setup", "src/keria/app/agenting.py:BootEnd.__init__", "src/keria/app/agenting.py:BootEnd.on_post", "src/keria/app/cli/commands/start.py:launch" ]
[ "src/keria/app/agenting.py:BootEnd.authenticate" ]
4
huggingface/transformers
huggingface__transformers-22496
41d47db90fbe9937c0941f2f9cdb2ddd83e49a2e
diff --git a/src/transformers/models/whisper/modeling_whisper.py b/src/transformers/models/whisper/modeling_whisper.py index 91de6810b17e..96f91a0a43dd 100644 --- a/src/transformers/models/whisper/modeling_whisper.py +++ b/src/transformers/models/whisper/modeling_whisper.py @@ -34,7 +34,12 @@ SequenceClassifierOut...
diff --git a/tests/models/whisper/test_modeling_whisper.py b/tests/models/whisper/test_modeling_whisper.py index 883a2021b9bb..98bbbb3214a7 100644 --- a/tests/models/whisper/test_modeling_whisper.py +++ b/tests/models/whisper/test_modeling_whisper.py @@ -1013,6 +1013,48 @@ def test_mask_time_prob(self): en...
Whisper Prompting ### Feature request Add prompting for the Whisper model to control the style/formatting of the generated text. ### Motivation During training, Whisper can be fed a "previous context window" to condition on longer passages of text. The original OpenAI Whisper implementation provides the use...
cc @hollance Hello, I'd like to pick up this issue!
1,680,278,096,000
[]
Feature Request
[ "src/transformers/models/whisper/modeling_whisper.py:WhisperForConditionalGeneration.generate", "src/transformers/models/whisper/tokenization_whisper.py:WhisperTokenizer._decode", "src/transformers/models/whisper/tokenization_whisper_fast.py:WhisperTokenizerFast._decode" ]
[ "src/transformers/models/whisper/processing_whisper.py:WhisperProcessor.get_prompt_ids", "src/transformers/models/whisper/tokenization_whisper.py:WhisperTokenizer.get_prompt_ids", "src/transformers/models/whisper/tokenization_whisper.py:WhisperTokenizer._strip_prompt", "src/transformers/models/whisper/tokeniz...
3
scikit-learn/scikit-learn
scikit-learn__scikit-learn-24145
55af30d981ea2f72346ff93602f0b3b740cfe8d6
diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index 9cab0db995c5d..ec1301844b877 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -487,6 +487,11 @@ Changelog categorical encoding based on target mean conditioned on the value of the category. :pr:`25334` by `Thomas Fan`_. +- |En...
diff --git a/sklearn/preprocessing/tests/test_polynomial.py b/sklearn/preprocessing/tests/test_polynomial.py index 727b31b793b1d..1062a3da820e7 100644 --- a/sklearn/preprocessing/tests/test_polynomial.py +++ b/sklearn/preprocessing/tests/test_polynomial.py @@ -35,6 +35,22 @@ def is_c_contiguous(a): assert np.isfor...
Add sparse matrix output to SplineTransformer ### Describe the workflow you want to enable As B-splines naturally have a sparse structure, I'd like to have the option that `SplineTransformer` returns a sparse matrix instead of always an ndarray. ```python import numpy as np from sklearn.preprocessing import SplineT...
1,659,969,522,000
[ "module:preprocessing" ]
Feature Request
[ "sklearn/preprocessing/_polynomial.py:SplineTransformer.__init__", "sklearn/preprocessing/_polynomial.py:SplineTransformer.fit", "sklearn/preprocessing/_polynomial.py:SplineTransformer.transform" ]
[]
3
camunda-community-hub/pyzeebe
camunda-community-hub__pyzeebe-509
9563192ed32e9a1a0d7cf54b273d807027b74426
diff --git a/docs/channels.rst b/docs/channels.rst index 7a5cbbf4..0d45ebcc 100644 --- a/docs/channels.rst +++ b/docs/channels.rst @@ -6,4 +6,5 @@ Channels :name: channels Quickstart <channels_quickstart> + Configuration <channels_configuration> Reference <channels_reference> diff --git a/docs/chann...
diff --git a/tests/unit/channel/insecure_channel_test.py b/tests/unit/channel/insecure_channel_test.py index e76fe6ae..35a07d83 100644 --- a/tests/unit/channel/insecure_channel_test.py +++ b/tests/unit/channel/insecure_channel_test.py @@ -1,3 +1,4 @@ +import os from unittest.mock import Mock, patch import grpc @@ -...
Use environment variables to configure Zeebe **Is your feature request related to a problem? Please describe.** The zeebe-client-node library has a "[Zero-Conf constructor](https://github.com/zeebe-io/zeebe-client-node-js#zero-conf)" that allows to use environment variables to set up Zeebe. This project could bene...
I definitely think this is something that we want in pyzeebe. It would be great if you could submit a PR. Should I add this issue to the Pyzeebe 3.0.0 milestone @kbakk? @JonatanMartens I assume #186 was accidentally closed (because the branch it was made against was deleted)? Should I try to rebase this against master/...
1,728,468,269,000
[]
Feature Request
[ "pyzeebe/channel/insecure_channel.py:create_insecure_channel", "pyzeebe/channel/oauth_channel.py:create_oauth2_client_credentials_channel", "pyzeebe/channel/oauth_channel.py:create_camunda_cloud_channel", "pyzeebe/channel/secure_channel.py:create_secure_channel", "pyzeebe/channel/utils.py:create_address" ]
[ "pyzeebe/channel/utils.py:get_zeebe_address", "pyzeebe/channel/utils.py:get_camunda_oauth_url", "pyzeebe/channel/utils.py:get_camunda_client_id", "pyzeebe/channel/utils.py:get_camunda_client_secret", "pyzeebe/channel/utils.py:get_camunda_cluster_id", "pyzeebe/channel/utils.py:get_camunda_cluster_region", ...
5
avantifellows/quiz-backend
avantifellows__quiz-backend-84
f970b54634a9a9ba000aaf76d05338a5d77b0d60
diff --git a/app/models.py b/app/models.py index cfb9644b..80f94b94 100644 --- a/app/models.py +++ b/app/models.py @@ -365,6 +365,11 @@ class Config: schema_extra = {"example": {"answer": [0, 1, 2], "visited": True}} +""" +Note : The below model is not being used currently anywhere +""" + + class SessionA...
diff --git a/app/tests/test_session_answers.py b/app/tests/test_session_answers.py index a2c04a1e..2d05a9be 100644 --- a/app/tests/test_session_answers.py +++ b/app/tests/test_session_answers.py @@ -7,12 +7,13 @@ class SessionAnswerTestCase(SessionsBaseTestCase): def setUp(self): super().setUp() ...
At some places we're updating just one key of an object or one element of an array but we send the whole object to MongoDB to update which is inefficient.
1,680,002,295,000
[]
Performance Issue
[ "app/routers/session_answers.py:update_session_answer", "app/routers/session_answers.py:get_session_answer", "app/routers/sessions.py:create_session", "app/routers/sessions.py:update_session" ]
[ "app/routers/session_answers.py:update_session_answer_in_a_session", "app/routers/session_answers.py:get_session_answer_from_a_session" ]
4
beeware/rubicon-objc
beeware__rubicon-objc-543
28afa53f296753f3beac8d56d6555942f7f86c59
diff --git a/changes/256.feature.rst b/changes/256.feature.rst new file mode 100644 index 00000000..5430b4fc --- /dev/null +++ b/changes/256.feature.rst @@ -0,0 +1,5 @@ +Retain Objective-C objects when creating Python wrappers and release them when the +Python wrapped is garbage collected. This means that manual ``reta...
diff --git a/tests/test_core.py b/tests/test_core.py index 4fdedebd..47454c5a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -6,6 +6,7 @@ import sys import threading import unittest +import uuid import weakref from ctypes import ( ArgumentError, @@ -21,6 +22,7 @@ ) from decimal import Decimal ...
Improve correspondence between ObjectiveC objects and Python wrappers ### What is the problem or limitation you are having? In the process of building the Toga GUI testbed, we discovered #249. A fix for this problem was included in #246; however, that fix was really a safety catch for a specific set of circumstances. ...
A similar segfault occurred due to some missing `retain` calls which were added by [this commit](https://github.com/beeware/toga/pull/2075/commits/69e760b6d707871215b0ea2cf6cdc3dc383e7449). I was revisiting this again due to https://github.com/beeware/toga/issues/2468, and wanted to jot down some options before I forge...
1,732,055,210,000
[]
Feature Request
[ "src/rubicon/objc/api.py:ObjCMethod.__call__", "src/rubicon/objc/api.py:ObjCPartialMethod.__init__", "src/rubicon/objc/api.py:ObjCPartialMethod.__call__", "src/rubicon/objc/api.py:ObjCInstance.__new__", "src/rubicon/objc/api.py:ObjCInstance.release", "src/rubicon/objc/api.py:ObjCInstance.autorelease", "...
[ "src/rubicon/objc/api.py:get_method_family", "src/rubicon/objc/api.py:method_name_to_tuple" ]
8
internetarchive/openlibrary
internetarchive__openlibrary-7929
dc49fddb78a3cb25138922790ddd6a5dd2b5741c
diff --git a/openlibrary/core/lending.py b/openlibrary/core/lending.py index 6162ed5b081..d7e2a1949cb 100644 --- a/openlibrary/core/lending.py +++ b/openlibrary/core/lending.py @@ -511,13 +511,53 @@ def _get_ia_loan(identifier, userid): def get_loans_of_user(user_key): """TODO: Remove inclusion of local data; s...
Cache Patron's Active Loans <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> On several pages (e.g. LoanStatus) we fetch the patron's active loans (which can be expensive) to see if they've borrowed a book (e.g. on the book page). Ideally, we'd cache this every...
1,685,797,378,000
[ "Priority: 1", "Needs: Patch Deploy" ]
Performance Issue
[ "openlibrary/core/lending.py:get_loans_of_user", "openlibrary/core/models.py:User.get_loan_for", "openlibrary/core/models.py:User.get_waiting_loan_for", "openlibrary/plugins/upstream/borrow.py:borrow.POST" ]
[ "openlibrary/core/lending.py:get_user_waiting_loans", "openlibrary/core/models.py:User.get_user_waiting_loans" ]
4
rwth-i6/sisyphus
rwth-i6__sisyphus-191
a5ddfaa5257beafb5fdce28d96e6ae1e574ee9fe
diff --git a/sisyphus/aws_batch_engine.py b/sisyphus/aws_batch_engine.py index 4b0173f..80f454e 100644 --- a/sisyphus/aws_batch_engine.py +++ b/sisyphus/aws_batch_engine.py @@ -1,4 +1,4 @@ -""" This is an experimental implementation for the aws batch engine. +"""This is an experimental implementation for the aws batch ...
Too many open file descriptors Hi, I was using sisyphus today for a big recipe and I got an error in my worker which claimed `too many open files`: ``` OSError: [Errno 24] Unable to synchronously open file (unable to open file: name = <filename>, errno = 24, error message = 'Too many open files', flags = 0, o_flags...
I had this happen again. It was with a relatively big setup, but I'm not sure what causes the issue yet since my manager shouldn't be opening many files, if any. Please find attached the corresponding stack trace from the manager [here](https://github.com/user-attachments/files/15509563/manager_too_many_open_files_gi...
1,717,145,069,000
[]
Performance Issue
[ "sisyphus/aws_batch_engine.py:AWSBatchEngine.system_call", "sisyphus/load_sharing_facility_engine.py:LoadSharingFacilityEngine.system_call", "sisyphus/simple_linux_utility_for_resource_management_engine.py:SimpleLinuxUtilityForResourceManagementEngine.system_call", "sisyphus/son_of_grid_engine.py:SonOfGridEng...
[]
4
neurobagel/federation-api
neurobagel__federation-api-139
cf6faaae5edeaedff6d2348eb3a9b95aeee4b02e
diff --git a/app/api/crud.py b/app/api/crud.py index 9715648..ddcc127 100644 --- a/app/api/crud.py +++ b/app/api/crud.py @@ -77,7 +77,7 @@ async def get( node_urls : list[str] List of Neurobagel nodes to send the query to. token : str, optional - Google ID token for authentication, by default ...
diff --git a/tests/conftest.py b/tests/conftest.py index cdce163..4e12217 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -28,23 +28,21 @@ def disable_auth(monkeypatch): @pytest.fixture() -def mock_verify_and_extract_token(): +def mock_verify_token(): """Mock a successful token verification that doe...
Switch to manual JWT verification of ID token from IdP - Related to: https://github.com/neurobagel/api/issues/385 Even for a trial implementation, we can no longer rely on Google as our IdP because we have discovered that the "testing" mode of our Google service API does not restrict login to the app (namely, access t...
1,732,822,712,000
[ "release", "pr-internal", "released" ]
Feature Request
[ "app/api/crud.py:get", "app/api/routers/query.py:get_query", "app/api/security.py:check_client_id", "app/api/security.py:verify_and_extract_token" ]
[ "app/api/security.py:extract_token", "app/api/security.py:verify_token" ]
4
sympy/sympy
sympy__sympy-27223
d293133e81194adc11177729af91c970f092a6e7
diff --git a/sympy/utilities/lambdify.py b/sympy/utilities/lambdify.py index a84d1a1c26c1..518f5cb67bf5 100644 --- a/sympy/utilities/lambdify.py +++ b/sympy/utilities/lambdify.py @@ -11,6 +11,7 @@ import keyword import textwrap import linecache +import weakref # Required despite static analysis claiming it is not...
diff --git a/sympy/utilities/tests/test_lambdify.py b/sympy/utilities/tests/test_lambdify.py index 4a82290569ea..428cbaed92b6 100644 --- a/sympy/utilities/tests/test_lambdify.py +++ b/sympy/utilities/tests/test_lambdify.py @@ -1,6 +1,8 @@ from itertools import product import math import inspect +import linecache +im...
Memory Leak in `sympy.lambdify` Hi there, I'm working with an [algorithm](https://github.com/SymposiumOrganization/NeuralSymbolicRegressionThatScales) that relies on calling `sympy.lambdify` hundreds of millions of times (~200M) and noticed the memory usage of the process steadily creeping up and eventually crashing t...
> The memory usage increases by about +390KB per lambdified equation I assume you mean per 10000 lambdified equations so it is about 400 bytes per lambdified equation. My guess is that each call to lambdify creates a Dummy and then something creates a polynomial ring with that dummy and the polynomial ring never gets ...
1,730,837,688,000
[ "utilities.lambdify" ]
Bug Report
[ "sympy/utilities/lambdify.py:lambdify" ]
[]
1
modin-project/modin
modin-project__modin-6836
097ea527c8e3f099e1f252b067a1d5eb055ad0b5
diff --git a/modin/core/dataframe/algebra/binary.py b/modin/core/dataframe/algebra/binary.py index f19040cc104..af0c6ee7e8e 100644 --- a/modin/core/dataframe/algebra/binary.py +++ b/modin/core/dataframe/algebra/binary.py @@ -415,7 +415,9 @@ def caller( ): shape_hint = "colu...
FEAT: Do not put binary functions to the Ray storage multiple times. Currently, the binary operations are wrapped into lambdas which are put into the Ray storage on each operation.
1,703,167,333,000
[]
Feature Request
[ "modin/core/dataframe/algebra/binary.py:Binary.register", "modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe.map", "modin/core/dataframe/pandas/partitioning/partition_manager.py:PandasDataframePartitionManager.map_partitions", "modin/core/dataframe/pandas/partitioning/partition_manager.py:Pan...
[]
5
Open-MSS/MSS
Open-MSS__MSS-1967
56e9528b552a9d8f2e267661473b8f0e724fd093
diff --git a/.github/workflows/python-flake8.yml b/.github/workflows/python-flake8.yml index b578708e4..0e9003135 100644 --- a/.github/workflows/python-flake8.yml +++ b/.github/workflows/python-flake8.yml @@ -19,10 +19,10 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v3 - - name: Set up...
diff --git a/conftest.py b/conftest.py index be546d782..83f33ca85 100644 --- a/conftest.py +++ b/conftest.py @@ -211,9 +211,8 @@ def _load_module(module_name, path): @pytest.fixture(autouse=True) -def close_open_windows(): - """ - Closes all windows after every test +def fail_if_open_message_boxes_left(): + ...
What to do with "UserWarning: An unhandled message box popped up during your test!"? There are many of these warnings in the CI logs basically spamming the output and drowning out other more interesting warnings. These warnings are originating from https://github.com/Open-MSS/MSS/blob/1327ede1dbe3f4eb26bf3889934fa76...
see here, the warning comes from the fixture https://github.com/Open-MSS/MSS/blob/develop/conftest.py#L214 tests better should fail instead of hiding one cause, some of the tests showing that have to do a second turn. Sometimes functionality gets added but not the test improved e.g. ``` call(<mslib.msui.msc...
1,693,392,061,000
[]
Performance Issue
[ "mslib/msui/mscolab.py:MSUIMscolab.add_operation", "mslib/msui/mscolab.py:MSUIMscolab.change_category_handler", "mslib/msui/mscolab.py:MSUIMscolab.change_description_handler", "mslib/msui/mscolab.py:MSUIMscolab.rename_operation_handler", "mslib/msui/mscolab.py:MSUIMscolab.logout", "mslib/msui/socket_contr...
[]
7
vllm-project/vllm
vllm-project__vllm-5473
7d19de2e9c9a94658c36b55011b803a7991d0335
diff --git a/vllm/config.py b/vllm/config.py index 2513d43ce8e6b..a0bd6b0975a16 100644 --- a/vllm/config.py +++ b/vllm/config.py @@ -11,7 +11,8 @@ from vllm.model_executor.layers.quantization import QUANTIZATION_METHODS from vllm.model_executor.models import ModelRegistry from vllm.transformers_utils.config import g...
diff --git a/.buildkite/test-pipeline.yaml b/.buildkite/test-pipeline.yaml index 6b12d19ba611f..6a2932db9f2dc 100644 --- a/.buildkite/test-pipeline.yaml +++ b/.buildkite/test-pipeline.yaml @@ -48,6 +48,7 @@ steps: - TEST_DIST_MODEL=meta-llama/Llama-2-7b-hf DISTRIBUTED_EXECUTOR_BACKEND=mp pytest -v -s distributed/tes...
[Usage]: Is it possible to start 8 tp=1 LLMEngine on a 8-GPU machine? ### Your current environment ```text Collecting environment information... /home/corvo/.local/lib/python3.10/site-packages/transformers/utils/hub.py:124: FutureWarning: Using `TRANSFORMERS_CACHE` is deprecated and will be removed in v5 of Transfor...
Hi @sfc-gh-zhwang, I don't think this is easily doable in vLLM at the moment within a single python process. Possibly you could construct each model on GPU 0 and move each to GPU X before moving on. I would recommend starting a separate process for each LLM and specifying `CUDA_VISIBLE_DEVICES` for each i.e. `CUDA_VI...
1,718,233,771,000
[]
Feature Request
[ "vllm/config.py:ParallelConfig.__init__", "vllm/distributed/device_communicators/custom_all_reduce.py:CustomAllreduce.__init__", "vllm/distributed/device_communicators/custom_all_reduce_utils.py:gpu_p2p_access_check", "vllm/executor/multiproc_gpu_executor.py:MultiprocessingGPUExecutor._init_executor" ]
[ "vllm/utils.py:_cuda_device_count_stateless", "vllm/utils.py:cuda_device_count_stateless" ]
4
tardis-sn/tardis
tardis-sn__tardis-2782
e1aa88723a6836e8a25cc1afb24b578b1b78651f
diff --git a/benchmarks/opacities_opacity.py b/benchmarks/opacities_opacity.py index 5352ceccc89..7589632aabd 100644 --- a/benchmarks/opacities_opacity.py +++ b/benchmarks/opacities_opacity.py @@ -28,7 +28,7 @@ def time_photoabsorption_opacity_calculation(self): ) def time_pair_creation_opacity_calculat...
No need to need benchmarks for different values of length for generate_rpacket_last_interaction_tracker_list. @officialasishkumar Currently the said benchmark runs for different values of length, which is not required. The related code: https://github.com/tardis-sn/tardis/blob/e1aa88723a6836e8a25cc1afb24b578b1b78651f...
Yeah it can be removed and the repeat can be set to 3 or 4 for better accuracy.
1,722,951,264,000
[ "benchmarks" ]
Performance Issue
[ "benchmarks/opacities_opacity.py:BenchmarkMontecarloMontecarloNumbaOpacities.time_pair_creation_opacity_calculation", "benchmarks/transport_montecarlo_packet_trackers.py:BenchmarkTransportMontecarloPacketTrackers.setup", "benchmarks/transport_montecarlo_packet_trackers.py:BenchmarkTransportMontecarloPacketTrack...
[]
5
freelawproject/courtlistener
freelawproject__courtlistener-4968
1c477aa7d13bd5ca940b390433aa18fec9a1129a
diff --git a/cl/opinion_page/templates/docket_authorities.html b/cl/opinion_page/templates/docket_authorities.html index 05e3154e38..7390f2ef36 100644 --- a/cl/opinion_page/templates/docket_authorities.html +++ b/cl/opinion_page/templates/docket_authorities.html @@ -13,12 +13,12 @@ {% block tab-content %} <div class=...
Clarify number of references on Authorities Page vs. Search Results Noticed after doing #4134 On the “Authorities” page for a given docket, we display the references to opinions in the docket's documents. However, each "authority" in the list is not actually an opinion, but an element of a `Docket`'s `authorities`: `...
Fun, so this issue is indeed worse than we thought. I didn't realize that we're repeating the same case many times in the list of authorities. That's not great. The easiest thing is to aggregate on the depth and have it say something like: > 3 filings make 14 references to XYZ We don't need to say which filings do ...
1,737,764,898,000
[]
Feature Request
[ "cl/opinion_page/views.py:docket_authorities" ]
[ "cl/search/models.py:Docket.authority_opinions", "cl/search/models.py:build_authority_opinions_query" ]
1
stravalib/stravalib
stravalib__stravalib-612
45b049df7902ce1cd8bf49c5cea39de4dd9dd58b
diff --git a/.gitignore b/.gitignore index ec39dfd0..2f555a67 100644 --- a/.gitignore +++ b/.gitignore @@ -21,9 +21,10 @@ examples/strava-oauth/settings.cfg .nox .vscode/* docs/_build/* +.env -# so people don't mistakenly delete and submit a pr with these +# So people don't mistakenly delete and submit a pr with...
diff --git a/src/stravalib/tests/conftest.py b/src/stravalib/tests/conftest.py index 063907b6..feb738a1 100644 --- a/src/stravalib/tests/conftest.py +++ b/src/stravalib/tests/conftest.py @@ -1,8 +1,11 @@ +import os import warnings +from unittest.mock import patch import pytest from stravalib import Client +from ...
ENH: built-in token refresh ### Feature Type - [ ] Adding new functionality to stravalib - [X] Changing existing functionality in stravalib - [ ] Removing existing functionality in stravalib ### Problem Description It would be nice if stravalib would automatically refresh access tokens whenever they expire. ### ...
@jsamoocha i'd really love to work on this issue. I haven't created a decorator before but use them and want to better understand how they work. I was thinking I would make a decorator that runs on the [`protocol.ApiV3._request` helper method](https://github.com/stravalib/stravalib/blob/main/src/stravalib/protocol.py#L...
1,736,645,887,000
[]
Feature Request
[ "src/stravalib/client.py:Client.__init__", "src/stravalib/client.py:Client.access_token", "src/stravalib/protocol.py:ApiV3.__init__", "src/stravalib/protocol.py:ApiV3._request", "src/stravalib/protocol.py:ApiV3.refresh_access_token" ]
[ "src/stravalib/client.py:Client.token_expires", "src/stravalib/client.py:Client.refresh_token", "src/stravalib/protocol.py:ApiV3._check_credentials", "src/stravalib/protocol.py:ApiV3._token_expired", "src/stravalib/protocol.py:ApiV3.refresh_expired_token" ]
5
sopel-irc/sopel
sopel-irc__sopel-2285
51300a1ab854d6ec82d90df1bc876188c03335ff
diff --git a/pyproject.toml b/pyproject.toml index 5746b069a..60bac8dd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,6 @@ dependencies = [ "xmltodict>=0.12,<0.14", "pytz", "requests>=2.24.0,<3.0.0", - "dnspython<3.0", "sqlalchemy>=1.4,<1.5", "importlib_metadata>=3.6", "...
diff --git a/test/builtins/test_builtins_url.py b/test/builtins/test_builtins_url.py index 54db06f24..eedce5411 100644 --- a/test/builtins/test_builtins_url.py +++ b/test/builtins/test_builtins_url.py @@ -22,6 +22,12 @@ "http://example..com/", # empty label "http://?", # no host ) +PRIVATE_URLS = ( + # ...
url: private_resolution/dns_resolution useless ### Description The url.enable_private_resolution and url.enable_dns_resolution settings do not work as advertised, and the concept of the latter is fatally flawed. The current `url.py` private-address protection logic is as follows: ```python if not enable_private_r...
1,653,509,364,000
[ "Bugfix", "Security" ]
Security Vulnerability
[ "sopel/builtins/url.py:configure", "sopel/builtins/url.py:title_command", "sopel/builtins/url.py:title_auto", "sopel/builtins/url.py:process_urls", "sopel/builtins/url.py:find_title", "sopel/builtins/url.py:get_tinyurl" ]
[]
6
mesonbuild/meson
mesonbuild__meson-11366
088727164de8496c4bada040c2f4690e42f66b69
diff --git a/docs/markdown/Installing.md b/docs/markdown/Installing.md index a692afe7deea..2d18c178fccd 100644 --- a/docs/markdown/Installing.md +++ b/docs/markdown/Installing.md @@ -102,6 +102,22 @@ Telling Meson to run this script at install time is a one-liner. The argument is the name of the script file relative t...
'ninja install' attempts to gain elevated privileges It is disturbing for 'ninja install' to prompt for a sudo password with polkit. This breaks user expectations, and introduces a security risk. This has evidently been meson's behavior for a very long time, but it's distressing, and it's surprising because meson...
What system are you using? Asking because it helps use determine how to fix this. Also would help to say what version of Meson and Ninja you’re using. This is on Linux (ubuntu 20.04), and using meson from either the system or up-to-date git. It's not a bug; it's a feature. It just happens to be a feature that gives...
1,675,834,691,000
[]
Security Vulnerability
[ "mesonbuild/minstall.py:Installer.do_install", "mesonbuild/minstall.py:rebuild_all" ]
[]
2
dmlc/dgl
dmlc__dgl-5240
f0b7cc96bd679eba40632a0383535e7a9d3295c5
diff --git a/python/dgl/frame.py b/python/dgl/frame.py index 46c52a20a99b..707964c5abc6 100644 --- a/python/dgl/frame.py +++ b/python/dgl/frame.py @@ -5,7 +5,7 @@ from collections.abc import MutableMapping from . import backend as F -from .base import DGLError, dgl_warning +from .base import dgl_warning, DGLError ...
[Bug][Performance] Significant overhead when `record_stream` for subgraph in dataloading ## 🐛 Bug It seems there are many overheads observed in dataloader during feature prefetching when `use_alternate_streams=True` . When it calls `_record_stream` for every subgraph (batch), like the following: https://github.co...
1,675,111,529,000
[]
Performance Issue
[ "python/dgl/frame.py:Column.record_stream" ]
[ "python/dgl/frame.py:_LazyIndex.record_stream" ]
1
famedly/synapse-invite-checker
famedly__synapse-invite-checker-37
e3aba37eba38bb5cec4b4bf86d7a9a3064f5205e
diff --git a/README.md b/README.md index 17b9c64..30f9ffd 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ modules: federation_localization_url: "https://localhost:8080/localization", # Full url where to fetch the federation localization from, required. Should be the same host as federation list. ...
diff --git a/tests/base.py b/tests/base.py index c7a7e0d..2bae754 100644 --- a/tests/base.py +++ b/tests/base.py @@ -236,6 +236,7 @@ def default_config(self) -> dict[str, Any]: { "module": "synapse_invite_checker.InviteChecker", "config": { + ...
GET /v1/server/isInsurance ``` /v1/server/isInsurance: get: tags: - lookUpServer summary: "Check whether a TI-Messenger server name represents an insurance." parameters: - in: query name: serverName description: "The server name to query." required: ...
1,734,960,142,000
[]
Feature Request
[ "synapse_invite_checker/invite_checker.py:InviteChecker.parse_config", "synapse_invite_checker/invite_checker.py:InviteChecker.__init__", "synapse_invite_checker/invite_checker.py:InviteChecker.fetch_federation_allow_list", "synapse_invite_checker/invite_checker.py:InviteChecker.user_may_invite" ]
[ "synapse_invite_checker/invite_checker.py:InviteChecker.after_startup", "synapse_invite_checker/invite_checker.py:InviteChecker._fetch_federation_list", "synapse_invite_checker/invite_checker.py:InviteChecker._domain_list_check", "synapse_invite_checker/invite_checker.py:InviteChecker.is_domain_allowed", "s...
4
pypa/pip
pypa__pip-13085
fe0925b3c00bf8956a0d33408df692ac364217d4
diff --git a/news/13079.bugfix.rst b/news/13079.bugfix.rst new file mode 100644 index 00000000000..5b297f5a12e --- /dev/null +++ b/news/13079.bugfix.rst @@ -0,0 +1,1 @@ +This change fixes a security bug allowing a wheel to execute code during installation. diff --git a/src/pip/_internal/commands/install.py b/src/pip/_i...
Lazy import allows wheel to execute code on install. ### Description Versions of pip since 24.1b1 allow someone to run arbitrary code after a specially crafted bdist whl file is installed. When installing wheel files pip does not constrain the directories the wheel contents are written into, except for checks t...
Just a couple more additions: - this behavior is related to `pip` installing into the same location that `pip` is running from - this may have security implications based on the usage of `pip` by users. For example, `pip install --only-binary :all:` could be used in a trusted context, before using the installed p...
1,731,971,313,000
[ "bot:chronographer:provided" ]
Security Vulnerability
[ "src/pip/_internal/commands/install.py:InstallCommand.run" ]
[]
1
gammasim/simtools
gammasim__simtools-1183
5dcc802561e21122783af829aede24c0a411b4a2
diff --git a/simtools/applications/db_get_parameter_from_db.py b/simtools/applications/db_get_parameter_from_db.py index 259f7689f..ff4f407fd 100644 --- a/simtools/applications/db_get_parameter_from_db.py +++ b/simtools/applications/db_get_parameter_from_db.py @@ -85,8 +85,11 @@ def main(): # noqa: D103 db = db_h...
diff --git a/tests/unit_tests/db/test_db_array_elements.py b/tests/unit_tests/db/test_db_array_elements.py index 2a1bc5570..dcc693abf 100644 --- a/tests/unit_tests/db/test_db_array_elements.py +++ b/tests/unit_tests/db/test_db_array_elements.py @@ -1,14 +1,28 @@ #!/usr/bin/python3 +import time + import pytest fr...
test_get_corsika_telescope_list takes too long The `test_get_corsika_telescope_list` test takes roughly 20 seconds to run. Profiling it points to excessive time spent initializing the array model, perhaps related to reading from the DB too many times. ``` ncalls tottime percall cumtime percall filename:lineno...
The `array_model` consist of the site model, the model of all telescopes and of all calibration devices. So this is naturally that all DB calls are initiated from the array_model_class. The number of calls to the DB are reduced by having the `DatabaseHandler.*cached` dicts, where the idea is to not query the same pa...
1,727,870,821,000
[]
Performance Issue
[ "simtools/applications/db_get_parameter_from_db.py:main", "simtools/db/db_array_elements.py:get_array_elements", "simtools/db/db_array_elements.py:get_array_element_list_for_db_query", "simtools/db/db_array_elements.py:get_array_elements_of_type", "simtools/db/db_handler.py:DatabaseHandler.get_model_paramet...
[]
8
pypa/twine
pypa__twine-1194
66b781fcaedbda27954e377b76c3e2f357f78205
diff --git a/pyproject.toml b/pyproject.toml index 582ccaa9..e976d56d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ dependencies = [ "rfc3986 >= 1.4.0", "rich >= 12.0.0", "packaging", + "id", ] dynamic = ["version"] diff --git a/twine/auth.py b/twine/auth.py index 59e2e21d..49ab8987 10064...
Support the "Trusted Publishing" flow directly in `twine` Last month PyPI added support for "Trusted Publishing": https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/. This uses an credential exchange flow to swap OIDC credentials with a short-lived PyPI API token, removing the need to maintain long-l...
I wonder if it makes sense to make authentication pluggable in some way? I'm pretty sure that twine right now assumes that every repository is authenticated with a username/password over basic auth. Things like API Tokens from PyPI get shoehorned into this by using a dummy username, but it would be nice to support any ...
1,733,309,855,000
[]
Feature Request
[ "twine/auth.py:Resolver.__init__", "twine/auth.py:Resolver.password", "twine/auth.py:Resolver.get_password_from_keyring", "twine/auth.py:Resolver.password_from_keyring_or_prompt", "twine/cli.py:list_dependencies_and_versions", "twine/repository.py:Repository.__init__", "twine/repository.py:Repository._m...
[ "twine/auth.py:Resolver.make_trusted_publishing_token", "twine/auth.py:Resolver.password_from_keyring_or_trusted_publishing_or_prompt", "twine/utils.py:make_requests_session" ]
8
matplotlib/matplotlib
matplotlib__matplotlib-25887
09eab5b1c471410d238b449ebbac63f70759fc21
diff --git a/lib/matplotlib/cbook.py b/lib/matplotlib/cbook.py index ff6b2a15ec35..9d03752c666c 100644 --- a/lib/matplotlib/cbook.py +++ b/lib/matplotlib/cbook.py @@ -2344,6 +2344,30 @@ def _picklable_class_constructor(mixin_class, fmt, attr_name, base_class): return cls.__new__(cls) +def _is_torch_array(x): +...
diff --git a/lib/matplotlib/tests/test_cbook.py b/lib/matplotlib/tests/test_cbook.py index 1f4f96324e9e..24fd02e65a5f 100644 --- a/lib/matplotlib/tests/test_cbook.py +++ b/lib/matplotlib/tests/test_cbook.py @@ -1,5 +1,6 @@ from __future__ import annotations +import sys import itertools import pickle @@ -16,6 +17...
[Bug]: plt.hist takes significantly more time with torch and jax arrays ### Bug summary Hi, Time taken to plot `plt.hist` directly on `jax` or `torch` arrays is significantly more than **combined time taken to first convert them to `numpy` and then using `plt.hist`**. Shouldn't `matplotlib` internally convert the...
The unpacking happens here: https://github.com/matplotlib/matplotlib/blob/b61bb0b6392c23d38cd45c658bfcd44df145830d/lib/matplotlib/cbook.py#L2237-L2251 The pytorch tensor does not support any of the conversion methods, so Matplotlib doesn't really know what to do with it. There is a discussion in https://github.com/...
1,684,077,060,000
[ "third-party integration" ]
Performance Issue
[ "lib/matplotlib/cbook.py:_unpack_to_numpy" ]
[ "lib/matplotlib/cbook.py:_is_torch_array", "lib/matplotlib/cbook.py:_is_jax_array" ]
1
vllm-project/vllm
vllm-project__vllm-9390
83450458339b07765b0e72a822e5fe93eeaf5258
diff --git a/benchmarks/benchmark_serving.py b/benchmarks/benchmark_serving.py index c1a396c81f666..4580729fa4767 100644 --- a/benchmarks/benchmark_serving.py +++ b/benchmarks/benchmark_serving.py @@ -397,6 +397,7 @@ async def benchmark( selected_percentile_metrics: List[str], selected_percentiles: List[str],...
Benchmarking script does not limit the maximum concurrency The current benchmarking script if specified with `INF` arrivals, will not limit the maximum concurrency level as shown [here](https://github.com/vllm-project/vllm/blob/703e42ee4b3efed3c71e7ae7d15f0f96e05722d4/benchmarks/benchmark_serving.py#L191). If we can c...
Good point. PR welcomed! @wangchen615 Please correct me if I misunderstood, but is this for testing the case where you have another layer on top of the model deployment with concurrency control? I recently made https://github.com/vllm-project/vllm/pull/3194 to add prefix caching benchmark - @wangchen615 let me know if...
1,729,025,741,000
[ "ready" ]
Feature Request
[ "benchmarks/benchmark_serving.py:benchmark", "benchmarks/benchmark_serving.py:main" ]
[]
2
acoular/acoular
acoular__acoular-369
358b3764f4a1cede1e22c5b351a55292337e319a
diff --git a/acoular/process.py b/acoular/process.py index 9da2ee55..97cd6581 100644 --- a/acoular/process.py +++ b/acoular/process.py @@ -18,7 +18,7 @@ from inspect import currentframe from warnings import warn -from traits.api import Bool, Dict, Enum, Instance, Int, Property, cached_property, on_trait_change +fro...
make buffer size of SampleSplitter independently settable for each subsequent object of the processing chain Currently, the `buffer_size` attribute of class `SampleSplitter` is of type `Int`. In fact, the SampleSplitter creates a block buffer of the same size for each subsequent object of the processing chain that has ...
1,732,552,962,000
[ "enhancement", "maintenance", "docs" ]
Feature Request
[ "acoular/process.py:SampleSplitter._create_block_buffer", "acoular/process.py:SampleSplitter._create_buffer_overflow_treatment", "acoular/process.py:SampleSplitter.register_object", "acoular/process.py:SampleSplitter.remove_object" ]
[]
4
ctc-oss/fapolicy-analyzer
ctc-oss__fapolicy-analyzer-809
9199ca7edad1481d9602e981ba6b1f0716f48d87
diff --git a/Cargo.lock b/Cargo.lock index 3b02a7962..126cb87a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -287,7 +287,6 @@ dependencies = [ "fapolicy-trust", "pyo3", "similar", - "tempfile", ] [[package]] diff --git a/crates/daemon/src/error.rs b/crates/daemon/src/error.rs index b289208db..044582d5e 100644 ...
Detect systemd service start/stop events to replace hard coded delays The original implementation used conservative hard coded delays to sync fapolicyd starts/stops {via dbus} with the invocation and termination of the Profiling target executables. The focus at that time was correct functionality however it's time for ...
This should be able to be done on the backend with a few aditions. 1. Listen for dbus events; would look similar to [this](https://github.com/diwic/dbus-rs/blob/master/dbus/examples/unity_focused_window.rs) 2. Register a Python callback with the backend 3. Callback when state changes We don't have any examples ...
1,678,129,184,000
[ "bug" ]
Performance Issue
[ "fapolicy_analyzer/ui/features/profiler_feature.py:create_profiler_feature", "fapolicy_analyzer/ui/profiler_page.py:ProfilerPage.handle_done", "fapolicy_analyzer/ui/reducers/profiler_reducer.py:handle_start_profiling_request" ]
[]
3
django/django
django__django-16421
70f39e46f86b946c273340d52109824c776ffb4c
diff --git a/django/utils/text.py b/django/utils/text.py index 374fd78f927d..9560ebc67840 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -2,12 +2,20 @@ import re import secrets import unicodedata +from collections import deque from gzip import GzipFile from gzip import compress as gzip_compress +f...
diff --git a/tests/template_tests/filter_tests/test_truncatewords_html.py b/tests/template_tests/filter_tests/test_truncatewords_html.py index 32b7c81a7626..0cf41d83aeef 100644 --- a/tests/template_tests/filter_tests/test_truncatewords_html.py +++ b/tests/template_tests/filter_tests/test_truncatewords_html.py @@ -24,7 ...
Improve utils.text.Truncator &co to use a full HTML parser. Description (last modified by Carlton Gibson) Original description: I'm using Truncator.chars to truncate wikis, and it sometimes truncates in the middle of &quot; entities, resulting in '<p>some text &qu</p>' This is a limitation of the regex based imple...
['Hi Thomas. Any chance of an example string (hopefully minimal) that creates the behaviour so we can have a look?', 1565074082.0] ["I think now that the security release are out let's just add bleach as dependency on master and be done with it?", 1565076701.0] ["Here's an example \u200bhttps://repl.it/@tdhooper/Django...
1,672,779,147,000
[]
Feature Request
[ "django/utils/text.py:Truncator.chars", "django/utils/text.py:Truncator._text_chars", "django/utils/text.py:Truncator.words", "django/utils/text.py:Truncator._truncate_html" ]
[ "django/utils/text.py:calculate_truncate_chars_length", "django/utils/text.py:TruncateHTMLParser.__init__", "django/utils/text.py:TruncateHTMLParser.void_elements", "django/utils/text.py:TruncateHTMLParser.handle_startendtag", "django/utils/text.py:TruncateHTMLParser.handle_starttag", "django/utils/text.p...
4
spinalcordtoolbox/spinalcordtoolbox
spinalcordtoolbox__spinalcordtoolbox-4690
db894a3c49871397a6b4c81ec29ba0b32f9dbc86
diff --git a/documentation/source/user_section/command-line/deepseg/totalspineseg.rst b/documentation/source/user_section/command-line/deepseg/totalspineseg.rst new file mode 100644 index 0000000000..2c5423a6d7 --- /dev/null +++ b/documentation/source/user_section/command-line/deepseg/totalspineseg.rst @@ -0,0 +1,11 @@...
diff --git a/testing/cli/test_sct_deepseg.py b/testing/cli/test_sct_deepseg.py index b6f4e9e8fb..a012f959f9 100644 --- a/testing/cli/test_sct_deepseg.py +++ b/testing/cli/test_sct_deepseg.py @@ -158,6 +158,12 @@ def test_segment_nifti_softseg_error_with_fill_holes(tmp_path): ["_GM_seg", "_WM_seg"], 'seg_mou...
Unify FSLeyes commands for multiclass DeepSeg models FSLeyes commands outputted by `sct_deepseg -i t2.nii.gz -task seg_sc_lesion_t2w_sci` differ from the FSLeyes command in [our tutorial](https://github.com/spinalcordtoolbox/sct_tutorial_data/blob/8b91e72c6575cbf40c5a66898fe3a13d9c26790c/single_subject/batch_single_sub...
1,731,103,707,000
[ "feature", "sct_deepseg" ]
Feature Request
[ "spinalcordtoolbox/deepseg/inference.py:segment_non_ivadomed", "spinalcordtoolbox/deepseg/models.py:install_model", "spinalcordtoolbox/reports/qc2.py:sct_deepseg", "spinalcordtoolbox/reports/qc2.py:sct_deepseg_spinal_rootlets_t2w", "spinalcordtoolbox/reports/qc2.py:add_segmentation_labels", "spinalcordtoo...
[ "spinalcordtoolbox/deepseg/inference.py:segment_totalspineseg" ]
7
agrc/masquerade
agrc__masquerade-222
e56a2f44592510dd90b7f6290398b3b64c561273
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a0f5cf0..98b8ee3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,11 +12,13 @@ "editorconfig.editorconfig", "ms-azuretools.vscode-docker", "ms-python.python", - ...
diff --git a/tests/test_masquerade.py b/tests/test_masquerade.py index fb2b05d..4ae875a 100644 --- a/tests/test_masquerade.py +++ b/tests/test_masquerade.py @@ -35,6 +35,13 @@ def test_base_geocode_route(test_client): assert b"locatorProperties" in response.data +def test_geocode_bad_request(test_client): + ...
Upgrade Python Version **thought**: It looks like 3.10 is the next python to EOL. Can this run on python 3.12 or 3.13 which are still getting support and not just security fixes? https://devguide.python.org/versions/ _Originally posted by @steveoh in https://github.com/agrc/masquerade/pull/219#discu...
South Jordan is attempting to use Masquerade within their CityWorks instance and this came up again. Just another data point for motivation to get it done.
1,733,444,812,000
[]
Feature Request
[ "src/masquerade/main.py:geocode_base", "src/masquerade/main.py:geocode_addresses", "src/masquerade/providers/open_sgid.py:DatabaseConnection.query", "src/masquerade/providers/web_api.py:get_candidates_from_single_line", "src/masquerade/providers/web_api.py:make_request", "src/masquerade/providers/web_api....
[ "src/masquerade/main.py:reverse_geocode", "src/masquerade/providers/open_sgid.py:get_boundary_value", "src/masquerade/providers/open_sgid.py:get_zip", "src/masquerade/providers/open_sgid.py:get_city", "src/masquerade/providers/open_sgid.py:get_county", "src/masquerade/providers/web_api.py:make_geocode_req...
7
redhat-qe-security/SCAutolib
redhat-qe-security__SCAutolib-147
67004e08eef52b8f2b30d094f7fe7ee1f58a566f
diff --git a/.github/workflows/flake8.yaml b/.github/workflows/flake8.yaml index 8111bb9..dae99be 100644 --- a/.github/workflows/flake8.yaml +++ b/.github/workflows/flake8.yaml @@ -21,6 +21,13 @@ jobs: with: python-version: 3 + - name: Install krb5-config deps + run: sudo apt-get update -y + ...
Extend CLI to make GUI calls It would be helpful to be able to run some common GUI functions from the CLI. This could help with some manual test development as well as provide an interface that can be used by test frameworks that rely on running commands remotely. At a minimum, I think we need cli access to the fol...
1,731,958,900,000
[]
Feature Request
[ "SCAutolib/cli_commands.py:cli", "SCAutolib/cli_commands.py:setup_ca", "SCAutolib/controller.py:Controller.__init__", "SCAutolib/controller.py:Controller.setup_system", "SCAutolib/models/gui.py:Screen.__init__", "SCAutolib/models/gui.py:GUI.__init__", "SCAutolib/models/gui.py:GUI.__enter__", "SCAutoli...
[ "SCAutolib/cli_commands.py:check_conf_path", "SCAutolib/cli_commands.py:NaturalOrderGroup.__init__", "SCAutolib/cli_commands.py:NaturalOrderGroup.list_commands", "SCAutolib/cli_commands.py:gui", "SCAutolib/cli_commands.py:init", "SCAutolib/cli_commands.py:assert_text", "SCAutolib/cli_commands.py:click_o...
9
scikit-learn/scikit-learn
scikit-learn__scikit-learn-25186
b2fe9746a862272a60ffc7d2c6563d28dd13a6c6
diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index 937c9c1448030..5290399310dcf 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -109,6 +109,13 @@ Changelog out-of-bag scores via the `oob_scores_` or `oob_score_` attributes. :pr:`24882` by :user:`Ashwin Mathur <awinml>`. +- |E...
Improving IsolationForest predict time ### Discussed in https://github.com/scikit-learn/scikit-learn/discussions/25142 <div type='discussions-op-text'> <sup>Originally posted by **fsiola** December 8, 2022</sup> Hi, When using [IsolationForest predict](https://github.com/scikit-learn/scikit-learn/blob/main/...
I will take this one them
1,670,936,394,000
[ "module:ensemble" ]
Performance Issue
[ "sklearn/ensemble/_iforest.py:IsolationForest.fit", "sklearn/ensemble/_iforest.py:IsolationForest.score_samples", "sklearn/ensemble/_iforest.py:IsolationForest._compute_score_samples" ]
[]
3
okta/okta-jwt-verifier-python
okta__okta-jwt-verifier-python-59
cb4e6780c55c234690299fa4ccef5ad33746c2c2
diff --git a/okta_jwt_verifier/jwt_utils.py b/okta_jwt_verifier/jwt_utils.py index af187ed..dd1e3d1 100644 --- a/okta_jwt_verifier/jwt_utils.py +++ b/okta_jwt_verifier/jwt_utils.py @@ -1,7 +1,8 @@ import json -from jose import jwt, jws -from jose.exceptions import ExpiredSignatureError +import jwt +from jwt.exceptio...
diff --git a/tests/unit/test_jwt_verifier.py b/tests/unit/test_jwt_verifier.py index 3693b63..a3d8680 100644 --- a/tests/unit/test_jwt_verifier.py +++ b/tests/unit/test_jwt_verifier.py @@ -1,7 +1,7 @@ import pytest import time -from jose.exceptions import JWTClaimsError +from jwt.exceptions import InvalidTokenError...
Dependency python-Jose appears to be unmaintained Hey - just a heads-up that it appears this library is using `python-jose` as a dependency, which hasn't been updated in ~2 years. Maintainers haven't shown any activity in GitHub for issues or pull requests in quite a while, either. It would probably be prudent to pivot...
> before CVEs start dropping up against the abandoned library. Looks like that's now, found in [python-ecdsa](https://github.com/tlsfuzzer/python-ecdsa/security/advisories/GHSA-wj6h-64fc-37mp). Are there any plans to use the `cryptography` build of `python-jose`, or migrate? @bretterer any updates on this? Does Okta...
1,714,487,268,000
[]
Security Vulnerability
[ "okta_jwt_verifier/jwt_utils.py:JWTUtils.parse_token", "okta_jwt_verifier/jwt_utils.py:JWTUtils.verify_claims", "okta_jwt_verifier/jwt_utils.py:JWTUtils.verify_signature" ]
[]
3
ray-project/ray
ray-project__ray-26818
1b06e7a83acd1c7b721327cef73bd5d3cb66faa2
diff --git a/dashboard/client/src/api.ts b/dashboard/client/src/api.ts index 42467df8e7e2d..e532d0829b98b 100644 --- a/dashboard/client/src/api.ts +++ b/dashboard/client/src/api.ts @@ -1,4 +1,4 @@ -import { formatUrl } from "./service/requestHandlers"; +import { formatUrl, get as getV2 } from "./service/requestHandlers...
diff --git a/dashboard/modules/actor/tests/test_actor.py b/dashboard/modules/actor/tests/test_actor.py index 04a04a6fd1389..8cad11a58722b 100644 --- a/dashboard/modules/actor/tests/test_actor.py +++ b/dashboard/modules/actor/tests/test_actor.py @@ -342,5 +342,98 @@ class InfeasibleActor: raise Exceptio...
[Bug] Dashboard takes up a lot of Memory ### Search before asking - [X] I searched the [issues](https://github.com/ray-project/ray/issues) and found no similar issues. ### Ray Component Dashboard ### Issue Severity Medium: It contributes to significant difficulty to complete my task but I work arounds and get it ...
I belive we made some relevant fixes to the master. Is it possible to try out Ray master to see if the issue still exists? Also cc @alanwguo @rkooo567 this issue still exists for ray version 1.12.0 Here it takes up to 6.5 Gb. process running since 27 hours. /home/ray/anaconda3/bin/python -u /home/ray/...
1,658,370,033,000
[ "@author-action-required" ]
Performance Issue
[ "dashboard/datacenter.py:DataOrganizer.get_node_workers", "dashboard/datacenter.py:DataOrganizer.get_node_info", "dashboard/modules/actor/actor_head.py:ActorHead.__init__", "dashboard/modules/actor/actor_head.py:ActorHead._update_actors", "dashboard/modules/actor/actor_head.py:ActorHead.run", "dashboard/m...
[ "dashboard/modules/actor/actor_head.py:ActorHead._cleanup_actors" ]
8
gitpython-developers/GitPython
gitpython-developers__GitPython-1636
e19abe75bbd7d766d7f06171c6524431e4653545
diff --git a/git/cmd.py b/git/cmd.py index 3d170facd..3665eb029 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -5,7 +5,7 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php from __future__ import annotations import re -from contextlib import contextmanager +import contextlib import io import logg...
diff --git a/test/test_git.py b/test/test_git.py index c5d871f08..540ea9f41 100644 --- a/test/test_git.py +++ b/test/test_git.py @@ -4,10 +4,12 @@ # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php +import contextlib import os +import shu...
CVE-2023-40590: Untrusted search path on Windows systems leading to arbitrary code execution This appeared in the CVE additional information here https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4. I found it reported already. I am reporting it here just in case.
Thanks. This advisory originated in this repository and is thus known: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4 . However, it seems hard to communicate using an advisory, so we can keep this issue open to collect comments.
1,693,402,739,000
[]
Security Vulnerability
[ "git/cmd.py:Git.execute" ]
[]
1
huggingface/optimum-benchmark
huggingface__optimum-benchmark-266
1992de306378f7d5848d36ddc73f15ba711c8d70
diff --git a/optimum_benchmark/trackers/latency.py b/optimum_benchmark/trackers/latency.py index cb236413..1e0f1e95 100644 --- a/optimum_benchmark/trackers/latency.py +++ b/optimum_benchmark/trackers/latency.py @@ -121,7 +121,8 @@ def __init__(self, device: str, backend: str): self.device = device sel...
Timeout with multiple AMD GPUs tensor parallelism in vLLM ## Problem Description When attempting to run Optimum Benchmark in vLLM using tensor parallelism across multiple AMD GPUs (MI210), I encounter a timeout error from NCCL watchdog. However, the benchmark works fine with a single AMD GPU in vLLM, and the vLLM AP...
Yeah I still haven't had time to fix the vLLM multi-gpu support, it fails for some obscure reason that I can't put my finger on, because the only difference is that optimum-benchmark runs the engine in a separate process. did you try using the ray backend ? Yes, ray backend leads to the same timeout, logs are similar @...
1,726,822,597,000
[]
Performance Issue
[ "optimum_benchmark/trackers/latency.py:LatencyTracker.__init__" ]
[]
1
vllm-project/vllm
vllm-project__vllm-6050
c87ebc3ef9ae6e8d6babbca782510ff924b3abc7
diff --git a/vllm/config.py b/vllm/config.py index 9854f175065a2..23c03bcb4da5d 100644 --- a/vllm/config.py +++ b/vllm/config.py @@ -957,12 +957,6 @@ def maybe_create_spec_config( ) draft_hf_config = draft_model_config.hf_config - if (draft_hf_config.model_type == "mlp_speculator"...
diff --git a/tests/spec_decode/e2e/test_integration_dist_tp2.py b/tests/spec_decode/e2e/test_integration_dist_tp2.py index 5534b80c0aaa0..859d4234c458f 100644 --- a/tests/spec_decode/e2e/test_integration_dist_tp2.py +++ b/tests/spec_decode/e2e/test_integration_dist_tp2.py @@ -70,10 +70,6 @@ def test_target_model_tp_gt_...
[Feature]: MLPSpeculator Tensor Parallel support ### 🚀 The feature, motivation and pitch `MLPSpeculator`-based speculative decoding was recently added in https://github.com/vllm-project/vllm/pull/4947, but the initial integration only covers single GPU usage. There will soon be "speculator" models available for ...
initial thought: * https://github.com/vllm-project/vllm/pull/5414 may be a bad fit for this; we should keep eyes open for best solution for MLPSpeculator * the goal for this issue should be to get MLPSpeculator on TP==1 working with target model on TP>1. we can start today with a small model (don't have to wait for n...
1,719,874,141,000
[]
Feature Request
[ "vllm/config.py:SpeculativeConfig.maybe_create_spec_config", "vllm/spec_decode/spec_decode_worker.py:SpecDecodeWorker.create_worker" ]
[]
2
PrefectHQ/prefect
PrefectHQ__prefect-12019
276da8438e84fb7daf05255d1f9d87379d2d647b
diff --git a/src/prefect/_internal/concurrency/calls.py b/src/prefect/_internal/concurrency/calls.py index 13e9e9bbfc61..6ca4dc45567e 100644 --- a/src/prefect/_internal/concurrency/calls.py +++ b/src/prefect/_internal/concurrency/calls.py @@ -10,6 +10,7 @@ import dataclasses import inspect import threading +import w...
Task input persisted leading to memory not being released (same for output). ### First check - [X] I added a descriptive title to this issue. - [X] I used the GitHub search to find a similar request and didn't find it. - [X] I searched the Prefect documentation for this feature. ### Prefect Version 2.x ##...
Hi @sibbiii, thanks for the well written issue and investigation. I can reproduce the behavior with your MRE. I think it is unlikely that the references are maintained as part of results as you're not returning anything from your function. I think this likely has to do with the dependency tracking or as your sai...
1,708,123,117,000
[]
Performance Issue
[ "src/prefect/_internal/concurrency/calls.py:get_current_call", "src/prefect/_internal/concurrency/calls.py:set_current_call", "src/prefect/_internal/concurrency/cancellation.py:AsyncCancelScope.__exit__" ]
[ "src/prefect/_internal/concurrency/calls.py:Future._invoke_callbacks" ]
3
raft-tech/TANF-app
raft-tech__TANF-app-3252
5500be8aeeb713d28847ae40975bd9a85e851990
diff --git a/tdrs-backend/docker-compose.yml b/tdrs-backend/docker-compose.yml index a66fed7a5..07d2b502a 100644 --- a/tdrs-backend/docker-compose.yml +++ b/tdrs-backend/docker-compose.yml @@ -101,6 +101,15 @@ services: command: --config /usr/share/grafana/conf/custom.ini depends_on: - grafana-pg + +...
Local Alertmanager **Description:** As our monitoring capabilities enhance, we need a method to alert on logs, or metrics we are tracking. In this ticket we want to integrate [Alertmanager](https://prometheus.io/docs/alerting/latest/overview/) with our PLG stack to enable fine grained alerting capabilities. As an MVP ...
1,730,319,610,000
[ "frontend", "backend", "dev", "devops", "Ready to Merge" ]
Feature Request
[ "tdrs-backend/tdpservice/users/api/authorization_check.py:GrafanaAuthorizationCheck.get" ]
[ "tdrs-backend/tdpservice/users/api/authorization_check.py:PlgAuthorizationCheck.get" ]
1
streamlit/streamlit
streamlit__streamlit-6617
cec1c141f7858e31f8200a9cdc42b8ddd09ab0e7
diff --git a/lib/streamlit/runtime/app_session.py b/lib/streamlit/runtime/app_session.py index 6fae7653b807..36e681c344f7 100644 --- a/lib/streamlit/runtime/app_session.py +++ b/lib/streamlit/runtime/app_session.py @@ -225,8 +225,10 @@ def shutdown(self) -> None: self._uploaded_file_mgr.remove_session_file...
diff --git a/lib/tests/streamlit/runtime/app_session_test.py b/lib/tests/streamlit/runtime/app_session_test.py index 2ee2e5d8cd40..448118736e9a 100644 --- a/lib/tests/streamlit/runtime/app_session_test.py +++ b/lib/tests/streamlit/runtime/app_session_test.py @@ -101,15 +101,19 @@ def test_shutdown(self, patched_disconn...
Updating images will increase memory usage ### Checklist - [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues. - [X] I added a very descriptive title to this issue. - [X] I have provided sufficient information below to help reproduce this issue. ### Summary Wh...
@MathijsNL Thanks for reporting this. I was able to reproduce this issue. We do have something that is actually supposed to clean up the media file storage after a session. But this somehow might not work correctly. I also tested with older Streamlit versions (e.g. 1.15), and this does seem to behave the same way....
1,683,075,857,000
[ "security-assessment-completed" ]
Performance Issue
[ "lib/streamlit/runtime/app_session.py:AppSession.shutdown", "lib/streamlit/runtime/forward_msg_cache.py:ForwardMsgCache.remove_expired_session_entries", "lib/streamlit/runtime/runtime.py:Runtime._send_message" ]
[ "lib/streamlit/runtime/forward_msg_cache.py:ForwardMsgCache.remove_refs_for_session", "lib/streamlit/runtime/forward_msg_cache.py:ForwardMsgCache.remove_expired_entries_for_session" ]
3
JoinMarket-Org/joinmarket-clientserver
JoinMarket-Org__joinmarket-clientserver-1180
aabfd3f7c2ec33391b89369bd1fe354659f10f0f
diff --git a/jmclient/jmclient/blockchaininterface.py b/jmclient/jmclient/blockchaininterface.py index 2402ff7d3..65a4cfcc4 100644 --- a/jmclient/jmclient/blockchaininterface.py +++ b/jmclient/jmclient/blockchaininterface.py @@ -292,18 +292,36 @@ def import_addresses_if_needed(self, addresses, wallet_name): ...
yg-privacyenhanced.py: excessive CPU usage At first startup of the Yield Generator, CPU usage seems acceptable, but as it sits running for a few days, it starts using excessive amounts of CPU time. It seems to depend on how many CoinJoins it has participated in. Case in point: I have two instances of `yg-privacyenhance...
> it is obsessively (many times per second!) calling `gettransaction`, all for the same transaction ID. The responses from Bitcoin Core show that the specified transaction has over 200 confirmations, so why is JoinMarket obsessively hammering requests for it? It shouldn't, sounds like a bug somewhere. > RPC call an...
1,644,723,706,000
[]
Performance Issue
[ "jmclient/jmclient/blockchaininterface.py:BitcoinCoreInterface._yield_transactions", "jmclient/jmclient/blockchaininterface.py:BitcoinCoreNoHistoryInterface._yield_transactions", "jmclient/jmclient/wallet_service.py:WalletService.__init__", "jmclient/jmclient/wallet_service.py:WalletService.register_callbacks...
[ "jmclient/jmclient/wallet_service.py:WalletService._yield_new_transactions" ]
9
TagStudioDev/TagStudio
TagStudioDev__TagStudio-735
921a8875de22f7c136316edfb5d3038236414b57
diff --git a/tagstudio/src/qt/modals/tag_search.py b/tagstudio/src/qt/modals/tag_search.py index d35065675..fdd986ab5 100644 --- a/tagstudio/src/qt/modals/tag_search.py +++ b/tagstudio/src/qt/modals/tag_search.py @@ -52,7 +52,7 @@ def __init__(self, library: Library, exclude: list[int] = None, is_tag_chooser: ...
[Bug]: Adding (or searching for) tags gets increasingly slower in the same session (running process) ### Checklist - [x] I am using an up-to-date version. - [x] I have read the [documentation](https://github.com/TagStudioDev/TagStudio/blob/main/docs/index.md). - [x] I have searched existing [issues](https://github.com...
I've been able to reproduce this, and it does indeed look like memory usage is increasing the more searches are preformed After *much* debugging, I believe I've narrowed this down to the `translate_qobject()` calls inside the `TagWidget` objects that are use for the context menus. When removing these translation calls ...
1,737,872,423,000
[ "Priority: Critical", "Type: UI/UX", "TagStudio: Tags" ]
Performance Issue
[ "tagstudio/src/qt/modals/tag_search.py:TagSearchPanel.__init__", "tagstudio/src/qt/modals/tag_search.py:TagSearchPanel.construct_tag_button", "tagstudio/src/qt/modals/tag_search.py:TagSearchPanel.update_tags", "tagstudio/src/qt/widgets/tag.py:TagWidget.__init__" ]
[ "tagstudio/src/qt/modals/tag_search.py:TagSearchPanel.build_create_tag_button" ]
4
micropython/micropython-lib
micropython__micropython-lib-947
e4cf09527bce7569f5db742cf6ae9db68d50c6a9
diff --git a/python-ecosys/requests/requests/__init__.py b/python-ecosys/requests/requests/__init__.py index a9a183619..2951035f7 100644 --- a/python-ecosys/requests/requests/__init__.py +++ b/python-ecosys/requests/requests/__init__.py @@ -46,6 +46,8 @@ def request( ): if headers is None: headers = {} +...
diff --git a/python-ecosys/requests/test_requests.py b/python-ecosys/requests/test_requests.py index 513e533a3..ac77291b0 100644 --- a/python-ecosys/requests/test_requests.py +++ b/python-ecosys/requests/test_requests.py @@ -102,11 +102,11 @@ def chunks(): def test_overwrite_get_headers(): response = requests.r...
SECURITY: Requests module leaks passwords & usernames for HTTP Basic Auth While looking at the MicroPython `requests` module (on the git HEAD), I noticed this: If you make a request with HTTP basic auth (a username/password) and did not specify a headers dict, then I believe the username and password would be added ...
The MicroPython way aiui would be to mirror CPython's solution to this problem, which uses a `None` default value and then sets it to an empty dict at runtime: https://github.com/psf/requests/blob/0e322af87745eff34caffe4df68456ebc20d9068/src/requests/models.py#L258-L276 And I see this is exactly what #823 does....
1,733,959,795,000
[]
Security Vulnerability
[ "python-ecosys/requests/requests/__init__.py:request" ]
[]
1
pm4-graders/3ES
pm4-graders__3ES-72
5b3fc277a8cacc1af4750fd8b541e20f27bc8487
diff --git a/.gitignore b/.gitignore index c1a2a16..0f72b94 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,7 @@ /cv/testImages/kanti_img2.jpg /cv/testImages/kanti_img1.jpeg /cv/testImages/kanti_img2.jpeg +/cv/testImages/kanti_telegram_compressed_1.jpg +/cv/testImages/kanti_telegram_compressed_2.jpg /cv/__pycac...
diff --git a/cv/testImages/crooked.jpg b/cv/testImages/crooked.jpg new file mode 100644 index 0000000..2fade6f Binary files /dev/null and b/cv/testImages/crooked.jpg differ diff --git a/cv/testImages/crunched.jpg b/cv/testImages/crunched.jpg new file mode 100644 index 0000000..3c214c5 Binary files /dev/null and b/cv/te...
Fix CV - test on more samples and make adjustments to make it more robust
1,683,218,934,000
[]
Performance Issue
[ "backend/app/core/cv_result.py:Exam.__init__", "cv/DigitRecognizer.py:DigitRecognizer.recognize_digits_in_photo", "cv/DigitRecognizer.py:DigitRecognizer.predict_double_number", "cv/DigitRecognizer.py:DigitRecognizer.predict_handwritten_cell", "cv/DigitRecognizer.py:DigitRecognizer.find_grid_in_image", "cv...
[]
7
NSS-Day-Cohort-71/bangazon-api-ctrl-alt-elite
NSS-Day-Cohort-71__bangazon-api-ctrl-alt-elite-52
ac552c116e56ad237001d877c0c3b1e7884b890b
diff --git a/bangazonapi/models/customer.py b/bangazonapi/models/customer.py index a6d4cdd..61bf2e6 100644 --- a/bangazonapi/models/customer.py +++ b/bangazonapi/models/customer.py @@ -14,4 +14,12 @@ def recommends(self): @recommends.setter def recommends(self, value): - self.__recommends = value \ N...
Feature: Users can create a store in order to sell items **Given** a user clicks on the profile icon in the navbar **And** the user has not created a store yet **When** the _Interested in selling?_ option is chosen **Then** the user should see a form to create a store with a text field for store name, and a textarea...
1,727,971,599,000
[]
Feature Request
[ "bangazonapi/models/customer.py:Customer.recommends", "bangazonapi/views/profile.py:Profile.list" ]
[ "bangazonapi/models/customer.py:Customer.store", "bangazonapi/views/store.py:StoreViewSet.retrieve" ]
2
fortra/impacket
fortra__impacket-1636
33058eb2fde6976ea62e04bc7d6b629d64d44712
diff --git a/examples/ntlmrelayx.py b/examples/ntlmrelayx.py index 5377a695e..e3efbbf81 100755 --- a/examples/ntlmrelayx.py +++ b/examples/ntlmrelayx.py @@ -57,10 +57,11 @@ RELAY_SERVERS = [] class MiniShell(cmd.Cmd): - def __init__(self, relayConfig, threads): + def __init__(self, relayConfig, threads, api_a...
SOCKS server listens on all interfaces by default ### Configuration impacket version: v0.10.1.dev1+20230207.182628.6cd68a05 Python version: 3.9.2 Target OS: NA By default, the SOCKS server used by ntlmrelayx.py listens on all interfaces (0.0.0.0)1080, which is dangerous. Please see: https://github.com/f...
1,698,135,613,000
[ "medium" ]
Security Vulnerability
[ "examples/ntlmrelayx.py:MiniShell.__init__", "examples/ntlmrelayx.py:MiniShell.do_socks", "impacket/examples/ntlmrelayx/servers/socksserver.py:webService", "impacket/examples/ntlmrelayx/servers/socksserver.py:SOCKS.__init__" ]
[]
4
strawberry-graphql/strawberry-django
strawberry-graphql__strawberry-django-659
e76b3fa1713bc28ef0a845c194e581bead198660
diff --git a/strawberry_django/mutations/resolvers.py b/strawberry_django/mutations/resolvers.py index 50c76677..53a58cbe 100644 --- a/strawberry_django/mutations/resolvers.py +++ b/strawberry_django/mutations/resolvers.py @@ -15,6 +15,7 @@ import strawberry from django.db import models, transaction from django.db.m...
diff --git a/tests/projects/schema.py b/tests/projects/schema.py index 669ab286..f61ae7c8 100644 --- a/tests/projects/schema.py +++ b/tests/projects/schema.py @@ -335,6 +335,12 @@ class MilestoneIssueInput: name: strawberry.auto +@strawberry_django.partial(Issue) +class MilestoneIssueInputPartial: + name: s...
Perform validation check on updating nested fields <!--- Provide a general summary of the changes you want in the title above. --> ## Summary If a nested field is updated via the parent field, a validation on the nested field should be performed, if some validators are provided on the django field. <!--- This te...
Hey @tokr-bit , Thanks for reporting this! I'm wondering if https://github.com/strawberry-graphql/strawberry-graphql-django/pull/394 will also fix this issue? cc @sdobbelaere Hey, #394 won't fix the issue since the `update_m2m` method is not changed. If you and @sdobbelaere support the feature request, I can ...
1,731,676,692,000
[]
Feature Request
[ "strawberry_django/mutations/resolvers.py:_parse_data", "strawberry_django/mutations/resolvers.py:prepare_create_update", "strawberry_django/mutations/resolvers.py:create", "strawberry_django/mutations/resolvers.py:update", "strawberry_django/mutations/resolvers.py:update_m2m" ]
[ "strawberry_django/mutations/resolvers.py:_create" ]
5
AzureAD/microsoft-authentication-library-for-python
AzureAD__microsoft-authentication-library-for-python-454
66a1c5a935e59c66281ccf73a3931681eeedee23
diff --git a/msal/application.py b/msal/application.py index 5d1406af..a06df303 100644 --- a/msal/application.py +++ b/msal/application.py @@ -11,8 +11,6 @@ from threading import Lock import os -import requests - from .oauth2cli import Client, JwtAssertionCreator from .oauth2cli.oidc import decode_part from .aut...
diff --git a/tests/test_authority_patch.py b/tests/test_authority_patch.py deleted file mode 100644 index 1feca62d..00000000 --- a/tests/test_authority_patch.py +++ /dev/null @@ -1,32 +0,0 @@ -import unittest - -import msal -from tests.http_client import MinimalHttpClient - - -class DummyHttpClient(object): - def ge...
MSAL can consider using lazy import for `request`, `jwt` **Describe the bug** Importing MSAL is can cost ~300ms on Windows due to some heavy libraries like `request` and `jwt`: ``` python -X importtime -c "import msal" 2>perf.log; tuna .\perf.log ``` ![image](https://user-images.githubusercontent.com/40039...
1,642,623,018,000
[]
Performance Issue
[ "msal/authority.py:Authority.http_client", "msal/authority.py:Authority.__init__", "msal/authority.py:Authority.user_realm_discovery" ]
[]
3
ray-project/ray
ray-project__ray-49440
14e747f6e2c7fbaac319fa68c75d2f9393d23548
diff --git a/python/ray/autoscaler/_private/gcp/config.py b/python/ray/autoscaler/_private/gcp/config.py index fb6fdf2608dd6..4a96c08ed52a3 100644 --- a/python/ray/autoscaler/_private/gcp/config.py +++ b/python/ray/autoscaler/_private/gcp/config.py @@ -6,6 +6,9 @@ import time from functools import partial, reduce +...
Setup Commands not running with Ray Cluster on GCP ### What happened + What you expected to happen I have been creating Ray Clusters on cloud VM's in Google Cloud. I've been having issues with the setup_commands in the ray cluster YAML file. These are supposed to run when new nodes are made. The commands always r...
@arandhaw when you say worker nodes is not setup correctly, what's they symptoms? I am experiencing the same issue. When I start 1 worker node at a time, it works fine. If the autoscaler tries to start multiple nodes it will fail to run the setup commands. The result is that ray is not installed. > 2024-07-09 11:...
1,735,152,108,000
[ "go" ]
Bug Report
[ "python/ray/autoscaler/_private/gcp/config.py:_create_crm", "python/ray/autoscaler/_private/gcp/config.py:_create_iam", "python/ray/autoscaler/_private/gcp/config.py:_create_compute", "python/ray/autoscaler/_private/gcp/config.py:_create_tpu", "python/ray/autoscaler/_private/gcp/node.py:GCPCompute.get_new_a...
[ "python/ray/autoscaler/_private/gcp/config.py:build_request" ]
6
Chainlit/chainlit
Chainlit__chainlit-1441
beb44ca74f18b352fa078baf7038c2dc6b729e0c
diff --git a/backend/chainlit/server.py b/backend/chainlit/server.py index b4bf0dd989..7c4a824b68 100644 --- a/backend/chainlit/server.py +++ b/backend/chainlit/server.py @@ -41,6 +41,7 @@ APIRouter, Depends, FastAPI, + File, Form, HTTPException, Query, @@ -839,11 +840,9 @@ async def de...
diff --git a/backend/tests/conftest.py b/backend/tests/conftest.py index 94ae4a596a..7cc4266371 100644 --- a/backend/tests/conftest.py +++ b/backend/tests/conftest.py @@ -1,5 +1,6 @@ import datetime from contextlib import asynccontextmanager +from typing import Callable from unittest.mock import AsyncMock, Mock i...
fix(security): add auth to /project/file get endpoint fixes https://github.com/Chainlit/chainlit/issues/1101
Thanks @qvalentin for the report & fix! We'd like to take this along in the next release. Any chance you could add a regression unittest demonstrating the issue and it's resolution?
1,729,093,492,000
[ "bug", "backend", "security", "review-me", "size:L" ]
Security Vulnerability
[ "backend/chainlit/server.py:upload_file", "backend/chainlit/server.py:get_file" ]
[]
2
scikit-learn/scikit-learn
scikit-learn__scikit-learn-29130
abbaed326c8f0e4a8083979701f01ce581612713
diff --git a/.github/workflows/cuda-gpu-ci.yml b/.github/workflows/cuda-gpu-ci.yml new file mode 100644 index 0000000000000..d962145cfbbc7 --- /dev/null +++ b/.github/workflows/cuda-gpu-ci.yml @@ -0,0 +1,47 @@ +name: CUDA GPU +on: + workflow_dispatch: + inputs: + pr_id: + description: Test the contents ...
diff --git a/build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock b/build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock new file mode 100644 index 0000000000000..38742e34cb4ea --- /dev/null +++ b/build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock @@ -...
Weekly CI run with NVidia GPU hardware Now that #22554 was merged in `main`, it would be great to find a a way to run a weekly scheduled job to run the scikit-learn `main` test on a CI worker with an NVidia GPU and CuPy. In case of failure, it could create a report as [dedicated issues](https://github.com/scikit-le...
Other opensource projects like dask and numba have accounts on https://gpuci.gpuopenanalytics.com/ for instance. Not sure what is the procedure to get scikit-learn accepted there (even with a limited quota of a few GPU hours per month). Ive started looking into this As discussed during the triaging meeting, we could us...
1,716,971,019,000
[ "Build / CI", "Array API" ]
Feature Request
[ "build_tools/update_environments_and_lock_files.py:get_conda_environment_content" ]
[]
1
strawberry-graphql/strawberry
strawberry-graphql__strawberry-3689
74ad18cf843de480204238c50abaa3643998e154
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..0ad55f9b02 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,5 @@ +Release type: minor + +In this release, all types of the legacy graphql-ws protocol were refactored. +The types are now much stricter and precisely model the difference between null and...
diff --git a/strawberry/channels/testing.py b/strawberry/channels/testing.py index 890c7147d2..ec129263b5 100644 --- a/strawberry/channels/testing.py +++ b/strawberry/channels/testing.py @@ -1,6 +1,5 @@ from __future__ import annotations -import dataclasses import uuid from typing import ( TYPE_CHECKING, @@ -...
Refactor graphql-ws message types Both the legacy `graphql-ws` and the newer `graphql-transport-ws` protocols are concerned with the processing of a handful of messages. Our implementation of the newer protocol uses dataclasses to describe messages and their `type`. They are very pleasant to work with and look like ...
Someone asked on Discord for clarification of the following statement: > In our case they are harder to work with. Dataclasses allow us to store the message `type` within the dataclass. With typedicts we have to store the `type` of a message in a separate constant, creating an _implicit_ dependency between the ty...
1,730,949,169,000
[ "bot:has-release-file", "bot:release-type-minor" ]
Feature Request
[ "strawberry/subscriptions/protocols/graphql_ws/handlers.py:BaseGraphQLWSHandler.__init__", "strawberry/subscriptions/protocols/graphql_ws/handlers.py:BaseGraphQLWSHandler.handle_message", "strawberry/subscriptions/protocols/graphql_ws/handlers.py:BaseGraphQLWSHandler.handle_connection_init", "strawberry/subsc...
[]
10
django/django
django__django-18616
b9aa3239ab1328c915684d89b87a49459cabd30b
diff --git a/django/http/response.py b/django/http/response.py index 1dbaf46adda4..4a0ea6701375 100644 --- a/django/http/response.py +++ b/django/http/response.py @@ -627,10 +627,12 @@ def set_headers(self, filelike): class HttpResponseRedirectBase(HttpResponse): allowed_schemes = ["http", "https", "ftp"] - ...
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 3774ff2d6727..f85d33e82338 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -566,6 +566,27 @@ def test_redirect_lazy(self): r = HttpResponseRedirect(lazystr("/redirected/")) self.assertEqual(r.url...
Add 307 and 308 redirect response codes to django.shortcuts.redirect Description Other than 301 and 302 response codes for redirects, there is also: ​https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307 ​https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308 Currently, Django is unaware of these. Propo...
['\u200bhttps://github.com/django/django/pull/18616 Proof of concept until the ticket itself is approved. After that tests and documentation will be updated.', 1727144938.0] ['\u200bhttps://github.com/django/django/pull/18616 Proof of concept until the ticket itself is approved. After that tests and documentation will ...
1,727,162,493,000
[]
Feature Request
[ "django/http/response.py:HttpResponseRedirectBase.__init__", "django/shortcuts.py:redirect" ]
[]
2
Bears-R-Us/arkouda
Bears-R-Us__arkouda-1969
6e3da833ae55173cfc7488faa1e1951c8506a255
diff --git a/arkouda/dataframe.py b/arkouda/dataframe.py index 10c98b1c69..6291b22ff8 100644 --- a/arkouda/dataframe.py +++ b/arkouda/dataframe.py @@ -1457,7 +1457,7 @@ def _prep_data(self, index=False, columns=None): data = {c: self.data[c] for c in columns} if index: - data["Index"]...
diff --git a/tests/dataframe_test.py b/tests/dataframe_test.py index 06c9f83e8c..23ad865b98 100644 --- a/tests/dataframe_test.py +++ b/tests/dataframe_test.py @@ -528,7 +528,7 @@ def test_save(self): akdf.to_parquet(f"{tmp_dirname}/testName") ak_loaded = ak.DataFrame.load(f"{tmp_dirname}/tes...
Multi-column Parquet write inefficiencies Passing along a comment from another developer. " I've noticed that Parquet output from Arkouoda is currently very slow. The Arkouda client library saves multi-column dataframes by sending a separate writeParquet request to the server for each column, adding them to the file on...
Thanks for bringing this issue to our attention. When the Parquet work was implemented, it was before the dataframe functionality had been implemented, so that use case wasn't considered in the initial design. As you have seen, the Parquet append functionality is very sub-optimal and that is because Parquet does not su...
1,671,202,682,000
[]
Performance Issue
[ "arkouda/dataframe.py:DataFrame._prep_data", "arkouda/io.py:_parse_errors", "arkouda/io.py:to_parquet", "arkouda/io.py:read" ]
[]
4
django/django
django__django-18435
95827452571eb976c4f0d5e9ac46843948dd5fe6
diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py index 132ee4c0795a..3795809a1226 100644 --- a/django/core/management/commands/runserver.py +++ b/django/core/management/commands/runserver.py @@ -188,3 +188,12 @@ def on_bind(self, server_port): f"Quit ...
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 2e77f2c97a62..67362460a99d 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1597,6 +1597,13 @@ def test_zero_ip_addr(self): "Starting development server at http://0.0.0.0:8000/", self...
Add warning to runserver that it should not be used for production Description As per this discussion on the ​forum, I think adding a warning to the start of runserver would be valuable to those new to Django and a healthy reminder to those coming back to Django. The wording of the warning is: WARNING: This is a de...
['I think it\'s worth highlighting that it does say "development server": Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. We also have a warning in the \u200brunserver docs and a \u200bwarning in the tutorial (note that the tutorial runserver output would need to be updated if we ...
1,722,443,076,000
[]
Feature Request
[ "django/core/management/commands/runserver.py:Command.on_bind" ]
[]
1
sqlfluff/sqlfluff
sqlfluff__sqlfluff-6399
80f4fc2d3bbc7839e41a9018ae4918118c309656
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8480e8d0e3..bfc033f0990 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,6 @@ repos: [ types-toml, types-chardet, - types-appdirs, types-colorama, ...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index 498b2cd82c3..f9751c96ea1 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -228,8 +228,8 @@ def test__cli__command_extra_config_fail(): ], ], assert_output_contains=( - "Extra confi...
replace deprecated appdirs dependency with platformdirs ### Search before asking - [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues. ### Description https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068011 python3-appdirs is dead upstream[1] and its Debian mai...
1,729,789,307,000
[]
Feature Request
[ "src/sqlfluff/core/config/loader.py:_get_user_config_dir_path", "src/sqlfluff/core/config/loader.py:_load_user_appdir_config", "src/sqlfluff/core/config/loader.py:load_config_up_to_path" ]
[]
3
aiortc/aiortc
aiortc__aiortc-795
f4e3049875142a18fe32ad5f2c052b84a3112e30
diff --git a/src/aiortc/rtcsctptransport.py b/src/aiortc/rtcsctptransport.py index de5d0968d..c9439fc2f 100644 --- a/src/aiortc/rtcsctptransport.py +++ b/src/aiortc/rtcsctptransport.py @@ -1324,8 +1324,7 @@ async def _send( self._outbound_stream_seq[stream_id] = uint16_add(stream_seq, 1) # trans...
Slow sending messages with data channels When I try to send 10 messages per second in datachannel I observe that messages are sent much slower, at 5 message per second. I did a docker example to reproduce: https://gist.github.com/le-chat/844272e8d0f91dcbb61ba98ca635cd6b From logs: ``` 08:32:51.808407 sent №100,...
We have the same issue: We try to send data for every frame which fails at 30fps. For us there is an additional issue: we want the latency to be as low as possible; so the current code has an issue where even after applying your fix it will only send out batches of messages 10 times per second
1,668,887,941,000
[]
Performance Issue
[ "src/aiortc/rtcsctptransport.py:RTCSctpTransport._send" ]
[]
1
mathesar-foundation/mathesar
mathesar-foundation__mathesar-3117
e7b175bc2f7db0ae6e69c723c6a054c6dc2152d8
diff --git a/db/install.py b/db/install.py index 43440b398d..1372659c63 100644 --- a/db/install.py +++ b/db/install.py @@ -1,5 +1,6 @@ +from psycopg.errors import InsufficientPrivilege from sqlalchemy import text -from sqlalchemy.exc import OperationalError +from sqlalchemy.exc import OperationalError, ProgrammingErro...
The requirement of superuser postgresql access is problematic ## Problem Mathesar needs a Postgres superuser to function correctly, from the docs at https://docs.mathesar.org/installation/build-from-source/ ## Proposed solution The mathesar user should not require superuser access. ## Additional context The ...
Thanks for reporting this, @spapas. This is already a high-priority issue for us to resolve, requiring a superuser is one of the compromises we made to get our alpha version out of the door. Hello friends, any news on this issue? This is very important for us and we can't actually use mathesar in procution until the su...
1,690,823,334,000
[ "pr-status: revision" ]
Security Vulnerability
[ "db/install.py:_create_database" ]
[]
1
huggingface/transformers
huggingface__transformers-22498
6fc44656b43f1de939a1e62dd59c45d1fec9f1aa
diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py index 9a6c29c27bdf..27faa252788d 100644 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -336,7 +336,7 @@ def shard_checkpoint( return shards, index -def load_sharded_checkpoint(model, folde...
diff --git a/tests/trainer/test_trainer.py b/tests/trainer/test_trainer.py index 310842713bde..78b6afeacd4e 100644 --- a/tests/trainer/test_trainer.py +++ b/tests/trainer/test_trainer.py @@ -25,6 +25,7 @@ import tempfile import time import unittest +from itertools import product from pathlib import Path from unitt...
Implement safetensors checkpoint loading for Trainer ### Feature request At the moment, Trainer loads models with `torch.load` method directly onto the cpu: (`Trainer._load_from_checkpoint` method) ```python ... # We load the model state dict on the CPU to avoid an OOM error. ...
The checkpoints are not saved in that format so there is no `model.safetensors` file to load from. We could add a training argument to use this format instead of the PyTorch format indeed.
1,680,282,522,000
[]
Feature Request
[ "src/transformers/modeling_utils.py:load_sharded_checkpoint", "src/transformers/trainer.py:Trainer._load_from_checkpoint", "src/transformers/trainer.py:Trainer._load_best_model", "src/transformers/trainer.py:Trainer._save", "src/transformers/trainer.py:Trainer._push_from_checkpoint", "src/transformers/tra...
[]
6
JackPlowman/repo_standards_validator
JackPlowman__repo_standards_validator-137
35962a9fbb5711ab436edca91026428aed1e2d1c
diff --git a/poetry.lock b/poetry.lock index 4c114dc..aec2415 100644 --- a/poetry.lock +++ b/poetry.lock @@ -938,31 +938,31 @@ jinja2 = ["ruamel.yaml.jinja2 (>=0.2)"] [[package]] name = "ruff" -version = "0.9.3" +version = "0.9.5" description = "An extremely fast Python linter and code formatter, written in Rust."...
diff --git a/validator/tests/test_repository_checks.py b/validator/tests/test_repository_checks.py index aed318f..739a97d 100644 --- a/validator/tests/test_repository_checks.py +++ b/validator/tests/test_repository_checks.py @@ -11,6 +11,7 @@ def test_check_repository() -> None: # Arrange + configuration = M...
Fix private vulnerability disclosure incorrect value
1,738,967,972,000
[ "validator", "size/M", "python", "dependencies" ]
Security Vulnerability
[ "validator/__main__.py:main", "validator/repository_checks.py:check_repository", "validator/repository_checks.py:check_repository_security_details" ]
[ "validator/repository_checks.py:get_private_vulnerability_disclosures" ]
3
huggingface/transformers
huggingface__transformers-35453
6b550462139655d488d4c663086a63e98713c6b9
diff --git a/src/transformers/optimization.py b/src/transformers/optimization.py index 0ca5d36d0f40..d00c65925ef2 100644 --- a/src/transformers/optimization.py +++ b/src/transformers/optimization.py @@ -393,45 +393,71 @@ def _get_wsd_scheduler_lambda( num_warmup_steps: int, num_stable_steps: int, num_dec...
diff --git a/tests/optimization/test_optimization.py b/tests/optimization/test_optimization.py index 6982583d2bec..4ab248e75a9a 100644 --- a/tests/optimization/test_optimization.py +++ b/tests/optimization/test_optimization.py @@ -153,8 +153,8 @@ def test_schedulers(self): [0.0, 5.0, 10.0, 8.165, 7.071...
Support Constant Learning Rate with Cooldown ### Feature request In `transformers.optimization` support `constant learning rate with cooldown` functions. ### Motivation This method will implement that scaling experiments can be performed with significantly reduced compute and GPU hours by utilizing fewer but reusa...
1,735,486,425,000
[]
Feature Request
[ "src/transformers/optimization.py:_get_wsd_scheduler_lambda", "src/transformers/optimization.py:get_wsd_schedule", "src/transformers/optimization.py:get_scheduler" ]
[]
3
Second-Hand-Friends/kleinanzeigen-bot
Second-Hand-Friends__kleinanzeigen-bot-388
3d27755207e8433bfdc36e490c39ab5dc7d42ca1
diff --git a/README.md b/README.md index d8c1c0c..d61a812 100644 --- a/README.md +++ b/README.md @@ -281,7 +281,6 @@ browser: login: username: "" password: "" - ``` ### <a name="ad-config"></a>2) Ad configuration @@ -342,9 +341,11 @@ contact: republication_interval: # every X days the ad should be re-publ...
[ENH] Change detection ### 😕 Addressed Problem If i change something like the text and try to republish it does not work if the publish interval is not met ### 💡 Suggested Solution Save a hash from the config file to have change detection #### Problems: - Does not detect changes in images if they have the ...
With which options do you start the bot? --ads=all or --ads=<id> will post a new ad and delete the old one. Only due will do nothing as excepted. I did not add the --ads parameter, i just run publish So one possibility could be to set the ads parameter according your needs. "all" to republish all ads or the specific id...
1,737,749,292,000
[]
Feature Request
[ "src/kleinanzeigen_bot/__init__.py:KleinanzeigenBot.load_ads", "src/kleinanzeigen_bot/__init__.py:KleinanzeigenBot.publish_ad", "src/kleinanzeigen_bot/extract.py:AdExtractor._extract_ad_page_info" ]
[ "src/kleinanzeigen_bot/__init__.py:KleinanzeigenBot.__check_ad_republication", "src/kleinanzeigen_bot/utils.py:calculate_content_hash" ]
3
una-auxme/paf
una-auxme__paf-565
d63c492cb30b3091789dfd2b7179c65ef8c4a55a
diff --git a/code/perception/src/lidar_distance.py b/code/perception/src/lidar_distance.py old mode 100644 new mode 100755 index 939224c5..5c937be0 --- a/code/perception/src/lidar_distance.py +++ b/code/perception/src/lidar_distance.py @@ -3,7 +3,7 @@ import rospy import ros_numpy import numpy as np -import lidar_fi...
Seperate tasks from lidar_distance in seperate nodes for better performance ### Feature Description The tasks of image calculation and clustering data points should be seperated into seperate nodes to improve the node performance which should reduce the latency in the visualization. ### Definition of Done - Create l...
1,734,020,557,000
[]
Performance Issue
[ "code/perception/src/lidar_distance.py:LidarDistance.calculate_image", "code/perception/src/lidar_distance.py:LidarDistance.reconstruct_img_from_lidar" ]
[]
2
mesonbuild/meson-python
mesonbuild__meson-python-681
d6b5580a4b92da32b3490701767f3b4abc923f05
diff --git a/docs/reference/meson-compatibility.rst b/docs/reference/meson-compatibility.rst index 743dde4a2..6b339d60e 100644 --- a/docs/reference/meson-compatibility.rst +++ b/docs/reference/meson-compatibility.rst @@ -45,6 +45,14 @@ versions. Meson 1.3.0 or later is required for compiling extension modules t...
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0bfca7e2d..cc48c21c0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -98,10 +98,6 @@ jobs: - os: windows-latest python: '3.12' meson: '@git+https://github.com/mesonbuild/meson....
Allow `license` to be listed in the dynamic section Meson already has `project(license:)`. Would it be possible to autodetect it dynamically? For instace, I have `'Apache-2.0 OR MIT'` as the value in `project()`. I would like this to populate the `license = { text = "XXX" }` metadata like this project already does with...
Thanks for the suggestion! However, I think the semantics are a little bit different, `XXX` in your example would be the actual license text, so "Apache-2.0 OR MIT" wouldn't be the correct value. There's no way to specify that currently, but hopefully there will be with [PEP 639](https://peps.python.org/pep-0639/), whi...
1,728,725,347,000
[ "enhancement" ]
Feature Request
[ "mesonpy/__init__.py:Metadata.from_pyproject", "mesonpy/__init__.py:_WheelBuilder._license_file", "mesonpy/__init__.py:_WheelBuilder._wheel_write_metadata", "mesonpy/__init__.py:Project.__init__", "mesonpy/__init__.py:Project._meson_name", "mesonpy/__init__.py:Project._meson_version", "mesonpy/__init__....
[ "mesonpy/__init__.py:canonicalize_license_expression", "mesonpy/__init__.py:Project._meson_license", "mesonpy/__init__.py:Project._meson_license_files" ]
8
django/django
django__django-19043
0cabed9efa2c7abd1693860069f20ec5db41fcd8
diff --git a/django/forms/fields.py b/django/forms/fields.py index 202a6d72c878..4bd9c352f270 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -95,6 +95,7 @@ class Field: "required": _("This field is required."), } empty_values = list(validators.EMPTY_VALUES) + bound_field_class...
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index b41424d43d64..20c86754c6e5 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -8,6 +8,7 @@ from django.core.validators import MaxValueValidator, RegexValidator from django.fo...
Allow overriding BoundField class on forms and fields Description It would be useful if there was an easy way to add CSS classes to the HTML element which is generated when rendering a BoundField. I propose adding field_css_class, similar to required_css_class and error_css_class. ​https://docs.djangoproject.com/en/...
1,736,837,596,000
[]
Feature Request
[ "django/forms/fields.py:Field.__init__", "django/forms/fields.py:Field.get_bound_field", "django/forms/forms.py:BaseForm.__init__" ]
[]
3
sagemath/sage
sagemath__sage-39065
dc99dc846c5ebebddec75c4eb184d8cccf4996a5
diff --git a/src/sage/graphs/matching.py b/src/sage/graphs/matching.py index c8eea2bb005..66e87683be8 100644 --- a/src/sage/graphs/matching.py +++ b/src/sage/graphs/matching.py @@ -877,7 +877,7 @@ def is_matching_covered(G, matching=None, algorithm='Edmonds', coNP_certificate= sage: H = graphs.PathGraph(20) ...
On Decompositions, Generation Methods and related concepts in the theory of Matching Covered Graphs ### Problem Description Matchings and perfect matchings have received considerable attention in graph theory as well as in other related domains (such as, but not limited to, algorithms and optimization). There still ...
1,733,040,433,000
[ "c: graph theory" ]
Feature Request
[ "src/sage/graphs/matching.py:is_matching_covered", "src/sage/graphs/matching_covered_graph.py:MatchingCoveredGraph.allow_loops", "src/sage/graphs/matching_covered_graph.py:MatchingCoveredGraph.allows_loops", "src/sage/graphs/matching_covered_graph.py:MatchingCoveredGraph.maximal_barrier", "src/sage/graphs/m...
[ "src/sage/graphs/matching_covered_graph.py:MatchingCoveredGraph.is_brace", "src/sage/graphs/matching_covered_graph.py:MatchingCoveredGraph.is_brick" ]
9
python/cpython
python__cpython-7926
8463cb55dabb78571e32d8c8c7de8679ab421c2c
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index 89b645702d334d..2ea02ec04d661a 100644 --- a/Lib/idlelib/macosx.py +++ b/Lib/idlelib/macosx.py @@ -174,9 +174,8 @@ def overrideRootMenu(root, flist): del mainmenu.menudefs[-3][1][0:2] menubar = Menu(root) root.configure(menu=menubar) - me...
IDLE maxosc.overrideRootMenu: remove unused menudict BPO | [33964](https://bugs.python.org/issue33964) --- | :--- Nosy | @terryjreedy, @csabella PRs | <li>python/cpython#7926</li> Dependencies | <li>bpo-33963: IDLE macosx: add tests.</li> <sup>*Note: these values reflect the state of the issue at the time it was migra...
Function local name 'menudict' is initialized empty, two key value pairs are added, and it is never touched again.
1,529,986,082,000
[ "skip news" ]
Performance Issue
[ "Lib/idlelib/macosx.py:overrideRootMenu" ]
[]
1
numpy/numpy
numpy__numpy-10615
e20f11036bb7ce9f8de91eb4240e49ea4e41ef17
diff --git a/doc/release/upcoming_changes/10615.deprecation.rst b/doc/release/upcoming_changes/10615.deprecation.rst new file mode 100644 index 000000000000..7fa948ea85be --- /dev/null +++ b/doc/release/upcoming_changes/10615.deprecation.rst @@ -0,0 +1,14 @@ +Only ndim-0 arrays are treated as scalars +-----------------...
diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index b92a20a12cea..e47a24995067 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -822,6 +822,18 @@ def test_deprecated_raised(self, dtype): assert isinstance(e.__...
deprecate scalar conversions for rank>0 arrays Numpy allows for conversion of arrays into scalars if they are size-1, i.e., ```python float(numpy.array(1.0)) # 1.0 float(numpy.array([1.0])) # 1.0 float(numpy.array([[[[1.0]]]])) # 1.0 # TypeError: only size-1 arrays can be converted to Python scalars float(n...
Personally agree with you (there is a reason we got rid of the `operator.index` equivalent thing, where it was causing obvious problems) and would encourage anyone to try it. But… I expect there are some annoying cases to solve and it might have a pretty large downstream impact which would make it a very slow change i...
1,518,819,855,000
[ "component: numpy._core", "07 - Deprecation", "62 - Python API" ]
Feature Request
[ "numpy/core/function_base.py:linspace" ]
[]
1
pandas-dev/pandas
pandas-dev__pandas-29944
aae9234e816469391512910e8265552f215d6263
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 45c32d689bd5b..fccfbb98f2591 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -133,6 +133,7 @@ Other enhancements - :meth:`MultiIndex.to_frame` now supports the argument ``allow_duplicates`` and raises...
diff --git a/pandas/tests/plotting/frame/test_frame.py b/pandas/tests/plotting/frame/test_frame.py index c4ce0b256cd41..3ec3744e43653 100644 --- a/pandas/tests/plotting/frame/test_frame.py +++ b/pandas/tests/plotting/frame/test_frame.py @@ -2071,6 +2071,90 @@ def test_plot_no_numeric_data(self): with pytest.ra...
ENH: Group some columns in subplots with DataFrame.plot `df.plot(subplots=True)` will create one subplot per column. Is there a way to group multiple columns on the same subplot (and leave the rest of the column separated)? I'd be happy to submit a PR if that's something you'd consider? In terms of API `subplot` c...
Just to make sure I understand, `df.plot(subplots=[('a', 'b'), ('d', 'e', 'f')])` would have two axes? I'm not sure, but I'm guessing it'd be somewhat complicated to work that into our current `subplots` logic. At glance, it looks like we assume `subplots=True` -> one axes per column in several places. > `df.plot(su...
1,575,230,687,000
[ "Enhancement", "Visualization" ]
Feature Request
[ "pandas/plotting/_matplotlib/core.py:MPLPlot.__init__", "pandas/plotting/_matplotlib/core.py:MPLPlot._setup_subplots", "pandas/plotting/_matplotlib/core.py:MPLPlot._get_ax" ]
[ "pandas/plotting/_matplotlib/core.py:MPLPlot._validate_subplots_kwarg", "pandas/plotting/_matplotlib/core.py:MPLPlot._col_idx_to_axis_idx" ]
3
scikit-learn/scikit-learn
scikit-learn__scikit-learn-16948
7d93ca87ea14ef8f16be43d75cff72d05f48f7ed
diff --git a/doc/computing/scaling_strategies.rst b/doc/computing/scaling_strategies.rst index 5eee5728e4b9a..277d499f4cc13 100644 --- a/doc/computing/scaling_strategies.rst +++ b/doc/computing/scaling_strategies.rst @@ -80,6 +80,7 @@ Here is a list of incremental estimators for different tasks: + :class:`sklear...
diff --git a/sklearn/decomposition/tests/test_nmf.py b/sklearn/decomposition/tests/test_nmf.py index cca0fad114ae5..9f3df5b64a803 100644 --- a/sklearn/decomposition/tests/test_nmf.py +++ b/sklearn/decomposition/tests/test_nmf.py @@ -1,10 +1,13 @@ import re +import sys +from io import StringIO import numpy as np im...
Online implementation of Non-negative Matrix Factorizarion (NMF) <!-- If your issue is a usage question, submit it here instead: - StackOverflow with the scikit-learn tag: https://stackoverflow.com/questions/tagged/scikit-learn - Mailing List: https://mail.python.org/mailman/listinfo/scikit-learn For more informati...
Nice figure! Let me see with the others if this should go in. Could you run on a wikipedia text example? Here is a benchmark on word counts for the first paragraph of 500k wikipedia articles. To speed up calculations, I used a HashingVectorizer with 4096 features. The KL divergence is calculated on 50k test samples. ...
1,587,129,543,000
[ "Waiting for Reviewer", "module:decomposition" ]
Feature Request
[ "sklearn/decomposition/_nmf.py:norm", "sklearn/decomposition/_nmf.py:_beta_divergence", "sklearn/decomposition/_nmf.py:_fit_coordinate_descent", "sklearn/decomposition/_nmf.py:_multiplicative_update_w", "sklearn/decomposition/_nmf.py:_multiplicative_update_h", "sklearn/decomposition/_nmf.py:_fit_multiplic...
[ "sklearn/decomposition/_nmf.py:MiniBatchNMF.__init__", "sklearn/decomposition/_nmf.py:MiniBatchNMF._check_params", "sklearn/decomposition/_nmf.py:MiniBatchNMF._solve_W", "sklearn/decomposition/_nmf.py:MiniBatchNMF._minibatch_step", "sklearn/decomposition/_nmf.py:MiniBatchNMF._minibatch_convergence", "skle...
9
Agenta-AI/agenta
Agenta-AI__agenta-2345
b265e061bdcb67f7c6cb5b2e1666453fb2b8e930
diff --git a/agenta-backend/agenta_backend/models/api/evaluation_model.py b/agenta-backend/agenta_backend/models/api/evaluation_model.py index 913f00c500..44f3ed500d 100644 --- a/agenta-backend/agenta_backend/models/api/evaluation_model.py +++ b/agenta-backend/agenta_backend/models/api/evaluation_model.py @@ -2,7 +2,7 ...
AG-26 - API route to fetch llm calls
1,733,481,363,000
[ "dependencies", "size:M" ]
Feature Request
[ "agenta-backend/agenta_backend/services/llm_apps_service.py:extract_result_from_response", "agenta-backend/agenta_backend/tasks/evaluations.py:evaluate" ]
[ "agenta-backend/agenta_backend/models/api/evaluation_model.py:NewEvaluation.validate_lm_providers_keys" ]
2
Agenta-AI/agenta
Agenta-AI__agenta-2336
0dbae65d52384baae7e4fa7aa0142a3c776c2e0f
diff --git a/agenta-backend/agenta_backend/models/api/evaluation_model.py b/agenta-backend/agenta_backend/models/api/evaluation_model.py index 913f00c500..44f3ed500d 100644 --- a/agenta-backend/agenta_backend/models/api/evaluation_model.py +++ b/agenta-backend/agenta_backend/models/api/evaluation_model.py @@ -2,7 +2,7 ...
AG-26 - API route to fetch llm calls
1,733,310,421,000
[ "Backend", "dependencies", "size:M" ]
Feature Request
[ "agenta-backend/agenta_backend/services/llm_apps_service.py:extract_result_from_response", "agenta-backend/agenta_backend/tasks/evaluations.py:evaluate" ]
[ "agenta-backend/agenta_backend/models/api/evaluation_model.py:NewEvaluation.validate_lm_providers_keys" ]
2
VecherVhatuX/learning_data_science_in_prison
VecherVhatuX__learning_data_science_in_prison-575
c6f914ce40091d3da1c1580e98e2f3959b6b1490
diff --git a/main.py b/main.py index 16e1272..1fa6232 100644 --- a/main.py +++ b/main.py @@ -56,10 +56,17 @@ class TrainingConfig: class DatasetBase(Dataset): def __init__(self, data, model_args, num_negative_samples=0): self.data = data - self.input_ids = np.array([example["input"] if model_args....
Simplify Data Processing Pipeline and Remove Duplicate Code in CustomDataset and TripletDataset Classes The current codebase features duplicated code in the `CustomDataset` and `TripletDataset` classes and lacks flexibility in its data processing pipeline, making it hard to maintain and extend in the future. This pull ...
1,731,542,269,000
[]
Feature Request
[ "main.py:DatasetBase.__init__" ]
[ "main.py:DatasetBase._process_input", "main.py:DatasetBase._process_output" ]
1
VecherVhatuX/learning_data_science_in_prison
VecherVhatuX__learning_data_science_in_prison-1447
55cf85e21cee96ea10690f385662b51d8a553c05
diff --git a/main.py b/main.py index e6e458e..a2efb47 100644 --- a/main.py +++ b/main.py @@ -45,51 +45,50 @@ class Config: random_seed: int = 42 resume_checkpoint: str = None -class CustomDataset(Dataset): - def __init__(self, chat_format, data): - self.chat_format = chat_format - self.data...
Inconsistent naming conventions and lack of type hinting in existing code, needs improvement for better scalability The existing code has inconsistent naming conventions and lacks proper type hinting, leading to decreased readability and maintainability. Additionally, the model architecture and dataset preparation can ...
1,732,185,394,000
[]
Feature Request
[ "main.py:CustomDataset.__init__", "main.py:CustomDataset.prepare", "main.py:CustomDataset.__getitem__", "main.py:Model.__init__", "main.py:Model.forward", "main.py:Trainer.__init__", "main.py:Trainer.training_step", "main.py:Trainer.training_epoch", "main.py:load_dataset", "main.py:main" ]
[ "main.py:DatasetImpl.__init__", "main.py:DatasetImpl._prepare", "main.py:DatasetImpl.__getitem__", "main.py:ModelImpl.__init__", "main.py:ModelImpl.forward", "main.py:TrainerImpl.__init__", "main.py:TrainerImpl.training_step", "main.py:TrainerImpl.training_epoch", "main.py:_load_dataset", "main.py...
10
WxboySuper/Productivity-App
WxboySuper__Productivity-App-77
0145802515e93babc6af8235fa2caa6e0071c87d
diff --git a/requirements.txt b/requirements.txt index 74936d4..daa8aa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ flask==3.1.0 -coverage==7.6.10 \ No newline at end of file +coverage==7.6.10 +psutil==6.1.1 \ No newline at end of file diff --git a/src/python/server.py b/src/python/server.py i...
diff --git a/src/tests/test_server.py b/src/tests/test_server.py index b507fb4..9ee0d1a 100644 --- a/src/tests/test_server.py +++ b/src/tests/test_server.py @@ -1,6 +1,8 @@ -from python.server import app, AppContext, signal_handler +from python.server import app, signal_handler, AppContext, signal import unittest -imp...
Create Basic Health Check in server.py
1,736,005,961,000
[ "Testing", "dependencies", "halt-rabbit-review", "python" ]
Feature Request
[ "src/python/server.py:health_check" ]
[ "src/python/server.py:check_database_health" ]
1
sympy/sympy
sympy__sympy-27051
a912bdfea081dd08b727118ce8bbc0f45c246730
diff --git a/.mailmap b/.mailmap index d36148d403cc..76ae38efbf77 100644 --- a/.mailmap +++ b/.mailmap @@ -197,6 +197,7 @@ Aaron Meurer <asmeurer@gmail.com> Aaron Miller <acmiller273@gmail.com> Aaron Stiff <69512633+AaronStiff@users.noreply.github.com> Aaryan Dewan <aaryandewan@yahoo.com> Aaryan Dewan <49852384+aary...
`prime(n)` is very slow ```python In [4]: %time [[prime(n) for i in range(n)] for n in range(1, 10)] CPU times: user 180 ms, sys: 7.68 ms, total: 187 ms Wall time: 185 ms Out[4]: [[2], [3, 3], [5, 5, 5], [7, 7, 7, 7], [11, 11, 11, 11, 11], [13, 13, 13, 13, 13, 13], [17, 17, 17, ↪ ↪ 17, 17, 17, 17], [19, 19, 1...
I agree with setting a threshold and using the sieve for cases where `n` is below that threshold. However, I think we can only determine the specific value through experimentation. Expanding the `sieve` to an appropriate length is important not just for `prime` but for many `ntheory` functions. Therefore, I think it...
1,725,886,272,000
[]
Performance Issue
[ "sympy/ntheory/generate.py:prime" ]
[]
1
numba/numba
numba__numba-9757
b49469f06176769ecfa47a7865ef2030f4ed77f4
diff --git a/docs/upcoming_changes/9757.bug_fix.rst b/docs/upcoming_changes/9757.bug_fix.rst new file mode 100644 index 00000000000..17a239ef57c --- /dev/null +++ b/docs/upcoming_changes/9757.bug_fix.rst @@ -0,0 +1,6 @@ +Fix excessive memory use/poor memory behaviour in the dispatcher for non-fingerprintable types. +--...
Calling a @jit function with a type that cannot be "fingerprinted" uses excessive memory <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/nu...
1,729,170,497,000
[ "5 - Ready to merge" ]
Performance Issue
[ "numba/core/dispatcher.py:_DispatcherBase.__init__", "numba/core/dispatcher.py:_DispatcherBase._compile_for_args", "numba/core/dispatcher.py:_DispatcherBase.typeof_pyval" ]
[]
3
Kuuuube/kanjigrid
Kuuuube__kanjigrid-11
79aecf8bcbb3c6d575470484df61abe8432167f8
diff --git a/__init__.py b/__init__.py index 957f2bd..425dfb2 100644 --- a/__init__.py +++ b/__init__.py @@ -12,11 +12,12 @@ from functools import reduce from anki.utils import ids2str -from aqt import mw, dialogs +from aqt import mw, dialogs, gui_hooks from aqt.webview import AnkiWebView from aqt.qt import (QAct...
[Feature request] Context menu for easy access to all "X on click" functions Hello there! Having used this addon for a few months now, I find that the default 'Copy' context menu action isn't very effective, considering how finicky it is to actually select a kanji in the grid 🤕. Also, having clicking be assigned o...
Any thoughts on this? Sorry for adding a diff patch instead of opening a pr, didn't want to impose since it's a feature request and not a bugfix 😅 Also I realised it might be better to use a `setTimeout` to avoid spamming `bridgeCommand` when moving the pointer quickly across the grid. Please let me know if you'd l...
1,731,372,861,000
[ "enhancement" ]
Feature Request
[ "__init__.py:KanjiGrid.generate", "__init__.py:KanjiGrid.displaygrid", "save.py:savehtml" ]
[ "__init__.py:KanjiGrid.open_search_link", "__init__.py:KanjiGrid.link_handler", "__init__.py:KanjiGrid.add_webview_context_menu_items" ]
3
ray-project/ray
ray-project__ray-48186
8de0bd3ca1c80378b83722ba561573983d8b3f8a
diff --git a/python/ray/data/_internal/datasource/range_datasource.py b/python/ray/data/_internal/datasource/range_datasource.py index 50dedbdf2fedd..69318d6b424e1 100644 --- a/python/ray/data/_internal/datasource/range_datasource.py +++ b/python/ray/data/_internal/datasource/range_datasource.py @@ -1,5 +1,4 @@ import...
Fix flake8 rule B019 This is a subtask of https://github.com/ray-project/ray/issues/47991. See the parent issue for more information. https://github.com/PyCQA/flake8-bugbear
Hi @MortalHappiness, i can help with this issue.
1,729,604,522,000
[ "go" ]
Bug Report
[ "python/ray/data/_internal/datasource/range_datasource.py:RangeDatasource.__init__", "python/ray/data/_internal/datasource/range_datasource.py:RangeDatasource.get_read_tasks", "python/ray/data/_internal/datasource/range_datasource.py:RangeDatasource._schema", "python/ray/data/_internal/logical/operators/from_...
[ "python/ray/data/_internal/datasource/range_datasource.py:RangeDatasource._get_schema", "python/ray/data/_internal/datasource/range_datasource.py:RangeDatasource._compute_schema", "python/ray/data/_internal/logical/operators/from_operators.py:AbstractFrom._compute_output_metadata", "python/ray/data/_internal/...
9
jobatabs/textec
jobatabs__textec-53
951409c20a2cf9243690b9bda7f7a22bb7c999a7
diff --git a/src/repositories/reference_repository.py b/src/repositories/reference_repository.py index 7768842..6d0d67b 100644 --- a/src/repositories/reference_repository.py +++ b/src/repositories/reference_repository.py @@ -34,14 +34,14 @@ def delete_reference(_id): db.session.commit() -def create_reference(r...
Fix code scanning alert - SQL doesn't use :symbols Tracking issue for: - [x] https://github.com/jobatabs/textec/security/code-scanning/3
1,733,481,438,000
[]
Security Vulnerability
[ "src/repositories/reference_repository.py:create_reference" ]
[]
1
nofusscomputing/centurion_erp
nofusscomputing__centurion_erp-418
afc0c6660240d72635ed646fdc72e6a794244ae9
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index aa5d2c6d8..3ca032cf1 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,6 +20,9 @@ <!-- dont remove tasks below strike through including the checkbox by enclosing in double tidle '~~' --> ...
diff --git a/app/api/tests/unit/test_navigation_menu.py b/app/api/tests/unit/test_navigation_menu.py new file mode 100644 index 000000000..7ac7a91d7 --- /dev/null +++ b/app/api/tests/unit/test_navigation_menu.py @@ -0,0 +1,1557 @@ +from django.contrib.auth.models import User +from django.contrib.contenttypes.models imp...
Hide navigation items when user lacks permission API v2 provides the navigation structure for the UI to build the navigation tree. This needs to be filtered. ## Details If a user lacks permission for the location of the nav path, filter it out so it's not rendered within the interface. ## Tasks - [x] Fi...
1,733,644,747,000
[ "type::task", "task::test" ]
Feature Request
[ "app/api/react_ui_metadata.py:ReactUIMetadata.get_navigation" ]
[ "app/api/serializers/common.py:OrganizationField.get_queryset" ]
1
NextGenContributions/nitpick
NextGenContributions__nitpick-22
754acfa75d0a18c7e90426a6377d81857e35cdc0
diff --git a/docs/nitpick_section.rst b/docs/nitpick_section.rst index 768db54b..2d3b8c56 100644 --- a/docs/nitpick_section.rst +++ b/docs/nitpick_section.rst @@ -50,15 +50,15 @@ The message is optional. Comma separated values ^^^^^^^^^^^^^^^^^^^^^^ -On ``setup.cfg``, some keys are lists of multiple values separate...
diff --git a/tests/test_builtin/real.toml b/tests/test_builtin/real.toml index aa41462e..fbf2db94 100644 --- a/tests/test_builtin/real.toml +++ b/tests/test_builtin/real.toml @@ -36,5 +36,5 @@ include = [ "py://nitpick/resources/javascript/package-json", ] -[nitpick.files."setup.cfg"] -comma_separated_values = ...
Rework support for comma separated values config - flake8 config has comma separated string value that can't be properly parsed and requires https://nitpick.readthedocs.io/en/latest/nitpick_section.html#comma-separated-values - We prefer `.flake8` config over `setup.cfg` for clarity and nitpick has implemented `comma-s...
1,738,659,925,000
[]
Feature Request
[ "src/nitpick/plugins/base.py:NitpickPlugin.nitpick_file_dict", "src/nitpick/plugins/base.py:NitpickPlugin.entry_point", "src/nitpick/plugins/ini.py:IniPlugin.post_init" ]
[ "src/nitpick/plugins/ini.py:IniPlugin.comma_separated_values_dict" ]
3
Clinical-Genomics/cg
Clinical-Genomics__cg-4182
8295f4a3c4d530f1fc51f4d92ac7d0309391a116
diff --git a/cg/services/orders/storing/implementations/fastq_order_service.py b/cg/services/orders/storing/implementations/fastq_order_service.py index ea6df4656b..ba3b149237 100644 --- a/cg/services/orders/storing/implementations/fastq_order_service.py +++ b/cg/services/orders/storing/implementations/fastq_order_serv...
diff --git a/tests/services/orders/store_service/test_fastq_order_service.py b/tests/services/orders/store_service/test_fastq_order_service.py index d42b1cd186..5281d338ee 100644 --- a/tests/services/orders/store_service/test_fastq_order_service.py +++ b/tests/services/orders/store_service/test_fastq_order_service.py @...
One Case Per Sample for FASTQ <!-- Filled in by the Product Owner or the Stakeholders. --> As a user assigned to the pipeline FASTQ, I want one case per sample, So that the order-view in Trailblazer would tell me if a sample failed on amount of reads. # Acceptance Criteria <!-- Filled in by the Product Own...
@karlnyr, This is a start at least As a user of the trailblazer order view I would like to have FASTQ order stratified on a sample level and an indication whether samples did not reach the required amount of reads. @RasmusBurge-CG Is this right? Added to refinement 19-06-2024 > As a user of the trailblazer order v...
1,738,749,543,000
[]
Feature Request
[ "cg/services/orders/storing/implementations/fastq_order_service.py:StoreFastqOrderService.store_order_data_in_status_db", "cg/services/orders/storing/implementations/fastq_order_service.py:StoreFastqOrderService._create_db_case", "cg/services/orders/storing/implementations/microbial_fastq_order_service.py:Store...
[ "cg/services/orders/storing/implementations/fastq_order_service.py:StoreFastqOrderService._create_db_case_for_sample" ]
3
django/django
django__django-19009
5f30fd2358fd60a514bdba31594bfc8122f30167
diff --git a/django/contrib/gis/db/backends/base/models.py b/django/contrib/gis/db/backends/base/models.py index 589c872da611..38309f0e5dea 100644 --- a/django/contrib/gis/db/backends/base/models.py +++ b/django/contrib/gis/db/backends/base/models.py @@ -1,4 +1,5 @@ from django.contrib.gis import gdal +from django.uti...
diff --git a/tests/gis_tests/test_spatialrefsys.py b/tests/gis_tests/test_spatialrefsys.py index 512fd217c375..b87dcf8b9293 100644 --- a/tests/gis_tests/test_spatialrefsys.py +++ b/tests/gis_tests/test_spatialrefsys.py @@ -1,5 +1,6 @@ import re +from django.contrib.gis.db.backends.base.models import SpatialRefSysMix...
Refactoring SpatialRefSysMixin.srs for efficiency and better error handling Description (last modified by Arnaldo Govene) The srs property in the SpatialRefSysMixin class has several issues that can be addressed to improve code efficiency, maintainability, and adherence to best practices. The following points high...
['Thank you, agree the error overwrite could be improved, the caching logic is also due a refresh', 1735805940.0] ['Thank you, agree the error overwrite could be improved, the caching logic is also due a refresh', 1735805940.0]
1,736,246,205,000
[]
Performance Issue
[ "django/contrib/gis/db/backends/base/models.py:SpatialRefSysMixin.srs" ]
[]
1
internetarchive/openlibrary
internetarchive__openlibrary-3196
061f07ec54cec6ffd169580641eb87144fe7ea14
diff --git a/openlibrary/plugins/upstream/utils.py b/openlibrary/plugins/upstream/utils.py index 24ab1af95e9..d9773e1c4c9 100644 --- a/openlibrary/plugins/upstream/utils.py +++ b/openlibrary/plugins/upstream/utils.py @@ -761,7 +761,8 @@ def setup(): 'request': Request(), 'logger': logging.getLogger("o...
XSS issues on books page <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> XSS issues ### Evidence / Screenshot (if possible) ### Relevant url? https://openlibrary.org/books/OL27912983M/'_script_alert(_Ultra_Security_)_script https://twitter.com/BugsBun751...
https://openlibrary.org/people/darkscanner this is the corresponding patron who reported the XSS vectors Should I fix this issue or somebody is already working? @cYph3r1337 Go for it! Let us know if you have any questions; https://github.com/internetarchive/openlibrary/wiki/Frontend-Guide has a good summary of how temp...
1,584,392,077,000
[]
Security Vulnerability
[ "openlibrary/plugins/upstream/utils.py:setup" ]
[]
1
pandas-dev/pandas
pandas-dev__pandas-21401
2a097061700e2441349cafd89348c9fc8d14ba31
diff --git a/doc/source/io.rst b/doc/source/io.rst index 9aff1e54d8e98..fa6a8b1d01530 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4989,6 +4989,54 @@ with respect to the timezone. timezone aware or naive. When reading ``TIMESTAMP WITH TIME ZONE`` types, pandas will convert the data to UTC. +.. _io.sql...
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index eeeb55cb8e70c..c346103a70c98 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -375,12 +375,16 @@ def _read_sql_iris_named_parameter(self): iris_frame = self.pandasSQL.read_query(query, params=params) ...
Use multi-row inserts for massive speedups on to_sql over high latency connections I have been trying to insert ~30k rows into a mysql database using pandas-0.15.1, oursql-0.9.3.1 and sqlalchemy-0.9.4. Because the machine is as across the atlantic from me, calling `data.to_sql` was taking >1 hr to insert the data. On i...
This seems reasonable. Thanks for investigating this! For the implementation, it will depend on how sqlalchemy deals with database flavors that does not support this (I can't test this at the moment, but it seems that sqlalchemy raises an error (eg http://stackoverflow.com/questions/23886764/multiple-insert-statements...
1,528,542,064,000
[ "Enhancement", "Performance", "IO SQL" ]
Feature Request
[ "pandas/core/generic.py:NDFrame.to_sql", "pandas/io/sql.py:to_sql", "pandas/io/sql.py:SQLTable.insert_statement", "pandas/io/sql.py:SQLTable._execute_insert", "pandas/io/sql.py:SQLTable.insert", "pandas/io/sql.py:SQLDatabase.to_sql", "pandas/io/sql.py:SQLiteDatabase.to_sql" ]
[ "pandas/io/sql.py:SQLTable._execute_insert_multi" ]
7
django/django
django__django-13134
3071660acfbdf4b5c59457c8e9dc345d5e8894c5
diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index e200fdeb1e0c..600944ebc022 100644 --- a/django/contrib/admin/sites.py +++ b/django/contrib/admin/sites.py @@ -3,19 +3,23 @@ from weakref import WeakSet from django.apps import apps +from django.conf import settings from django.contrib...
diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py index 4a72e3070f1d..1140f0349602 100644 --- a/tests/admin_views/admin.py +++ b/tests/admin_views/admin.py @@ -15,10 +15,11 @@ from django.core.mail import EmailMessage from django.db import models from django.forms.models import BaseModelFormSet -f...
Avoid potential admin model enumeration Description When attacking a default Django server (one created with startproject is sufficient), you can enumerate the names of the applications and models by fuzzing the admin URL path. A redirect indicates that the model exists in that application, while a 404 indicates it ...
["Thanks Daniel. Pasting here extracts from the security team discussion. This idea of adding a final_catch_all_pattern seems most likely: Well, I vaguely recalled, and managed to find, \u200bhttps://groups.google.com/d/msgid/django-developers/CAHdnYzu2zHVMcrjsSRpvRrdQBMntqy%2Bh0puWB2-uB8GOU6Tf7g%40mail.gmail.com where...
1,593,639,332,000
[]
Security Vulnerability
[ "django/contrib/admin/sites.py:AdminSite.get_urls" ]
[ "django/contrib/admin/sites.py:AdminSite.catch_all_view" ]
1
webcompat/webcompat.com
webcompat__webcompat.com-2731
384c4feeef14a13655b8264dde9f10bfa5614134
diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e91e837e..a065b8326 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,7 +58,7 @@ jobs: nosetests npm run lint npm run build - npm run test:js -- --reporters="runner" --firefoxBinary=`which...
diff --git a/tests/fixtures/api/issues.7a8b2d603c698b0e98a26c77661d12e2.json b/tests/fixtures/api/issues.7a8b2d603c698b0e98a26c77661d12e2.json index 69dae89cc..7775bcddd 100644 --- a/tests/fixtures/api/issues.7a8b2d603c698b0e98a26c77661d12e2.json +++ b/tests/fixtures/api/issues.7a8b2d603c698b0e98a26c77661d12e2.json @@ ...
Removes unnecessary use of markdown-it The Github API already [offers a markdown version](https://developer.github.com/v3/media/#html) for the requests we're making, so it's not necessary to use markdown-it to process our requests. However we still need it to format users comments, so we're still using it on all of...
1,544,481,443,000
[]
Performance Issue
[ "webcompat/api/endpoints.py:proxy_issue", "webcompat/api/endpoints.py:edit_issue", "webcompat/api/endpoints.py:proxy_issues", "webcompat/api/endpoints.py:get_user_activity_issues", "webcompat/api/endpoints.py:get_issue_category", "webcompat/api/endpoints.py:get_search_results", "webcompat/api/endpoints....
[]
10
scikit-learn/scikit-learn
scikit-learn__scikit-learn-14012
15b54340ee7dc7cb870a418d1b5f6f553672f5dd
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index d1459bcb8caf3..de0572b9ffd7d 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -47,6 +47,11 @@ Changelog validation data separately to avoid any data leak. :pr:`13933` by `NicolasHug`_. +- |Feature| :class:`ensemble.HistGra...
diff --git a/sklearn/ensemble/_hist_gradient_boosting/tests/test_warm_start.py b/sklearn/ensemble/_hist_gradient_boosting/tests/test_warm_start.py new file mode 100644 index 0000000000000..806ad94ccee98 --- /dev/null +++ b/sklearn/ensemble/_hist_gradient_boosting/tests/test_warm_start.py @@ -0,0 +1,190 @@ +import numpy...
Feature request: warm starting for histogram-based GBM #### Description This is a feature request to add the warm start parameter, which exists for [gradient boosting](https://scikit-learn.org/dev/modules/generated/sklearn.ensemble.GradientBoostingClassifier.html#sklearn.ensemble.GradientBoostingClassifier), to the ne...
This is on my TODO list, but I don't know yet when I'll start working on this. If anyone wants to give it a try I'll be happy to provide review and/or guidance. @mfeurer thanks for the input! @NicolasHug I think this would be great to prioritize. Shouldn't be too hard, right? Honestly I'm happy to work on it but I'...
1,559,575,018,000
[]
Feature Request
[ "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:BaseHistGradientBoosting.__init__", "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:BaseHistGradientBoosting.fit", "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:HistGradientBoostingRegressor.__init__", "sklearn/ense...
[ "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:BaseHistGradientBoosting._is_fitted", "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:BaseHistGradientBoosting._clear_state", "sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py:BaseHistGradientBoosting._get_small_trainset"...
4
airbnb/knowledge-repo
airbnb__knowledge-repo-558
d1874d3e71994cd9bb769d60133c046b6d2b8bb5
diff --git a/knowledge_repo/app/routes/comment.py b/knowledge_repo/app/routes/comment.py index 988d82840..5fe02bce6 100644 --- a/knowledge_repo/app/routes/comment.py +++ b/knowledge_repo/app/routes/comment.py @@ -6,7 +6,7 @@ - /delete_comment """ import logging -from flask import request, Blueprint, g +from flask ...
XSS vulnerability Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj Hello, guys! There is a cross-site scripting (XSS) vulnerability in the Knowledge Repo 0.7.4 (other versions may be affected as well) which allows remote attackers to inject arbitrary JavaScript via post comments functionalit...
Thanks Ekzorcist. I'll make sure this gets fixed before the next release :). XSS is also present on 0.7.6 Is this one fixed @fahrishb? Also raised in #254. We should prioritize fixing this. Hi @redyaffle, I suspect that this is just one in a myriad of security vulnerabilities that exist throughout the knowledge repo...
1,590,817,301,000
[]
Security Vulnerability
[ "knowledge_repo/app/routes/comment.py:post_comment" ]
[]
1
pulp/pulp_rpm
pulp__pulp_rpm-3224
6b999b4d8a16d936927e3fc9dec74fe506c25226
diff --git a/CHANGES/3225.misc b/CHANGES/3225.misc new file mode 100644 index 000000000..e1a600d91 --- /dev/null +++ b/CHANGES/3225.misc @@ -0,0 +1,1 @@ +Load one Artifact checksum type taken package_checksum_type during publish metadata generation. diff --git a/CHANGES/3226.misc b/CHANGES/3226.misc new file mode 10064...
Switch to values() instead of select_related **Version** all **Describe the bug** Some queries use select_related, if we do not need the model instance, we could just use values() that will produce queryset dict results instead. **To Reproduce** Steps to reproduce the behavior: **Expected behavior** A clear ...
1,691,165,280,000
[ "backport-3.22" ]
Performance Issue
[ "pulp_rpm/app/tasks/publishing.py:PublicationData.publish_artifacts", "pulp_rpm/app/tasks/publishing.py:generate_repo_metadata", "pulp_rpm/app/tasks/synchronizing.py:add_metadata_to_publication" ]
[]
3
sancus-tee/sancus-compiler
sancus-tee__sancus-compiler-36
dc3910192f99374c91ac5f12187dbc460454fa1f
diff --git a/src/drivers/linker.py b/src/drivers/linker.py index 4f3ec85..c369e43 100644 --- a/src/drivers/linker.py +++ b/src/drivers/linker.py @@ -17,6 +17,7 @@ MAC_SIZE = int(sancus.config.SECURITY / 8) KEY_SIZE = MAC_SIZE +CONNECTION_STRUCT_SIZE = 6 + KEY_SIZE class SmEntry: @@ -63,7 +64,7 @@ def add_sym(f...
diff --git a/src/stubs/sm_attest.c b/src/stubs/sm_attest.c new file mode 100644 index 0000000..6bfec25 --- /dev/null +++ b/src/stubs/sm_attest.c @@ -0,0 +1,16 @@ +#include "reactive_stubs_support.h" + +uint16_t SM_ENTRY(SM_NAME) __sm_attest(const uint8_t* challenge, size_t len, + uint8_t *result) +{ + if( !sancus_i...
Check for integer overflow in sancus_is_outside_sm macro
thanks for the PR! Not sure about your first clause "( __OUTSIDE_SM(p, sm) && ((len <= 0) ||". If the length is zero, the condition should always be true and the outside_sm is not necessary I'd say. A negative length doesn't make any sense and the disadvantage of a macro is that we can't easily enforce an `unsigned` ty...
1,629,731,760,000
[]
Security Vulnerability
[ "src/drivers/linker.py:add_sym", "src/drivers/linker.py:get_io_sym_map", "src/drivers/linker.py:get_io_sect_map", "src/drivers/linker.py:sort_entries", "src/drivers/sancus/sancus_config.py:SmConfig.__init__", "src/drivers/sancus/sancus_config.py:SmConfig.__str__" ]
[ "src/drivers/sancus/sancus_config.py:SmConfig.num_connections" ]
6
scikit-learn/scikit-learn
scikit-learn__scikit-learn-6116
5e4f524f8408e5a0efb96f8128504f8ca747a95e
diff --git a/doc/whats_new.rst b/doc/whats_new.rst index b5f10da91d28f..a4b775ec66d0a 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -36,6 +36,11 @@ Enhancements (`#6288 <https://github.com/scikit-learn/scikit-learn/pull/6288>`_) by `Jake VanderPlas`_. + - :class:`ensemble.GradientBoostingCla...
diff --git a/sklearn/ensemble/tests/test_gradient_boosting.py b/sklearn/ensemble/tests/test_gradient_boosting.py index 1ebf82fa3ae44..634bc259a1167 100644 --- a/sklearn/ensemble/tests/test_gradient_boosting.py +++ b/sklearn/ensemble/tests/test_gradient_boosting.py @@ -1050,6 +1050,9 @@ def check_sparse_input(EstimatorC...
GradientBoostingClassifier.fit accepts sparse X, but .predict does not I have a sparse dataset that is too large for main memory if I call `X.todense()`. If I understand correctly, `GradientBoostingClassifier.fit` will accept my sparse `X`, but it is not currently possible to use `GradientBoostingClassifier.predict` o...
Confirmed. I think small rework of https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/_gradient_boosting.pyx#L39 is needed. Looks like function _predict_regression_tree_inplace_fast was written to somehow optimize prediction speed. But i see some problems in it, its main loop https://github.com/s...
1,452,013,011,000
[ "Waiting for Reviewer" ]
Feature Request
[ "sklearn/ensemble/gradient_boosting.py:BaseGradientBoosting._staged_decision_function", "sklearn/ensemble/gradient_boosting.py:GradientBoostingClassifier.decision_function", "sklearn/ensemble/gradient_boosting.py:GradientBoostingClassifier.staged_decision_function", "sklearn/ensemble/gradient_boosting.py:Grad...
[]
10