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 |
|---|---|---|---|---|---|
modin-project__modin-6775 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/core/dataframe/base/dataframe/dataframe.py:ModinDataframe.rename"
],
"edited_modules": [
"modin/core/dataframe/base/dataframe/dataframe.py:ModinDataframe"
]
},
"f... | modin-project/modin | 552cad8aed0e08bb81e2a634188050b705b194d5 | BUG: ValueError: putmask: output array is read-only
### Modin version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest released version of Modin.
- [ ] I have confirmed this bug exists on the main branch of Modin. (In order to do th... | diff --git a/modin/core/dataframe/base/dataframe/dataframe.py b/modin/core/dataframe/base/dataframe/dataframe.py
index 4567f23c..7fbf776f 100644
--- a/modin/core/dataframe/base/dataframe/dataframe.py
+++ b/modin/core/dataframe/base/dataframe/dataframe.py
@@ -478,7 +478,6 @@ class ModinDataframe(ABC):
self,
... |
modin-project__modin-6941 | [
{
"changes": {
"added_entities": [
"modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe._extract_partitions"
],
"added_modules": null,
"edited_entities": [
"modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe.broadcast_apply_full_axis"
... | modin-project/modin | 6dfe13fb5468c3fbac85e11fcbc9a64b30d14ac7 | Merge failed when right operand is an empty dataframe
Modin 0.27.0
```python
import modin.pandas as pd
import numpy as np
df = pd.DataFrame(np.random.rand(100, 100))
df2 = df.iloc[:0]
pd.merge(df, df2) <- failed
```
Traceback:
```python
Traceback (most recent call last):
File "<stdin>", line 1, in <mod... | diff --git a/modin/core/dataframe/pandas/dataframe/dataframe.py b/modin/core/dataframe/pandas/dataframe/dataframe.py
index 11709df0..b69bf25a 100644
--- a/modin/core/dataframe/pandas/dataframe/dataframe.py
+++ b/modin/core/dataframe/pandas/dataframe/dataframe.py
@@ -3203,6 +3203,25 @@ class PandasDataframe(ClassLogger)... |
modin-project__modin-6957 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"modin/core/execution/dask/implementations/pandas_on_dask/io/io.py:PandasOnDaskIO"
]
},
"file": "modin/core/execution/dask/implementations/pandas_on_dask/io/io... | modin-project/modin | a96a9a94ea20deb8f5ebcb54819d90756c54a33e | Rename `read_pickle_distributed/to_pickle_distributed` to ` read_pickle_glob/to_pickle_glob`
For consistency with other functions like `read_csv_glob` and `read_parquet_glob`. | diff --git a/docs/flow/modin/experimental/pandas.rst b/docs/flow/modin/experimental/pandas.rst
index 759b8db1..5f26c84d 100644
--- a/docs/flow/modin/experimental/pandas.rst
+++ b/docs/flow/modin/experimental/pandas.rst
@@ -12,11 +12,11 @@ Experimental API Reference
.. autofunction:: read_sql
.. autofunction:: read_cs... |
modin-project__modin-6959 | [
{
"changes": {
"added_entities": [
"modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe._extract_partitions"
],
"added_modules": null,
"edited_entities": [
"modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe.broadcast_apply_full_axis"
... | modin-project/modin | 6dfe13fb5468c3fbac85e11fcbc9a64b30d14ac7 | Remove `DataFrame.to_pickle_distributed` in favour of `DataFrame.modin.to_pickle_distributed` | diff --git a/modin/core/dataframe/pandas/dataframe/dataframe.py b/modin/core/dataframe/pandas/dataframe/dataframe.py
index 11709df0..b69bf25a 100644
--- a/modin/core/dataframe/pandas/dataframe/dataframe.py
+++ b/modin/core/dataframe/pandas/dataframe/dataframe.py
@@ -3203,6 +3203,25 @@ class PandasDataframe(ClassLogger)... |
modin-project__modin-6992 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/logging/class_logger.py:ClassLogger.__init_subclass__"
],
"edited_modules": [
"modin/logging/class_logger.py:ClassLogger"
]
},
"file": "modin/logging/class_logger... | modin-project/modin | a96639529a2e121f24b8c5462e1e76c243b85ede | Unify type of log_level in logging module
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. What kind of performance improvements would you like to see with this new API?
The logging module currently has a handful of functions that take in a `... | diff --git a/examples/jupyter/Modin_Taxi.ipynb b/examples/jupyter/Modin_Taxi.ipynb
index 8cfc2709..67a16776 100644
--- a/examples/jupyter/Modin_Taxi.ipynb
+++ b/examples/jupyter/Modin_Taxi.ipynb
@@ -13,7 +13,7 @@
"source": [
"# To run this notebook as done in the README GIFs, you must first locally download th... |
modin-project__modin-7018 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/pandas/base.py:BasePandasDataset.to_hdf"
],
"edited_modules": [
"modin/pandas/base.py:BasePandasDataset"
]
},
"file": "modin/pandas/base.py"
},
{
"changes... | modin-project/modin | 7a5919e285df2597664c0ae2927ae5d2c769bf76 | Align `to_hdf` and `hist` signatures to pandas | diff --git a/modin/pandas/base.py b/modin/pandas/base.py
index 62abf2f0..6779c47d 100644
--- a/modin/pandas/base.py
+++ b/modin/pandas/base.py
@@ -16,7 +16,7 @@ from __future__ import annotations
import pickle as pkl
import re
import warnings
-from typing import Any, Hashable, Optional, Sequence, Union
+from typing ... |
modin-project__modin-7048 | [
{
"changes": {
"added_entities": [
"modin/core/storage_formats/pandas/groupby.py:PivotTableImpl.map_reduce_impl",
"modin/core/storage_formats/pandas/groupby.py:PivotTableImpl.full_axis_impl",
"modin/core/storage_formats/pandas/groupby.py:PivotTableImpl.range_partition_impl",
... | modin-project/modin | 528fd7bc83e98b4f20439dfd71470b3ccc171ee9 | Add range-partitioning implementation for `.pivot_table()` | diff --git a/modin/core/storage_formats/pandas/groupby.py b/modin/core/storage_formats/pandas/groupby.py
index 596984c7..8f4f2645 100644
--- a/modin/core/storage_formats/pandas/groupby.py
+++ b/modin/core/storage_formats/pandas/groupby.py
@@ -245,3 +245,256 @@ GroupbyReduceImpl._groupby_reduce_impls = {
"skew": Gr... |
modin-project__modin-7307 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/config/envvars.py:DocModule.put"
],
"edited_modules": [
"modin/config/envvars.py:DocModule"
]
},
"file": "modin/config/envvars.py"
},
{
"changes": {
... | modin-project/modin | af5ed0628a4a609f70becd29fd081a290ba981a0 | BUG: using docstring extensions causes several incorrect behaviors because DataFrame, Series, and BasePandasDataset cannot recognize each other
### Modin version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest released version of Modin.
... | diff --git a/modin/config/envvars.py b/modin/config/envvars.py
index 3f83ec1f..d05a7117 100644
--- a/modin/config/envvars.py
+++ b/modin/config/envvars.py
@@ -13,7 +13,6 @@
"""Module houses Modin configs originated from environment variables."""
-import importlib
import os
import secrets
import sys
@@ -771,36 +... |
modin-project__modin-7353 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "modin/pandas/base.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/utils.py:... | modin-project/modin | a40cef7f54c54571008346a7e7882add12ac9dc1 | BUG: BasePandasDataset tries to inherit custom docstrings from DataFrame instead of from a separate base class
Modin's `BasePandasDataset` inherits docstrings from `pandas.DataFrame`, so any docstring overrides for dataframe affect `BasePandasDataset`. Some options:
1. we could have the base dataset inherit from th... | diff --git a/modin/pandas/base.py b/modin/pandas/base.py
index 51c9cd81..04dd8459 100644
--- a/modin/pandas/base.py
+++ b/modin/pandas/base.py
@@ -99,7 +99,13 @@ sentinel = object()
# Do not lookup certain attributes in columns or index, as they're used for some
# special purposes, like serving remote context
-_ATT... |
modin-project__modin-7354 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/utils.py:_update_inherited_docstrings",
"modin/utils.py:_inherit_docstrings_in_place"
],
"edited_modules": [
"modin/utils.py:_update_inherited_docstrings",
"mod... | modin-project/modin | 24018dbf9c3932e201c4b49869281eff7960bddf | BUG: docs extension: unspecified subclass documentation causes superclass documentation to be overridden
e.g. if I add custom documentation for `DataFrameGroupBy.mean` but not for `SeriesGroupBy.mean`, then `SeriesGroupBy.mean` and `DataFrameGroupby.mean` are the same object, and we override that object's `__doc__` wit... | diff --git a/modin/utils.py b/modin/utils.py
index 86237326..6c17b1b1 100644
--- a/modin/utils.py
+++ b/modin/utils.py
@@ -384,6 +384,13 @@ def _replace_doc(
# inherited docstrings.
_docstring_inheritance_calls: list[Callable[[str], None]] = []
+# This is a set of (class, attribute_name) pairs whose docstrings we h... |
modin-project__modin-7372 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/core/dataframe/pandas/metadata/dtypes.py:extract_dtype"
],
"edited_modules": [
"modin/core/dataframe/pandas/metadata/dtypes.py:extract_dtype"
]
},
"file": "modin/... | modin-project/modin | 82499151f8fecc4c858695cc75ecd2f164457c32 | BUG: can't create a new column with string which looks like a date
### Modin version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest released version of Modin.
- [ ] I have confirmed this bug exists on the main branch of Modin. (In order... | diff --git a/modin/core/dataframe/pandas/metadata/dtypes.py b/modin/core/dataframe/pandas/metadata/dtypes.py
index 1918cce1..9220a2da 100644
--- a/modin/core/dataframe/pandas/metadata/dtypes.py
+++ b/modin/core/dataframe/pandas/metadata/dtypes.py
@@ -1225,7 +1225,7 @@ def extract_dtype(value) -> DtypeObj | pandas.Serie... |
modin-project__modin-7422 | [
{
"changes": {
"added_entities": [
"modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe.from_interchange_dataframe"
],
"added_modules": null,
"edited_entities": [
"modin/core/dataframe/pandas/dataframe/dataframe.py:PandasDataframe.from_dataframe"
],
... | modin-project/modin | caa6116d641553fdc4b4f65e84313a6df893872f | Query compiler method to_dataframe should be named to_interchange or similar
The name `to_dataframe()` does not reflect the method's purpose, which is to produce a dataframe interchange protocol object. | diff --git a/modin/core/dataframe/pandas/dataframe/dataframe.py b/modin/core/dataframe/pandas/dataframe/dataframe.py
index 5456f28f..043de08f 100644
--- a/modin/core/dataframe/pandas/dataframe/dataframe.py
+++ b/modin/core/dataframe/pandas/dataframe/dataframe.py
@@ -4807,7 +4807,7 @@ class PandasDataframe(
)
... |
modin-project__modin-7434 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py:PandasProtocolColumn._dtype_from_primitive_pandas_dtype",
"modin/core/dataframe/pandas/interchange/dataframe_protocol/column.... | modin-project/modin | 35275e1c2d8a420a0fd16e3fca6ae5383fbdbc55 | FEAT: Add extensions accessors for `DataFrameGroupBy`, `Resample`, and other accessor objects
This lets downstream extensions override methods on accessor classes returned from methods (like `groupby`, `Series.str`, `iloc`, etc.) similar to `register_dataframe_accessor` for `DataFrame` methods. | diff --git a/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py b/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py
index 165bdc06..01a2e101 100644
--- a/modin/core/dataframe/pandas/interchange/dataframe_protocol/column.py
+++ b/modin/core/dataframe/pandas/interchange/dataframe_prot... |
modin-project__modin-7463 | [
{
"changes": {
"added_entities": [
"modin/config/envvars.py:EnvironmentVariable._get_value_from_config",
"modin/config/envvars.py:EnvironmentVariableDisallowingExecutionAndBackendBothSet._get_value_from_config",
"modin/config/envvars.py:Engine.get",
"modin/config/envvars.py... | modin-project/modin | c114e7b0a38ff025c5f69ff752510a62ede6506f | BUG: argmin returns incorrect results
### Modin version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest released version of Modin.
- [X] I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow [t... | diff --git a/docs/usage_guide/advanced_usage/index.rst b/docs/usage_guide/advanced_usage/index.rst
index 985a3e9e..f6e5c6f2 100644
--- a/docs/usage_guide/advanced_usage/index.rst
+++ b/docs/usage_guide/advanced_usage/index.rst
@@ -39,6 +39,9 @@ Additional APIs
Modin also supports these additional APIs on top of pandas... |
modin-project__modin-7466 | [
{
"changes": {
"added_entities": [
"modin/pandas/series.py:Series._set_axis_name"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"modin/pandas/series.py:Series"
]
},
"file": "modin/pandas/series.py"
}
] | modin-project/modin | b8a6783a5cd05f55b89371833e9e1feaed7050cc | BUG: Series.rename_axis raises AttributeError
### Modin version checks
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest released version of Modin.
- [x] I have confirmed this bug exists on the main branch of Modin. (In order to do this you can f... | diff --git a/modin/pandas/series.py b/modin/pandas/series.py
index 7245f0e6..ebf190cd 100644
--- a/modin/pandas/series.py
+++ b/modin/pandas/series.py
@@ -1714,6 +1714,29 @@ class Series(BasePandasDataset):
mapper=mapper, index=index, axis=axis, copy=copy, inplace=inplace
)
+ def _set_axis_na... |
modin-project__modin-7481 | [
{
"changes": {
"added_entities": [
"modin/core/storage_formats/base/query_compiler.py:BaseQueryCompiler.qc_engine_switch_max_cost"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"modin/core/storage_formats/base/query_compiler.py:BaseQueryComp... | modin-project/modin | a0ca39b2ed1bce2a2d80b75885b0f6a3faf61952 | Add "max-cost" concept to BackendCostCalculator
We need a way to express that there is a maximum cost to migrating data.
| diff --git a/docs/development/architecture.rst b/docs/development/architecture.rst
index 38d8df41..4959564f 100644
--- a/docs/development/architecture.rst
+++ b/docs/development/architecture.rst
@@ -92,8 +92,9 @@ pandas API, but cuts out a large majority of the repetition.
QueryCompilers which are derived from QueryCo... |
modin-project__modin-7485 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"modin/core/storage_formats/base/query_compiler_calculator.py:BackendCostCalculator.__init__",
"modin/core/storage_formats/base/query_compiler_calculator.py:BackendCostCalculator.add_query_compil... | modin-project/modin | 69843fc55a3d9aacb8aa453562f5b78cf7360fbe | Cast query compilers between backends at API layer instead of at query compiler.
Currently `QueryCompilerCaster` casts between backends at the query compiler layer. This approach doesn't work when some of the backends use API-level extensions. | diff --git a/modin/core/storage_formats/base/query_compiler_calculator.py b/modin/core/storage_formats/base/query_compiler_calculator.py
index 58ff5e1c..9acddcf3 100644
--- a/modin/core/storage_formats/base/query_compiler_calculator.py
+++ b/modin/core/storage_formats/base/query_compiler_calculator.py
@@ -19,8 +19,6 @@... |
modm-io__lbuild-11 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "lbuild/main.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"lbuild/node.py:BaseNo... | modm-io/lbuild | b27975301922834e0173369873cd705673391708 | No warning/error on non-existing modules
You can add arbitrary module lines like `<module>This does not exist and is bullshit</module>` and there will be no error or warning. This is very unpleasant if modules names in modm changed and you will get no feedback from lbuild that a requested module was not found.
Accid... | diff --git a/lbuild/main.py b/lbuild/main.py
index 7593491..95016c1 100644
--- a/lbuild/main.py
+++ b/lbuild/main.py
@@ -24,7 +24,7 @@ from lbuild.format import format_option_short_description
from lbuild.api import Builder
-__version__ = '1.4.3'
+__version__ = '1.4.4'
class InitAction:
diff --git a/lbuild/no... |
modm-io__lbuild-38 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"lbuild/collector.py:Collector.add_values",
"lbuild/collector.py:PathCollector.__init__",
"lbuild/collector.py:CallableCollector.format_values"
],
"edited_modules": [
... | modm-io/lbuild | 7d11fd0a0365a85988bdd3a29f1b5119f0b111ce | PathOption, PathCollector needs the localpath of the config
Currently the Option objects are given no context object, which they could use to interpret the values in.
For the PathOption this means all paths are interpreted in the current working directory of the lbuild call, which means inheriting configurations that ... | diff --git a/README.md b/README.md
index e53cf87..c1c9876 100644
--- a/README.md
+++ b/README.md
@@ -724,11 +724,20 @@ Since an empty string is not a valid path, but it can be useful to allow an
empty string as an input value to encode a special case (like a "disable" value),
you may set `empty_ok=True` to tell the p... |
mogproject__color-ssh-11 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/color_ssh/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/color_... | mogproject/color-ssh | 9adb19916b0205fd6a88beddcd8669114edc449c | Kill all processes when interrupted by keyboard | diff --git a/src/color_ssh/__init__.py b/src/color_ssh/__init__.py
index b794fd4..df9144c 100644
--- a/src/color_ssh/__init__.py
+++ b/src/color_ssh/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.0'
+__version__ = '0.1.1'
diff --git a/src/color_ssh/color_cat.py b/src/color_ssh/color_cat.py
index a9d1412..036ced8 10064... |
mogproject__color-ssh-12 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/color_ssh/__init__.py"
},
{
"changes": {
"added_entities": [
"src/color_ssh/color_ssh.py:Setting._parse_host",
"src/color_ss... | mogproject/color-ssh | b39783565319ee50b34988c29193f02a90122e2c | Support port option in host list and host string | diff --git a/src/color_ssh/__init__.py b/src/color_ssh/__init__.py
index df9144c..10939f0 100644
--- a/src/color_ssh/__init__.py
+++ b/src/color_ssh/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.1'
+__version__ = '0.1.2'
diff --git a/src/color_ssh/color_ssh.py b/src/color_ssh/color_ssh.py
index 1d2e798..e575962 10064... |
mogproject__color-ssh-18 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/color_ssh/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/color_... | mogproject/color-ssh | 4c8d1949137759046ddff3b922eb84148c6ffa19 | Reset color before newline | diff --git a/src/color_ssh/__init__.py b/src/color_ssh/__init__.py
index 8ce9b36..7525d19 100644
--- a/src/color_ssh/__init__.py
+++ b/src/color_ssh/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.3'
+__version__ = '0.1.4'
diff --git a/src/color_ssh/color_cat.py b/src/color_ssh/color_cat.py
index 036ced8..7509d49 10064... |
mogproject__color-ssh-23 | [
{
"changes": {
"added_entities": [
"src/color_ssh/color_ssh.py:Setting._upload_args",
"src/color_ssh/color_ssh.py:Setting._build_upload_commands"
],
"added_modules": null,
"edited_entities": [
"src/color_ssh/color_ssh.py:Setting.parse_args",
"src/color_ssh... | mogproject/color-ssh | 881561051ebae23a03aec3063877ee1cf21e24c0 | Add upload-with option | diff --git a/src/color_ssh/color_ssh.py b/src/color_ssh/color_ssh.py
index 0534891..294a553 100644
--- a/src/color_ssh/color_ssh.py
+++ b/src/color_ssh/color_ssh.py
@@ -21,6 +21,9 @@ class Setting(object):
' %prog [options...] -H "[user@]hostname [[user@]hostname]...]" command'
])
DEFAULT_PARAL... |
mogproject__color-ssh-8 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/color_ssh/__init__.py"
},
{
"changes": {
"added_entities": [
"src/color_ssh/color_ssh.py:Setting._load_hosts",
"src/color_ss... | mogproject/color-ssh | 3c6ef87beb0faf48b0af7f4498b1be5ff34e6fe1 | Load host list from file
- `--host`
- with parallelism option
- cf. pssh (parallel-ssh) | diff --git a/src/color_ssh/__init__.py b/src/color_ssh/__init__.py
index d18f409..b794fd4 100644
--- a/src/color_ssh/__init__.py
+++ b/src/color_ssh/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.0.2'
+__version__ = '0.1.0'
diff --git a/src/color_ssh/color_ssh.py b/src/color_ssh/color_ssh.py
index 4c278c2..20f7651 10064... |
mogproject__color-ssh-9 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/color_ssh/color_ssh.py:Setting.parse_args"
],
"edited_modules": [
"src/color_ssh/color_ssh.py:Setting"
]
},
"file": "src/color_ssh/color_ssh.py"
},
{
"chang... | mogproject/color-ssh | cdcbb8980f7a4e49797192dc089915d702322460 | distribute option | diff --git a/src/color_ssh/color_ssh.py b/src/color_ssh/color_ssh.py
index 20f7651..f8d82d8 100644
--- a/src/color_ssh/color_ssh.py
+++ b/src/color_ssh/color_ssh.py
@@ -5,8 +5,8 @@ import io
import shlex
import subprocess
from optparse import OptionParser
-from color_ssh.util.util import *
from multiprocessing.pool... |
mogproject__mog-commons-python-8 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/mog_commons/__init__.py"
},
{
"changes": {
"added_entities": [
"src/mog_commons/collection.py:distinct"
],
"added_module... | mogproject/mog-commons-python | 71a072abdbeff70c14543ef9b307fae3277dc24a | Decode string with multiple encodings | diff --git a/src/mog_commons/__init__.py b/src/mog_commons/__init__.py
index 8ce9b36..7525d19 100644
--- a/src/mog_commons/__init__.py
+++ b/src/mog_commons/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.3'
+__version__ = '0.1.4'
diff --git a/src/mog_commons/collection.py b/src/mog_commons/collection.py
index 21a8f62.... |
moj-analytical-services__etl_manager-44 | [
{
"changes": {
"added_entities": [
"etl_manager/meta.py:TableMeta.name",
"etl_manager/meta.py:DatabaseMeta.name"
],
"added_modules": null,
"edited_entities": [
"etl_manager/meta.py:DatabaseMeta.write_to_json"
],
"edited_modules": [
"etl_manager... | moj-analytical-services/etl_manager | 777d4f33f85bb5372fe5930a7084fec22e416dc3 | write database not worknig | diff --git a/etl_manager/meta.py b/etl_manager/meta.py
index 446a955..9478bf4 100644
--- a/etl_manager/meta.py
+++ b/etl_manager/meta.py
@@ -50,6 +50,16 @@ class TableMeta :
jsonschema.validate(self.to_dict(), _table_json_schema)
+ @property
+ def name(self) :
+ return self._name
+
+ # ... |
mollie__mollie-api-python-100 | [
{
"changes": {
"added_entities": [
"mollie/api/client.py:Client.validate_access_token",
"mollie/api/client.py:Client.set_access_token"
],
"added_modules": null,
"edited_entities": [
"mollie/api/client.py:Client.__init__"
],
"edited_modules": [
... | mollie/mollie-api-python | e4decf25cc523181a4372c1078d2ff40d28a0efe | Add support for OAuth access tokens
By default, OAuth access tokens are not accepted in this package, while other packages do have support (e.g. mollie-api-php).
I took a look there and found that there's little difference between access_token and API Key calls. The only difference is an additional User Agent heade... | diff --git a/mollie/api/client.py b/mollie/api/client.py
index fd757f0..79fcc59 100644
--- a/mollie/api/client.py
+++ b/mollie/api/client.py
@@ -2,6 +2,7 @@ import json
import platform
import re
import ssl
+import warnings
import requests
@@ -50,10 +51,19 @@ class Client(object):
"Invalid API k... |
mollie__mollie-api-python-101 | [
{
"changes": {
"added_entities": [
"mollie/api/client.py:Client.set_user_agent_component",
"mollie/api/client.py:Client.user_agent"
],
"added_modules": null,
"edited_entities": [
"mollie/api/client.py:Client.__init__",
"mollie/api/client.py:Client.perform_... | mollie/mollie-api-python | 515365852bdcfa3574e107644e32aa774aab8047 | Allow setting custom useragent data
See the use of `addVersionString` in https://github.com/mollie/mollie-api-php/blob/master/src/MollieApiClient.php. This will enable integrators to add their implementation details to the User-Agent.
FooBar plugin for Oscar then could do:
```
client = Client()
client.add_userage... | diff --git a/mollie/api/client.py b/mollie/api/client.py
index 79fcc59..281c3b2 100644
--- a/mollie/api/client.py
+++ b/mollie/api/client.py
@@ -3,6 +3,7 @@ import platform
import re
import ssl
import warnings
+from collections import OrderedDict
import requests
@@ -33,11 +34,6 @@ class Client(object):
API... |
mollie__mollie-api-python-150 | [
{
"changes": {
"added_entities": [
"mollie/api/objects/method.py:Method.pricing"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"mollie/api/objects/method.py:Method"
]
},
"file": "mollie/api/objects/method.py"
}
] | mollie/mollie-api-python | 63055db05c306c4817e7f18f5d92b831708420c8 | Methods api: add support for 'pricing'
https://docs.mollie.com/changelog/v2/changelog#tuesday-4th | diff --git a/mollie/api/objects/method.py b/mollie/api/objects/method.py
index 438fe7c..fb444a2 100644
--- a/mollie/api/objects/method.py
+++ b/mollie/api/objects/method.py
@@ -46,6 +46,10 @@ class Method(Base):
def maximum_amount(self):
return self._get_property('maximumAmount')
+ @property
+ def... |
mollie__mollie-api-python-173 | [
{
"changes": {
"added_entities": [
"mollie/api/objects/order_line.py:OrderLine.metadata"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"mollie/api/objects/order_line.py:OrderLine"
]
},
"file": "mollie/api/objects/order_line.py"... | mollie/mollie-api-python | 496dc425fc4ce7db61dd2ba2f40b6db429ea85eb | Missing metadata property on some objects
On the objects
- customer
- order
- payment
- refund
There is a property to access the metadata
```python
@property
def metadata(self):
return self._get_property('metadata')
```
However, all other objects that do have metadata according the API documentation ... | diff --git a/mollie/api/objects/order_line.py b/mollie/api/objects/order_line.py
index 290cadf..ebbd500 100644
--- a/mollie/api/objects/order_line.py
+++ b/mollie/api/objects/order_line.py
@@ -122,6 +122,10 @@ class OrderLine(Base):
def created_at(self):
return self._get_property('createdAt')
+ @prop... |
mollie__mollie-api-python-294 | [
{
"changes": {
"added_entities": [
"mollie/api/client.py:Client.set_testmode"
],
"added_modules": null,
"edited_entities": [
"mollie/api/client.py:Client._format_request_data"
],
"edited_modules": [
"mollie/api/client.py:Client"
]
},
"fil... | mollie/mollie-api-python | 3815fd452239f13f2a9ab57207cfad9045a38bb1 | Enable `testmode` for OAuth/access-token clients globally
In OAuth and access-token requests, you can specify `testmode=true` to perform API requests during the development phase. Currently this needs to be done on a per-request basis:
```python
from mollie.api.client import Client
mollie_client = Client()
mollie_c... | diff --git a/mollie/api/client.py b/mollie/api/client.py
index 45c351a..036bfc7 100644
--- a/mollie/api/client.py
+++ b/mollie/api/client.py
@@ -53,6 +53,7 @@ class Client(object):
client_id: str = ""
client_secret: str = ""
set_token: Callable[[dict], None]
+ testmode: bool = False
@staticmeth... |
mollie__mollie-api-python-312 | [
{
"changes": {
"added_entities": [
"mollie/api/objects/payment.py:Payment.capture_before",
"mollie/api/objects/payment.py:Payment.capture_mode",
"mollie/api/objects/payment.py:Payment.capture_delay"
],
"added_modules": null,
"edited_entities": null,
"edited_... | mollie/mollie-api-python | 24966f28983c24fcdbfb591e523845b8d771c205 | Prepare for Capture on card payments
We want to add support for delayed capturing of card payments.
For the API client to support this, we need to add:
- Add support for creating a new Payment Capture
- Reading responses from the [Get payment endpoint](https://docs.mollie.com/reference/v2/payments-api/get-payment):
... | diff --git a/mollie/api/objects/payment.py b/mollie/api/objects/payment.py
index b42b832..23bf95e 100644
--- a/mollie/api/objects/payment.py
+++ b/mollie/api/objects/payment.py
@@ -202,6 +202,18 @@ class Payment(ObjectBase):
return PaymentCaptures(self.client, self)
+ @property
+ def capture_before(s... |
mollie__mollie-api-python-363 | [
{
"changes": {
"added_entities": [
"mollie/api/client.py:Client._get_testmode"
],
"added_modules": null,
"edited_entities": [
"mollie/api/client.py:Client._format_request_data",
"mollie/api/client.py:Client._perform_http_call_apikey",
"mollie/api/client.py... | mollie/mollie-api-python | 69ccca659b62f14bfc530c63208478ff4a95b8c1 | Python requests adds params to querystring, where it should be in the body for non-safe HTTP methods (POST/PATCH/DELETE/etc)
## Specifications
- API Version: 3.6.0
## Describe the issue
See https://github.com/psf/requests/blob/eea3bbf9ac635f465ee6c9903dc57c677952dafd/src/requests/api.py#L19
the params kwarg... | diff --git a/mollie/api/client.py b/mollie/api/client.py
index 82d4d20..56c169a 100644
--- a/mollie/api/client.py
+++ b/mollie/api/client.py
@@ -163,6 +163,7 @@ class Client(object):
path: str,
data: Optional[Dict[str, Any]],
params: Optional[Dict[str, Any]],
+ http_method: str,
)... |
mollie__mollie-api-python-375 | [
{
"changes": {
"added_entities": [
"mollie/api/objects/payment.py:Payment.lines",
"mollie/api/objects/payment.py:Payment.restrict_payment_methods_to_country",
"mollie/api/objects/payment.py:Payment.shipping_address",
"mollie/api/objects/payment.py:Payment.billing_address"
... | mollie/mollie-api-python | 1984f2f7bfd67b66a7ae4d26574d6bf03a3c3989 | Update Payment resource
The Payment resource can contain multiple properties that are missing right now:
- restrictPaymentMethodsToCountry
- shippingAddress
- billingAddress
- lines
| diff --git a/mollie/api/objects/client_link.py b/mollie/api/objects/client_link.py
index dc2a298..7be2e74 100644
--- a/mollie/api/objects/client_link.py
+++ b/mollie/api/objects/client_link.py
@@ -5,7 +5,6 @@ from .base import ObjectBase
class ClientLink(ObjectBase):
-
def __init__(self, data, client):
... |
monarch-initiative__koza-20 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "examples/string/protein-links-detailed.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
... | monarch-initiative/koza | 44742abc7a6947d2d3615d92f6d40b68db60d1c0 | Add integration tests
To start, run a few variations of the String load and confirm output, maybe including kgx validation? | diff --git a/examples/string/protein-links-detailed.py b/examples/string/protein-links-detailed.py
index 2a28f87..e30dbc9 100644
--- a/examples/string/protein-links-detailed.py
+++ b/examples/string/protein-links-detailed.py
@@ -2,6 +2,8 @@ import re
import uuid
from biolink_model_pydantic.model import Protein, Pai... |
monarch-initiative__koza-60 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "koza/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"koza/cli_runner.py:... | monarch-initiative/koza | 397b12a5ac80dca2ba924f0b36fce4ebbcc89c5e | Add option to specify translation tables in source config
To simplify executing transforms, we should add the option to specify global and local translation tables as yaml imports in source_file_config.
| diff --git a/docs/ingest_configuration.md b/docs/ingest_configuration.md
index 1283d59..0c137b0 100644
--- a/docs/ingest_configuration.md
+++ b/docs/ingest_configuration.md
@@ -26,6 +26,14 @@ metadata:
description: 'SomethingBase: A Website With Some Data'
rights: 'https://somethingbase.org/rights.html'
+# The ... |
moogar0880__PyTrakt-120 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"trakt/users.py:User.lists"
],
"edited_modules": [
"trakt/users.py:User"
]
},
"file": "trakt/users.py"
}
] | moogar0880/PyTrakt | 70f5bcc5215272665e2ca6f901d54da9d68e890a | accessing User.list attribute throws python exception
python version: 3.6.8
trakt version: 2.12.0
when trying to get a list of the users lists an exception is returned
ie
```
import trakt
from trakt.users import User, UserList
from pprint import pprint
trakt.core.CLIENT_ID = cfg['client_id']
trakt.core.CLI... | diff --git a/trakt/users.py b/trakt/users.py
index b75ad6a..d4f48bd 100644
--- a/trakt/users.py
+++ b/trakt/users.py
@@ -295,6 +295,10 @@ class User(object):
data = yield 'users/{username}/lists'.format(
username=self.username
)
+ for ul in data:
+ if... |
mopidy__mopidy-local-31 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mopidy_local/__init__.py:Extension.get_config_schema"
],
"edited_modules": [
"mopidy_local/__init__.py:Extension"
]
},
"file": "mopidy_local/__init__.py"
},
{
"... | mopidy/mopidy-local | 6865fac7254674170d1d2a92e3302dcd10b337da | Put back the use_album_mbid_uri option that was in local-sqlite
Using MBIDs to create uris can have unintended consequences. With local-sqlite I could switch this off but this option seems to have been removed in the new mopidy-local.
As an example, I have 2 albums that I tagged with Musicbrainz Picard.
One has '... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 32bf2bb..9576cfa 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -10,8 +10,9 @@ v3.1.0 (UNRELEASED)
- Add ``.cue`` to the list of excluded file extensions. (PR: #29)
- Replace ``os.path`` usage with ``pathlib`` to handle arbitrary file path
encodings better. (#20,... |
mopidy__mopidy-local-32 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mopidy_local/__init__.py:Extension.get_config_schema"
],
"edited_modules": [
"mopidy_local/__init__.py:Extension"
]
},
"file": "mopidy_local/__init__.py"
},
{
"... | mopidy/mopidy-local | 6865fac7254674170d1d2a92e3302dcd10b337da | [Feature request] Opposite of excluded_file_extensions
My music collection has a lot of extra files cluttering it up, so it took me a while to build up the `local/excluded_file_extensions` option to skip all of them. I thought it would be more useful to have an `included_file_extensions` option, because a list of typi... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 32bf2bb..9576cfa 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -10,8 +10,9 @@ v3.1.0 (UNRELEASED)
- Add ``.cue`` to the list of excluded file extensions. (PR: #29)
- Replace ``os.path`` usage with ``pathlib`` to handle arbitrary file path
encodings better. (#20,... |
mopidy__mopidy-local-59 | [
{
"changes": {
"added_entities": [
"mopidy_local/storage.py:test_jpeg"
],
"added_modules": [
"mopidy_local/storage.py:test_jpeg"
],
"edited_entities": null,
"edited_modules": null
},
"file": "mopidy_local/storage.py"
}
] | mopidy/mopidy-local | 00e3ef4fa95f6ba313455245cde9d1b7baf623e4 | Not extracting images from m4a files when scanning
Whenever I execute `mopidy local scan --force` in my terminal, I get an error extracting the image from any m4a file.
Example: `WARNING 2021-02-20 22:42:52,743 [111960:MainThread] mopidy_local.storage
Error extracting images for 'local:track:MDMA/Genie%20%28Delu... | diff --git a/mopidy_local/storage.py b/mopidy_local/storage.py
index a8679c3..9f9947c 100644
--- a/mopidy_local/storage.py
+++ b/mopidy_local/storage.py
@@ -58,6 +58,15 @@ def get_image_size_jpeg(data):
return width, height
+def test_jpeg(data, file_handle):
+ # Additional JPEG detection looking for JPEG SO... |
morepath__dectate-40 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dectate/__init__.py"
},
{
"changes": {
"added_entities": [
"dectate/app.py:App.get_directive_methods",
"dectate/app.py:directive... | morepath/dectate | 704615da9f6bf57d57e4f42d3a710475de777b08 | directive directive confusing
When you use the ``directive`` directive, you need to make sure that the module it is in is imported before you scan any other code. This can be surprising, as you might expect it works like any other Dectate directive, where import order is immaterial.
Perhaps this implies the ``direct... | diff --git a/CHANGES.txt b/CHANGES.txt
index 37a51e8..75646cf 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,38 @@ CHANGES
0.12 (unreleased)
=================
+- **Breaking changes**: previously you defined new directives using the
+ ``App.directive`` directive. This would lead to import confusion: you
+ *... |
mosdef-hub__gmso-530 | [
{
"changes": {
"added_entities": [
"gmso/external/convert_parmed.py:_get_types_map",
"gmso/external/convert_parmed.py:_get_member_types_map_for",
"gmso/external/convert_parmed.py:_assert_dict"
],
"added_modules": [
"gmso/external/convert_parmed.py:_get_types_map... | mosdef-hub/gmso | fb2cede663571dbeed5916a427975d67bb06fecb | member_types is not set when converting from_parmed
While working on #246, I found that `member_types` attributes for a `ParametricPotential` is not set when converting from parmed. It might be nice to set that attribute as it is meaningful and required information for `Topology - ForceField` conversion.
```py
>>> fr... | diff --git a/gmso/external/convert_parmed.py b/gmso/external/convert_parmed.py
index d2516cc..c3be9ab 100644
--- a/gmso/external/convert_parmed.py
+++ b/gmso/external/convert_parmed.py
@@ -53,11 +53,15 @@ def from_parmed(structure, refer_type=True):
if refer_type:
pmd_top_atomtypes = _atom_types_from_pmd(... |
mosdef-hub__gmso-596 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"gmso/core/parametric_potential.py:ParametricPotential.dict"
],
"edited_modules": [
"gmso/core/parametric_potential.py:ParametricPotential"
]
},
"file": "gmso/core/param... | mosdef-hub/gmso | c2bdbaa562ac496bb6efeacac8fbcb4c9df79d80 | ParametricPotential.dict ignores `exclude` argument
This method should also incorporate if any items are actually in the argument.
https://github.com/mosdef-hub/gmso/blob/c2bdbaa562ac496bb6efeacac8fbcb4c9df79d80/gmso/core/parametric_potential.py#L149-L160 | diff --git a/gmso/core/parametric_potential.py b/gmso/core/parametric_potential.py
index 4d7ae50..428deb5 100644
--- a/gmso/core/parametric_potential.py
+++ b/gmso/core/parametric_potential.py
@@ -157,7 +157,13 @@ class ParametricPotential(AbstractPotential):
exclude_defaults: bool = False,
exclude_no... |
mosdef-hub__gmso-622 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"gmso/external/convert_foyer_xml.py:_populate_class_or_type_attrib"
],
"edited_modules": [
"gmso/external/convert_foyer_xml.py:_populate_class_or_type_attrib"
]
},
"file... | mosdef-hub/gmso | 9d324f0988bce893655bd51e4dbeca27cd2fd9d6 | GMSO pulling atom class into atom type, which should be in atom type
GMSO is pulling the atom class into atom type, which should be in atom class. An example of this is found when running the attached file with my mBuild GOMC-MoSDeF-GMSO branch (https://github.com/bc118/mbuild/tree/gmso_gomc). This is at least when r... | diff --git a/gmso/external/convert_foyer_xml.py b/gmso/external/convert_foyer_xml.py
index f410a5a..8185b77 100644
--- a/gmso/external/convert_foyer_xml.py
+++ b/gmso/external/convert_foyer_xml.py
@@ -235,7 +235,7 @@ def _populate_class_or_type_attrib(root, type_):
"type{}".format(j + 1), "c{}".format(... |
mosdef-hub__gmso-629 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"gmso/external/convert_foyer_xml.py:from_foyer_xml",
"gmso/external/convert_foyer_xml.py:_write_gmso_xml",
"gmso/external/convert_foyer_xml.py:_write_nbforces",
"gmso/external/con... | mosdef-hub/gmso | b077e66c7d53d36f7709cbaf6e702817628ebae7 | Wrong expression in convert to foyer xml
The SymPy expressions are not consistent with foyer forcefield file. E.g.,:
"expression": "epsilon * ((sigma/r)**12 - (sigma/r)**6)",
https://github.com/mosdef-hub/gmso/blob/cc0f42d8cfda9b4236c0f1f4b724dc99036427f3/gmso/external/convert_foyer_xml.py#L249
... | diff --git a/gmso/external/convert_foyer_xml.py b/gmso/external/convert_foyer_xml.py
index 8185b77..fa31c52 100644
--- a/gmso/external/convert_foyer_xml.py
+++ b/gmso/external/convert_foyer_xml.py
@@ -65,9 +65,11 @@ def from_foyer_xml(
ff_root = foyer_xml_tree.getroot()
name = ff_root.attrib.get("name")
... |
mosdef-hub__gmso-642 | [
{
"changes": {
"added_entities": [
"gmso/core/atom_type.py:AtomType.clone"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"gmso/core/atom_type.py:AtomType"
]
},
"file": "gmso/core/atom_type.py"
},
{
"changes": {
"a... | mosdef-hub/gmso | 40dfae01530acc36ac68e9a72333cc13a17f8300 | Relax validation constraints and add clone method to Potentials
I noticed that while deepcopying potentials, its super inefficient that we validate the expressions again, which is unnecessary. Similar to a clone method in mbuild, it makes sense to add clone method to all our potentials, cache sympification of expressio... | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 2a1ed4c..968378a 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -2,6 +2,7 @@ trigger:
branches:
include:
- master
+ - develop
tags:
include:
- 0.*
@@ -11,6 +12,7 @@ pr:
branches:
include:
- master
+ ... |
mosdef-hub__gmso-651 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"gmso/external/convert_parmed.py:from_parmed",
"gmso/external/convert_parmed.py:to_parmed"
],
"edited_modules": [
"gmso/external/convert_parmed.py:from_parmed",
"gmso/... | mosdef-hub/gmso | c78e2425ccb98ea952f024a569346d36045f6918 | Infer Element when converting from parmed
it might be nice to consider infering elements when converting from parmed. | diff --git a/gmso/external/convert_parmed.py b/gmso/external/convert_parmed.py
index 579d560..403fa4a 100644
--- a/gmso/external/convert_parmed.py
+++ b/gmso/external/convert_parmed.py
@@ -9,6 +9,7 @@ from sympy.parsing.sympy_parser import parse_expr
import gmso
from gmso.core.element import (
element_by_atom_ty... |
mosquito__aiohttp-xmlrpc-38 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "aiohttp_xmlrpc/__init__.py"
},
{
"changes": {
"added_entities": [
"aiohttp_xmlrpc/handler.py:XMLRPCViewMeta.__new__"
],
"add... | mosquito/aiohttp-xmlrpc | 4bcaed5c463a0f3f338b6282f9f299094b25440c | kwargs parsing seems incorrect
Hi,
This is a great project and exactly what I am looking for. However when I did some test on server code, it responds inconsistently with python native xmlrpc library. Here is my parameter:
```
<param>
<value>
<i4>100</i4>
</value>
</param>
<param>
<value>... | diff --git a/aiohttp_xmlrpc/__init__.py b/aiohttp_xmlrpc/__init__.py
index 9aa8c62..8aa33bb 100644
--- a/aiohttp_xmlrpc/__init__.py
+++ b/aiohttp_xmlrpc/__init__.py
@@ -11,7 +11,7 @@ author_info = [
("Dmitry Orlov", "me@mosquito.su"),
]
-version_info = (0, 9, 0)
+version_info = (1, 0, 0)
description = "aiohttp... |
movingpandas__movingpandas-356 | [
{
"changes": {
"added_entities": [
"movingpandas/trajectory_collection.py:TrajectoryCollection.add_distance",
"movingpandas/trajectory_collection.py:TrajectoryCollection.add_timedelta"
],
"added_modules": null,
"edited_entities": [
"movingpandas/trajectory_collect... | movingpandas/movingpandas | ce577b12f666227f9fe60739f9b134535a1c4d07 | Improve docstring formatting
Try to have a proper list or at least add a full stop, e.g. https://movingpandas.readthedocs.io/en/main/trajectory.html#movingpandas.Trajectory.add_distance
 | diff --git a/movingpandas/trajectory.py b/movingpandas/trajectory.py
index 9d2684f..52c5e2f 100644
--- a/movingpandas/trajectory.py
+++ b/movingpandas/trajectory.py
@@ -852,16 +852,17 @@ class Trajectory:
Return the length of the trajectory.
Length is calculated using CRS units, except if the CRS is... |
movingpandas__movingpandas-401 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "docs/source/conf.py"
},
{
"changes": {
"added_entities": [
"movingpandas/trajectory.py:Trajectory.explore"
],
"added_modules... | movingpandas/movingpandas | cf4687616ccb3b5e9f306a677cef38687f0e7267 | Add explore function (like in GeoPandas)
#### Is your feature request related to a problem?
Sometimes it can be difficult to install geoviews to get interactive plots
#### Describe the solution you'd like
Since GeoPandas already ships with interactive plots using folium, I'd like to see an .explore() function ... | diff --git a/docs/source/conf.py b/docs/source/conf.py
index 96e6c0d..cc219c6 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -57,8 +57,8 @@ toc_object_entries_show_parents = "hide"
html_theme = "pydata_sphinx_theme"
html_context = {
- # ...
- "default_mode": "light"
+ # ...
+ "default_mode"... |
movingpandas__movingpandas-407 | [
{
"changes": {
"added_entities": [
"movingpandas/io.py:_datetime_to_string"
],
"added_modules": [
"movingpandas/io.py:_datetime_to_string"
],
"edited_entities": [
"movingpandas/io.py:gdf_to_mf_json"
],
"edited_modules": [
"movingpandas/io... | movingpandas/movingpandas | 6f2c4b59b59faa8fe9b46e20b95ae58883c08af9 | Cannot write mf_json dict to file due to TypeError: Object of type Timestamp is not JSON serializable
```
import json
mf_json = tc.to_mf_json()
with open('mf.json', 'w') as json_file:
json.dump(mf_json, json_file, indent=4)
```
fails with TypeError: Object of type Timestamp is not JSON serializable
| diff --git a/movingpandas/io.py b/movingpandas/io.py
index a21d301..fe00cf3 100644
--- a/movingpandas/io.py
+++ b/movingpandas/io.py
@@ -5,6 +5,10 @@ from geopandas import GeoDataFrame
from pandas import DataFrame
+def _datetime_to_string(dt, format="%Y-%m-%d %H:%M:%S"):
+ return dt.strftime(format)
+
+
def gd... |
movingpandas__movingpandas-428 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"movingpandas/trajectory.py:Trajectory._get_df_with_distance",
"movingpandas/trajectory.py:Trajectory._get_df_with_speed",
"movingpandas/trajectory.py:Trajectory._get_df_with_acceleration... | movingpandas/movingpandas | 843ef836d789074849c5e7f5a297fb747aa38801 | set_speed inaccurate with floating point (nanosecond) datetime values results in unmitigatable error
```python
# Your code here
```
#### Problem description
Trajectories that contain a datetime that has floating point seconds value results in the dataframe of the trajectory getting one value withput cordinat... | diff --git a/movingpandas/trajectory.py b/movingpandas/trajectory.py
index 9b23cbf..48d01e4 100644
--- a/movingpandas/trajectory.py
+++ b/movingpandas/trajectory.py
@@ -1369,7 +1369,8 @@ class Trajectory:
except ValueError as e:
raise e
# set the distance in the first row to zero
- ... |
movingpandas__movingpandas-444 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"movingpandas/trajectory_cleaner.py:OutlierCleaner._clean_traj"
],
"edited_modules": [
"movingpandas/trajectory_cleaner.py:OutlierCleaner"
]
},
"file": "movingpandas/tra... | movingpandas/movingpandas | 45c9a3cd5040af17e4f361794dd8bfb0e44b1951 | OutlierCleaner may return invalid trajectories (len<2)
Looks like OutlierCleaner may create trajectories with a length of 1 | diff --git a/movingpandas/trajectory_cleaner.py b/movingpandas/trajectory_cleaner.py
index fcac6d0..39600ea 100644
--- a/movingpandas/trajectory_cleaner.py
+++ b/movingpandas/trajectory_cleaner.py
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
+import warnings
+
import pandas as pd
from pandas.api.types import is_numeric... |
movingpandas__movingpandas-447 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"movingpandas/trajectory_splitter.py:TemporalSplitter._split_traj",
"movingpandas/trajectory_splitter.py:AngleChangeSplitter._split_traj",
"movingpandas/trajectory_splitter.py:ValueChange... | movingpandas/movingpandas | 6d4288bc085af936ab5493f8e05176e9e867f811 | ValueChangeSplitter and TemporalSplitter leave gaps
#### Problem description
There are unexpected gaps in the ValueChangeSplitter results. This error can be easily reproduced using Trajectools.

This also affects the T... | diff --git a/movingpandas/trajectory_splitter.py b/movingpandas/trajectory_splitter.py
index fbf10b4..703746a 100644
--- a/movingpandas/trajectory_splitter.py
+++ b/movingpandas/trajectory_splitter.py
@@ -3,6 +3,7 @@
from copy import copy
from pandas import Grouper
import numpy as np
+import warnings
from .trajec... |
mozilla-services__requests-hawk-14 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"requests_hawk/__init__.py:HawkAuth.__init__",
"requests_hawk/__init__.py:HawkPlugin.get_auth"
],
"edited_modules": [
"requests_hawk/__init__.py:HawkAuth",
"requests_h... | mozilla-services/requests-hawk | 5cbc81acf71584413ee5a2a65bf8ac951f0f9c50 | Make instantiation with credentials simpler/cleaner
We've just started to use Hawk for the Treeherder API and so are having to add support to our Python client that we make available for people to interact with the API, as well as update documentation for it.
The current WIP docs for how people should use our Python... | diff --git a/CHANGES.txt b/CHANGES.txt
index 0cce5ce..f312487 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,10 +1,14 @@
CHANGELOG
=========
-0.3.0 (unreleased)
+1.0.0 (unreleased)
------------------
-- Nothing changed yet.
+- Simplified API for using HawkAuth when the id and key are known. (#8)
+- Added suppo... |
mozilla-services__requests-hawk-25 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"requests_hawk/__init__.py:HawkAuth.__init__",
"requests_hawk/__init__.py:HawkAuth.__call__"
],
"edited_modules": [
"requests_hawk/__init__.py:HawkAuth"
]
},
"fi... | mozilla-services/requests-hawk | 60819a4bd214c5720ef8d9aad785533fedecf261 | Allow skipping content checks and hash for GET requests
mohawk allows for skipping content checks and (and subsequently not creating a hash) when dealing with either very large or empty content. This is achieved by setting `always_hash_content=False` and removing the `content` and `content_type` parameters from `mohawk... | diff --git a/requests_hawk/__init__.py b/requests_hawk/__init__.py
index 6bd4f10..4b3110b 100644
--- a/requests_hawk/__init__.py
+++ b/requests_hawk/__init__.py
@@ -8,6 +8,7 @@ from six.moves.urllib.parse import urlparse
from six import text_type
import mohawk
+from mohawk.base import EmptyValue
from requests.auth... |
mozilla-services__requests-hawk-32 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"requests_hawk/__init__.py:HawkAuth.__call__"
],
"edited_modules": [
"requests_hawk/__init__.py:HawkAuth"
]
},
"file": "requests_hawk/__init__.py"
}
] | mozilla-services/requests-hawk | 717487c5b66ae5ea308598e7f4f86a9903f69623 | POST with json body not working
What is the correct syntax to send post with JSON?
The below command works fine with other authentication POST requests like basic, diges, jwt plugin and many more but not with hawk
I am trying to work with post request with json body
echo '{"hello": "world"}' | http POST http://l... | diff --git a/CHANGES.txt b/CHANGES.txt
index 10950c3..1ce7404 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,6 +1,11 @@
CHANGELOG
=========
+1.1.1 (unreleased)
+------------------
+
+- Handle cases where Content-Type is defined as bytes rather than string. (#25)
+
1.1.0 (2020-12-16)
------------------
diff --... |
mozilla__bleach-205 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/__init__.py:linkify"
],
"edited_modules": [
"bleach/__init__.py:linkify"
]
},
"file": "bleach/__init__.py"
}
] | mozilla/bleach | 2235b8fcadc8abef3a2845bb0ce67206982f3489 | Children of <pre> tags should not be linkified when skip_pre=True (patch attached)
The children of `pre` tags should not be linkified when `skip_pre` is on
```
diff --git a/bleach/__init__.py b/bleach/__init__.py
index 48b6512..4c2dd1b 100644
--- a/bleach/__init__.py
+++ b/bleach/__init__.py
@@ -300,7 +300,7 @... | diff --git a/bleach/__init__.py b/bleach/__init__.py
index 3092cb7..ac163d1 100644
--- a/bleach/__init__.py
+++ b/bleach/__init__.py
@@ -315,7 +315,7 @@ def linkify(text, callbacks=DEFAULT_CALLBACKS, skip_pre=False,
if node.tag == ETREE_TAG('pre') and skip_pre:
linkify_nodes(node, ... |
mozilla__bleach-259 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/__init__.py:Cleaner.__init__",
"bleach/__init__.py:Cleaner.clean"
],
"edited_modules": [
"bleach/__init__.py:Cleaner"
]
},
"file": "bleach/__init__.py"
... | mozilla/bleach | f2a6d383f788e7ef6525e3f9baa40ed5c748b1c5 | A cleaning pipeline
One thing that occured to me while working on the `BleachSanitizerMixin.sanitize_token` is that it's code is getting pretty long and kind of ugly, the more functionality one needs do add.
One possible way to counter this problem might be to implement a "pipeline". I've seen this concept first in [d... | diff --git a/bleach/__init__.py b/bleach/__init__.py
index 12788eb..04d69b0 100644
--- a/bleach/__init__.py
+++ b/bleach/__init__.py
@@ -115,9 +115,8 @@ class Cleaner(object):
def __init__(self, tags=ALLOWED_TAGS, attributes=ALLOWED_ATTRIBUTES,
styles=ALLOWED_STYLES, protocols=ALLOWED_PROTOCOLS... |
mozilla__bleach-263 | [
{
"changes": {
"added_entities": [
"bleach/sanitizer.py:attribute_filter_factory"
],
"added_modules": [
"bleach/sanitizer.py:attribute_filter_factory"
],
"edited_entities": [
"bleach/sanitizer.py:Cleaner.clean",
"bleach/sanitizer.py:BleachSanitizerFi... | mozilla/bleach | ec71f4f283ef12da5a56799a3ddb7a1bcb1eadd2 | improved callable filter support
this is perhaps a bad title. i'll explain the problem:
as mentioned in an earlier ticket, i needed to support the "data-*" namespace on attributes. the suggested route is callable filters.
the two main problems are as follows
- `*` doesn't accept callable filters. based on the cur... | diff --git a/CHANGES b/CHANGES
index 3ff2b78..79f56a9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -25,6 +25,12 @@ Version 2.0 (in development)
Amongst other things, this version will add end tags even if the tag in
question is to be escaped.
+* ``bleach.clean`` and friends attribute callables now take three arguments... |
mozilla__bleach-265 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/__init__.py:linkify"
],
"edited_modules": [
"bleach/__init__.py:linkify"
]
},
"file": "bleach/__init__.py"
},
{
"changes": {
"added_entities": null... | mozilla/bleach | fa4cadc5b3dad924b6c1e82a284cb2bb7a94377f | linkify feature request - extend skip_pre
Hi,
Can the skip_pre be extended to support a list of html tags?
IMHO, `code` tag should be skipped as well.
https://github.com/mozilla/bleach/blob/master/bleach/__init__.py#L318
Thx
| diff --git a/CHANGES b/CHANGES
index 79f56a9..050f4fc 100644
--- a/CHANGES
+++ b/CHANGES
@@ -60,6 +60,23 @@ Version 2.0 (in development)
All linkify filters will need to be updated.
+* ``bleach.linkify`` and friends had a ``skip_pre`` argument--that's been
+ replaced with a more general ``skip_tags`` argument.
... |
mozilla__bleach-302 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:LinkifyFilter.handle_links"
],
"edited_modules": [
"bleach/linkifier.py:LinkifyFilter"
]
},
"file": "bleach/linkifier.py"
}
] | mozilla/bleach | d77c4b7bf1a967f462d47beb8caa5e803133dfe4 | Linkify creates http link in mailto link when host contains a hyphen
Linkify creates http links **in** mailto links if the mail host name contains a hyphen `-` (and `parse_email=True`). The http link starts with the hyphen, even if host names mustn't start with hyphens at all (https://en.wikipedia.org/wiki/Hostname#Res... | diff --git a/.gitignore b/.gitignore
index f5adb54..26bbdf8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@ build
docs/_build/
.cache/
.eggs/
+.*env*/
diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 471ce93..c8d3340 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -349,7 +349,17 ... |
mozilla__bleach-361 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/sanitizer.py:BleachSanitizerFilter.disallowed_token"
],
"edited_modules": [
"bleach/sanitizer.py:BleachSanitizerFilter"
]
},
"file": "bleach/sanitizer.py"
}
] | mozilla/bleach | a65f5c8ea664abbd54b4c711ebd0ca26c3509b7e | Exceptions on strange Html
Hello,
This small pattern raises an exception :
import bleach
bleach.clean("<d {c}>")
| diff --git a/bleach/sanitizer.py b/bleach/sanitizer.py
index 12225ef..faf8fd7 100644
--- a/bleach/sanitizer.py
+++ b/bleach/sanitizer.py
@@ -668,8 +668,20 @@ class BleachSanitizerFilter(sanitizer.Filter):
assert token_type in ("StartTag", "EmptyTag")
attrs = []
for (ns, name), v i... |
mozilla__bleach-394 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer.__init__",
"bleach/html5lib_shim.py:BleachHTMLTokenizer.__iter__",
"bleach/html5lib_shim.py:BleachHTMLTokenizer.consumeEntity",
"bleac... | mozilla/bleach | c27512d20b48b7901687b62d15c91be1de856f89 | linkify() "fixes" HTML by adding or removing tags
Similar to the issue in https://github.com/mozilla/bleach/issues/280, `bleach.linkify()` seems to be "fixing" HTML by adding or removing tags if it interprets something as an HTML tag.
For example:
```
>>> bleach.linkify("insert <name> here")
'insert <name> here... | diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py
index 58e2e78..5ede0d4 100644
--- a/bleach/html5lib_shim.py
+++ b/bleach/html5lib_shim.py
@@ -15,11 +15,10 @@ from bleach._vendor.html5lib import (
HTMLParser,
getTreeWalker,
)
+from bleach._vendor.html5lib import constants
from bleach._vendor.h... |
mozilla__bleach-410 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:LinkifyFilter.__iter__"
],
"edited_modules": [
"bleach/linkifier.py:LinkifyFilter"
]
},
"file": "bleach/linkifier.py"
},
{
"changes": {
... | mozilla/bleach | a39f7d6742cca84a4bb095e097c47b1d3770e58b | LinkifyFilter not working for URLs with ampersands
Example with bleach 2.1.3:
```
from bleach import Cleaner
from bleach.linkifier import LinkifyFilter
url1 = 'http://a.co?b=1&c=2'
url2 = 'http://a.co?b=1&c=2'
cleaner = Cleaner(filters=[LinkifyFilter])
cleaner.clean(url1)
cleaner.clean(url2)
```
B... | diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 6394c03..5d815f8 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -499,13 +499,11 @@ class LinkifyFilter(html5lib_shim.Filter):
# the tokens we're going to yield
in_a = False
token_bu... |
mozilla__bleach-423 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:Linker.__init__"
],
"edited_modules": [
"bleach/linkifier.py:Linker"
]
},
"file": "bleach/linkifier.py"
}
] | mozilla/bleach | 26fb1da0472ac76a37e0f5eb91f4017f29350a46 | linkify is escaping valid HTML tags
Originally noticed here in relation to the `<abbr>` tag: https://github.com/mozilla/bleach/issues/400
linkify is now using a list of valid HTML tags that is largely built up from constants in html5lib, here: https://github.com/mozilla/bleach/blob/master/bleach/html5lib_shim.py#L49... | diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 5d815f8..95baba1 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -85,7 +85,7 @@ class Linker(object):
"""
def __init__(self, callbacks=DEFAULT_CALLBACKS, skip_tags=None, parse_email=False,
- url_re=URL_RE, email_re=EM... |
mozilla__bleach-429 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/sanitizer.py:BleachSanitizerFilter.sanitize_characters"
],
"edited_modules": [
"bleach/sanitizer.py:BleachSanitizerFilter"
]
},
"file": "bleach/sanitizer.py"
}... | mozilla/bleach | 3097fd3466118539a30d2e3a2a469113aa007cbe | LinkifyFilter with clean breaks links at &
(Split out to a new issue from [this comment](https://github.com/mozilla/bleach/issues/419#issuecomment-445056894))
When using `LinkifyFilter` instead of the stand-alone `linkify`, links are broken at any `&`, but not bare `&` characters.
Here's a pretty minimal ... | diff --git a/bleach/sanitizer.py b/bleach/sanitizer.py
index c60c26b..79b80f5 100644
--- a/bleach/sanitizer.py
+++ b/bleach/sanitizer.py
@@ -395,7 +395,18 @@ class BleachSanitizerFilter(html5lib_shim.SanitizerFilter):
if part.startswith('&'):
entity = html5lib_shim.match_entity(part)
... |
mozilla__bleach-432 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bleach/__init__.py"
},
{
"changes": {
"added_entities": [
"bleach/html5lib_shim.py:InputStreamWithMemory.charEncoding",
"bleach/... | mozilla/bleach | 93a060e12138e5aeaf8627b305a918c4207b9c02 | AttributeError: 'InputStreamWithMemory' object has no attribute 'charEncoding'
Using this code:
```
import bleach
TEXT = """\
<html>
<head>
<meta charset="utf-8">
</head>
<body>
</body>
</html>
"""
print(bleach.clean(TEXT, tags=['html', 'head', 'meta', 'body']))
```
we get this traceback:
```... | diff --git a/CHANGES b/CHANGES
index eb3dc23..4fe065e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,7 @@
Bleach changes
==============
-Version 3.0.3 (In development)
+Version 3.1.0 (In development)
------------------------------
**Security fixes**
@@ -25,6 +25,12 @@ None
* Fix cases where attribute names coul... |
mozilla__bleach-434 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/sanitizer.py:BleachSanitizerFilter.sanitize_css"
],
"edited_modules": [
"bleach/sanitizer.py:BleachSanitizerFilter"
]
},
"file": "bleach/sanitizer.py"
}
] | mozilla/bleach | 2f210e06baacb1015bdde9896ad465dab0ccc378 | Style filter does not work correctly when supplied non-ASCII style attribute
# Environment
Windows 10 Pro
Python 3.7.1
bleach 3.0.2
I've setup so that `color` style will survive after clean() method like below:
```
>>> bleach.clean('<span style="font-family:consolas;color:red">text</span>', tags = ['s... | diff --git a/bleach/sanitizer.py b/bleach/sanitizer.py
index 79b80f5..6ccd78c 100644
--- a/bleach/sanitizer.py
+++ b/bleach/sanitizer.py
@@ -593,7 +593,8 @@ class BleachSanitizerFilter(html5lib_shim.SanitizerFilter):
# the whole thing.
parts = style.split(';')
gauntlet = re.compile(
- ... |
mozilla__bleach-647 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/html5lib_shim.py:match_entity"
],
"edited_modules": [
"bleach/html5lib_shim.py:match_entity"
]
},
"file": "bleach/html5lib_shim.py"
}
] | mozilla/bleach | 78d311c8f39ca8a8137f3070e4b0d0ff2a096815 | bleach.clean method returns unexpected value for string with unknown entities
For string strings like "&adp;" and "&*!;" actual output is "&ad;;" and "&*;;".
But I expect that such values should remain original value ("&adp;" and "&*!;" corresponding). | diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py
index d97d5c4..3ebfc8a 100644
--- a/bleach/html5lib_shim.py
+++ b/bleach/html5lib_shim.py
@@ -512,13 +512,13 @@ def convert_entities(text):
def match_entity(stream):
"""Returns first entity in stream or None if no entity exists
- Note: For Bleach... |
mozilla__bleach-659 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:LinkifyFilter.handle_email_addresses"
],
"edited_modules": [
"bleach/linkifier.py:LinkifyFilter"
]
},
"file": "bleach/linkifier.py"
}
] | mozilla/bleach | 481b146b074ed004eab39abf8f9b964fcd61c408 | bug: `linkify` with `parse_email=True` doesn't handle "%" a "?" in `addr-specs`
**Describe the bug**
bug: `linkify` with `parse_email=True` doesn't handle "%" and "?", which may occur in RFC822 addr-specs (see https://datatracker.ietf.org/doc/html/rfc2368#section-6)
- Python Version: 3.10.4
- Bleach Version: 5... | diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 68a4042..df56f3c 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -1,5 +1,7 @@
import re
+from urllib.parse import quote
+
from bleach import callbacks as linkify_callbacks
from bleach import html5lib_shim
@@ -298,10 +300,15 @@ class Linki... |
mozilla__bleach-667 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer.__iter__"
],
"edited_modules": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer"
]
},
"file": "bleach/html5lib_shim.py"
}
] | mozilla/bleach | c5c3f50d01967feb1f67e55ad33a6880d9dc2e73 | Left angle bracket '<' with any characters (tag or not) and no closing right angle bracket prevents remaining text from being returned
Given some text that contains a left angle bracket and no closing right angle bracket, the `bleach.clean `method returns nothing after the occurrence of the left angle bracket.
Cons... | diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py
index 6fc9048..d121953 100644
--- a/bleach/html5lib_shim.py
+++ b/bleach/html5lib_shim.py
@@ -385,7 +385,17 @@ class BleachHTMLTokenizer(HTMLTokenizer):
yield token
if last_error_token:
- yield last_error_token
+ ... |
mozilla__bleach-669 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/sanitizer.py:BleachSanitizerFilter.sanitize_uri_value"
],
"edited_modules": [
"bleach/sanitizer.py:BleachSanitizerFilter"
]
},
"file": "bleach/sanitizer.py"
}
... | mozilla/bleach | ed06d4e56b70e08fae2dd8f13b6a1955cf106029 | bug: Relative url is removed when the allowed protocol is https
**Describe the bug**
bleach.clean does not keep the relative url when the allowed protocol is https
** python and bleach versions (please complete the following information):**
- Python Version: 2.7.18
- Bleach Version: 3.3.1
**To Reproduce*... | diff --git a/bleach/sanitizer.py b/bleach/sanitizer.py
index 51ec562..3a222a1 100644
--- a/bleach/sanitizer.py
+++ b/bleach/sanitizer.py
@@ -488,9 +488,9 @@ class BleachSanitizerFilter(html5lib_shim.SanitizerFilter):
if ":" in new_value and new_value.split(":")[0] in allowed_protocols:
ret... |
mozilla__bleach-692 | [
{
"changes": {
"added_entities": [
"bleach/linkifier.py:LinkifyFilter.extract_entities"
],
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:Linker.__init__",
"bleach/linkifier.py:LinkifyFilter.__iter__"
],
"edited_modules": [
"b... | mozilla/bleach | 459d370ce6e27e5e82e72bfec92f95976df9a02f | Bug relating to nbsp?
This is with bleach 3.1:
```
>>> import bleach
>>> bleach.clean(u'foo. bar.')
'foo. bar.'
>>> bleach.linkify(u'foo. bar.')
'foo.\xa0 bar.'
```
Odd that `linkify` would convert ` ` to `\xa0`. Maybe related to #143?
Seems like a bug but I'd expect that someone else... | diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index b3b83e6..343f374 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -147,13 +147,16 @@ class Linker:
self.parser = html5lib_shim.BleachHTMLParser(
tags=recognized_tags,
strip=False,
- consume_entities=T... |
mozilla__bleach-720 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:LinkifyFilter.__iter__"
],
"edited_modules": [
"bleach/linkifier.py:LinkifyFilter"
]
},
"file": "bleach/linkifier.py"
}
] | mozilla/bleach | 6f0aaaaa98ff355a1207e7c1c77d3eb0c063a9b1 | bug: linkify with entities inside anchor strings are incorrectly escaped
**Describe the bug**
linkify on a string with entities inside anchor element text results in the `&` character of the entity being incorrect escaped to `&`
e.g. ` ` -> `&nbsp;`
** python and bleach versions (please complete the... | diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 679d7ea..54a432e 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -591,7 +591,7 @@ class LinkifyFilter(html5lib_shim.Filter):
in_a = False
token_buffer = []
else:
- tok... |
mozilla__bleach-721 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer.__iter__"
],
"edited_modules": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer"
]
},
"file": "bleach/html5lib_shim.py"
}
] | mozilla/bleach | b56aa7c8052fed01774c6ef8bac947b6dea2f551 | Open angle bracket '<' with few words after cleaned up if there's no closing bracket
**Describe the bug**
After https://github.com/mozilla/bleach/issues/544 being fixed it seems the issue is still persist. But it reproducible in another way
- Python Version: 3.8.13
- Bleach Version: 6.0.0
**To Reproduce**
... | diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py
index aa5189b..ca1cc8c 100644
--- a/bleach/html5lib_shim.py
+++ b/bleach/html5lib_shim.py
@@ -395,10 +395,17 @@ class BleachHTMLTokenizer(HTMLTokenizer):
# followed by a series of characters. It's treated as a tag
# name th... |
mozilla__bleach-722 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/linkifier.py:build_url_re"
],
"edited_modules": [
"bleach/linkifier.py:build_url_re"
]
},
"file": "bleach/linkifier.py"
}
] | mozilla/bleach | 11d8c9bbcba659af99d89785ae0d137ea36d1263 | Linkify incorrectly parses array arguments
Hi.
Library version up to 3.1.0 incorrectly parses array and object url parameters:
```python
from bleach import DEFAULT_CALLBACKS, Linker
text= 'http://test.com?array[]=1¶ms_in[]=2'
linker = Linker(url_re=linkifier.URL_RE, callbacks=DEFAULT_CALLBACKS, skip_tags=None,... | diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 54a432e..8fcefb2 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -45,8 +45,8 @@ def build_url_re(tlds=TLDS, protocols=html5lib_shim.allowed_protocols):
r"""\(* # Match any opening parentheses.
\b(?<![@.])(?:(?:{0}):/{{0,3}}(?:... |
mozilla__bleach-740 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer.__iter__"
],
"edited_modules": [
"bleach/html5lib_shim.py:BleachHTMLTokenizer"
]
},
"file": "bleach/html5lib_shim.py"
}
] | mozilla/bleach | 648a97d0884ccddf8a7a9887adc83d32974688dc | Open bracket '<' still cleaned up without closing bracket
**Describe the bug**
Thanks for the fix provided https://github.com/mozilla/bleach/issues/705!
I think I found regression after that fix
- Python Version: [e.g. 3.9.6]
- Bleach Version: [e.g. 6.1.0]
**To Reproduce**
Steps to reproduce the behavio... | diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py
index ca1cc8c..f083db7 100644
--- a/bleach/html5lib_shim.py
+++ b/bleach/html5lib_shim.py
@@ -396,16 +396,25 @@ class BleachHTMLTokenizer(HTMLTokenizer):
# name that abruptly ends, but we should treat that like
# character ... |
mozilla__django-csp-236 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"csp/contrib/rate_limiting.py:RateLimitedCSPMiddleware.build_policy",
"csp/contrib/rate_limiting.py:RateLimitedCSPMiddleware.build_policy_ro"
],
"edited_modules": [
"csp/contr... | mozilla/django-csp | 153696e6033dc61e2fc4c5a57b8e527b761e1cf2 | When REPORT_PERCENTAGE is set to 100%, the `report-uri` directive is not always included in the CSP header
When the setting `REPORT_PERCENTAGE` is set to 100%, the `report-uri` should always be included in the Content Security Policy header. However, it has been observed that this is not true.
The current logic allo... | diff --git a/csp/contrib/rate_limiting.py b/csp/contrib/rate_limiting.py
index 9633a87..c6a54f6 100644
--- a/csp/contrib/rate_limiting.py
+++ b/csp/contrib/rate_limiting.py
@@ -28,9 +28,14 @@ class RateLimitedCSPMiddleware(CSPMiddleware):
return ""
report_percentage = policy.get("REPORT_PERCENTA... |
mozilla__django-csp-68 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"csp/utils.py:build_policy"
],
"edited_modules": [
"csp/utils.py:build_policy"
]
},
"file": "csp/utils.py"
}
] | mozilla/django-csp | 4c6d052dce0a010dce8cb0e11b2e01cb431a64bf | Setting a lazy-evaluated string to CSP_REPORT_URI no longer works
```
Traceback (most recent call last):
File "/app/sitepackages/django/core/handlers/base.py", line 235, in get_response
response = middleware_method(request, response)
File "/app/sitepackages/csp/middleware.py", line 43, in process_response
... | diff --git a/csp/utils.py b/csp/utils.py
index 1ca6268..33e51f3 100644
--- a/csp/utils.py
+++ b/csp/utils.py
@@ -1,4 +1,5 @@
from django.conf import settings
+from django.utils.encoding import force_text
import copy
from itertools import chain
@@ -55,5 +56,6 @@ def build_policy(config=None, update=None, replace=No... |
mozilla__puente-52 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"puente/commands.py:merge_command"
],
"edited_modules": [
"puente/commands.py:merge_command"
]
},
"file": "puente/commands.py"
},
{
"changes": {
"added_ent... | mozilla/puente | a7d648b09a9b28feafdec48492aa1722d5add9ff | Add option to not create merge backup
According to https://www.gnu.org/software/gettext/manual/html_node/msgmerge-Invocation.html that should be `--backup=off` to the `msgmerge` tool. | diff --git a/puente/commands.py b/puente/commands.py
index a36d035..c21cdd3 100644
--- a/puente/commands.py
+++ b/puente/commands.py
@@ -129,10 +129,11 @@ def extract_command(outputdir, domain_methods, text_domain, keywords,
print('Done')
-def merge_command(create, base_dir, domain_methods, languages):
+def me... |
mozilla__puente-54 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"puente/commands.py:merge_command"
],
"edited_modules": [
"puente/commands.py:merge_command"
]
},
"file": "puente/commands.py"
},
{
"changes": {
"added_ent... | mozilla/puente | f12f27e2230f071f474b394d1ac908d2ed3476e2 | add django gettext keywords
* upgettext
* upgettext_lazy
* pgettext
* pgettext_lazy
* etc
Add all the ones that we're currently missing. | diff --git a/puente/commands.py b/puente/commands.py
index c21cdd3..a36d035 100644
--- a/puente/commands.py
+++ b/puente/commands.py
@@ -129,11 +129,10 @@ def extract_command(outputdir, domain_methods, text_domain, keywords,
print('Done')
-def merge_command(create, backup, base_dir, domain_methods, languages):... |
mozilla__remote-settings-uptake-health-11 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"main.py:run",
"main.py:cli"
],
"edited_modules": [
"main.py:run",
"main.py:cli"
]
},
"file": "main.py"
}
] | mozilla/remote-settings-uptake-health | 3e0d9035968f7f42a479e85a7cb3fe299da04e42 | Show percentage for distribution of errors
In the current distribution of errors, only the number of occurrences is shown.
I'd like to be able to also see «*that for collection A we have X% of network-errors*» | diff --git a/main.py b/main.py
index 37605f8..b9f4811 100644
--- a/main.py
+++ b/main.py
@@ -184,18 +184,19 @@ def run(verbose=False, dry_run=False):
good += row[status]
elif not is_neutral(status):
bad += row[status]
- if not (good + bad):
+ total = good + b... |
mozilla__remote-settings-uptake-health-19 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"main.py:run"
],
"edited_modules": [
"main.py:run"
]
},
"file": "main.py"
}
] | mozilla/remote-settings-uptake-health | 361264fa0c67d2989e6d7da9797d7b6428cad722 | Show date range
It would be useful to see the date range that we are processing.
I'm having doubts because when running this script I don't see any `custom_1_error` status, whereas I see some in the events table [on Databricks](https://dbc-caf9527b-e073.cloud.databricks.com/#notebook/82773/command/82775)
![scree... | diff --git a/main.py b/main.py
index e977978..c73f863 100644
--- a/main.py
+++ b/main.py
@@ -1,3 +1,4 @@
+from datetime import datetime
from fnmatch import fnmatch
from urllib.parse import urlencode
@@ -164,10 +165,21 @@ def run(verbose=False, dry_run=False):
query_result = data["query_result"]
data = que... |
mozman__ezdxf-246 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/ezdxf/addons/drawing/matplotlib.py:TextRenderer._get_font_measurements"
],
"edited_modules": [
"src/ezdxf/addons/drawing/matplotlib.py:TextRenderer"
]
},
"file": "s... | mozman/ezdxf | bdf607742fa8e70ad27b1ff474359be432692418 | Matplotlib font properties
Hi again!
In dxf-to-png conversion, I ran into a text rendering issues for DXF files containing CJK (Chinese, Japanese, Korean)
characters.
For instance, I have a `simple_text.dxf` containing Korean characters, which is visualized with `cad_viewer.py` with no problem:
<img width="15... | diff --git a/src/ezdxf/addons/drawing/matplotlib.py b/src/ezdxf/addons/drawing/matplotlib.py
index 9337dc888..881e8bac5 100644
--- a/src/ezdxf/addons/drawing/matplotlib.py
+++ b/src/ezdxf/addons/drawing/matplotlib.py
@@ -244,11 +244,12 @@ class TextRenderer:
upper_x = self.get_text_path('X').vertices[:, 1].tol... |
mozman__steputils-3 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/steputils/p21.py:Lexer.string"
],
"edited_modules": [
"src/steputils/p21.py:Lexer"
]
},
"file": "src/steputils/p21.py"
}
] | mozman/steputils | 86fd714d6e2919970c674ef744dc04c0bb09241d | .step file parsing error
I am unable to read a step file.
These .step file are coming from Rhino & Creo professional tools
I keep getting the following error.
```
File "D:\Progam Files\Python\python v3.7.0\lib\site-packages\steputils\p21.py", line 1025, in readfile
return load(fp)
File "D:\Progam Files\Py... | diff --git a/src/steputils/p21.py b/src/steputils/p21.py
index c8dd28b..a7f3de1 100644
--- a/src/steputils/p21.py
+++ b/src/steputils/p21.py
@@ -33,6 +33,7 @@ FIRST_KEYWORD_CHAR = ascii_uppercase + '_'
KEYWORD_CHARS = ascii_letters + digits + '_-' # should accept ISO-10303-21 and lower case letters
STRING_CHARS = ... |
mozman__svgwrite-109 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"svgwrite/data/svgparser.py:build_animation_timing_parser"
],
"edited_modules": [
"svgwrite/data/svgparser.py:build_animation_timing_parser"
]
},
"file": "svgwrite/data/... | mozman/svgwrite | c8cbf6f615910b3818ccf939fce0e407c9c789cb | build_animation_timing_parser uses wrong separator
The regex generated for `timing-value-list` uses a `,` as separator, while this list is separated by `;`. It thus does not validate lists of multiple values correctly (but in exchang eallows invalid values).
`0s;foo.end` is rejected while being valid; `0s,foo.end` i... | diff --git a/svgwrite/data/svgparser.py b/svgwrite/data/svgparser.py
index 6a79dfa..adeaa0a 100644
--- a/svgwrite/data/svgparser.py
+++ b/svgwrite/data/svgparser.py
@@ -19,6 +19,7 @@ event_names = [
]
c = r"\s*[, ]\s*"
+s = r"\s*[; ]\s*"
integer_constant = r"\d+"
exponent = r"([eE][+-]?\d+)"
nonnegative_number =... |
mpdavis__python-jose-136 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"jose/jws.py:_encode_header"
],
"edited_modules": [
"jose/jws.py:_encode_header"
]
},
"file": "jose/jws.py"
}
] | mpdavis/python-jose | aac4c32df210fce3da69e98822e298b3f014fe13 | Use OrderedDict for headers in jwt.decode and jws._encode_header
Hello,
I would implement the "headless JWT" idea I rode in this article https://dev.to/neilmadden/7-best-practices-for-json-web-tokens the section 4 "Consider using "headless" JWTs" .
But the fact python-jose build the headers from dict make this im... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 4d7654d..c9df8d2 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -17,6 +17,8 @@ Major
`#121 <https://github.com/mpdavis/python-jose/pull/121>`_
* Make pyca/cryptography backend the preferred backend if multiple backends are present.
`#122 <https://github.com/mpd... |
mpdavis__python-jose-185 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"jose/jws.py:_get_keys"
],
"edited_modules": [
"jose/jws.py:_get_keys"
]
},
"file": "jose/jws.py"
}
] | mpdavis/python-jose | 99ec142374a6eb98e32be5b8cdfd72508fd404d4 | Various issues in jwt.decode / jws._get_keys
I've had a couple issues (figuring out how to use jwt.decode) which stem from the jws._get_keys implementation.
1. key argument must be iterable- raises exception otherwise
2. string key argument must not contain 'keys' (ie if a PEM base64 segment or HS secret segment co... | diff --git a/jose/jws.py b/jose/jws.py
index 293b32a..f1b1d1a 100644
--- a/jose/jws.py
+++ b/jose/jws.py
@@ -225,7 +225,7 @@ def _sig_matches_keys(keys, signing_input, signature, alg):
def _get_keys(key):
try:
- key = json.loads(key)
+ key = json.loads(key, parse_int=str, parse_float=str)
exc... |
mpdavis__python-jose-33 | [
{
"changes": {
"added_entities": [
"jose/jwk.py:RSAKey._process_cert"
],
"added_modules": null,
"edited_entities": [
"jose/jwk.py:RSAKey.__init__"
],
"edited_modules": [
"jose/jwk.py:RSAKey"
]
},
"file": "jose/jwk.py"
},
{
"change... | mpdavis/python-jose | 00827f66c371f40d3295d44bfa889f25ec2ca72f | Add message about lack of X.509 certificate support in documentation
I get this error when using algorithms='RS256' on google app engine.
Full stack trace
```
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/g... | diff --git a/jose/jwk.py b/jose/jwk.py
index 21398e4..4f69f51 100644
--- a/jose/jwk.py
+++ b/jose/jwk.py
@@ -12,6 +12,7 @@ import Crypto.Hash.SHA512
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
+from Crypto.Util.asn1 import DerSequence
import ecdsa
@@ -188,18 +189,24 @@ class RSAKey... |
mpdavis__python-jose-63 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"jose/jwk.py:HMACKey.__init__"
],
"edited_modules": [
"jose/jwk.py:HMACKey"
]
},
"file": "jose/jwk.py"
}
] | mpdavis/python-jose | b54c12aa54b76d34942f537418399d689d828099 | CVE-2017-11424 Applies to python-jose as well!
[CVE-2017-11424](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-11424) details a key confusion attack against pyjwt.
As I understand it, we just need to add another magic string to [this check](https://github.com/mpdavis/python-jose/blob/b54c12aa54b76d34942f537... | diff --git a/.travis.yml b/.travis.yml
index 5f5a814..92102f6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,7 @@
sudo: false
+# Travis infra requires pinning dist:precise, at least as of 2017-09-01
+# detail: https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch
+dist: precise
language: python
... |
mpdavis__python-jose-76 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"jose/jwt.py:_validate_at_hash"
],
"edited_modules": [
"jose/jwt.py:_validate_at_hash"
]
},
"file": "jose/jwt.py"
}
] | mpdavis/python-jose | 28cc6719eceb89129eed59c25f7bdac015665bdd | Should at_hash claim verification fail when missing from JWT?
It looks like `at_hash` in JWT payload is optional (see http://openid.net/specs/openid-connect-core-1_0.html#CodeIDToken).
However, in python-jose, when both `id_token` and `access_token` parameters are specified, decoding a JWT that has no `at_hash` clai... | diff --git a/jose/jwt.py b/jose/jwt.py
index 2da511f..3ba3250 100644
--- a/jose/jwt.py
+++ b/jose/jwt.py
@@ -408,24 +408,28 @@ def _validate_jti(claims):
def _validate_at_hash(claims, access_token, algorithm):
"""
- Validates that the 'at_hash' parameter included in the claims matches
- with the access_to... |
mpetazzoni__sseclient-13 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sseclient/__init__.py:SSEClient._read",
"sseclient/__init__.py:SSEClient.events"
],
"edited_modules": [
"sseclient/__init__.py:SSEClient"
]
},
"file": "sseclien... | mpetazzoni/sseclient | 41c0015fb0ef29b22d48b119a82b9e2d858c7d36 | Invalid json when newline is at the beginning of a chunk
Hi, If the response chunk happens to have a newline character at the beginning then it is incorrectly parsed as an SSE delimiter resulting in invalid json in event.data
ex:
```
chunk = b'\ndata: "logicalTimestampMs" : 1497016850000,\ndata: "maxDelayMs" ... | diff --git a/sseclient/__init__.py b/sseclient/__init__.py
index 3bd32e0..4c20765 100644
--- a/sseclient/__init__.py
+++ b/sseclient/__init__.py
@@ -47,10 +47,10 @@ class SSEClient(object):
data = b''
for chunk in self._event_source:
for line in chunk.splitlines(True):
- if... |
mplanchard__pydecor-20 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/pydecor/decorators/_utility.py:get_fn_args"
],
"edited_modules": [
"src/pydecor/decorators/_utility.py:get_fn_args"
]
},
"file": "src/pydecor/decorators/_utility.py... | mplanchard/pydecor | b7554cfa64f62e5619511438a821e0fae0a51a19 | Support for decorating methods
Hello,
I just came across this package and contains several facilities that I find very useful to create expressive code, so I wanted to give it a try. However, when trying to use the "intercept" decorator on an instance method, it seems that the 'self' parameter gets swallowed, raisin... | diff --git a/requirements-dev.txt b/requirements-dev.txt
index 0b7b8da..5c67b4e 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -10,7 +10,9 @@ pylint;implementation_name=="cpython"
coverage
mock;python_version<"3.0"
-pytest
-pytest-cov
+pytest>=4.6
+pytest-cov;implementation_name=="cpython"
+pytest-... |
mps-gmbh__hl7-parser-22 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"hl7parser/hl7_data_types.py:HL7Datetime.__init__"
],
"edited_modules": [
"hl7parser/hl7_data_types.py:HL7Datetime"
]
},
"file": "hl7parser/hl7_data_types.py"
}
] | mps-gmbh/hl7-parser | 30d03f9dbd51866f0217f098db73b3ae5bfb4950 | Parser fails if a datetime is provided in extended composite id block
The following message part contains an extended composite id block but can not be parsed
```
IN1|1:1|McDH|123456789^^^^^^^^^McDonalds Health|McDonalds Health||||||
```
This causes the parser to fail with a `TypeError`
| diff --git a/hl7parser/hl7_data_types.py b/hl7parser/hl7_data_types.py
index a0a4726..2a8ba81 100644
--- a/hl7parser/hl7_data_types.py
+++ b/hl7parser/hl7_data_types.py
@@ -173,7 +173,7 @@ class HL7Datetime(HL7DataType):
"""
component_map = ['datetime']
- def __init__(self, composite, delimiter):
+ de... |
mrf345__flask_minify-12 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"flask_minify/main.py:minify.endpoint"
],
"edited_modules": [
"flask_minify/main.py:minify"
]
},
"file": "flask_minify/main.py"
}
] | mrf345/flask_minify | 69342b31d33f64d119565b2c5a53e3f1907edc0f | Some endpoints are causing errors in Flask-Minify
This is my setup:
`minify(app=app, bypass=[r'users\.register', r'users\.contact'])`
If I don't supply an argument to the bypass parameter no errors appear.
When I hit `ctrl + u` Chrome takes me to the source code of a specific page.
For example I'm currently on ... | diff --git a/.travis.yml b/.travis.yml
index f21efb7..f9cd114 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,6 @@ python:
install:
- pip install -r requirements/test.txt
# command to run tests
-script: py.test --cov=./flask_minify/ tests/integration.py
+script: py.test --cov=./flask_minify tests/*
after_... |
mrf345__flask_minify-33 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "flask_minify/about.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"flask_minify/m... | mrf345/flask_minify | d30965e5c37616883ac5098a66ff8b508f29477b | Cache KeyError
In my code, I've been using `flask_minify`, and I've been disabling the cache (for dynamic reasons). When I saw [this PR](https://github.com/KTibow/scorecard/pull/17) from Dependabot on my repo, I saw that the checks passed, so I merged it in. Whenever I tried to connect to the server, though, it gave me... | diff --git a/README.md b/README.md
index 45cbb75..a4efb7f 100644
--- a/README.md
+++ b/README.md
@@ -61,24 +61,24 @@ def __init__(
Parameters
----------
- app: Flask.app
- Flask app instance to be passed.
- js: bool
- To minify the js output.
- ... |
mrf345__flask_minify-51 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "flask_minify/about.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"flask_minify/d... | mrf345/flask_minify | 8add646033d802b5db1060347286444cf8ead3d9 | Decorator returns an invalid response when cache is enabled
Found an invariant condition in `decorators.minify` which returns an invalid response whenever caching is enabled
```
tests/integration.py:166:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _... | diff --git a/flask_minify/about.py b/flask_minify/about.py
index 2173daa..8d3fcfd 100644
--- a/flask_minify/about.py
+++ b/flask_minify/about.py
@@ -1,4 +1,4 @@
-__version__ = '0.30'
+__version__ = '0.31'
__doc__ = 'Flask extension to minify html, css, js and less.'
__license__ = 'MIT'
__author__ = 'Mohamed Feddad'
... |
mrkwjc__einsumt-2 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"einsumt.py:einsumt"
],
"edited_modules": [
"einsumt.py:einsumt"
]
},
"file": "einsumt.py"
},
{
"changes": {
"added_entities": null,
"added_modules":... | mrkwjc/einsumt | e30366ddd24f959603ce176e150c3ec5086ce5a9 | `einsumt` fails if the shape of (ellipsis) trailing axes are not equal
...however, `np.einsum` does automatic broadcasting. Any ideas on implementing that?
Minimal working example:
```python
import numpy as np
from einsumt import einsumt
a = np.ones((3, 3, 1, 1))
b = np.ones((3, 3, 8, 100))
# this works
... | diff --git a/einsumt.py b/einsumt.py
index 85480c3..c43ff3d 100644
--- a/einsumt.py
+++ b/einsumt.py
@@ -123,8 +123,9 @@ def einsumt(*operands, **kwargs):
for j in range(len(ops)):
oj = ops[j]
if cpos[j] >= 0:
- jslice = cpos_slice[j] + (islice,)
- oj = o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.