instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
developmentseed__cogeo-mosaic-232
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cogeo_mosaic/backends/stac.py:_fetch" ], "edited_modules": [ "cogeo_mosaic/backends/stac.py:_fetch" ] }, "file": "cogeo_mosaic/backends/stac.py" } ]
developmentseed/cogeo-mosaic
d38ba691f2ef6b5879adc70814a94ca7e6306eb3
STAC backend error when API response does not contain "matched" or "found" key in `context` object The `/search` response from stac-fastapi-pgstac application does not by default include a `matched` or `found` key in the `context` object. This is from my observations of our own deployment, but is replicated with lates...
diff --git a/cogeo_mosaic/backends/stac.py b/cogeo_mosaic/backends/stac.py index 6404306..cb897d3 100644 --- a/cogeo_mosaic/backends/stac.py +++ b/cogeo_mosaic/backends/stac.py @@ -206,22 +206,28 @@ def _fetch( # noqa: C901 # {"page": 1, "limit": 1000, "matched": 5671, "returned": 1000} # SAT-API MET...
devopshq__artifactory-255
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:_ArtifactoryFlavour.join_parsed_parts" ], "edited_modules": [ "artifactory.py:_ArtifactoryFlavour" ] }, "file": "artifactory.py" } ]
devopshq/artifactory
5fa9706e04fc1406b3f6f6739cc894b4d3652644
repo is not updated when apply joinpath Hi @allburov there is a problem that `repo` property is not updated when we use `joinpath`. I tried to debug the issue by myself, but cannot really figure out how to refresh `ArtifactoryPath `when we apply `joinpath `method here is test code to reproduce: ~~~python from a...
diff --git a/artifactory.py b/artifactory.py index 0628f59..58001bf 100755 --- a/artifactory.py +++ b/artifactory.py @@ -407,6 +407,10 @@ class _ArtifactoryFlavour(pathlib._Flavour): drv2, root2, parts2 = super(_ArtifactoryFlavour, self).join_parsed_parts( drv, root, parts, drv2, root2, parts2 ...
devopshq__artifactory-261
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:quote_url" ], "edited_modules": [ "artifactory.py:quote_url" ] }, "file": "artifactory.py" } ]
devopshq/artifactory
a3c386a3af0f6cc820036108cac9ca5637fe01ce
URL with port issue If the artifactory URL is `https://example.com:80/artifactory/foo` Expected quoted URL is ``` https://example.com:80/artifactory/foo ``` But get the following one ``` https://example.com%3a80/artifactory/foo ```
diff --git a/artifactory.py b/artifactory.py index 6437d37..c1d6588 100755 --- a/artifactory.py +++ b/artifactory.py @@ -376,8 +376,16 @@ class nullcontext: def quote_url(url): parsed_url = urllib3.util.parse_url(url) - quoted_path = requests.utils.quote(url.rpartition(parsed_url.host)[2]) - quoted_url = ...
devopshq__artifactory-263
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:quote_url", "artifactory.py:ArtifactoryPath.__new__" ], "edited_modules": [ "artifactory.py:quote_url", "artifactory.py:ArtifactoryPath" ] },...
devopshq/artifactory
a3c386a3af0f6cc820036108cac9ca5637fe01ce
Support access tokens for authentication Artifactory Projects requires a valid token to authenticate. https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-PROJECTS https://www.jfrog.com/confluence/display/JFROG/Access+Tokens
diff --git a/README.md b/README.md index 600b44a..9b21baa 100644 --- a/README.md +++ b/README.md @@ -73,9 +73,12 @@ pip install dohq-artifactory==0.5.dev243 # Usage ## Authentication ## + `dohq-artifactory` supports these ways of authentication: -- Username and password (or [API KEY](https://www.jfrog.com/confluen...
devopshq__artifactory-274
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:encode_matrix_parameters", "artifactory.py:quote_url", "artifactory.py:_ArtifactoryAccessor.rest_put_stream", "artifactory.py:_ArtifactoryAccessor.deploy", ...
devopshq/artifactory
9026c63b33fe2ed7269b5661ce8be32cd92a7fd7
`deploy_file` fails with "Unsupported archive extension" when specifying parameters and `explode_archive=True` When running the below reproducer, I see the following output: ```pytb Traceback (most recent call last): File "reproducer.py", line 13, in <module> artifactory_path.deploy_file( File "/home/dwa...
diff --git a/README.md b/README.md index b55fb1d..7bda380 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,8 @@ path.archive().writeto(out="my.zip", chunk_size=100 * 1024) ## Uploading Artifacts ## -Deploy a regular file ```myapp-1.0.tar.gz``` +Deploy a regular file ```myapp-1.0.tar.gz```. This method by defa...
devopshq__artifactory-276
[ { "changes": { "added_entities": [ "artifactory.py:ArtifactoryPath.deploy_by_checksum" ], "added_modules": null, "edited_entities": [ "artifactory.py:_ArtifactoryAccessor.deploy" ], "edited_modules": [ "artifactory.py:_ArtifactoryAccessor", "ar...
devopshq/artifactory
f6eb4086e6589d2762080426b86c2acfe776b3ff
Support for Deploy Artifact by Checksum What do you guys think about adding support for [deploying artifacts by checksum](https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifactbyChecksum)? It uses the checksum to check if the artifact already exists on the server and copies ...
diff --git a/README.md b/README.md index 7bda380..40fd87c 100644 --- a/README.md +++ b/README.md @@ -298,6 +298,37 @@ path.deploy_file( ) ``` +[Deploy artifact by checksum](https://www.jfrog.com/confluence/display/RTF6X/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifactbyChecksum): deploy an artifact to the spe...
devopshq__artifactory-286
[ { "changes": { "added_entities": [ "artifactory.py:ArtifactoryPath.get_projects" ], "added_modules": null, "edited_entities": [ "artifactory.py:ArtifactoryPath._get_all" ], "edited_modules": [ "artifactory.py:ArtifactoryPath" ] }, "file":...
devopshq/artifactory
e5f8fc48cdc3a5dc6e8098ae55b2a4ea717ebc36
Projects missing get_projects() method Please add get_projects() similar to other get_foo() methods in artifactory.py @zhan9san
diff --git a/artifactory.py b/artifactory.py index 7a4760d..95e037a 100755 --- a/artifactory.py +++ b/artifactory.py @@ -2087,7 +2087,10 @@ class ArtifactoryPath(pathlib.Path, PureArtifactoryPath): :param cls: Create objects of this class "return: A list of found objects """ - request_...
devopshq__artifactory-409
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:encode_matrix_parameters", "artifactory.py:_ArtifactoryAccessor.deploy", "artifactory.py:ArtifactoryPath.write_bytes", "artifactory.py:ArtifactoryPath.deploy", ...
devopshq/artifactory
383b2122344d1dcfc48f20de0219f3593e9f0c88
Property values are not URL quoted for matrix parameters This only affects matrix parameters as far as I can tell; we should not quote parameters that are set after the fact because those go through a POST. Because property values aren't encoded/quoted, it can cause undesirable characters to make it into properties,...
diff --git a/artifactory.py b/artifactory.py index ae87d22..754bcd0 100755 --- a/artifactory.py +++ b/artifactory.py @@ -36,6 +36,7 @@ import re import sys import urllib.parse from itertools import islice +from warnings import warn import dateutil.parser import requests @@ -315,21 +316,31 @@ class HTTPResponseWr...
devopshq__artifactory-439
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:quote_url" ], "edited_modules": [ "artifactory.py:quote_url" ] }, "file": "artifactory.py" } ]
devopshq/artifactory
2e9274273aefba744accb3d5a012c4dbdb111b49
path.stat() doesn't handle ArtifactoryPath() properly Hi, Here is my environment: ```` python 3.8.4 dohq-artifactory 0.8.4 ```` I want to get the stats of 2 files. I have a piece of code looking like this: ````python from artifactory import ArtifactoryPath path1 = ArtifactoryPath( "https://artif...
diff --git a/artifactory.py b/artifactory.py index 4325018..69bc540 100755 --- a/artifactory.py +++ b/artifactory.py @@ -410,13 +410,13 @@ def quote_url(url): parsed_url = urllib3.util.parse_url(url) if parsed_url.port: quoted_path = requests.utils.quote( - url.rpartition(f"{parsed_url.hos...
devopshq__artifactory-53
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:_ArtifactoryFlavour.splitroot" ], "edited_modules": [ "artifactory.py:_ArtifactoryFlavour" ] }, "file": "artifactory.py" } ]
devopshq/artifactory
b63e93ff509fd1d4ba619d7db2d3abab02624e32
ArtifactoryPath returns incorrect path if URL doesn't contain artifactory outside of domain The `ArtifactoryPath` method returns an incorrect value if the string passed to it doesn't contain the word `artifactory` somewhere outside of the domain. For example, if setting up Artifactory behind NGINX with a custom doma...
diff --git a/artifactory.py b/artifactory.py index 48547ec..3b14d4f 100755 --- a/artifactory.py +++ b/artifactory.py @@ -344,6 +344,10 @@ class _ArtifactoryFlavour(pathlib._Flavour): before it, including '/artifactory/' itself is treated as drive. The next folder is treated as root, and everything els...
devopshq__artifactory-60
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory.py:_ArtifactoryFlavour.splitroot" ], "edited_modules": [ "artifactory.py:_ArtifactoryFlavour" ] }, "file": "artifactory.py" } ]
devopshq/artifactory
9813bc6d86e7ede9dc395dbfeaf7f5e02030f29c
/ operator on ArtifactoryPath fails if string contains "/" Maybe linked to #31. ```python >>> arti = Artifactory("http://my.artifactory.ext/artifactory") >>> arti ArtifactoryPath('http://my.artifactory.ext/artifactory') >>> arti / "foo" ArtifactoryPath('http://my.artifactory.ext/artifactory/foo') >>> arti / "f...
diff --git a/artifactory.py b/artifactory.py index 3b14d4f..079b7c4 100755 --- a/artifactory.py +++ b/artifactory.py @@ -358,11 +358,16 @@ class _ArtifactoryFlavour(pathlib._Flavour): parts = part.split(mark) else: url = urllib3.util.parse_url(part) + + if (without_http_pre...
devopshq__artifactory-cleanup-100
[ { "changes": { "added_entities": [ "artifactory_cleanup/cli.py:ArtifactoryCleanupCLI._format_table", "artifactory_cleanup/cli.py:ArtifactoryCleanupCLI._print_table", "artifactory_cleanup/cli.py:ArtifactoryCleanupCLI._create_output_file" ], "added_modules": null, "...
devopshq/artifactory-cleanup
c523f319dc7835c5b3bd583f5ba187184df24dbc
Output format to Json We would like a feature request to have the output table to Json format. The PrettyTable libraries can do it : https://pypi.org/project/prettytable/ If I have time, I would propose a PR
diff --git a/README.md b/README.md index c0a63ec..ee5afde 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,12 @@ artifactory-cleanup --days-in-future=10 # Not satisfied with built-in rules? Write your own rules in python and connect them! artifactory-cleanup --load-rules=myrule.py docker run -v "$(pwd)":/app de...
devopshq__artifactory-cleanup-117
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "artifactory_cleanup/rules/docker.py:KeepLatestNVersionImagesByProperty.get_version" ], "edited_modules": [ "artifactory_cleanup/rules/docker.py:KeepLatestNVersionImagesByProperty" ...
devopshq/artifactory-cleanup
58c543fc71ae7e28d087afe769f4c4ec7bbb7522
Formatting Question - KeepLatestNVersionImagesByProperty Thank you for developing this wonderful tool, it has been very useful. Having said that, i am having some issues getting some of the docker rules to work. For example, my yaml file looks like this: ```yaml artifactory-cleanup: server: $SERVER user: ...
diff --git a/README.md b/README.md index 9e724dd..ffdcf02 100644 --- a/README.md +++ b/README.md @@ -117,10 +117,10 @@ artifactory-cleanup --help ```bash # Debug - "dry run" mode by default # debug run - only print artifacts. it does not delete any artifacts -artifactory-cleanup +artifactory-cleanup # Debug run ...
devopshq__artifactory-cleanup-153
[ { "changes": { "added_entities": [ "artifactory_cleanup/rules/docker.py:KeepLatestNDockerImages.__init__", "artifactory_cleanup/rules/docker.py:KeepLatestNDockerImages.filter" ], "added_modules": [ "artifactory_cleanup/rules/docker.py:KeepLatestNDockerImages" ], ...
devopshq/artifactory-cleanup
8dd204a2dd527032a64c1822acad900cfd7137b4
Add option KeepLatestNImages When cleaning images, it is possible to use the option `KeepLatestNFiles`. But this will look at docker tags, and not docker images. **Example:** If you got 3 images, both tagged with 2 tags each, so in total, you got 6 tags. If you run *artifactory-cleanup* with `KeepLatestNFiles co...
diff --git a/README.md b/README.md index 37d3f85..c9d7210 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,14 @@ policies: custom_regexp: "[^\\d][\\._]((\\d+\\.)+\\d+)" ``` +- `KeepLatestNDockerImages(count=N)` - Leaves N + most recently updated Docker image digests. This ensures all tags matching the same ...
devrimcavusoglu__pybboxes-10
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pybboxes/__init__.py" }, { "changes": { "added_entities": [ "pybboxes/boxes/base.py:BaseBoundingBox.from_array_vectorize" ], ...
devrimcavusoglu/pybboxes
6355977cd2e1c8d31deeddbfee51473373cb69b1
Feature Request: support multiple boxes or array shape in `from_array()` Currently `BoundingBox.from_array()` takes only list of length 1. It can be improved s.t multiple boxes (box values) can be given as array, and it can return an array of `BoundingBox` objects. ```python from pybboxes import CocoBoundingBox ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 945978b..4927ff4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,8 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest, windows-latest, macos-latest] - python-version: [3.7, 3.8, ...
devsnd__tinytag-156
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "tinytag/tinytag.py:ID3" ] }, "file": "tinytag/tinytag.py" } ]
devsnd/tinytag
5107f8611192a166dfea4f75619377ab2d5bda49
[BUG] Parsing mp3 file w/ valid TDRC tag does not populate year **Describe the bug** When parsing a mp3 file w/ valid v2.4 metadata and a TDRC frame, TinyTag does not populate the year attribute in the output. **To Reproduce** Steps to reproduce the behavior: 1. Open a valid mp3 file w/ TinyTag 2. See `Fou...
diff --git a/README.md b/README.md index 39bfda9..cec3e9d 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ List of possible attributes you can get with TinyTag: tag.title # title of the song tag.track # track number as string tag.track_total # total number of tracks as string - ...
devsnd__tinytag-171
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tinytag/tinytag.py:Ogg._parse_vorbis_comment" ], "edited_modules": [ "tinytag/tinytag.py:Ogg" ] }, "file": "tinytag/tinytag.py" } ]
devsnd/tinytag
85a16fa18bcc534d1d61f10ca539955823945d5d
Fail to read track_total, but it is ok in foobar I got some tracks from qobuz. I have some problems in reading the track_total. It showed 'null' in track_total. The others is OK, such as artist, album etc.... But its track_total seems OK, when checked in foobar. Why? The attachment are an example flac file [19. I ...
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py index a7a8a21..8ba376d 100644 --- a/tinytag/tinytag.py +++ b/tinytag/tinytag.py @@ -924,8 +924,10 @@ class Ogg(TinyTag): 'artist': 'artist', 'date': 'year', 'tracknumber': 'track', + 'tracktotal': 'track_total', ...
devsnd__tinytag-178
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tinytag/tinytag.py:TinyTag.get_parser_class", "tinytag/tinytag.py:TinyTag.get" ], "edited_modules": [ "tinytag/tinytag.py:TinyTag" ] }, "file": "tinytag/tinytag...
devsnd/tinytag
337c044ce51f9e707b8cd31d02896c9041a98afa
Support BytesIo objects for tagging It would be awesome to support BytesIO or any other IO types with TinyTag. This way it can be used in some scenarios where files are packaged and do not have a normal path.
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py index a3f1305..595a101 100644 --- a/tinytag/tinytag.py +++ b/tinytag/tinytag.py @@ -170,40 +170,48 @@ class TinyTag(object): return parser @classmethod - def get_parser_class(cls, filename, filehandle): + def get_parser_class(cls, filena...
devsnd__tinytag-183
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tinytag/tinytag.py:TinyTag.update", "tinytag/tinytag.py:ID3._parse_frame", "tinytag/tinytag.py:Ogg._parse_vorbis_comment", "tinytag/tinytag.py:Wma._parse_tag" ], "edi...
devsnd/tinytag
d8a62a2d32f6a1163ed3ef66a84a1967c8c6ab2a
[BUG] Can't read `extra` tags from .m4a files **Describe the bug** I added a custom field (via mp3tag) to audio files of various types, but that custom field only appears in tinytag's `extra` collection for the mp3 files and not the m4a files. **To Reproduce** 1. Unzip the Songs.zip attachment to find two files -...
diff --git a/README.md b/README.md index 47f3d08..7ce1b72 100644 --- a/README.md +++ b/README.md @@ -74,12 +74,14 @@ List of possible attributes you can get with TinyTag: tag.track_total # total number of tracks as string tag.year # year or date as string -For non-common fields and fields specifi...
devsnd__tinytag-199
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "tinytag/__init__.py" }, { "changes": { "added_entities": [ "tinytag/__main__.py:_usage", "tinytag/__main__.py:_pop_param", ...
devsnd/tinytag
264dd361f04ce0bae39aac61f808325fb265ef17
Make use of code linting **Describe the solution you'd like** Code linting would help keep the code base free from common bugs and style violations, and make it easier to include the tinytag.py file in other projects. **Additional context** A combination of flake8 and Pylint has given me good results in my own Py...
diff --git a/release.py b/release.py index ba7be98..840845d 100755 --- a/release.py +++ b/release.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# pylint: disable=missing-function-docstring,missing-module-docstring import subprocess import sys diff --git a/setup.cfg b/setup.cfg index 39cd9cf..781e677 100644 --- a/setup...
devsnd__tinytag-202
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "tinytag/__init__.py" }, { "changes": { "added_entities": [ "tinytag/tinytag.py:TinyTag._set_image_field", "tinytag/tinytag.py:Ta...
devsnd/tinytag
a490c6d40c8fc499f9a3c35af14fd478c7da1d5d
Ability to get all images I would like the ability to get all of the images in a file. Currently, I think tinytag is coded to just pull the cover image or maybe it is the first image it comes across. Ideally, I'd like to have each image and its location (e.g., cover, insert, etc) accessible. Thanks!
diff --git a/README.md b/README.md index e78b522..ab55b06 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ tinytag is a library for reading music meta data of most common audio files in p ## Features - * Read tags, length and cover images of audio files + * Read tags, length and images of audio files ...
dfki-ric__pytransform3d-282
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pytransform3d/batch_rotations.py:axis_angles_from_matrices" ], "edited_modules": [ "pytransform3d/batch_rotations.py:axis_angles_from_matrices" ] }, "file": "pytransfor...
dfki-ric/pytransform3d
c15b97e88fcdb5decff493b199c9c413bb13efe2
Implement estimate_gaussian_matrix_from_samples ... to estimate distribution of rotation matrices, similarly to estimate_gaussian_transform_from_samples according to https://ethaneade.com/lie.pdf, section 8.5
diff --git a/doc/source/api.rst b/doc/source/api.rst index dafc5cf8..1007b38e 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -28,6 +28,8 @@ Rotation Matrix ~matrix_requires_renormalization ~norm_matrix + ~random_matrix + ~plot_basis ~assert_rotation_matrix @@ -595,7 +597,9 @@ Dual Qua...
dfm__emcee-295
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "emcee/ensemble.py:EnsembleSampler.lnprobability" ], "edited_modules": [ "emcee/ensemble.py:EnsembleSampler" ] }, "file": "emcee/ensemble.py" } ]
dfm/emcee
593a6b134170c47af6e31106244df78b6fb194db
sampler.lnprobability is transposed in emcee3? tl;dr it looks like `sampler.lnprobability` is transposed in emcee 3 from what I would expect from emcee 2. Sample code (copy pasta'd from the old docs): ```python import numpy as np import emcee def lnprob(x, ivar): return -0.5 * np.sum(ivar * x ** 2) ndi...
diff --git a/.travis.yml b/.travis.yml index fa02161..4aa919c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ install: - travis_retry python setup.py develop script: - - py.test -v emcee/tests --cov emcee + - pytest -v emcee/tests --cov emcee after_success: - coveralls diff --git a/emcee/ense...
dfm__emcee-362
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/emcee/backends/hdf.py:does_hdf5_support_longdouble", "src/emcee/backends/hdf.py:HDFBackend.__init__", "src/emcee/backends/hdf.py:HDFBackend.reset", "src/emcee/backends/hdf.py...
dfm/emcee
049216c600d3829979baaa6c63078381a8e983b4
Enable HDF5 compression in the backend **General information:** - emcee version: 3.0.2 - platform: (Arch) Linux - installation method (pip/conda/source/other?): AUR repository **Problem description:** It would be nice to be able to enable compression when using HDF5 files via the emcee backends. A quick skim o...
diff --git a/src/emcee/backends/hdf.py b/src/emcee/backends/hdf.py index 9503512..0f0c0de 100644 --- a/src/emcee/backends/hdf.py +++ b/src/emcee/backends/hdf.py @@ -22,9 +22,9 @@ except ImportError: def does_hdf5_support_longdouble(): if h5py is None: return False - with NamedTemporaryFile(prefix="emc...
dfm__emcee-510
[ { "changes": { "added_entities": [ "src/emcee/ensemble.py:_scalar" ], "added_modules": [ "src/emcee/ensemble.py:_scalar" ], "edited_entities": [ "src/emcee/ensemble.py:EnsembleSampler.compute_log_prob" ], "edited_modules": [ "src/emcee/en...
dfm/emcee
b68933df3df80634cf133cab7e92db0458fffe13
Incompatible with numpy 2.0.0rc1 Numpy 2 is around the corner with having its first release candidate: https://pypi.org/project/numpy/2.0.0rc1 `emcee` at least uses `VisibleDeprecationWarning` from numpy that will be removed with numpy 2: https://numpy.org/devdocs/release/2.0.0-notes.html > Warnings and exception...
diff --git a/src/emcee/ensemble.py b/src/emcee/ensemble.py index 3212099..cfef4a5 100644 --- a/src/emcee/ensemble.py +++ b/src/emcee/ensemble.py @@ -489,10 +489,19 @@ class EnsembleSampler(object): results = list(map_func(self.log_prob_fn, p)) try: - log_prob = np.array([float(l[0]) f...
dgasmith__opt_einsum-141
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "opt_einsum/contract.py:contract_path" ], "edited_modules": [ "opt_einsum/contract.py:contract_path" ] }, "file": "opt_einsum/contract.py" }, { "changes": { ...
dgasmith/opt_einsum
95c1c80b081cce3f50b55422511d362e6fe1f0cd
Possible bug in RandomGreedy path I have found an interesting quirk of the RandomGreedy optimizer that may not have been intended. In my application, I need to repeat two contractions several times. I use the same optimizer to compute the paths in advance and cache the result. If I use RandomGreedy, then I get the wron...
diff --git a/opt_einsum/contract.py b/opt_einsum/contract.py index b837b21..6e7550a 100644 --- a/opt_einsum/contract.py +++ b/opt_einsum/contract.py @@ -214,7 +214,7 @@ def contract_path(*operands, **kwargs): indices = set(input_subscripts.replace(',', '')) # Get length of each unique dimension and ensure a...
dgasmith__opt_einsum-149
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "opt_einsum/backends/jax.py:_get_jax_and_to_jax" ], "edited_modules": [ "opt_einsum/backends/jax.py:_get_jax_and_to_jax" ] }, "file": "opt_einsum/backends/jax.py" }, ...
dgasmith/opt_einsum
2cbd28e612ff0af54656c34d7f6c239efe524b12
Remove 'remaining' from PathInfo? (incurs n^2 memory overhead) When building the ``contraction_list``, ``opt_einsum`` handles a list of 'remaining' terms, and at each new step these are copied (``input_list`` below): https://github.com/dgasmith/opt_einsum/blob/2cbd28e612ff0af54656c34d7f6c239efe524b12/opt_einsum/con...
diff --git a/opt_einsum/backends/jax.py b/opt_einsum/backends/jax.py index 6bc1a1f..aefd941 100644 --- a/opt_einsum/backends/jax.py +++ b/opt_einsum/backends/jax.py @@ -13,18 +13,18 @@ _JAX = None def _get_jax_and_to_jax(): - global _JAX - if _JAX is None: - import jax + global _JAX + if _JAX is None: +...
dgasmith__opt_einsum-174
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "opt_einsum/paths.py:PathOptimizer._check_args_against_first_call", "opt_einsum/paths.py:_dp_parse_out_single_term_ops", "opt_einsum/paths.py:DynamicProgramming.__call__" ], "...
dgasmith/opt_einsum
81330efe55b77a10509cd4684df1afcb86940660
Bug: Dynamic_programming path solver may return illegal contraction path Tested on GitHub master HEAD. ```python oem.paths.dynamic_programming([{0,1}, {}], {0, 1}, {0:2, 1:2}) [(1,), (0, 1)] # sth. wrong here oem.paths.greedy([{0,1}, {}], {0, 1}, {0:2, 1:2}) [(0, 1)] # other solvers return correct result ``` ...
diff --git a/README.md b/README.md index 6cff408..98f5d16 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ information. The [`opt_einsum.contract`](https://dgasmith.github.io/opt_einsum/api_reference.html#opt_einsumcontract) function can often act as a drop-in replacement for `einsum` functions without furth...
dgasmith__opt_einsum-196
[ { "changes": { "added_entities": [ "opt_einsum/contract.py:_infer_backend_class_cached" ], "added_modules": [ "opt_einsum/contract.py:_infer_backend_class_cached" ], "edited_entities": [ "opt_einsum/contract.py:infer_backend", "opt_einsum/contract.py...
dgasmith/opt_einsum
a274599c87c6224382e2ce328c7439b7b713e363
allow `backend=None` as shorthand for 'auto' A couple of times I've be caught out (e.g. https://github.com/jcmgray/quimb/issues/130) that the special value for inferring the backend is not `backend=None`. Might be nice to allow both? If so would just require a simple: ```python if backend not in ("auto", None): ...
diff --git a/opt_einsum/contract.py b/opt_einsum/contract.py index 0df94d0..0f70379 100644 --- a/opt_einsum/contract.py +++ b/opt_einsum/contract.py @@ -4,6 +4,7 @@ Contains the primary optimization and contraction routines. from collections import namedtuple from decimal import Decimal +from functools import lru_c...
dgasmith__opt_einsum-247
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "opt_einsum/contract.py:contract_path" ], "edited_modules": [ "opt_einsum/contract.py:contract_path" ] }, "file": "opt_einsum/contract.py" } ]
dgasmith/opt_einsum
384bb5ae183ea8c6a2c35440caf2a4d25aaf959b
Is it possible to use "Interleaved Inputs" with `shapes=True`? `oe.contract_path` has the `shapes=True` parameter, which is useful for precomputing paths: ``` >>> oe.contract_path("abc,bcd->da", (2, 3, 4), (3, 4, 5), shapes=True) ``` The interleaved format is also useful, when you are generating equations programatical...
diff --git a/.github/workflows/Linting.yml b/.github/workflows/Linting.yml index 9d2e90b..3d2ceae 100644 --- a/.github/workflows/Linting.yml +++ b/.github/workflows/Linting.yml @@ -76,4 +76,4 @@ jobs: - name: Lint run: | set -e - make format-check + make fmt-check diff --git a/Makefil...
dgasmith__opt_einsum-30
[ { "changes": { "added_entities": [ "opt_einsum/backends.py:to_tensorflow", "opt_einsum/backends.py:evaluate_constants_tensorflow", "opt_einsum/backends.py:to_theano", "opt_einsum/backends.py:evaluate_constants_theano", "opt_einsum/backends.py:to_cupy", "opt_...
dgasmith/opt_einsum
45eb0220dc00186c0dfd0de27e6dd725a8d6e252
Optimal path with constant arguments I have an application where there is a large tensor contraction in the inner loop, with some arrays that are fixed and others that are updated between iterations. Operations only involving the constant terms could done ahead of time (outside the loop), but this may or may not actual...
diff --git a/docs/source/backends.rst b/docs/source/backends.rst index 11efc96..9f05977 100644 --- a/docs/source/backends.rst +++ b/docs/source/backends.rst @@ -137,7 +137,7 @@ If ``theano`` is installed, using it as backend is as simple as specifiying >>> shapes = (3, 200), (200, 300), (300, 4) >>> expr = oe...
dgasmith__opt_einsum-72
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "opt_einsum/contract.py:contract_expression" ], "edited_modules": [ "opt_einsum/contract.py:contract_expression" ] }, "file": "opt_einsum/contract.py" }, { "chan...
dgasmith/opt_einsum
7daf290b236d3f464845152b25ee58509410d976
let contract_expression use interleaved input Currently, ``contract_expression`` only accepts the 'equation' style input. This is an easy fix that I will do shortly. As part of that I can flesh out the docs on input (#70), unless you are already planning that @dgasmith ?
diff --git a/docs/source/index.rst b/docs/source/index.rst index 5d0c74c..612c602 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -123,6 +123,7 @@ Table of Contents :caption: Getting Started install + input_format backends reusing_paths sharing_intermediates @@ -147,6 +148,5 @@...
dgasmith__opt_einsum-84
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "opt_einsum/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "opt_einsum/co...
dgasmith/opt_einsum
ff86c2c9d2bb51d9816b2a92c08787379d512eb2
FR: separate 'auto' strategy out of contract_path The 'auto' strategy is really nice, but it requires actual arrays because it is based into `contract_path`. Sometimes I want to get a path based merely on shapes. It should be easy to factor out the logic from `contract_path` to a new `paths.auto` that conforms to the s...
diff --git a/opt_einsum/__init__.py b/opt_einsum/__init__.py index 3d8b47b..0ec9eb6 100644 --- a/opt_einsum/__init__.py +++ b/opt_einsum/__init__.py @@ -6,15 +6,18 @@ from . import blas from . import helpers from . import paths from . import path_random -# Handle versioneer -from ._version import get_versions from ...
dgilland__pydash-164
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/pydash/objects.py:_merge_with" ], "edited_modules": [ "src/pydash/objects.py:_merge_with" ] }, "file": "src/pydash/objects.py" } ]
dgilland/pydash
fa61732c01b39cec0de66f958cef27e7f31bcac2
merge_with: iteratee is lost when _merge_with is recursing. ```python def merge_array(obj_val, src_val): if isinstance(obj_val, list) and isinstance(src_val, list): return difference(obj_val + src_val) merge_with({ 'd': { 'x': [2] } }, { 'd': { 'x': [5] } }, merge_array) ``` ### expect ``` { 'd': { 'x...
diff --git a/AUTHORS.rst b/AUTHORS.rst index a1843ad..d167ec9 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -24,3 +24,4 @@ Contributors - Gonzalo Naveira, `gonzalonaveira@github <https://github.com/gonzalonaveira>`_ - Wenbo Zhao, zhaowb@gmail.com, `zhaowb@github <https://github.com/zhaowb>`_ - Mervyn Lee, `mervynlee...
dgilland__pydash-222
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/pydash/arrays.py:unzip", "src/pydash/arrays.py:unzip_with", "src/pydash/arrays.py:zip_", "src/pydash/arrays.py:zip_with" ], "edited_modules": [ "src/pydas...
dgilland/pydash
ef48d55fb5eecf5d3da3a69cab337e6345b1fc29
Embrace the tuple Would you be open to PR that switches `zip_`, `zip_with` and `to_pairs` to return list of tuples instead? Using a list in python is very similar to using a tuple but in static typing having lists is a bit annoying. For example: ```py import pydash d: dict[str, int] = {"key1": 1, "key2": 2} ...
diff --git a/src/pydash/arrays.py b/src/pydash/arrays.py index d9540a5..03b1847 100644 --- a/src/pydash/arrays.py +++ b/src/pydash/arrays.py @@ -98,6 +98,9 @@ __all__ = ( T = t.TypeVar("T") T2 = t.TypeVar("T2") +T3 = t.TypeVar("T3") +T4 = t.TypeVar("T4") +T5 = t.TypeVar("T5") SequenceT = t.TypeVar("SequenceT", bou...
dhatim__python-license-check-48
[ { "changes": { "added_entities": [ "liccheck/command_line.py:write_deps" ], "added_modules": [ "liccheck/command_line.py:write_deps" ], "edited_entities": [ "liccheck/command_line.py:get_packages_info", "liccheck/command_line.py:write_package", ...
dhatim/python-license-check
75ed16aa670da8c6c41bc9c17f1ae6a65c1eb539
Add usage mode to support not resolving dependencies I am conceptually trying to use liccheck in a CI job as follows: ``` pipenv lock -r > requirements.txt liccheck -r requirements.txt ``` However this fails due to #42 because liccheck tries to resolve all dependencies but they have not actually been installed i...
diff --git a/liccheck/command_line.py b/liccheck/command_line.py index de01c91..909725b 100644 --- a/liccheck/command_line.py +++ b/liccheck/command_line.py @@ -1,7 +1,7 @@ import argparse import collections -from liccheck.requirements import parse_requirements +from liccheck.requirements import parse_requirements,...
dhatim__python-license-check-75
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "liccheck/requirements.py:parse_requirements" ], "edited_modules": [ "liccheck/requirements.py:parse_requirements" ] }, "file": "liccheck/requirements.py" } ]
dhatim/python-license-check
6f804d1314997075883a57ce24baa5a8ee4afe98
Editable requirements (-e) raises "DistributionNotFound: The 'None' distribution was not found" Editable requirements, i.e: rows like this one `-e file:some_internal_package # via -r requirements.in` Are currently making this library fail with `pkg_resources.DistributionNotFound: The 'None' distributio...
diff --git a/liccheck/requirements.py b/liccheck/requirements.py index 8bfc446..8c8e106 100644 --- a/liccheck/requirements.py +++ b/liccheck/requirements.py @@ -25,6 +25,10 @@ def parse_requirements(requirement_file): for req in pip_parse_requirements(requirement_file, session=PipSession()): install_req =...
di__vladiate-40
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "vladiate/validators.py:NotE...
di/vladiate
577cfae7c7835e89e592af7cd024d6e9de084ed1
NotEmptyValidator minimal logging NotEmptyValidator always returns an empty set for it's bad property regardless of failure causing the Vlad class to return False and log the general "Failed :(" message without an indication of the field that failed or the times it failed. Solution proposed below avoids repetition of e...
diff --git a/setup.py b/setup.py index 8de8422..62b35f8 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand -__version__ = '0.0.16' +__version__ = '0.0.17' class PyTest(TestCommand): diff --git a/tox...
di__vladiate-42
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "vladiate/validators.py:Vali...
di/vladiate
81892a0a29bd668bc12c72e17b3f2f62f7ed0377
RangeValidator has no empty_ok parameter RangeValidator has no option to allow empty records in a field. RangeValidator fails if the field contains an empty record "". Propose to add an empty_ok parameter to the RangeValidator class similar to other validators as shown below: ```python class RangeValidator(Validato...
diff --git a/README.rst b/README.rst index f36c851..77af67e 100644 --- a/README.rst +++ b/README.rst @@ -236,6 +236,8 @@ Vladiate comes with a few common validators built-in: :``unique_with=[]``: List of field names to make the primary field unique with. + :``empty_ok=False``: + Specify whether a fiel...
di__vladiate-68
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "vladiate/main.py:parse_args", "vladiate/main.py:_vladiate", "vladiate/main.py:main" ], "edited_modules": [ "vladiate/main.py:parse_args", "vladiate/main.py:_v...
di/vladiate
7580d0cee219e5ca6025b8c8e89efff94fd229ca
add a quiet option (-q) Hi, After the vladiate 0.0.20, I could get the shell exitcode for success or not. Now I would like to add a quiet option (-q) so that when I call vladiate, it silently validates, if not it will throw an error. Best
diff --git a/README.rst b/README.rst index 22f8219..57abdf6 100644 --- a/README.rst +++ b/README.rst @@ -341,6 +341,10 @@ Running Vlads Programatically Whether to fail validation if there are fields in the file for which the `Vlad` does not have validators. Optional, defaults to `False`. + :``quiet=Fal...
di__vladiate-82
[ { "changes": { "added_entities": [ "vladiate/validators.py:RowValidator.__init__", "vladiate/validators.py:RowValidator.bad", "vladiate/validators.py:RowValidator.validate", "vladiate/validators.py:RowLengthValidator.__init__", "vladiate/validators.py:RowLengthValid...
di/vladiate
797837f5e9923371a7c32207e3903dbe401ac8ea
Row-level validation Is there a recommended way to do row-level validation? I have a work in progress / proof of concept branch to add the kind of logic I'm looking to use at https://github.com/jonafato/vladiate/tree/row-level-validators. My primary use cases here are the ability to validate the length of a row (`csv.D...
diff --git a/README.rst b/README.rst index 07191ef..b349a7c 100644 --- a/README.rst +++ b/README.rst @@ -278,6 +278,17 @@ Vladiate comes with a few common validators built-in: Always passes validation. Used to explicity ignore a given column. +*class* ``RowValidator`` + + Generic row validator. Should be subcla...
dicompyler__dicompyler-core-285
[ { "changes": { "added_entities": [ "dicompylercore/dicomparser.py:DicomParser.is_head_first_orientation", "dicompylercore/dicomparser.py:DicomParser.x_lut_index" ], "added_modules": null, "edited_entities": [ "dicompylercore/dicomparser.py:DicomParser.GetPatientTo...
dicompyler/dicompyler-core
24d9a9bb28a04280a9c4c8d2a0b6e051810eb7cf
Decubitus orientation I'm hoping for some guidance on DVHs in decubitus situation - I have CT and RTDOSE files with ImageOrientationPatient of [0, -1, 0, 1, 0, 0] and I get empty DVHs returned. On calling `get_dvh` with debugging on, I see many lines like: `Dose plane not found for -100.00. Using -140.25 to calcula...
diff --git a/dicompylercore/dicomparser.py b/dicompylercore/dicomparser.py index e204f97..39f9d62 100755 --- a/dicompylercore/dicomparser.py +++ b/dicompylercore/dicomparser.py @@ -487,27 +487,37 @@ class DicomParser: Referenced matrix can be found in Part 3 Section C.7.6.2.1.1 """ - di = sel...
dicompyler__dicompyler-core-96
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dicompylercore/dicomparser.py:DicomParser.GetDefaultImageWindowLevel" ], "edited_modules": [ "dicompylercore/dicomparser.py:DicomParser" ] }, "file": "dicompylercore/di...
dicompyler/dicompyler-core
f5f9fa770d0573373510135863fa2933919cdba7
dvh.max gives IndexError Hello and thank you for the project. I am using dicompyler-core 0.5.4 to extract statistics and I have been running into an exception with certain DCM files. When calculating `dvh.max`, the following error is thrown: ``` File "/home/nico/.local/share/virtualenvs/dcm-extractor-8Y6EYVZw/...
diff --git a/.travis.yml b/.travis.yml index 8de7b4f..d399453 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - 2.7 - - 3.4 - 3.5 - 3.6 install: diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index e37af2c..048bc4b 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTI...
dimitarOnGithub__temporals-5
[ { "changes": { "added_entities": [ "temporals/periods.py:Period.is_before", "temporals/periods.py:Period.is_after", "temporals/periods.py:TimePeriod.is_before", "temporals/periods.py:TimePeriod.is_after" ], "added_modules": null, "edited_entities": [ ...
dimitarOnGithub/temporals
117dcb7c66704b35bcb07cde5a282d8d3041bbf3
TimePeriod implementation
diff --git a/temporals/periods.py b/temporals/periods.py index e5704ad..64b0248 100644 --- a/temporals/periods.py +++ b/temporals/periods.py @@ -1,3 +1,4 @@ +from abc import abstractmethod from datetime import time, date, datetime, timedelta from typing import Union from .exceptions import TimeAmbiguityError @@ -21,...
dimitarOnGithub__temporals-6
[ { "changes": { "added_entities": [ "temporals/periods.py:DatePeriod.is_before", "temporals/periods.py:DatePeriod.is_after" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "temporals/periods.py:DatePeriod" ] }, "file": "te...
dimitarOnGithub/temporals
6c0ee9cd78b7bbd8936dfebb5469893957ec3e66
DatePeriod implementation Implemented the `is_before` and `is_after` logic for the `DatePeriod` class
diff --git a/temporals/periods.py b/temporals/periods.py index 64b0248..5a10dda 100644 --- a/temporals/periods.py +++ b/temporals/periods.py @@ -423,6 +423,54 @@ class DatePeriod(Period): return self.start <= item <= self.end return False + def is_before(self, + other: Union[...
dimitarOnGithub__temporals-7
[ { "changes": { "added_entities": [ "temporals/periods.py:DatetimePeriod.is_before", "temporals/periods.py:DatetimePeriod.is_after" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "temporals/periods.py:DatetimePeriod" ] }, ...
dimitarOnGithub/temporals
eeedad1fd31420b1479127ef38b5ee65df9c766d
DatetimePeriod implementation Create the `is_before` and `is_after` logic for the `DatetimePeriod` class
diff --git a/temporals/periods.py b/temporals/periods.py index 5a10dda..c726532 100644 --- a/temporals/periods.py +++ b/temporals/periods.py @@ -818,6 +818,38 @@ class DatetimePeriod(Period): return self.start.time() <= item <= self.end.time() return False + def is_before(self, + ...
diofant__diofant-720
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "diofant/polys/ring_series.py:rs_compose_add" ], "edited_modules": [ "diofant/polys/ring_series.py:rs_compose_add" ] }, "file": "diofant/polys/ring_series.py" }, { ...
diofant/diofant
4b02fca5537222ee36187a306795038a16b7e012
Inconsistency quo vs quo_ground in dense and sparse representations Here is an example: ```python In [1]: e = 2*x + 3 In [2]: dense = e.as_poly() ...
diff --git a/diofant/polys/ring_series.py b/diofant/polys/ring_series.py index e1190df0d..4637deb85 100644 --- a/diofant/polys/ring_series.py +++ b/diofant/polys/ring_series.py @@ -534,7 +534,7 @@ def rs_compose_add(p1, p2): np2e = rs_hadamard_exp(np2) np3e = rs_mul(np1e, np2e, x, prec) np3 = rs_hadamard...
diofant__diofant-726
[ { "changes": { "added_entities": [ "diofant/domains/integerring.py:IntegerRing.finite_field", "diofant/domains/integerring.py:PythonIntegerRing.finite_field", "diofant/domains/integerring.py:GMPYIntegerRing.finite_field" ], "added_modules": null, "edited_entities"...
diofant/diofant
2e1634c01698516fc6a1534fd6bb3019b03f2511
dmp_sqf_part(), dmp_sqf_p() and dmp_sqf_list() are wrong for multivariate polynomials Simple example: ``` In [1]: R, x, y, z = ring('x y z', ZZ) In [2]: f = (x - y)*(z - 1)**2 ...
diff --git a/diofant/domains/integerring.py b/diofant/domains/integerring.py index f3fa96659..892e22d6f 100644 --- a/diofant/domains/integerring.py +++ b/diofant/domains/integerring.py @@ -1,5 +1,7 @@ """Implementation of :class:`IntegerRing` class. """ +import abc + from ..polys.polyerrors import CoercionFailed f...
diofant__diofant-749
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "diofant/polys/rootisolation.py:dup_isolate_real_roots_sqf", "diofant/polys/rootisolation.py:dup_count_real_roots", "diofant/polys/rootisolation.py:dup_count_complex_roots", "diof...
diofant/diofant
e97a25885b2c791233523425bc90780dfef76f3f
dup_count_real_roots() is broken for composite domains This is wrong: ``` In [16]: R1 = ZZ.poly_ring(y).poly_ring(x) In [17]: R1.dup_count_real_roots(R1.from_expr(x**7 + y*x + 1)) Out[17]: 1 ``` That's easy to demonstrate even for real `y`: ``` In [18]: R2 = ZZ.poly_ring(x) In [19]: R2.dup_count_real_roots...
diff --git a/diofant/polys/rootisolation.py b/diofant/polys/rootisolation.py index d6d30b2aa..a617a12a7 100644 --- a/diofant/polys/rootisolation.py +++ b/diofant/polys/rootisolation.py @@ -418,9 +418,12 @@ def dup_isolate_real_roots_sqf(f, K, eps=None, inf=None, sup=None, fast=False, b R, K = K, K.field ...
diogommartins__simple_json_logger-14
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "simple_json_logger/formatte...
diogommartins/simple_json_logger
1bc3c8d12784d55417e8d46b4fe9b44bd8cd1f99
Fix multiline log for stacktraces Multiline stack traces must be formatted as a list of strings
diff --git a/setup.py b/setup.py index a1dddaa..db14acc 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages -VERSION = '0.2.2' +VERSION = '0.2.3' setup(name='simple_json_logger', diff --git a/simple_json_logger/formatter.py b/simple_json_logger/formatter.py index b...
direct-phonology__dphon-364
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dphon/cli.py:run", "dphon/cli.py:setup", "dphon/cli.py:process" ], "edited_modules": [ "dphon/cli.py:run", "dphon/cli.py:setup", "dphon/cli.py:process...
direct-phonology/dphon
240f4b0f94b8e00f1bb29c03ef14a7520bc90e9d
group matches after extension this plays into #54, since the groups are a little easier to read/parse. unlike some of the operations for #139, this grouping doesn't mutate edges. in fact, its output might be another kind of complete graph, or it might be a simple list of lists or other non-graph-related structure. a...
diff --git a/dphon/cli.py b/dphon/cli.py index 50d89ee..0883b8a 100644 --- a/dphon/cli.py +++ b/dphon/cli.py @@ -1,12 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- """dphon - a tool for old chinese phonetic analysis - + Usage: dphon -h | --help dphon --version - dphon [-v | -vv] [options] <pa...
direct-phonology__dphon-366
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dphon/cli.py:process" ], "edited_modules": [ "dphon/cli.py:process" ] }, "file": "dphon/cli.py" }, { "changes": { "added_entities": null, "added_mod...
direct-phonology/dphon
ebeb2491fd75f3e296b163b1979394d24867bde1
Min/max length filtering is not working The `--help` output says that the default for the `--min` option is 8, but in reality much shorter matches are returned. Passing the option manually seems to have no effect either.
diff --git a/dphon/cli.py b/dphon/cli.py index 0883b8a..97ab09f 100644 --- a/dphon/cli.py +++ b/dphon/cli.py @@ -42,8 +42,7 @@ Matching Options: -c <NUM>, --context <NUM> [default: 4] Add NUM tokens of context to each side of matches. Context displays with - a dimmed appearance if color is ...
dirty-cat__dirty_cat-185
[ { "changes": { "added_entities": [ "dirty_cat/gap_encoder.py:GapEncoderColumn.get_feature_names", "dirty_cat/gap_encoder.py:GapEncoder._create_column_gap_encoder" ], "added_modules": [ "dirty_cat/gap_encoder.py:GapEncoderColumn" ], "edited_entities": [ ...
dirty-cat/dirty_cat
e03db74fda201f8bb4643e61d4d559862253a90f
GapEncoder only supports 1D matrices Hi Currently, the GapEncoder only supports column vectors, however, it should accept 2D matrices in order to comply with scikit-learn's conventions. Code: ```python3 import numpy as np import pandas as pd from dirty_cat import GapEncoder # Data from `employee_sala...
diff --git a/CHANGES.rst b/CHANGES.rst index f2ae20f..e73e914 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,6 +21,11 @@ Major changes for scikit-learn's `ColumnTransformer` simpler to use on heterogeneous panda dataframes. +* **Backward incompatible change to GapEncoder**: The GapEncoder now only + support...
dirty-cat__dirty_cat-197
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dirty_cat/super_vectorizer.py:SuperVectorizer.__init__" ], "edited_modules": [ "dirty_cat/super_vectorizer.py:SuperVectorizer" ] }, "file": "dirty_cat/super_vectorizer....
dirty-cat/dirty_cat
766aa5c905a737d0a90e8432bed84aac6101754a
Better error message when SuperVectorizer's transform method is called before fit Scikit-learn has a mechanism to check that an estimator is fitted, and if not raise a good error message. We should use it.
diff --git a/dirty_cat/super_vectorizer.py b/dirty_cat/super_vectorizer.py index 84b39c9..dcbf1ab 100644 --- a/dirty_cat/super_vectorizer.py +++ b/dirty_cat/super_vectorizer.py @@ -171,8 +171,6 @@ class SuperVectorizer(ColumnTransformer): self.transformer_weights = transformer_weights self.verbose = v...
dirty-cat__dirty_cat-261
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "build_tools/circle/list_versions.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "...
dirty-cat/dirty_cat
4c5b7892f5be9bf070690bba302dbc9a60164349
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. <!--Provide a brief description of the bug.--> Since december 2021, `distutils.version.Version` (and thus `LooseVersion`) [is deprecated](https://github.com/pypa/setuptools/commit/1701579e0827317d8888c2254a17b5786b6b5246). ...
diff --git a/CHANGES.rst b/CHANGES.rst index 3b92fa9..027a15b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -30,6 +30,7 @@ Release 0.2.1 Major changes ------------- + * Improvements to the :class:`SuperVectorizer` - Type detection works better: handles dates, numerics columns encoded as strings, @@ -51,6 +5...
dirty-cat__dirty_cat-300
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "dirty_cat/gap_encoder.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dirty_cat/s...
dirty-cat/dirty_cat
9e59a1ae72abfb453768d6cd41daca9cbb4cc942
One hot encoding of Supervectorizer for columns with 2 values Just something I observed using SuperVectorizer, on a dataset with columns having mostly 2 categorical values. As documented, it runs one hot encoding on them, and this blows up the feature space. This is probably an edge case, and the example I have here is...
diff --git a/CHANGES.rst b/CHANGES.rst index a1f7651..da2fc09 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,14 +7,21 @@ Major changes * New encoder: :class:`DatetimeEncoder` can transform a datetime column into several numerical columns (year, month, day, hour, minute, second, ...). It is now the default trans...
dirty-cat__dirty_cat-378
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dirty_cat/_minhash_encoder.py:MinHashEncoder.transform" ], "edited_modules": [ "dirty_cat/_minhash_encoder.py:MinHashEncoder" ] }, "file": "dirty_cat/_minhash_encoder.p...
dirty-cat/dirty_cat
9eb591250ab9dfd756ab08ef764278f256bf9d3c
MinHashEncoder does not understand "None" as missing value The following raises an error because the None is not captured as a NaN: ```python import numpy as np a = np.array([['a', 'b', None, 'c']], dtype=object).T from dirty_cat import MinHashEncoder enc = MinHashEncoder() enc.fit_transform(a) ```
diff --git a/CHANGES.rst b/CHANGES.rst index f774809..49769fe 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,12 +3,21 @@ Release 0.4.0 ============= -Minor changes +Major changes ------------- * Unnecessary API has been made private: everything (files, functions, classes) starting with an underscore should...
dirty-cat__dirty_cat-379
[ { "changes": { "added_entities": [ "dirty_cat/_minhash_encoder.py:MinHashEncoder._get_murmur_hash", "dirty_cat/_minhash_encoder.py:MinHashEncoder._get_fast_hash" ], "added_modules": null, "edited_entities": [ "dirty_cat/_minhash_encoder.py:MinHashEncoder.minhash",...
dirty-cat/dirty_cat
e028030a7451d0b9e8cce070ac346676b5f81685
Improve coverage of main features Here are some of the code coverage results: ``` ------------------------------------------------------------------------ dirty_cat/_datetime_encoder.py 88% dirty_cat/_gap_encoder.py 88% dirty_cat/_minhash_encoder.py 94% dirty_cat/_simila...
diff --git a/CHANGES.rst b/CHANGES.rst index 96fbf2e..6b1ee03 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,10 +18,12 @@ Minor changes ------------- * Removed example `Fitting scalable, non-linear models on data with dirty categories`. +* :class:`MinHashEncoder`'s `minhash` method is no longer public. + Bug fi...
dirty-cat__dirty_cat-401
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dirty_cat/_super_vectorizer.py:SuperVectorizer.__init__" ], "edited_modules": [ "dirty_cat/_super_vectorizer.py:SuperVectorizer" ] }, "file": "dirty_cat/_super_vectoriz...
dirty-cat/dirty_cat
9bc0f1fa93a151fc599f6198960ba6d1fabdf5a3
Make our tests more robust to flawky downloads Some tests use data downloaded from internet: https://github.com/dirty-cat/dirty_cat/blob/master/dirty_cat/tests/test_minhash_encoder.py As a result, the tests are fragile (see https://github.com/dirty-cat/dirty_cat/actions/runs/3175021096/jobs/5176906979#step:6:907 fo...
diff --git a/dirty_cat/_super_vectorizer.py b/dirty_cat/_super_vectorizer.py index db8f862..d5bac42 100644 --- a/dirty_cat/_super_vectorizer.py +++ b/dirty_cat/_super_vectorizer.py @@ -4,7 +4,6 @@ transformers/encoders to different types of data, without the need to manually categorize them beforehand, or construct co...
disconnect3d__cint-10
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cint.py:WrappedCint.__iadd__", "cint.py:WrappedCint.__isub__", "cint.py:WrappedCint.__imul__", "cint.py:WrappedCint.__ipow__", "cint.py:WrappedCint.__itruediv__", ...
disconnect3d/cint
4f74e4945bf7e3631098e472bef6026bc124d116
Bug?: mutable value TLDR: ``` In [1]: import cint In [2]: x = cint.I8(127) In [3]: y = x In [4]: y += 1 In [5]: y, x Out[5]: (I8(-128), I8(-128)) ``` while this is correct for Python - `x` and `y` are the same objects, it is not that intuitive for C-like code. What I mean is, a similar syntax in C ...
diff --git a/cint.py b/cint.py index 9f520f0..0dd133d 100644 --- a/cint.py +++ b/cint.py @@ -133,48 +133,37 @@ class WrappedCint: __index__ = __int__ # make indexing work def __iadd__(self, other): - self.value += calc(other) - return self + return self.__class__(self.value + calc(othe...
discos__simulators-103
[ { "changes": { "added_entities": [ "simulators/utils.py:real_to_bytes", "simulators/utils.py:bytes_to_real", "simulators/utils.py:int_to_bytes", "simulators/utils.py:uint_to_bytes" ], "added_modules": [ "simulators/utils.py:real_to_bytes", "simul...
discos/simulators
cec38fb58da280acfd66707e8c6438bb07b39d88
Enhance `utils.py` to provide functions useful to the `acu.py` module.
diff --git a/simulators/utils.py b/simulators/utils.py index 1b7462c..35cf994 100644 --- a/simulators/utils.py +++ b/simulators/utils.py @@ -1,3 +1,4 @@ +#!/usr/bin/python import math import struct from datetime import datetime @@ -144,16 +145,59 @@ def real_to_binary(num, precision=1): ) -def mjd(): - ...
discos__simulators-125
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "simulators/active_surface.py:System.get_position", "simulators/active_surface.py:System.set_min_frequency", "simulators/active_surface.py:System.set_max_frequency", "simulators/a...
discos/simulators
8f491d8dda1a217d9233b0f4680e11c52dafaa2a
ACU commands and status use little-endian byte order, the current implementation uses big-endian.
diff --git a/simulators/active_surface.py b/simulators/active_surface.py index 5bea129..afd751a 100644 --- a/simulators/active_surface.py +++ b/simulators/active_surface.py @@ -579,7 +579,7 @@ class System(ListeningSystem): self.drivers[params[0]].current_position ) - val = ut...
discos__simulators-307
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "simulators/backend/sardara.py:System.__init__" ], "edited_modules": [ "simulators/backend/sardara.py:System" ] }, "file": "simulators/backend/sardara.py" } ]
discos/simulators
97074a98491b258eefb05522ce1d541cc8cf1951
Sardara backend does not recognize configurations sent by DISCOS We probably introduced a bug when reorganizing the backend simulators
diff --git a/simulators/backend/sardara.py b/simulators/backend/sardara.py index 1624328..93ebb57 100644 --- a/simulators/backend/sardara.py +++ b/simulators/backend/sardara.py @@ -1,3 +1,4 @@ +import re from simulators.backend.genericbackend import GenericBackendSystem @@ -5,3 +6,4 @@ class System(GenericBackendS...
discos__simulators-317
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "simulators/minor_servos/__init__.py:PFP.get_status", "simulators/minor_servos/__init__.py:SRP.get_status", "simulators/minor_servos/__init__.py:M3R.get_status", "simulators/minor...
discos/simulators
58ea51e62967cfbe7636a1849bbf1f9d4434e4f0
Implement OFFSETs values in STATUS commands for minor servos (OR7)
diff --git a/simulators/minor_servos/__init__.py b/simulators/minor_servos/__init__.py index 5cb01a0..6e3c6dd 100644 --- a/simulators/minor_servos/__init__.py +++ b/simulators/minor_servos/__init__.py @@ -290,7 +290,10 @@ class PFP(Servo): answer += f'PFP_ELONG_THETA_SLAVE={random.uniform(0, 100):.6f}|' ...
discos__simulators-331
[ { "changes": { "added_entities": [ "simulators/lo/w_LO.py:System.enable_USB_devs", "simulators/lo/w_LO.py:System.disable_USB_devs", "simulators/lo/w_LO.py:System.set_W_LO_RefH", "simulators/lo/w_LO.py:System.set_W_LO_RefV", "simulators/lo/w_LO.py:System.get_W_LO_Ref...
discos/simulators
0c2f709613f91a6558495592ee0566459c5f2de3
Memory leak in minor_servos programTrack function
diff --git a/doc/doc_requirements.txt b/doc/doc_requirements.txt index 1d00f62..f9fe44a 100644 --- a/doc/doc_requirements.txt +++ b/doc/doc_requirements.txt @@ -1,4 +1,4 @@ -docutils -sphinx +docutils<0.19 +sphinx<7 sphinx_rtd_theme sphinxcontrib-bibtex diff --git a/simulators/lo/w_LO.py b/simulators/lo/w_LO.py index...
discos__simulators-61
[ { "changes": { "added_entities": [ "simulators/utils.py:bytes_to_int" ], "added_modules": [ "simulators/utils.py:bytes_to_int" ], "edited_entities": [ "simulators/utils.py:int_to_twos" ], "edited_modules": [ "simulators/utils.py:int_to_tw...
discos/simulators
a857f00fd7150818b4aa28f267c03a8c90a0dda5
Add a method to convert a string of bytes into an integer (like C atoi function). The method should be implemented in utils.py.
diff --git a/simulators/utils.py b/simulators/utils.py index f289e78..25e23ff 100644 --- a/simulators/utils.py +++ b/simulators/utils.py @@ -46,28 +46,38 @@ def twos_to_int(binary_string): return val -def int_to_twos(val): +def int_to_twos(val, n_bytes=4): """Return the two's complement of the given integ...
discos__srt-single-dish-tools-208
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "srttools/scan.py:object_or_pickle", "srttools/scan.py:clean_scan_using_variability" ], "edited_modules": [ "srttools/scan.py:object_or_pickle", "srttools/scan.py:clea...
discos/srt-single-dish-tools
0af663f53c2fd0efc4b61a0f2af376aa61060c53
Quicklook sometimes outputs big files, the directory where the monitor was launched grew to >14GB `2021-04-17 10:50:55 - Loading file /roach2_nuraghe/data/ASI/20210417/20210417-103616-ASI-CasA_PmapAZ/20210417-104755-ASI-CasA_PmapAZ_001_013.fits, pid 101605 2021-04-17 10:50:55 - Loading file /roach2_nuraghe/data/ASI/20...
diff --git a/srttools/scan.py b/srttools/scan.py index a3b95ba..c54d942 100644 --- a/srttools/scan.py +++ b/srttools/scan.py @@ -243,10 +243,13 @@ class CleaningResults: mask = None -def object_or_pickle(obj): +def object_or_pickle(obj, remove=False): if isinstance(obj, str): with open(obj, "rb")...
disqus__python-phabricator-64
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "phabricator/__init__.py:Resource.__init__", "phabricator/__init__.py:Resource.__getattr__", "phabricator/__init__.py:Resource._request", "phabricator/__init__.py:Phabricator.upda...
disqus/python-phabricator
a922ba404a4578f9f909e241539b1fb5a99585b2
Conflict between Resource class attribute and new almanac interface endpoints With [rPe502df509d5f](https://secure.phabricator.com/rPe502df509d5f8dd3106be50d7d83ac244ff96cb4), upstream phab implements almanac conduit endpoints: `almanc.interface.search` and `almanc.interface.edit`. This now conflicts with the existi...
diff --git a/CHANGES b/CHANGES index 2fd4c34..64c95a0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +0.8.1 + +* Fixed bug where built-in interface dict overwrote `interface` methods from Almanac (`interface.search`, `interface.edit`). The `Resource` attribute `interface` is renamed `_interface`. + 0.8.0 * Swit...
dixudx__rtcclient-183
[ { "changes": { "added_entities": [ "rtcclient/base.py:RTCBase.skip_full_attributes" ], "added_modules": null, "edited_entities": [ "rtcclient/base.py:RTCBase.__init__", "rtcclient/base.py:FieldBase.__init__", "rtcclient/base.py:FieldBase.__process_items" ...
dixudx/rtcclient
9f4fdaa8b2015f34894f162d1f72afc3e637c81e
why long attributes are skipped ? Hi, I was trying to get as many attributes from work item as I can, and I was stucked [here](https://github.com/dixudx/rtcclient/blob/266768d35808af5cc4fdaa7c8855842e3e227331/rtcclient/base.py#L310-L313), is there a reason to have this check to skip "long attributes" ? I've removed...
diff --git a/rtcclient/base.py b/rtcclient/base.py index ea6453d..2c79e5f 100644 --- a/rtcclient/base.py +++ b/rtcclient/base.py @@ -17,12 +17,17 @@ class RTCBase(object): OSLC_CR_XML = "application/x-oslc-cm-change-request+xml" OSLC_CR_JSON = "application/x-oslc-cm-change-request+json" - def __init__(se...
dixudx__rtcclient-184
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/how_to/workitem/get_workitem.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ ...
dixudx/rtcclient
da253d2d1eedb8e9e88c98cfba2828daa2a81f60
url not found: jazz/authenticated Hi, I was trying to use your plugin to, at least, connect to a jazz server using your `get_workitem.py` script into `examples/how_to/workitem` folder. I've changed the file with : ```python url = "https://__the_url__:443/ccm/jazz" username = "my_username" passwor...
diff --git a/examples/how_to/workitem/get_workitem.py b/examples/how_to/workitem/get_workitem.py index ef095f8..7064f40 100644 --- a/examples/how_to/workitem/get_workitem.py +++ b/examples/how_to/workitem/get_workitem.py @@ -9,7 +9,7 @@ if __name__ == "__main__": url = "https://your_domain:9443/jazz" username...
diyan__pywinrm-202
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "winrm/transport.py:Transport.build_session" ], "edited_modules": [ "winrm/transport.py:Transport" ] }, "file": "winrm/transport.py" } ]
diyan/pywinrm
eb6a408e3941260e753b6596eab1f099cddc6515
server_cert_validation 'ignore' no longer works in 0.3.0 The following no longer works against a self-signed certificate, has `server_cert_validation` changed? ``` from winrm.protocol import Protocol p = Protocol( endpoint='https://somewindows:5986/wsman', transport='ntlm', username=r'\Admin', ...
diff --git a/winrm/transport.py b/winrm/transport.py index 81e8826..430c761 100644 --- a/winrm/transport.py +++ b/winrm/transport.py @@ -147,19 +147,21 @@ class Transport(object): def build_session(self): session = requests.Session() - session.verify = self.server_cert_validation == 'validate' - ...
diybitcoinhardware__embit-40
[ { "changes": { "added_entities": [ "src/embit/ec.py:PrivateKey.ecdh" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/embit/ec.py:PrivateKey" ] }, "file": "src/embit/ec.py" }, { "changes": { "added_entities": [ ...
diybitcoinhardware/embit
2bf81739eb5f01f8ad59d23c492fd9d9564eed48
Add ECDH Enables shared secrets to be computed
diff --git a/src/embit/ec.py b/src/embit/ec.py index c081fbf..263ab21 100644 --- a/src/embit/ec.py +++ b/src/embit/ec.py @@ -236,6 +236,10 @@ class PrivateKey(EmbitKey): # return a copy of the secret return stream.write(self._secret) + def ecdh(self, public_key: PublicKey, hashfn=None, data=None)...
dizak__prwlr-100
[ { "changes": { "added_entities": [ "prwlr/core.py:save_network" ], "added_modules": [ "prwlr/core.py:save_network" ], "edited_entities": [ "prwlr/core.py:pss" ], "edited_modules": [ "prwlr/core.py:pss" ] }, "file": "prwlr/co...
dizak/prwlr
1a18b4a13f5eedeaa44610db8f0e98611d933601
prwlr.save_network The highest-level convenience method prwlr.save_network should be implemented in prwlr.core so that whole network can be saved without losing prwlr.profiles.Profile objects.
diff --git a/prwlr/core.py b/prwlr/core.py index f512fc7..eee71c2 100644 --- a/prwlr/core.py +++ b/prwlr/core.py @@ -1,3 +1,4 @@ +import gc import pandas as _pd import numpy as _np from . import databases as _databases @@ -221,6 +222,64 @@ def save_profiles( }, ).to_csv(filename, **kwargs) +def save_...
dizak__prwlr-87
[ { "changes": { "added_entities": [ "prwlr/core.py:read_profiles", "prwlr/core.py:save_profiles" ], "added_modules": [ "prwlr/core.py:Columns", "prwlr/core.py:read_profiles", "prwlr/core.py:save_profiles" ], "edited_entities": null, "edi...
dizak/prwlr
e16a0c808ea160a3480dff39ec1527d1f5f971e5
prwlr.read_profiles The highest-level convenience method ```prwlr.read_profiles``` should be implemented in ```prwlr.core``` analogous to ```prwlr.core.read_sga```. There should be also be ```prwlr.save_profiles``` avilable.
diff --git a/prwlr/core.py b/prwlr/core.py index e0b5859..146c0bd 100644 --- a/prwlr/core.py +++ b/prwlr/core.py @@ -1,7 +1,17 @@ import pandas as _pd import numpy as _np from . import databases +from . import profiles as _profiles +class Columns: + """ + Container for the columns names defined in this modul...
django-auth-ldap__django-auth-ldap-382
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "django_auth_ldap/backend.py" } ]
django-auth-ldap/django-auth-ldap
3685761acbdf5488cf51136be6b4c8d526b67c40
Allow to raise LDAP errors via settings I use django-auth-ldap in combination with django-axes, which locks out users after too many failed login attempts. I recently had a situation where the LDAP server was not reachable. Users who tried to log in during that time were locked out by django-axes, which made the situat...
diff --git a/django_auth_ldap/backend.py b/django_auth_ldap/backend.py index c63b6ce..4356d79 100644 --- a/django_auth_ldap/backend.py +++ b/django_auth_ldap/backend.py @@ -51,7 +51,6 @@ import django.conf import django.dispatch import ldap from django.contrib.auth import get_user_model -from django.contrib.auth.mod...
django-beam__django-beam-34
[ { "changes": { "added_entities": [ "src/beam/components.py:BaseComponent.has_perm" ], "added_modules": null, "edited_entities": [ "src/beam/components.py:BaseComponent.__init__", "src/beam/components.py:Component.__init__" ], "edited_modules": [ ...
django-beam/django-beam
830bf60428b949a595a706584cef125dd734ced2
permissions idea: add them to viewinfo and use that as source
diff --git a/src/beam/components.py b/src/beam/components.py index 9293317..572deac 100644 --- a/src/beam/components.py +++ b/src/beam/components.py @@ -21,10 +21,19 @@ class BaseComponent: self.name = name self.verbose_name = verbose_name or self.name - self.permission = permission # FIXME ...
django-json-api__django-rest-framework-json-api-1020
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/utils.py:get_resource_type_from_serializer" ], "edited_modules": [ "rest_framework_json_api/utils.py:get_resource_type_from_serializer" ] }, "fi...
django-json-api/django-rest-framework-json-api
3db6bce73e017a883e3f9139f5acaa466b634c71
Resolve resource type in serializer's meta class `utils.get_resource_type_from_serializer` is called several times throughout the DJA code base. When this method raises an `AttributeError` it is a configuration/code setup issue and not a runtime issue. Besides there is no error message describing want went wrong. Go...
diff --git a/AUTHORS b/AUTHORS index 35d959c..fa91e9b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -15,6 +15,7 @@ Jamie Bliss <astronouth7303@gmail.com> Jason Housley <housleyjk@gmail.com> Jeppe Fihl-Pearson <jeppe@tenzer.dk> Jerel Unruh <mail@unruhdesigns.com> +Jonas Kiefer <https://github.com/jokiefer> Jonas Metzener <j...
django-json-api__django-rest-framework-json-api-1065
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/utils.py:get_related_resource_type" ], "edited_modules": [ "rest_framework_json_api/utils.py:get_related_resource_type" ] }, "file": "rest_frame...
django-json-api/django-rest-framework-json-api
f9eb27750fc813b4e4fa1a46dc377e232ef82975
ResourceRelatedField.source doesn't allow nested paths Compared to how DRF allow nested paths in source: https://github.com/encode/django-rest-framework/blob/master/rest_framework/fields.py#L401 DJA doesn't allow it: https://github.com/django-json-api/django-rest-framework-json-api/blob/51daed1a738aadb1536a6a3cbe7...
diff --git a/AUTHORS b/AUTHORS index fa91e9b..419144b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -2,6 +2,7 @@ Adam Wróbel <https://adamwrobel.com> Adam Ziolkowski <adam@adsized.com> Alan Crosswell <alan@columbia.edu> Anton Shutik <shutikanton@gmail.com> +Ashley Loewen <github@ashleycodes.tech> Asif Saif Uddin <auvipy@gm...
django-json-api__django-rest-framework-json-api-1074
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/utils.py:format_error_object" ], "edited_modules": [ "rest_framework_json_api/utils.py:format_error_object" ] }, "file": "rest_framework_json_ap...
django-json-api/django-rest-framework-json-api
46551a9aada19c503e363b20b47765009038d996
Avoid overwriting of pointer when using custom errors The code that produces JSON:API error objects assumes that all fields being validated are under `/data/attributes`: https://github.com/django-json-api/django-rest-framework-json-api/blob/b0257c065ac2439036ac0543139e7f5913755177/rest_framework_json_api/utils.py#L3...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 91faffd..91551dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ any parts of the framework not mentioned in the documentation should generally b * Fixed invalid relationship pointer in error objects when field naming formatting is used. * Properly resol...
django-json-api__django-rest-framework-json-api-1137
[ { "changes": { "added_entities": [ "example/api/serializers/identity.py:IdentitySerializer.validate" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "example/api/serializers/identity.py:IdentitySerializer" ] }, "file": "example/a...
django-json-api/django-rest-framework-json-api
ad5a793b54ca2922223352a58830515d25fa4807
Object-level validation errors given an incorrect source.pointer ## Description of the Bug Report When raising a non-field `ValidationError` in a serializer [in accordance with the DRF documentation](https://www.django-rest-framework.org/api-guide/serializers/#object-level-validation), the error is attributed to a n...
diff --git a/AUTHORS b/AUTHORS index e27ba5f..797ab52 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,6 +3,7 @@ Adam Ziolkowski <adam@adsized.com> Alan Crosswell <alan@columbia.edu> Alex Seidmann <alex@leanpnt.de> Anton Shutik <shutikanton@gmail.com> +Arttu Perälä <arttu@perala.me> Ashley Loewen <github@ashleycodes.tech> ...
django-json-api__django-rest-framework-json-api-1162
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/renderers.py:JSONRenderer.extract_relationships" ], "edited_modules": [ "rest_framework_json_api/renderers.py:JSONRenderer" ] }, "file": "rest_f...
django-json-api/django-rest-framework-json-api
71508efa3fee8ff75c9cfcd092844801aeb407e1
SerializerMethodResourceRelatedField does not include meta section in relationship response. `SerializerMethodResourceRelatedField` does not include a meta section in the relationship response like `ResourceRelatedField` does. This doesn't make sense, because `SerializerMethodResourceRelatedField` extends `ResourceRela...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d494fc2..a9dc65d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ any parts of the framework not mentioned in the documentation should generally b return value.name ``` +* `SerializerMethodResourceRelatedField(many=True)` relationship data...
django-json-api__django-rest-framework-json-api-1220
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/utils.py:format_drf_errors" ], "edited_modules": [ "rest_framework_json_api/utils.py:format_drf_errors" ] }, "file": "rest_framework_json_api/ut...
django-json-api/django-rest-framework-json-api
2568417f1940834c058ccf8319cf3e4bc0913bee
Validation of include parameter causes unhandled exception ## Description of the Bug Report When requesting an API endpoint with the `include` query param, specifying an unsupported value results in an uncaught exception and traceback (below). Note: this only seems to happen when querying using the browseable API. W...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 964f6b1..0b05600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ any parts of the framework not mentioned in the documentation should generally b * `ModelSerializer` fields are now returned in the same order than DRF * Avoided that an empty attributes dict...
django-json-api__django-rest-framework-json-api-1221
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "example/views.py:EntryViewSet" ] }, "file": "example/views.py" }, { "changes": { "added_entities": [ "rest_framework_json_api/renderers....
django-json-api/django-rest-framework-json-api
0eabc3909c4a76ea37b7518404a625918cabb671
Sparse fields set should only drop fields when reading ## Description of the Bug Report As discussed in #1214 there is an issue with `SparseFieldsetsMixin` serializer mixin. It drops fields when reading and writing, however it should only do it when reading and not when writing as per [specification](https://jsonapi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b05600..186c58c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ any parts of the framework not mentioned in the documentation should generally b * Avoided that an empty attributes dict is rendered in case serializer does not provide any attribute fields...
django-json-api__django-rest-framework-json-api-1231
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/renderers.py:JSONRenderer._filter_sparse_fields" ], "edited_modules": [ "rest_framework_json_api/renderers.py:JSONRenderer" ] }, "file": "rest_f...
django-json-api/django-rest-framework-json-api
21493c1abda91af80de13202407485ef1a21dc50
Release 7.0.0 breaks sparse fields request ## Description of the Bug Report As of release 7.0.0 a sparse fields request throws a KeyError for `url` at https://github.com/django-json-api/django-rest-framework-json-api/blob/366769e55e821eba11928125c903ad5043f9ff43/rest_framework_json_api/renderers.py#L485-L486 This wa...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a61d5fa..47a6dec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ any parts of the framework not mentioned in the documentation should generally b * Added `429 Too Many Requests` as a possible error response in the OpenAPI schema. +### Fixed + +* Ensure...
django-json-api__django-rest-framework-json-api-1240
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/renderers.py:JSONRenderer._filter_sparse_fields" ], "edited_modules": [ "rest_framework_json_api/renderers.py:JSONRenderer" ] }, "file": "rest_f...
django-json-api/django-rest-framework-json-api
53469f355dcf5c1dd1bf064ed64abc21325f11b0
Sparse field set should not return all fields when value is empty ## Description of the Bug Report The [JSON:API spec](https://jsonapi.org/format/#fetching-sparse-fieldsets) states > The value of any fields[TYPE] parameter MUST be a comma-separated (U+002C COMMA, “,”) list that refers to the name(s) of the fields...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 07ea2cd..d60e486 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ any parts of the framework not mentioned in the documentation should generally b ### Fixed * Re-enabled overwriting of url field (regression since 7.0.0) +* Ensured that no fields are rende...
django-json-api__django-rest-framework-json-api-1245
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/utils.py:get_resource_id" ], "edited_modules": [ "rest_framework_json_api/utils.py:get_resource_id" ] }, "file": "rest_framework_json_api/utils....
django-json-api/django-rest-framework-json-api
6eff72e1be5fd8359f58c519091016f3e6709e23
id column integer primary key of 0 gets returned as null If a model has an id column that's an integer primary key ```python class Person(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=200) ``` and a fixture is loaded where the id has value 0 ```json [ ...
diff --git a/AUTHORS b/AUTHORS index 7f4a823..d421d5e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -15,6 +15,7 @@ David Guillot, for Contexte <dguillot@contexte.com> David Vogt <david.vogt@adfinis-sygroup.ch> Felix Viernickel <felix@gedankenspieler.org> Greg Aker <greg@gregaker.net> +Humayun Ahmad <humayunahbh@gmail.com> ...
django-json-api__django-rest-framework-json-api-842
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/serializers.py:SparseFieldsetsMixin.__init__" ], "edited_modules": [ "rest_framework_json_api/serializers.py:SparseFieldsetsMixin" ] }, "file": ...
django-json-api/django-rest-framework-json-api
e09b85dc3a7220f2e6fb1a3994ba176a2b71566f
SparseFieldsetsMixin catches invalid key from URL Hi, Once I want to use sparse fields in URL eg.: `/api/something/?fields[bar]=somefield` The SparseFieldsetsMixin is checking for the key as substring: `key for key in request.query_params if sparse_fieldset_query_param in key` That causes the situation w...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2174900..d008982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,9 @@ This release is not backwards compatible. For easy migration best upgrade first * Removed obsolete `source` argument of `SerializerMethodResourceRelatedField` * Removed obsolete setting `JSON...
django-json-api__django-rest-framework-json-api-860
[ { "changes": { "added_entities": null, "added_modules": [ "example/serializers.py:AuthorListSerializer", "example/serializers.py:AuthorDetailSerializer" ], "edited_entities": null, "edited_modules": null }, "file": "example/serializers.py" }, { "chan...
django-json-api/django-rest-framework-json-api
c392a439510ef05e6b9f9554b59cb3577fd86610
Allow overwriting of get_serializer_class with related urls In https://github.com/django-json-api/django-rest-framework-json-api/blob/a67a521327c9ec62a18a875abf13504a72d8eaf0/rest_framework_json_api/views.py#L182 the serializer class defined in the view is used directly. This is a problem if one wants to override `get...
diff --git a/AUTHORS b/AUTHORS index b440df8..d4c03b2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -33,4 +33,5 @@ Sergey Kolomenkin <https://kolomenkin.com> Stas S. <stas@nerd.ro> Tim Selman <timcbaoth@gmail.com> Tom Glowka <glowka.tom@gmail.com> +Ulrich Schuster <ulrich.schuster@mailworks.org> Yaniv Peer <yanivpeer@gmail...
django-json-api__django-rest-framework-json-api-868
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/utils.py:get_related_resource_type" ], "edited_modules": [ "rest_framework_json_api/utils.py:get_related_resource_type" ] }, "file": "rest_frame...
django-json-api/django-rest-framework-json-api
3263061a486e7b6bbfff066620a605383714fdf6
Including lists of resources from non-model annotated objects I have a `Organization` model with a serializer whose instances get some extra data bound to then when using a specific view. this extra data is two lists of `Product` objects, which is not a django model (just a plain old python object) but its representati...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4613aa1..17a6335 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Note that in line with [Django REST Framework policy](http://www.django-rest-framework.org/topics/release-notes/)...
django-json-api__django-rest-framework-json-api-926
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rest_framework_json_api/relations.py:ResourceRelatedField.get_resource_type_from_included_serializer" ], "edited_modules": [ "rest_framework_json_api/relations.py:ResourceRelatedFiel...
django-json-api/django-rest-framework-json-api
684063b4a878afd834c712ef2ea1cb8b8dffe2bf
included_serializers should be imported in meta class There is a method `utils.get_included_serializers` which handles importing of included serializers as a serializer can also be defined as string. This method is called a couple of times during one request (e.g. in the renderer, resource validation etc.). It is mu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3206cfa..d9eaf50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Note that in line with [Django REST Framework policy](http://www.django-rest-framework.org/topics/release-notes/...
django-json-api__django-rest-framework-json-api-987
[ { "changes": { "added_entities": [ "rest_framework_json_api/serializers.py:SerializerMetaclass._get_declared_fields" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "rest_framework_json_api/serializers.py:SerializerMetaclass" ] }, ...
django-json-api/django-rest-framework-json-api
414547a34cac2ae3a143cc2578b320e3d05d8d85
Invalid detail route rendering when using results as field name I have a basic django app with the following structure: (omitted a few other models to make it more readable) ``` # models.py from django.contrib.postgres.fields import JSONField class Recording(TimeStampedModel): title = models.CharField(max...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 97ef872..30ef91e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,9 @@ any parts of the framework not mentioned in the documentation should generally b ### Fixed -* Adjusted error messages to correctly use capitial "JSON:API" abbreviation as used in the speci...
django-money__django-money-594
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "djmoney/money.py:Money" ] }, "file": "djmoney/money.py" } ]
django-money/django-money
bb222ed619f72a0112aef8c0fd9a4823b1e6e388
Money should not override `__rsub__` method As [reported](https://github.com/py-moneyed/py-moneyed/issues/144) in pymoneyed the following test case fails: ```python from moneyed import Money as PyMoney from djmoney.money import Money def test_sub_negative(): total = PyMoney(0, "EUR") bills = (Money(...
diff --git a/djmoney/money.py b/djmoney/money.py index 70bea0b..b744c66 100644 --- a/djmoney/money.py +++ b/djmoney/money.py @@ -106,7 +106,6 @@ class Money(DefaultMoney): # we overwrite the 'targets' so the wrong synonyms are called # Example: we overwrite __add__; __radd__ calls __add__ on DefaultMoney... ...
django-money__django-money-596
[ { "changes": { "added_entities": [ "djmoney/money.py:Money._copy_attributes", "djmoney/money.py:Money.round", "djmoney/money.py:Money.__pos__", "djmoney/money.py:Money.__neg__", "djmoney/money.py:Money.__abs__", "djmoney/money.py:Money.__rmod__" ], ...
django-money/django-money
9ac8d8b1f7060437bfb1912c4182cb0b553c1519
`Money.decimal_places` are not always the same after arithmetic operations `djmoney.money.Money` uses some methods from `moneyed.Money`. In these methods (e.g. `__neg__`) new instances are created with only `amount` and `currency`. For this reason, our `django-money` specific attributes are not copied. Example: `...
diff --git a/djmoney/money.py b/djmoney/money.py index b744c66..f109fdc 100644 --- a/djmoney/money.py +++ b/djmoney/money.py @@ -39,17 +39,27 @@ class Money(DefaultMoney): """ Set number of digits being displayed - `None` resets to `DECIMAL_PLACES_DISPLAY` setting """ self._decimal_places_display = va...
django-money__django-money-604
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "djmoney/models/fields.py:get_value", "djmoney/models/fields.py:MoneyField.setup_default" ], "edited_modules": [ "djmoney/models/fields.py:get_value", "djmoney/models/...
django-money/django-money
8014bed7968665eb55cc298108fd1922667aec24
djmoney alters existing objects We have an application that uses `moneyed` and (sub-classes of) its `Money` type in a non-Django environment. We recently started integrating this into a Django app that uses djmoney and started getting weird errors in seemingly unrelated cases because instances of `djmoney.money.Money`...
diff --git a/djmoney/models/fields.py b/djmoney/models/fields.py index 8b812be..e24af66 100644 --- a/djmoney/models/fields.py +++ b/djmoney/models/fields.py @@ -35,7 +35,7 @@ def get_value(obj, expr): else: expr = expr.value if isinstance(expr, OldMoney): - expr.__class__ = Money + expr...
django-money__django-money-647
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "djmoney/models/fields.py:MoneyField.deconstruct" ], "edited_modules": [ "djmoney/models/fields.py:MoneyField" ] }, "file": "djmoney/models/fields.py" } ]
django-money/django-money
2040eff83fef2d4a1d882c016ab2b5e0853d2f84
default_currency=None keeps detecting migration changes Based on the comment in the discussion found here: https://github.com/django-money/django-money/issues/530#issuecomment-650166087 If `MoneyField(..., default_currency=None)` is added to an already existing model, so that the field is triggering migration operat...
diff --git a/djmoney/models/fields.py b/djmoney/models/fields.py index 9b7195e..9d42575 100644 --- a/djmoney/models/fields.py +++ b/djmoney/models/fields.py @@ -298,8 +298,11 @@ class MoneyField(models.DecimalField): if self._has_default: kwargs["default"] = self.default.amount - if self....
django-money__django-money-689
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "djmoney/contrib/exchange/models.py:get_rate", "djmoney/contrib/exchange/models.py:_get_rate" ], "edited_modules": [ "djmoney/contrib/exchange/models.py:get_rate", "dj...
django-money/django-money
94f279562b252a0ce631d3929534a68f83e93711
calling get_rate with identical source and target currency should be a noop - it is always exactly 1 - that doesn't even have to hit the cache ;)
diff --git a/djmoney/contrib/exchange/models.py b/djmoney/contrib/exchange/models.py index 4d97846..7963967 100644 --- a/djmoney/contrib/exchange/models.py +++ b/djmoney/contrib/exchange/models.py @@ -40,6 +40,8 @@ def get_rate(source, target, backend=None): Converts exchange rate on the DB side if there is no bac...
django__asgiref-183
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asgiref/wsgi.py:WsgiToAsgiInstance.build_environ" ], "edited_modules": [ "asgiref/wsgi.py:WsgiToAsgiInstance" ] }, "file": "asgiref/wsgi.py" } ]
django/asgiref
3020b4a309033ad0b7041dda7712b0ed729e338f
WSGI Error in non-ascii path https://github.com/encode/starlette/issues/997 I noticed that the ASGI document clearly states that utf8 encoding is required, but WSGI seems to require latin-1 encoding. https://www.python.org/dev/peps/pep-3333/#a-note-on-string-types https://asgi.readthedocs.io/en/latest/specs/www....
diff --git a/asgiref/wsgi.py b/asgiref/wsgi.py index 7155ab2..8811118 100644 --- a/asgiref/wsgi.py +++ b/asgiref/wsgi.py @@ -55,8 +55,8 @@ class WsgiToAsgiInstance: """ environ = { "REQUEST_METHOD": scope["method"], - "SCRIPT_NAME": scope.get("root_path", ""), - "PAT...
django__asgiref-191
[ { "changes": { "added_entities": [ "asgiref/sync.py:sync_to_async" ], "added_modules": [ "asgiref/sync.py:sync_to_async" ], "edited_entities": [ "asgiref/sync.py:AsyncToSync.__init__", "asgiref/sync.py:SyncToAsync.__init__", "asgiref/sync.py:...
django/asgiref
1c9d06329dbd679a7c564b0652147855a721edb4
Proposal: "http.response.sendfile" extension. Add the sendfile extension to allow ASGI programs to return response through `sendfile`. In `scope`: ```python "scope": { ... "extensions": { "http.response.sendfile": {}, }, } ``` Response: ```python await send({"type": "http.respons...
diff --git a/README.rst b/README.rst index ab1abc7..d1a9369 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,11 @@ ASGI server. Note that exactly what threads things run in is very specific, and aimed to keep maximum compatibility with old synchronous code. See -"Synchronous code & Threads" below for a full ex...
django__asgiref-196
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asgiref/wsgi.py:WsgiToAsgiInstance.__init__", "asgiref/wsgi.py:WsgiToAsgiInstance.start_response", "asgiref/wsgi.py:WsgiToAsgiInstance.run_wsgi_app" ], "edited_modules": [ ...
django/asgiref
cfd82e48a2059ff93ce20b94e1755c455e3c3d29
WsgiToAsgi should stop sending response body after content-length bytes Hi, I was having issues when serving partial requests (using Range headers) from [whitenoise](https://github.com/evansd/whitenoise) wrapped in WsgiToAsgi. Some HTTP and ASGI servers in front of that complained about extra content in the response...
diff --git a/asgiref/wsgi.py b/asgiref/wsgi.py index 8811118..40fba20 100644 --- a/asgiref/wsgi.py +++ b/asgiref/wsgi.py @@ -29,6 +29,7 @@ class WsgiToAsgiInstance: def __init__(self, wsgi_application): self.wsgi_application = wsgi_application self.response_started = False + self.response_...
django__asgiref-211
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asgiref/server.py:StatelessServer.get_or_create_application_instance" ], "edited_modules": [ "asgiref/server.py:StatelessServer" ] }, "file": "asgiref/server.py" } ]
django/asgiref
5c249e818bd5e7acef957e236535098c3aff7b42
Has StatelessServer been updated to the ASGI 3.0 spec? I'm currently trying to upgrade my app from Channels 2.4.0 to Channels 3.0.0 and I'm having issues with running my worker. After some investigation, I'm under the impression that the `StatelessServer` provided in `asgiref` hasn't been updated to the new Applica...
diff --git a/asgiref/server.py b/asgiref/server.py index 9fd2e0c..a83b7bf 100644 --- a/asgiref/server.py +++ b/asgiref/server.py @@ -3,6 +3,8 @@ import logging import time import traceback +from .compatibility import guarantee_single_callable + logger = logging.getLogger(__name__) @@ -84,10 +86,11 @@ class Sta...