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 |
|---|---|---|---|---|---|
kedro-org__kedro-3680 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "kedro/framework/cli/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedr... | kedro-org/kedro | ac589ca13b2dccaa96526ec000a7778d297b24ff | Provide better error message when you try to use a project command from outside a project
> **Note**. This ticket does not handle the question of what happens if you're in a subdirectory of the project. That is done in #1831 . This ticket is just about what happens if you're outside the project altogether (e.g. the lev... | diff --git a/RELEASE.md b/RELEASE.md
index 182aa16a..e4b29334 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,6 +1,7 @@
# Upcoming Release 0.19.4
## Major features and improvements
+* Kedro CLI now provides a better error message when project commands are run outside of a project i.e. `kedro run`
## Bug fixes and... |
kedro-org__kedro-3715 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/pipeline/node.py:Node.__init__"
],
"edited_modules": [
"kedro/pipeline/node.py:Node"
]
},
"file": "kedro/pipeline/node.py"
}
] | kedro-org/kedro | 0fe2f1752ac67f9ce6d75bbe7a7fbe089b65ddff | Improve error message when passing wrong value to `node` - AttributeError: โintโ object has no attribute โsplitโ
## Description
Is your feature request related to a problem? A clear and concise description of what the problem is: "I'm always frustrated when ..."
Node is suppose to take name of datasets (or parmaete... | diff --git a/RELEASE.md b/RELEASE.md
index b13003c7..d8d40e7c 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,9 +1,10 @@
# Upcoming Release 0.19.4
## Major features and improvements
+* Improved error message when passing wrong value to node.
* Cookiecutter errors are shown in short format without the `--verbose` fl... |
kedro-org__kedro-3716 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/pipeline/modular_pipeline.py:_validate_inputs_outputs",
"kedro/pipeline/modular_pipeline.py:_validate_datasets_exist"
],
"edited_modules": [
"kedro/pipeline/modular_pip... | kedro-org/kedro | 32b87be55f7b7e55179d0c288c97e5e33d139689 | Improve error messages for modular pipelines
## Description
Some errors that happen when using modular pipelines could be more helpful.
For example: if a node has a non-existing dataset as input, the `ModularPipelineError` will actually include the name of the existing dataset in the catalog. You can reproduce that... | diff --git a/kedro/pipeline/modular_pipeline.py b/kedro/pipeline/modular_pipeline.py
index 6e89b810..9ac2d6a1 100644
--- a/kedro/pipeline/modular_pipeline.py
+++ b/kedro/pipeline/modular_pipeline.py
@@ -2,6 +2,7 @@
from __future__ import annotations
import copy
+import difflib
from typing import AbstractSet, Itera... |
kedro-org__kedro-3823 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/framework/project/__init__.py:find_pipelines"
],
"edited_modules": [
"kedro/framework/project/__init__.py:find_pipelines"
]
},
"file": "kedro/framework/project/__... | kedro-org/kedro | 570f66ac15df27bd3f15b64f0013fbfe17d4cdc1 | Provide option to raise error explicitly for `find_pipelines`
## Description
<!-- Is your feature request related to a problem? A clear and concise description of what the problem is: "I'm always frustrated when ..." -->
`find_pipelines` is added since 0.18.3 as a pipeline autodiscovery feature. While this is usefu... | diff --git a/RELEASE.md b/RELEASE.md
index b75cc57a..a74ec12c 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,6 +1,7 @@
# Upcoming Release 0.19.6
## Major features and improvements
+* Added `raise_errors` argument to `find_pipelines`. If `True`, the first pipeline for which autodiscovery fails will cause an error to... |
kedro-org__kedro-3859 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/framework/cli/catalog.py:list_datasets",
"kedro/framework/cli/catalog.py:rank_catalog_factories",
"kedro/framework/cli/catalog.py:resolve_patterns"
],
"edited_modules":... | kedro-org/kedro | 360cd12f3580764d8258daa22e485060f075d139 | Prioritise user created catch-all dataset factory pattern over `{default}` from runners
## Description
From slack conversation with @noklam https://linen-slack.kedro.org/t/16713675/i-am-trying-to-create-a-catch-all-patterns-using-the-dataset#65f8bddf-cb66-4b35-8f5d-c0850669b907
The catch-all factory pattern added b... | diff --git a/RELEASE.md b/RELEASE.md
index 34c23572..620abccf 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -3,6 +3,7 @@
## Major features and improvements
## Bug fixes and other changes
+* User defined catch-all dataset factory patterns now override the default pattern provided by the runner.
## Breaking changes ... |
kedro-org__kedro-3920 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/io/cached_dataset.py:CachedDataset.__init__"
],
"edited_modules": [
"kedro/io/cached_dataset.py:CachedDataset"
]
},
"file": "kedro/io/cached_dataset.py"
},
{
... | kedro-org/kedro | 6609455defb68e2615126462f3ee8a5937dee54a | Render concrete parameter/return types for dataset `save`/`load`
## Description
The parameter type for a dataset's `save` is `_DI`, and the return type for `load` is `_DO`. This doesn't make any sense to a user (and barely makes sense to me, as a Kedro developer, because I saw the typing PR go in and have that context... | diff --git a/RELEASE.md b/RELEASE.md
index f3eeec10..32a47371 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,6 +1,7 @@
# Upcoming Release 0.19.7
## Major features and improvements
+* Exposed `load` and `save` publicly for each dataset in the core `kedro` library, and enabled other datasets to do the same. If a data... |
kedro-org__kedro-3947 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/framework/cli/utils.py:get_pkg_version"
],
"edited_modules": [
"kedro/framework/cli/utils.py:get_pkg_version"
]
},
"file": "kedro/framework/cli/utils.py"
}
] | kedro-org/kedro | 25e8f49b7ea1fe8ecad16bff3c4242a715f98ccb | Deprecate (mark for future removal) `get_pkg_version` from the public API
## Context
@merelcht It didn't change by #3742.
https://github.com/kedro-org/kedro/blob/a91ccdbecb5541490b5146b6179ab4c621b9ea73/kedro/framework/cli/utils.py#L204-L218
I just check again, this function is not used anywhere... | diff --git a/RELEASE.md b/RELEASE.md
index b14a51c3..4824c264 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -6,6 +6,9 @@
## Breaking changes to the API
+## Upcoming deprecations for Kedro 0.20.0
+* The utility method `get_pkg_version()` is deprecated and will be removed in Kedro 0.20.0.
+
## Documentation changes
... |
kedro-org__kedro-3952 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/io/core.py:AbstractDataset.from_config",
"kedro/io/core.py:parse_dataset_definition"
],
"edited_modules": [
"kedro/io/core.py:AbstractDataset",
"kedro/io/core.p... | kedro-org/kedro | ff133a5572903757b2cfe613d9b6fc848feca575 | [DataCatalog]: Error message is confusing when kedro-dataset is not installed
## Description
When `kedro-datasets` is not installed the error message one gets is not informative.
We propose enhancing the error message to provide a clear message on the root cause of the failure - when dataset dependencies are missin... | diff --git a/RELEASE.md b/RELEASE.md
index 262d8e37..36fd39ea 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -4,6 +4,7 @@
## Bug fixes and other changes
* Updated error message for invalid catalog entries.
+* Updated error message for catalog entries when the dataset class is not found with hints on how to resolve the... |
kedro-org__kedro-4030 | [
{
"changes": {
"added_entities": [
"kedro/config/omegaconf_config.py:OmegaConfigLoader.keys"
],
"added_modules": null,
"edited_entities": [
"kedro/config/omegaconf_config.py:OmegaConfigLoader.__init__",
"kedro/config/omegaconf_config.py:OmegaConfigLoader.__repr__"... | kedro-org/kedro | fd17607434b8037aa6d19a73bcd1659f1f74c709 | OmegaConfigLoader's `__repr__` is not implemented correctly, and it does not behave similar to a `UserDict`
## Description
<!-- Short description of the problem here. -->
Currently, `base_env` and `default_run_env` is not included in the `__repr__`.
When it is printed, it shows something like this
> In [11]: c
... | diff --git a/RELEASE.md b/RELEASE.md
index cc8b9032..f3eeec10 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -11,6 +11,8 @@
* Made [kedro-telemetry](https://github.com/kedro-org/kedro-plugins/tree/main/kedro-telemetry) a core dependency.
* Implemented dataset pretty printing.
* Implemented `DataCatalog` pretty printing... |
kedro-org__kedro-4392 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/framework/hooks/manager.py:_register_hooks"
],
"edited_modules": [
"kedro/framework/hooks/manager.py:_register_hooks"
]
},
"file": "kedro/framework/hooks/manager.... | kedro-org/kedro | 057de3457a778698001d9fd2f5797ca3b4a9ba3a | Safe guard Hook Argument in `settings.py`
## Description
Is your feature request related to a problem? A clear and concise description of what the problem is: "I'm always frustrated when ..."
Similar to #2768, Hooks are expected to be pass as an instance, but not a class. Beginner often fall into this trap because th... | diff --git a/RELEASE.md b/RELEASE.md
index c19418f0..4f2ac763 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -8,6 +8,7 @@
* Added validation to ensure dataset versions consistency across catalog.
* Fixed a bug in project creation when using a custom starter template offline.
* Added `node` import to the pipeline templa... |
kedro-org__kedro-4406 | [
{
"changes": {
"added_entities": [
"kedro/__init__.py:load_ipython_extension"
],
"added_modules": [
"kedro/__init__.py:load_ipython_extension"
],
"edited_entities": null,
"edited_modules": null
},
"file": "kedro/__init__.py"
},
{
"changes": {
... | kedro-org/kedro | a565d6607d1d16933dbb1ea42cfb9de39ef80980 | Support `%load_ext kedro`
## Description
We have discussion in https://github.com/kedro-org/kedro/issues/1763, the desired options are
`%load_ext kedro` or `%load_ext kedro.ipython`, at the end we settle with `%load_ext kedro.ipython` as we try to avoid Python importing the `ipython` module at the top-level.
## Co... | diff --git a/RELEASE.md b/RELEASE.md
index 49fb42d9..0e132d42 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -4,6 +4,7 @@
* Implemented `KedroDataCatalog.to_config()` method that converts the catalog instance into a configuration format suitable for serialization.
* Improve OmegaConfigLoader performance.
* Replaced `tr... |
kedro-org__kedro-4427 | [
{
"changes": {
"added_entities": [
"kedro/pipeline/pipeline.py:Pipeline.grouped_nodes_by_namespace"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"kedro/pipeline/pipeline.py:Pipeline"
]
},
"file": "kedro/pipeline/pipeline.py"
... | kedro-org/kedro | c68072270c5cd888f945d6812b0fffdd823a698c | Prototype for node grouping deployment solution using namespaces
## Description
Following the discussion in #4319, we decided to add helper functions to Kedro to simplify the process for plugin developers to implement node grouping based on namespaces.
One of possible solutions was proposed by @marrrcin in [this ... | diff --git a/RELEASE.md b/RELEASE.md
index bd95ac47..e974dd5b 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -2,6 +2,7 @@
## Major features and improvements
* Added `KedroDataCatalog.filter()` to filter datasets by name and type.
+* Added `Pipeline.grouped_nodes_by_namespace` property which returns a dictionary of nod... |
kedro-org__kedro-4562 | [
{
"changes": {
"added_entities": [
"kedro/runner/task.py:Task._async_dataset_load",
"kedro/runner/task.py:Task._async_dataset_save"
],
"added_modules": null,
"edited_entities": [
"kedro/runner/task.py:Task.execute",
"kedro/runner/task.py:Task._run_node_asy... | kedro-org/kedro | 6ee7a0e4f61556fd4d588c55b0a92eaa9a5866a7 | Use `asyncio` for async operations in Runners
## Description
We can refactor the code in `Task` that handles asynchronous loading and saving of data to use `asyncio`.
## Context
https://github.com/kedro-org/kedro/pull/4206#pullrequestreview-2392331530
| diff --git a/docs/source/get_started/kedro_concepts.md b/docs/source/get_started/kedro_concepts.md
index 45a21570..9ba8f785 100644
--- a/docs/source/get_started/kedro_concepts.md
+++ b/docs/source/get_started/kedro_concepts.md
@@ -109,7 +109,6 @@ During `kedro new`, you can select which [tools to include in your projec... |
kedro-org__kedro-4570 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kedro/pipeline/pipeline.py:Pipeline.grouped_nodes_by_namespace"
],
"edited_modules": [
"kedro/pipeline/pipeline.py:Pipeline"
]
},
"file": "kedro/pipeline/pipeline.py"
... | kedro-org/kedro | f1f49e51bd6cfce827f9090fc3d10096d6edab9c | Update node grouping API to only work with top level namespace
## Description
re #4427
Currently the node grouping API i.e. `pipeline.grouped_nodes_by_namespace` treats nested namespaces as individual namespaces.
They should be grouped on top level namespace groups only.
| diff --git a/kedro/pipeline/pipeline.py b/kedro/pipeline/pipeline.py
index b434bae4..b4e2c6fa 100644
--- a/kedro/pipeline/pipeline.py
+++ b/kedro/pipeline/pipeline.py
@@ -371,15 +371,17 @@ class Pipeline:
@property
def grouped_nodes_by_namespace(self) -> dict[str, dict[str, Any]]:
- """Return a dicti... |
keenlabs__KeenClient-Python-91 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keen/Padding.py:removeCMSPadding",
"keen/Padding.py:removeZeroLenPadding"
],
"edited_modules": [
"keen/Padding.py:removeCMSPadding",
"keen/Padding.py:removeZeroLenPad... | keenlabs/KeenClient-Python | add5f7f54acdc32577db690b682c4708a783c735 | New projects have 64-byte master keys, pycrypto supports only 16/24/32-byte AES
Generating scoped keys is breaking on newer projects, as the master keys are now 64-byte. They seemed to have changed from 32-byte keys in the past few months. I created a project a month or two ago that has a 32-byte key, and year+ old pro... | diff --git a/README.md b/README.md
index 47f5fcb..25f9da7 100644
--- a/README.md
+++ b/README.md
@@ -267,6 +267,9 @@ python setup.py tests
### Changelog
+##### 0.3.21
++ Fix bug with scoped key generation not working with newer Keen projects.
+
##### 0.3.20
+ Add `saved_queries` support
+ Add Python 3.4 support... |
keis__base58-27 | [
{
"changes": {
"added_entities": [
"base58.py:scrub_input"
],
"added_modules": [
"base58.py:scrub_input"
],
"edited_entities": [
"base58.py:b58encode_int",
"base58.py:b58encode",
"base58.py:b58decode_int",
"base58.py:b58decode"
... | keis/base58 | 5444801b217436757d3f9fbab129652017fca3d9 | output as a byte array
currently your encode function spits out a string, which is annoying because I have to wrap the output in the str.encode() method.
| diff --git a/base58.py b/base58.py
index 734e5d1..f03e3a4 100644
--- a/base58.py
+++ b/base58.py
@@ -14,7 +14,7 @@ from hashlib import sha256
__version__ = '0.2.5'
# 58 character alphabet used
-alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
+alphabet = b'123456789ABCDEFGHJKLMNPQRSTUVWXYZabc... |
keis__base58-46 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"base58.py:b58encode_check"
],
"edited_modules": [
"base58.py:b58encode_check"
]
},
"file": "base58.py"
}
] | keis/base58 | 9418945639480b9a428ccabe6cd0c9becac24df6 | b58encode_check does not take a str as input
b58encode_check only takes `bytes` as input. This is inconsistent with b58encode, which can handle a `Union[str, bytes]` as input. | diff --git a/base58.py b/base58.py
index f1bded6..71c49c4 100644
--- a/base58.py
+++ b/base58.py
@@ -103,10 +103,13 @@ def b58decode(
return b'\0' * (origlen - newlen) + bytes(reversed(result))
-def b58encode_check(v: bytes, alphabet: bytes = BITCOIN_ALPHABET) -> bytes:
+def b58encode_check(
+ v: Union[str,... |
keleshev__schema-174 | [
{
"changes": {
"added_entities": [
"schema.py:Or.__init__",
"schema.py:Or.reset"
],
"added_modules": null,
"edited_entities": [
"schema.py:Or.validate",
"schema.py:Schema.validate"
],
"edited_modules": [
"schema.py:Or",
"schema.... | keleshev/schema | f463ab62d4d5078484e97fec071bac6876b9beef | XOr implementation
First of all, this library is awesome.
I've implemented a `XOr` class for exclusive schemas (shamelessly copying from the `Or` class). Maybe this is naively wrong, but so far this has worked as expected.
``` python
class XOr(And):
def validate(self, data):
accepted = False
x = ... | diff --git a/README.rst b/README.rst
index 0d1855c..28186f8 100644
--- a/README.rst
+++ b/README.rst
@@ -298,6 +298,18 @@ for the same data:
>>> Schema(And(Or(int, float), lambda x: x > 0)).validate(3.1415)
3.1415
+In a dictionary, you can also combine two keys in a "one or the other" manner. To do
+so, use... |
keleshev__schema-247 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"schema.py:Regex.validate",
"schema.py:Schema.validate"
],
"edited_modules": [
"schema.py:Regex",
"schema.py:Schema"
]
},
"file": "schema.py"
}
] | keleshev/schema | a600fb465bdf2f4d4896df7d411ad3e57a4713bf | Formatting error when supplying raw dict as schema to `Or`
I'm not sure if this is valid Schema usage, but I wanted to drop my reproduction here just in case.
I have a schema that looks like this:
```python
import schema as s
test1 = s.Or(str, {
s.Optional("gpu"): str,
s.Optional("cpu"): str... | diff --git a/schema.py b/schema.py
index ef5dede..a1ada98 100644
--- a/schema.py
+++ b/schema.py
@@ -220,7 +220,7 @@ class Regex(object):
if self._pattern.search(data):
return data
else:
- raise SchemaError("%r does not match %r" % (self, data), e)
+ ... |
keleshev__schema-73 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"schema.py:Schema.validate"
],
"edited_modules": [
"schema.py:Schema"
]
},
"file": "schema.py"
},
{
"changes": {
"added_entities": null,
"added_modul... | keleshev/schema | e5c489cbbbbb8671ee32c43d518fea0076563da4 | Cannot install with pip3 -- README.rst contains non-ascii character.
```bash
$ pip3 install schema
Downloading/unpacking schema
Downloading schema-0.3.1.tar.gz
Running setup.py (path:/private/tmp/pip_build_bla/schema/setup.py) egg_info for package schema
Traceback (most recent call last):
File "<str... | diff --git a/README.rst b/README.rst
index b9d5d9d..b5a9ffd 100644
--- a/README.rst
+++ b/README.rst
@@ -85,7 +85,7 @@ otherwise it will raise ``SchemaError``.
>>> Schema(int).validate('123')
Traceback (most recent call last):
...
- SchemaError: '123' should be instance of 'int'
+ SchemaError: '123... |
keleshev__schema-85 | [
{
"changes": {
"added_entities": [
"schema.py:_callable_str"
],
"added_modules": [
"schema.py:_callable_str"
],
"edited_entities": [
"schema.py:Use.validate",
"schema.py:Schema.validate"
],
"edited_modules": [
"schema.py:Use",
... | keleshev/schema | 29286c1f9cce20cf70f2b15d9247f2ca6ef1d6c9 | doesn't work with operator.methodcaller
from operator import methodcaller
from schema import Schema
f = methodcaller('endswith', '.csv')
assert f('test.csv')
Schema(f).validate('test.csv')
AttributeError: 'operator.methodcaller' object has no attribute '__name__'
We can't assume th... | diff --git a/schema.py b/schema.py
index 1ecf845..d24744d 100644
--- a/schema.py
+++ b/schema.py
@@ -70,7 +70,7 @@ class Use(object):
except SchemaError as x:
raise SchemaError([None] + x.autos, [self._error] + x.errors)
except BaseException as x:
- f = self._callable.__name__
... |
keleshev__schema-91 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"schema.py:Schema.validate"
],
"edited_modules": [
"schema.py:Schema"
]
},
"file": "schema.py"
}
] | keleshev/schema | eb7670f0f4615195393dc5350d49fa9a33304137 | Inconsistent return types for validate: type(schema) or type(data)?
I've noted a small inconsistency when validating with iterable and dict schemas:
```python
if flavor == ITERABLE:
data = Schema(type(s), error=e).validate(data)
return type(s)(Or(*s, error=e).validate(d) for d in d... | diff --git a/schema.py b/schema.py
index b8abee4..f4f5460 100644
--- a/schema.py
+++ b/schema.py
@@ -109,7 +109,7 @@ class Schema(object):
if flavor == ITERABLE:
data = Schema(type(s), error=e).validate(data)
o = Or(*s, error=e)
- return type(s)(o.validate(d) for d in data)... |
kellyjonbrazil__jc-593 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"jc/parsers/df.py:_process"
],
"edited_modules": [
"jc/parsers/df.py:_process"
]
},
"file": "jc/parsers/df.py"
}
] | kellyjonbrazil/jc | 5c855e40c6cb9432b630cdf22f20ccf3285b24d7 | Incorrect handling of "k" "K" and similar suffixes for df, should be binary
Running `df -Bk` or `df -BK` is equivalent to `df -BKiB` but jc handles this as equivalent to `df -BKB`.
Coreutils handling of k/K as identical to KiB is documented here: https://www.gnu.org/software/coreutils/manual/html_node/Block-size.htm... | diff --git a/jc/parsers/df.py b/jc/parsers/df.py
index fbe1ca80..d8a25d39 100644
--- a/jc/parsers/df.py
+++ b/jc/parsers/df.py
@@ -159,7 +159,7 @@ def _process(proc_data):
# parse the size, used, and available fields to bytes
for key in entry:
if key in size_list:
- entry[k... |
kennethreitz__simplemind-51 | [
{
"changes": {
"added_entities": [
"simplemind/models.py:Conversation.save",
"simplemind/models.py:Conversation.load"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"simplemind/models.py:Message",
"simplemind/models.py:Convers... | kennethreitz/simplemind | 9ae9a2703ac0b33d0506a7979c5f33852dedec4c | [Feature Request] Ability to save conversations
The ability to save conversations in JSON format might be helpful. We can add 2 new methods in the `Conversation` class called `save` and `load` that would allow reading and writing conversations. | diff --git a/simplemind/models.py b/simplemind/models.py
index f8ff5be..a51ad5b 100644
--- a/simplemind/models.py
+++ b/simplemind/models.py
@@ -1,5 +1,6 @@
import uuid
from datetime import datetime
+from os import PathLike
from types import TracebackType
from typing import Any, Callable, Dict, List, Literal, Optio... |
keras-team__keras-autodoc-32 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_autodoc/autogen.py:DocumentationGenerator._render_class",
"keras_autodoc/autogen.py:DocumentationGenerator._render_method",
"keras_autodoc/autogen.py:DocumentationGenerator._render... | keras-team/keras-autodoc | cd500b1351d6c71f5825bb5d97f86f3058f00456 | Docstring of super class doesn't show
@gabrieldemarmiesse
I'm seeing an issue where if a docstring exists in the super class but not in the subclass method then it is not showing up at all | diff --git a/keras_autodoc/autogen.py b/keras_autodoc/autogen.py
index 7f8e379..0318aca 100644
--- a/keras_autodoc/autogen.py
+++ b/keras_autodoc/autogen.py
@@ -1,6 +1,6 @@
import shutil
import pathlib
-from inspect import isclass, isfunction
+from inspect import isclass, isfunction, getdoc
from typing import Dict, ... |
keras-team__keras-cv-1475 | [
{
"changes": {
"added_entities": [
"keras_cv/models/efficientnet_v1.py:apply_conv_bn",
"keras_cv/models/efficientnet_v1.py:apply_efficientnet_block",
"keras_cv/models/efficientnet_v1.py:EfficientNet.__init__",
"keras_cv/models/efficientnet_v1.py:EfficientNet.round_filters",... | keras-team/keras-cv | fff847454802d343d3d8f5e6bf77296067d72283 | Make MobileNetV3 a Functional subclass model & remove closures
This should follow the example of #1412 and #1401, including
- Docstring updates
- Colab demonstrating that weight loading works (if pre-trained weights exist) and numerics are identical | diff --git a/keras_cv/models/efficientnet_v1.py b/keras_cv/models/efficientnet_v1.py
index def28f8..c66d1d3 100644
--- a/keras_cv/models/efficientnet_v1.py
+++ b/keras_cv/models/efficientnet_v1.py
@@ -25,8 +25,9 @@ import copy
import math
import tensorflow as tf
-from keras import backend
-from keras import layers
... |
keras-team__keras-cv-1492 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_cv/layers/preprocessing/random_zoom.py:RandomZoom.augment_ragged_image"
],
"edited_modules": [
"keras_cv/layers/preprocessing/random_zoom.py:RandomZoom"
]
},
"fil... | keras-team/keras-cv | f9ca22a7823338e5ba3c448405bef048d7695554 | RandomZoom raises error when input is RaggedTensor
Standalone script to reproduce
```python
import tensorflow as tf
from keras_cv.layers.preprocessing import RandomZoom
if __name__ == "__main__":
layer = RandomZoom(height_factor=0.5, width_factor=0.5)
inputs = tf.ragged.stack(
[
... | diff --git a/keras_cv/custom_ops/box_util.cc b/keras_cv/custom_ops/box_util.cc
index 22457c0..a0d5a63 100644
--- a/keras_cv/custom_ops/box_util.cc
+++ b/keras_cv/custom_ops/box_util.cc
@@ -269,7 +269,8 @@ double RotatedBox2D::IoU(const RotatedBox2D& other) const {
return intersection_area / union_area;
}
-bool Ro... |
keras-team__keras-cv-1596 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_cv/bounding_box/converters.py:_image_shape"
],
"edited_modules": [
"keras_cv/bounding_box/converters.py:_image_shape"
]
},
"file": "keras_cv/bounding_box/converte... | keras-team/keras-cv | 66d658ab214eaab9655026688a363c2b4052f916 | Error in `bounding_box.converts._xyxy_to_rel_xyxy`:
Currently this breaks when operating on ragged images. This can be see in the `examples/layers/random_shear_demo.py` demo.
More info available here: https://github.com/keras-team/keras-cv/pull/1537#issuecomment-1479032369
Perhaps we can unit test this behavior ... | diff --git a/keras_cv/bounding_box/converters.py b/keras_cv/bounding_box/converters.py
index a07bf4e..9a93fb2 100644
--- a/keras_cv/bounding_box/converters.py
+++ b/keras_cv/bounding_box/converters.py
@@ -1,4 +1,4 @@
-# Copyright 2022 The KerasCV Authors
+# Copyright 2023 The KerasCV Authors
#
# Licensed under the Ap... |
keras-team__keras-cv-1799 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_cv/metrics/coco/pycoco_wrapper.py:_convert_predictions_to_coco_annotations",
"keras_cv/metrics/coco/pycoco_wrapper.py:_convert_groundtruths_to_coco_dataset"
],
"edited_modules"... | keras-team/keras-cv | 675e57551f4309fe9bc2555e15921ac30ae73bff | BoxCOCOMetrics do not handle Ragged prediction inputs properly
```
def print_metrics(metrics):
maxlen = max([len(key) for key in result.keys()])
print("Metrics:")
print("-" * (maxlen + 1))
for k, v in metrics.items():
print(f"{k.ljust(maxlen+1)}: {v.numpy():0.2f}")
coco_metrics.reset_st... | diff --git a/keras_cv/metrics/coco/pycoco_wrapper.py b/keras_cv/metrics/coco/pycoco_wrapper.py
index f630350..60c94a2 100644
--- a/keras_cv/metrics/coco/pycoco_wrapper.py
+++ b/keras_cv/metrics/coco/pycoco_wrapper.py
@@ -125,18 +125,18 @@ def _convert_predictions_to_coco_annotations(predictions):
coco_predictions ... |
keras-team__keras-cv-1864 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_cv/metrics/coco/pycoco_wrapper.py:_convert_groundtruths_to_coco_dataset"
],
"edited_modules": [
"keras_cv/metrics/coco/pycoco_wrapper.py:_convert_groundtruths_to_coco_dataset"
... | keras-team/keras-cv | b3798d8140605b651ac46f40fe7072ea08175720 | BoxCOCOMetrics don't support Ragged inputs
Hi KerasCV !
I am using your RetinaNet Model and i would like to use coco metrics. When I train the model without specifying the metrics no problems. However when I precise the coco metric the following error is yield after the first epoch :
Epoch 1:
`19/Unknown - ... | diff --git a/keras_cv/metrics/coco/pycoco_wrapper.py b/keras_cv/metrics/coco/pycoco_wrapper.py
index 60c94a2..ff82b2d 100644
--- a/keras_cv/metrics/coco/pycoco_wrapper.py
+++ b/keras_cv/metrics/coco/pycoco_wrapper.py
@@ -152,7 +152,7 @@ def _convert_groundtruths_to_coco_dataset(groundtruths, label_map=None):
gt_an... |
keras-team__keras-cv-1882 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_cv/layers/object_detection/anchor_generator.py:_SingleAnchorGenerator.__call__"
],
"edited_modules": [
"keras_cv/layers/object_detection/anchor_generator.py:_SingleAnchorGenera... | keras-team/keras-cv | 2621df5269e38d8920df7d111e49b913f1e16b7f | Retinanet Input Shape
Hi! I think I found an issue with the RetinaNet class.
Referring to the last part of the example at:
[Object Detection with KerasCV](https://keras.io/guides/keras_cv/object_detection_keras_cv/#data-loading)
This example runs, but when I change the model's backbone and I change the resizing o... | diff --git a/keras_cv/layers/object_detection/anchor_generator.py b/keras_cv/layers/object_detection/anchor_generator.py
index afebe8b..427a007 100644
--- a/keras_cv/layers/object_detection/anchor_generator.py
+++ b/keras_cv/layers/object_detection/anchor_generator.py
@@ -262,11 +262,15 @@ class _SingleAnchorGenerator:... |
keras-team__keras-cv-1889 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"examples/training/object_detection/pascal_voc/retinanet.py:pad_fn"
],
"edited_modules": [
"examples/training/object_detection/pascal_voc/retinanet.py:pad_fn"
]
},
"file... | keras-team/keras-cv | 71ce214991a40031eedc9911f4a587fac1625e47 | I've copy-pasted retinanet training example to colab. It fails
It's failing at the end of the first epoch here. It failed the same way mid epoch when I tried using my private dataset.
Using YOLOv8 also results in a fail.
Logs:
```
Epoch 1/100
4138/4138 [==============================] - ETA: 0s - loss: 0.9988 - b... | diff --git a/examples/training/object_detection/pascal_voc/retinanet.py b/examples/training/object_detection/pascal_voc/retinanet.py
index a6e932e..ee787e2 100644
--- a/examples/training/object_detection/pascal_voc/retinanet.py
+++ b/examples/training/object_detection/pascal_voc/retinanet.py
@@ -149,9 +149,10 @@ train_... |
keras-team__keras-nlp-131 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/layers/preprocessing/mlm_mask_generator.py:MLMMaskGenerator.call"
],
"edited_modules": [
"keras_nlp/layers/preprocessing/mlm_mask_generator.py:MLMMaskGenerator"
]
... | keras-team/keras-nlp | 80709ae68daf20514a39cd580d2c2e1d98308d07 | Error with tf.data and MLMMaskGenerator for dense inputs
When using the MLMMaskGenerator for to map over dense, batched inputs in a tf.data.Dataset, we get the following error...
`TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'`
This colab has a reproduction https://colab.research.google.com/gi... | diff --git a/keras_nlp/layers/preprocessing/mlm_mask_generator.py b/keras_nlp/layers/preprocessing/mlm_mask_generator.py
index 19c6dfc8..3c2bbd69 100644
--- a/keras_nlp/layers/preprocessing/mlm_mask_generator.py
+++ b/keras_nlp/layers/preprocessing/mlm_mask_generator.py
@@ -129,7 +129,7 @@ class MLMMaskGenerator(keras.... |
keras-team__keras-nlp-163 | [
{
"changes": {
"added_entities": [
"examples/bert/run_glue_finetuning.py:BertHyperModel.__init__",
"examples/bert/run_glue_finetuning.py:BertHyperModel.build"
],
"added_modules": [
"examples/bert/run_glue_finetuning.py:BertHyperModel"
],
"edited_entities": [... | keras-team/keras-nlp | fd91d24c9b32f41f9f2dfe49ecfca4f545dd9503 | Add a vocabulary_size argument to UnicodeCharacterTokenizer
We should add a `vocabulary_size` argument to the `UnicodeCharacterTokenizer` layer that clamps the output code point values to be in the range `[0, vocabulary_size)`.
We should also add a `vocabulary_size()` method as with other tokenizers that returns thi... | diff --git a/examples/bert/run_glue_finetuning.py b/examples/bert/run_glue_finetuning.py
index 0bc7ffdf..156bc601 100644
--- a/examples/bert/run_glue_finetuning.py
+++ b/examples/bert/run_glue_finetuning.py
@@ -16,6 +16,7 @@
import json
import datasets
+import keras_tuner
import tensorflow as tf
import tensorflow... |
keras-team__keras-nlp-1664 | [
{
"changes": {
"added_entities": [
"keras_nlp/src/tokenizers/byte_tokenizer.py:ByteTokenizer.get_vocabulary",
"keras_nlp/src/tokenizers/byte_tokenizer.py:ByteTokenizer.id_to_token",
"keras_nlp/src/tokenizers/byte_tokenizer.py:ByteTokenizer.token_to_id"
],
"added_modules... | keras-team/keras-nlp | 50e041487b1d8b30b34c5fb738db3ed3406363bc | Documented `id_to_token` doesn't exist for UnicodeCodepointTokenizer
**Describe the bug**
<!---
A clear and concise description of what the bug is.
-->
The Keras.io docs for UnicodeCodepointTokenizer at https://keras.io/api/keras_nlp/tokenizers/unicode_codepoint_tokenizer/ show methods for that tokenizer that don'... | diff --git a/keras_nlp/src/tokenizers/byte_tokenizer.py b/keras_nlp/src/tokenizers/byte_tokenizer.py
index 128aac27..deffb7ed 100644
--- a/keras_nlp/src/tokenizers/byte_tokenizer.py
+++ b/keras_nlp/src/tokenizers/byte_tokenizer.py
@@ -209,6 +209,12 @@ class ByteTokenizer(tokenizer.Tokenizer):
"""Get the intege... |
keras-team__keras-nlp-310 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"examples/bert/bert_train.py:main"
],
"edited_modules": [
"examples/bert/bert_train.py:main"
]
},
"file": "examples/bert/bert_train.py"
},
{
"changes": {
"... | keras-team/keras-nlp | 1db68a791a23c1fd1626b93cacd494cb20295355 | Rename `models.Bert()` to `models.BertCustom()`
### Discussed in https://github.com/keras-team/keras-nlp/discussions/305
<div type='discussions-op-text'>
<sup>Originally posted by **jbischof** August 23, 2022</sup>
When prototyping our model API in PR #288 we were following the example of `keras-cv`. They have `... | diff --git a/examples/bert/bert_train.py b/examples/bert/bert_train.py
index ff5480f3..3f30b004 100644
--- a/examples/bert/bert_train.py
+++ b/examples/bert/bert_train.py
@@ -407,7 +407,7 @@ def main(_):
with strategy.scope():
# Create a Bert model the input config.
- encoder = keras_nlp.models.B... |
keras-team__keras-nlp-387 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "keras_nlp/models/__init__.py"
},
{
"changes": {
"added_entities": [
"keras_nlp/models/bert/bert_models.py:classproperty.__get__",
... | keras-team/keras-nlp | b197f85e3c463071f0e00d5640c5571dacb1b0be | Unify modeling API around one class per model type
# Problem
Our current modeling API avoids creating an explicit config system by using config-in-code classes. These call a generic constructor with hardcoded arguments. In practice this requires us to maintain a bloated set of symbols in order to load a wide variety... | diff --git a/keras_nlp/models/__init__.py b/keras_nlp/models/__init__.py
index 06766d79..cb77fead 100644
--- a/keras_nlp/models/__init__.py
+++ b/keras_nlp/models/__init__.py
@@ -12,12 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from keras_nlp.mod... |
keras-team__keras-nlp-504 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/models/bert/bert_preprocessing.py:BertPreprocessor.call"
],
"edited_modules": [
"keras_nlp/models/bert/bert_preprocessing.py:BertPreprocessor"
]
},
"file": "k... | keras-team/keras-nlp | 7c984f2c5ca3bdcf8f1f93e84b221c488690c0d0 | BertPreprocessor has confusing behavior on lists of strings
Now `BertPreprocessor` has confusing UX on batch input, mainly because we combine strings together (like NSP). We should be clear on our user journey on the following input types:
1) a string: "This is a string"
2) a list of string: ["holy", "geez"]
3) a li... | diff --git a/keras_nlp/models/bert/bert_preprocessing.py b/keras_nlp/models/bert/bert_preprocessing.py
index b836dea1..0577c911 100644
--- a/keras_nlp/models/bert/bert_preprocessing.py
+++ b/keras_nlp/models/bert/bert_preprocessing.py
@@ -22,6 +22,9 @@ from keras_nlp.layers.multi_segment_packer import MultiSegmentPacke... |
keras-team__keras-nlp-536 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"examples/bert/bert_train.py:main"
],
"edited_modules": [
"examples/bert/bert_train.py:main"
]
},
"file": "examples/bert/bert_train.py"
},
{
"changes": {
"... | keras-team/keras-nlp | 405f1f9737295bda0d79d5426b928ee2623cf3fe | Standardize on "backbone" naming for BERT
We've settled on "backbone" as the name for the pretraining submodel reused in task models (even generative models like GPT)! I propose two changes to help reduce confusion for users:
1. `bert_models.py` -> `bert_backbone.py`
2. `Bert` -> `BertBackbone`
This should make it... | diff --git a/examples/bert/bert_config.py b/examples/bert/bert_config.py
index 6a0b8902..951ee152 100644
--- a/examples/bert/bert_config.py
+++ b/examples/bert/bert_config.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# TODO(jbischof): r... |
keras-team__keras-nlp-550 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "keras_nlp/models/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": [
"keras_nlp/models/roberta/roberta_backb... | keras-team/keras-nlp | d0afcd277c2d7086552c997e5f98c55d17333681 | Replicate #536 changing `Roberta` and `XLMRoberta` -> `RobertaBackbone`
1. `roberta_models.py` -> `roberta_backbone.py`
2. `roberta_models_test.py` -> `roberta_backbone_test.py`
3. `Roberta` -> `RobertaBackbone`
Same idea for `XLMRoberta`.
See #526 for more background. | diff --git a/keras_nlp/models/__init__.py b/keras_nlp/models/__init__.py
index 7d2cdbd1..5ee315b3 100644
--- a/keras_nlp/models/__init__.py
+++ b/keras_nlp/models/__init__.py
@@ -28,11 +28,11 @@ from keras_nlp.models.distil_bert.distil_bert_tokenizer import (
)
from keras_nlp.models.gpt2.gpt2_backbone import GPT2
fr... |
keras-team__keras-nlp-551 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "keras_nlp/models/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": [
"keras_nlp/models/distil_bert/distil_be... | keras-team/keras-nlp | dee94c273c41eb8fea28c0415aaa3b892ae163d5 | Replicate #536 changing `DistilBert` -> `DistilBertBackbone`
1. `distilbert_models.py` -> `distilbert_backbone.py`
2. `distilbert_models_test.py` -> `distilbert_backbone_test.py`
3. `DistilBert` -> `DistilBertBackbone`
See #526 for more background. | diff --git a/keras_nlp/models/__init__.py b/keras_nlp/models/__init__.py
index 1dac8816..7d2cdbd1 100644
--- a/keras_nlp/models/__init__.py
+++ b/keras_nlp/models/__init__.py
@@ -16,7 +16,7 @@ from keras_nlp.models.bert.bert_backbone import BertBackbone
from keras_nlp.models.bert.bert_classifier import BertClassifier
... |
keras-team__keras-nlp-566 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/models/distil_bert/distil_bert_preprocessor.py:DistilBertPreprocessor.call"
],
"edited_modules": [
"keras_nlp/models/distil_bert/distil_bert_preprocessor.py:DistilBertPrepr... | keras-team/keras-nlp | faa788e3ef0abe3eca7b2e1358212055de9e45c6 | Allow DistilBertClassifier to operate directly on raw strings
We should mirror the change in https://github.com/keras-team/keras-nlp/pull/485 for DistilBertClassifier, and allow fit/predict/evaluate to take in raw strings.
DistilBertPreprocessor should handle lists of strings as a batch
Once https://github.com/keras-te... | diff --git a/keras_nlp/models/distil_bert/distil_bert_preprocessor.py b/keras_nlp/models/distil_bert/distil_bert_preprocessor.py
index 344067a7..75cc3cb8 100644
--- a/keras_nlp/models/distil_bert/distil_bert_preprocessor.py
+++ b/keras_nlp/models/distil_bert/distil_bert_preprocessor.py
@@ -22,6 +22,10 @@ from keras_nlp... |
keras-team__keras-nlp-567 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/models/roberta/roberta_preprocessor.py:RobertaPreprocessor.call"
],
"edited_modules": [
"keras_nlp/models/roberta/roberta_preprocessor.py:RobertaPreprocessor"
]
}... | keras-team/keras-nlp | 202a713c304cd19926dd86aeabbfb87d3997e6b7 | RobertaPreprocessor should handle a list of strings as a batch
Once #504 lands, we should mirror changes for Roberta. | diff --git a/keras_nlp/models/roberta/roberta_preprocessor.py b/keras_nlp/models/roberta/roberta_preprocessor.py
index f542dda1..4784db13 100644
--- a/keras_nlp/models/roberta/roberta_preprocessor.py
+++ b/keras_nlp/models/roberta/roberta_preprocessor.py
@@ -22,6 +22,10 @@ from tensorflow import keras
from keras_nlp... |
keras-team__keras-nlp-568 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/models/xlm_roberta/xlm_roberta_preprocessor.py:XLMRobertaPreprocessor.call"
],
"edited_modules": [
"keras_nlp/models/xlm_roberta/xlm_roberta_preprocessor.py:XLMRobertaPrepr... | keras-team/keras-nlp | 202a713c304cd19926dd86aeabbfb87d3997e6b7 | XMLRobertaPreprocessor should handle lists of strings as a batch
Once #504 lands, we should mirror changes for XMLRoberta. | diff --git a/keras_nlp/models/xlm_roberta/xlm_roberta_preprocessor.py b/keras_nlp/models/xlm_roberta/xlm_roberta_preprocessor.py
index 2b907a6f..31f7ad14 100644
--- a/keras_nlp/models/xlm_roberta/xlm_roberta_preprocessor.py
+++ b/keras_nlp/models/xlm_roberta/xlm_roberta_preprocessor.py
@@ -25,6 +25,10 @@ from keras_nlp... |
keras-team__keras-nlp-578 | [
{
"changes": {
"added_entities": [
"keras_nlp/models/distil_bert/distil_bert_classifier.py:DistilBertClassifier.preprocess_samples",
"keras_nlp/models/distil_bert/distil_bert_classifier.py:DistilBertClassifier.preprocessor"
],
"added_modules": null,
"edited_entities": [
... | keras-team/keras-nlp | 515d5d9c1f476ffa3d2831d15b8cc63b3cafdbae | Allow DistilBertClassifier to operate directly on raw strings
We should mirror the change in https://github.com/keras-team/keras-nlp/pull/485 for DistilBertClassifier, and allow fit/predict/evaluate to take in raw strings. | diff --git a/.cloudbuild/cloudbuild.yaml b/.cloudbuild/cloudbuild.yaml
index 20f6593c..58b6052e 100644
--- a/.cloudbuild/cloudbuild.yaml
+++ b/.cloudbuild/cloudbuild.yaml
@@ -29,7 +29,7 @@ steps:
'install',
'github.com/google/go-jsonnet/cmd/jsonnet@latest',
]
-- name: 'google/cloud-sdk'
+- name: 'gcr.io/cl... |
keras-team__keras-nlp-583 | [
{
"changes": {
"added_entities": [
"keras_nlp/models/xlm_roberta/xlm_roberta_classifier.py:XLMRobertaClassifier.preprocess_samples",
"keras_nlp/models/xlm_roberta/xlm_roberta_classifier.py:XLMRobertaClassifier.preprocessor"
],
"added_modules": null,
"edited_entities": [
... | keras-team/keras-nlp | 736813f568d01d203e1d1e96a1e95a89e1e2cba4 | Allow XMLRobertaClasssifier to operate directly on raw strings
We should mirror the change in https://github.com/keras-team/keras-nlp/pull/485 for XLMRobertaClassifier, and allow fit/predict/evaluate to take in raw strings. | diff --git a/keras_nlp/models/xlm_roberta/xlm_roberta_classifier.py b/keras_nlp/models/xlm_roberta/xlm_roberta_classifier.py
index 2586ae81..967a56d6 100644
--- a/keras_nlp/models/xlm_roberta/xlm_roberta_classifier.py
+++ b/keras_nlp/models/xlm_roberta/xlm_roberta_classifier.py
@@ -19,14 +19,28 @@ from tensorflow impor... |
keras-team__keras-nlp-951 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/models/gpt2/gpt2_causal_lm.py:GPT2CausalLM.generate"
],
"edited_modules": [
"keras_nlp/models/gpt2/gpt2_causal_lm.py:GPT2CausalLM"
]
},
"file": "keras_nlp/mod... | keras-team/keras-nlp | 08351c09a44f63c227528d462a9b8f0583b2f5d3 | Add a temperature argument to the base sampler class
We would like our samplers to support a [temperature](https://medium.com/mlearning-ai/softmax-temperature-5492e4007f71) argument that allows tightening or loosening the probability distribution.
We can add this pretty simply in the base class by dividing our logit... | diff --git a/keras_nlp/models/gpt2/gpt2_causal_lm.py b/keras_nlp/models/gpt2/gpt2_causal_lm.py
index e674d544..09c2962e 100644
--- a/keras_nlp/models/gpt2/gpt2_causal_lm.py
+++ b/keras_nlp/models/gpt2/gpt2_causal_lm.py
@@ -28,6 +28,7 @@ from keras_nlp.models.task import Task
from keras_nlp.samplers.serialization impor... |
keras-team__keras-nlp-997 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_nlp/samplers/contrastive_sampler.py:ContrastiveSampler.__init__",
"keras_nlp/samplers/contrastive_sampler.py:ContrastiveSampler.__call__"
],
"edited_modules": [
"keras_... | keras-team/keras-nlp | 38d94a2b568be288262068727fbdf8eddccbadfe | Add a temperature argument to the Contrastive Sampler
Similar to our other samplers, we should add the temperature argument to the `Contrastive Sampler` along with the necessary tests.
The approach for accomplishing the same can be seen in #951.
I would like to take this up. Thanks!
| diff --git a/keras_nlp/models/distil_bert/distil_bert_tokenizer.py b/keras_nlp/models/distil_bert/distil_bert_tokenizer.py
index f954925c..94efdd52 100644
--- a/keras_nlp/models/distil_bert/distil_bert_tokenizer.py
+++ b/keras_nlp/models/distil_bert/distil_bert_tokenizer.py
@@ -56,10 +56,13 @@ class DistilBertTokenizer... |
keras-team__keras-tuner-577 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "keras_tuner/applications/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
... | keras-team/keras-tuner | a04cca69225fe8e2e956264594c4a634e02fb837 | Support TF 2.0
enclose the unsupported imports with try clauses.
Refer to:
https://github.com/keras-team/keras-tuner/pull/457/files#diff-987f464c76e4c860bedae74b852a2ff0e3c89960b87d551b655d3a0f356f1be5R20-R28 | diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml
index d5df3e9..c3023f8 100644
--- a/.github/workflows/actions.yml
+++ b/.github/workflows/actions.yml
@@ -12,6 +12,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-18.04]
+ tf: [tensorflow==2.0.0, tensorflow]
... |
keras-team__keras-tuner-584 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_tuner/engine/base_tuner.py:BaseTuner._populate_initial_space"
],
"edited_modules": [
"keras_tuner/engine/base_tuner.py:BaseTuner"
]
},
"file": "keras_tuner/engine... | keras-team/keras-tuner | 130015e7ac5b2f9b11cb55571a58c4a5156b27a8 | search_space_summary() to search for all the hps based on conditions
Currently, the summary only build the model for once, which may not cover all the hps.
We can use the conditions to fetch all the hps to build multiple times. | diff --git a/keras_tuner/engine/base_tuner.py b/keras_tuner/engine/base_tuner.py
index fa61deb..a37b818 100644
--- a/keras_tuner/engine/base_tuner.py
+++ b/keras_tuner/engine/base_tuner.py
@@ -17,6 +17,7 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
... |
keras-team__keras-tuner-586 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_tuner/engine/hyperparameters.py:value_to_cumulative_prob"
],
"edited_modules": [
"keras_tuner/engine/hyperparameters.py:value_to_cumulative_prob"
]
},
"file": "ke... | keras-team/keras-tuner | bb27e674d99d5ec235c257f521fde7c35e51488a | Handling division by zero
https://github.com/keras-team/keras-tuner/blob/a17321428a55975f55acb5b9270d6d73ea11dcc9/kerastuner/engine/hyperparameters.py#L1064
Hey team,
There should be the handling of division by zero here. | diff --git a/keras_tuner/engine/hyperparameters.py b/keras_tuner/engine/hyperparameters.py
index 646a180..32fd644 100644
--- a/keras_tuner/engine/hyperparameters.py
+++ b/keras_tuner/engine/hyperparameters.py
@@ -1164,6 +1164,8 @@ def value_to_cumulative_prob(value, hp):
# Center the value in its probability b... |
keras-team__keras-tuner-653 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_tuner/engine/oracle.py:Oracle.create_trial"
],
"edited_modules": [
"keras_tuner/engine/oracle.py:Oracle"
]
},
"file": "keras_tuner/engine/oracle.py"
},
{
... | keras-team/keras-tuner | be682573c6f6be1e3f3e6dcac786a34ccac19d3b | When running distributed, ongoing count of trial number is not synced between workers
When running keras_tuner distributed, the `Display` prints out a string like `Search: Running Trial #x`.
Initially, these numbers make sense. Meaning, if I run 5 workers I'll see `Search: Running Trial #1` in the first, `Search: Runn... | diff --git a/keras_tuner/engine/oracle.py b/keras_tuner/engine/oracle.py
index cbc558c..e568e14 100644
--- a/keras_tuner/engine/oracle.py
+++ b/keras_tuner/engine/oracle.py
@@ -183,7 +183,9 @@ class Oracle(stateful.Stateful):
if tuner_id in self.ongoing_trials:
return self.ongoing_trials[tuner_id]... |
keras-team__keras-tuner-657 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"keras_tuner/engine/tuner_utils.py:SaveBestEpoch.on_epoch_end"
],
"edited_modules": [
"keras_tuner/engine/tuner_utils.py:SaveBestEpoch"
]
},
"file": "keras_tuner/engine/... | keras-team/keras-tuner | cacc500743e6618a4658abfbdc3dcb5284f861d9 | If no objective provided, do not use the SaveBestEpoch callback
**Describe the bug**
<!---
A clear and concise description of what the bug is.
-->
**To Reproduce**
<!---
Provide a link to a [Colab Notebook](https://research.google.com/colaboratory/), which reproduces the bug.
-->
**Expected behavior**
<!--... | diff --git a/keras_tuner/engine/tuner_utils.py b/keras_tuner/engine/tuner_utils.py
index 1a3ced3..98fa0ad 100644
--- a/keras_tuner/engine/tuner_utils.py
+++ b/keras_tuner/engine/tuner_utils.py
@@ -196,6 +196,10 @@ class SaveBestEpoch(keras.callbacks.Callback):
self.best_value = float("inf")
def on_e... |
keredson__peewee-5 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"peewee.py:ModelQueryResultWrapper.initialize",
"peewee.py:ModelQueryResultWrapper.generate_join_list",
"peewee.py:ModelQueryResultWrapper.follow_joins",
"peewee.py:AggregateQuery... | keredson/peewee | 116c8e37da50b0ccfbf21310a61d978beb91df9c | null FKs return non-null objects with all-null attributes
clone of https://github.com/coleifer/peewee/issues/1012:
when doing a left join across a nullable FK, peewee 2.8.1 populates an empty object where the null is, rather than putting a `None` in the attribute. example:
```python
import logging, os, sys
imp... | diff --git a/peewee.py b/peewee.py
index bdc1506..796265c 100644
--- a/peewee.py
+++ b/peewee.py
@@ -2251,6 +2251,8 @@ if _DictQueryResultWrapper is None:
class ModelQueryResultWrapper(QueryResultWrapper):
def initialize(self, description):
self.column_map, model_set = self.generate_column_map()
+ ... |
keredson__peewee-7 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"peewee.py:QueryCompiler._parse_expression"
],
"edited_modules": [
"peewee.py:QueryCompiler"
]
},
"file": "peewee.py"
}
] | keredson/peewee | 817a27e0968d38dc974d89c19431ec88f871f3d3 | Using << with an empty list creates an invalid SQL query
from @Prillan in https://github.com/coleifer/peewee/issues/860:
```
psycopg2.ProgrammingError: syntax error at or near ")"
```
I think either of the following solutions are acceptable:
- Throw an error in peewee indicating that the list (iterator) is e... | diff --git a/README.rst b/README.rst
index 719c92c..e0501ae 100644
--- a/README.rst
+++ b/README.rst
@@ -399,6 +399,28 @@ This removes the need for the extra variable in the global namespace and the coo
Our patch for this has been incorporated upstream, so this is forwards-compatible too, following Peewee's next relea... |
kerrickstaley__genanki-89 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"genanki/note.py:Note"
]
},
"file": "genanki/note.py"
}
] | kerrickstaley/genanki | 6ceffc1b707ad67efa2adf4534d143a142487df8 | HTML tags are not case sensitive
`_INVALID_HTML_TAG_RE` is case sensitive, so I'm getting false positive warnings on tags like `<TABLE>, `<TD>`, etc. | diff --git a/genanki/note.py b/genanki/note.py
index 0ffcd98..42609be 100644
--- a/genanki/note.py
+++ b/genanki/note.py
@@ -47,7 +47,7 @@ class _TagList(list):
class Note:
- _INVALID_HTML_TAG_RE = re.compile(r'<(?!/?[a-z0-9]+(?: .*|/?)>)(?:.|\n)*?>')
+ _INVALID_HTML_TAG_RE = re.compile(r'<(?!/?[a-zA-Z0-9]+(?: .... |
kevin1024__vcrpy-167 | [
{
"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": [
"vcr/config.py:VCR.__init__"... | kevin1024/vcrpy | 5f8407a8a1a2ebe11aa386c7a4f13816956c419b | Error with body matcher for json, xmlrpc and form urlencoded
This is a tricky issue I encountered when using the body matcher on xmlrpc requests.
Symptoms: Sometimes the request won't match, sometimes it will, and this only affects certain requests. This occurs on Python 3.4 and I believe other python 3 versions but... | diff --git a/README.rst b/README.rst
index a5dcd90..0b85862 100644
--- a/README.rst
+++ b/README.rst
@@ -5,7 +5,6 @@ VCR.py
:alt: vcr.py
vcr.py
-
This is a Python version of `Ruby's VCR
library <https://github.com/vcr/vcr>`__.
@@ -145,7 +144,9 @@ The following options are available :
- port (the port of... |
kevin1024__vcrpy-201 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/cassette.py:CassetteContextDecorator.__enter__"
],
"edited_modules": [
"vcr/cassette.py:CassetteContextDecorator"
]
},
"file": "vcr/cassette.py"
},
{
"chang... | kevin1024/vcrpy | d620095c3667cc7f9fd7ea1213948dd58db6aefb | path_transformer doesn't default properly
In the code, we have
```python
class VCR(object):
def __init__(self, path_transformer=lambda x: x, before_record_request=None,
```
and then later
```python
def get_merged_config(self, **kwargs):
path_transformer = kwargs.get(
'path_tra... | diff --git a/README.rst b/README.rst
index 23910bb..768e850 100644
--- a/README.rst
+++ b/README.rst
@@ -1,16 +1,14 @@
-|Build Status| |Stories in Ready| |Gitter|
-
VCR.py
======
-.. figure:: https://raw.github.com/kevin1024/vcrpy/master/vcr.png
+.. image:: vcr.png
:alt: vcr.py
- vcr.py
-
This is a Python ... |
kevin1024__vcrpy-278 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/matchers.py:_transform_json"
],
"edited_modules": [
"vcr/matchers.py:_transform_json"
]
},
"file": "vcr/matchers.py"
}
] | kevin1024/vcrpy | ecbc192fc445d3bd91aba43d1a34dd6d9ccb1976 | AttributeError: 'NoneType' object has no attribute 'decode' when 'body' in match_on, fixed with 'raw_body'
When using vcr with the following configuration with 'body', there are errors with loading the JSON response -- it could be due to a blank response or blank payload. When I use 'raw_body' it works perfectly. Here'... | diff --git a/vcr/matchers.py b/vcr/matchers.py
index b54ed2f..8fe334e 100644
--- a/vcr/matchers.py
+++ b/vcr/matchers.py
@@ -49,7 +49,8 @@ def _transform_json(body):
# Request body is always a byte string, but json.loads() wants a text
# string. RFC 7159 says the default encoding is UTF-8 (although UTF-16
... |
kevin1024__vcrpy-324 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/config.py:VCR.get_merged_config"
],
"edited_modules": [
"vcr/config.py:VCR"
]
},
"file": "vcr/config.py"
}
] | kevin1024/vcrpy | 0a3aaddca22594e2fa9768da5ba519bc68b3cd6c | It seems that "register_persister()" does not work
It seems that the "self.persister" attribute is never propagated to new Cassettes created, since get_merged_config() doesn't look it up.
The code and the related test works because only FileSystemPersister is used in both. | diff --git a/vcr/config.py b/vcr/config.py
index 15ae459..cfc890d 100644
--- a/vcr/config.py
+++ b/vcr/config.py
@@ -145,6 +145,7 @@ class VCR(object):
merged_config = {
'serializer': self._get_serializer(serializer_name),
+ 'persister': self.persister,
'match_on': self._... |
kevin1024__vcrpy-415 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/request.py:Request.port"
],
"edited_modules": [
"vcr/request.py:Request"
]
},
"file": "vcr/request.py"
}
] | kevin1024/vcrpy | 9039eab91606ea39ac664450c64e2694b36caa37 | Proxy tunnel connect was broken by #389
In #389 there was a change in the stubs __init__.py:
https://github.com/kevin1024/vcrpy/pull/389/files#diff-06abc5fc1e45f59da669d9294b92a168R139
This change has broken tunnel CONNECT processing.
The client code that calls this (from pyvmomi) is:
```
/home/jking/pyvmomi/p... | diff --git a/vcr/request.py b/vcr/request.py
index 09c83f4..b4b3f71 100644
--- a/vcr/request.py
+++ b/vcr/request.py
@@ -58,7 +58,10 @@ class Request(object):
parse_uri = urlparse(self.uri)
port = parse_uri.port
if port is None:
- port = {'https': 443, 'http': 80}[parse_uri.scheme]... |
kevin1024__vcrpy-442 | [
{
"changes": {
"added_entities": [
"vcr/stubs/__init__.py:VCRHTTPResponse.readall",
"vcr/stubs/__init__.py:VCRHTTPResponse.readinto",
"vcr/stubs/__init__.py:VCRHTTPResponse.readlines",
"vcr/stubs/__init__.py:VCRHTTPResponse.seekable",
"vcr/stubs/__init__.py:VCRHTTPR... | kevin1024/vcrpy | 9039eab91606ea39ac664450c64e2694b36caa37 | Doesn't work correctly with Biopython on Python3
I am using `vcrpy` version `2.0.1` with `biopython` version `1.72` when Biopython tries to iterate over the VCRHttpResponse `'VCRHTTPResponse' object has no attribute 'fp'` exception is thrown.
**Note: works fine in Python2 and in Python3 too without VCR**
Stack ... | diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py
index 05490bb..118bc22 100644
--- a/vcr/stubs/__init__.py
+++ b/vcr/stubs/__init__.py
@@ -60,9 +60,10 @@ def serialize_headers(response):
class VCRHTTPResponse(HTTPResponse):
"""
- Stub reponse class that gets returned instead of a HTTPResponse
+ ... |
kevin1024__vcrpy-488 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/matchers.py:_header_checker"
],
"edited_modules": [
"vcr/matchers.py:_header_checker"
]
},
"file": "vcr/matchers.py"
}
] | kevin1024/vcrpy | d843d2a6c1f26aad83bc35fb2f6dcb8d2d3c4989 | TypeError: a bytes-like object is required, not 'str' when processing header object
```
headers = {'X-Amz-Target': b'<target>', 'Content-Type': b'<content-type>', 'User-Agent': b'<user-agent>', Signature=b'<sig>', 'Content-Length': '<len>'}
def checker(headers):
> return value in headers.get(header, '').... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index e728107..bda16ba 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -7,6 +7,7 @@ Changelog
- Fix exception when body is empty (@keithprickett)
- Add `pytest-recording` to the documentation as an alternative Pytest plugin (@Stranger6667)
- Fix ... |
kevin1024__vcrpy-505 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "vcr/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": n... | kevin1024/vcrpy | f07083e7cc8234bfc232c04f5a177aecec7ad805 | python 3.8 vcrpy 4.0.1 No module named 'mock'
```
python3.8/site-packages/vcr/patch.py", line 5, in <module>
import mock
ModuleNotFoundError: No module named 'mock'
```
my suggestion: everywhere in projects change:
import mock -> from unittest import mock | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 17e90db..f149199 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -9,8 +9,10 @@ All help in providing PRs to close out bug issues is appreciated. Even if that i
- UNRELEASED
- ...
-
-
+- 4.0.2
+ - Fix mock imports as reported in #504 by ... |
kevin1024__vcrpy-541 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/cassette.py:Cassette.__init__",
"vcr/cassette.py:Cassette.all_played",
"vcr/cassette.py:Cassette.play_response",
"vcr/cassette.py:Cassette.__contains__"
],
"edite... | kevin1024/vcrpy | a249781b977ce1ae4e9a6d098a7b093dfdbeaf4a | allow_playback_repeats
Ruby VCR has a Cassette option [allow_playback_repeats](https://relishapp.com/vcr/vcr/docs/request-matching/playback-repeats). Any chance this can be added to vcrpy? | diff --git a/docs/advanced.rst b/docs/advanced.rst
index 5536055..b16710b 100644
--- a/docs/advanced.rst
+++ b/docs/advanced.rst
@@ -33,6 +33,8 @@ consider part of the API. The fields are as follows:
been played back.
- ``responses_of(request)``: Access the responses that match a given
request
+- ``allow_pla... |
kevin1024__vcrpy-662 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/filters.py:decode_response"
],
"edited_modules": [
"vcr/filters.py:decode_response"
]
},
"file": "vcr/filters.py"
}
] | kevin1024/vcrpy | f3f66086a149722812345aaf1bb304ff39d105ef | [BUG] decode_compressed_response raises exception on empty responses.
```python
>>> import vcr
>>> import requests
>>> with vcr.use_cassette('/tmp/foo.yaml', decode_compressed_response=True):
... requests.head('https://httpbin.org/gzip')
...
Traceback (most recent call last):
Input In [8] in <cell line: 1... | diff --git a/vcr/filters.py b/vcr/filters.py
index 8e00b64..df3dd30 100644
--- a/vcr/filters.py
+++ b/vcr/filters.py
@@ -150,6 +150,8 @@ def decode_response(response):
"""Returns decompressed body according to encoding using zlib.
to (de-)compress gzip format, use wbits = zlib.MAX_WBITS | 16
... |
kevin1024__vcrpy-668 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "docs/conf.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"vcr/cassette.py:Cassett... | kevin1024/vcrpy | 423ccaa40b94439645933d920ebd51b893faf9d2 | Don't save requests from decorated tests if decorated test fails
As the title says: Don't save requests from decorated tests if decorated test fails
Does VCR already do this? If so awesome, and you guys should definitely say so in the README somewhere. Otherwise this seems like a solid feature. We have one test in par... | diff --git a/docs/advanced.rst b/docs/advanced.rst
index f3eb68c..fb287fa 100644
--- a/docs/advanced.rst
+++ b/docs/advanced.rst
@@ -404,3 +404,25 @@ the Cassette ``allow_playback_repeats`` option.
for x in range(10):
response = urllib2.urlopen('http://www.zombo.com/').read()
assert cass.... |
kevin1024__vcrpy-739 | [
{
"changes": {
"added_entities": [
"vcr/matchers.py:_dechunk",
"vcr/matchers.py:_get_transformers"
],
"added_modules": [
"vcr/matchers.py:_dechunk",
"vcr/matchers.py:_get_transformers"
],
"edited_entities": [
"vcr/matchers.py:body",
"... | kevin1024/vcrpy | 4f70152e7ce510cde41cf071585cbdb481e4e8f2 | [>=4.3.1] Chunked uploads are broken with urllib3 v2
With vcrpy 5.0.0, when [updating urllib3 from `1.26.16` to `2.0.3`](https://gitlab.com/gitlabracadabra/gitlabracadabra/-/merge_requests/531), chunked uploads [are failing](https://gitlab.com/gitlabracadabra/gitlabracadabra/-/jobs/4563346377).
This is because the ... | diff --git a/vcr/matchers.py b/vcr/matchers.py
index 98395b6..70e7891 100644
--- a/vcr/matchers.py
+++ b/vcr/matchers.py
@@ -2,9 +2,13 @@ import json
import logging
import urllib
import xmlrpc.client
+from string import hexdigits
+from typing import List, Set
from .util import read_body
+_HEXDIG_CODE_POINTS: Se... |
kevinzakka__mink-19 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mink/tasks/posture_task.py:PostureTask.set_cost"
],
"edited_modules": [
"mink/tasks/posture_task.py:PostureTask"
]
},
"file": "mink/tasks/posture_task.py"
}
] | kevinzakka/mink | 8f99665834553175bb5e7dfc973a0260ceff695e | Allow posture task to take in a cost array.
Example use case: assigning different costs to an arm/hand combination. | diff --git a/mink/tasks/posture_task.py b/mink/tasks/posture_task.py
index fef3074..3a8da48 100644
--- a/mink/tasks/posture_task.py
+++ b/mink/tasks/posture_task.py
@@ -55,8 +55,8 @@ class PostureTask(Task):
cost = np.atleast_1d(cost)
if cost.ndim != 1 or cost.shape[0] not in (1, self.k):
... |
kevinzg__facebook-scraper-188 | [
{
"changes": {
"added_entities": [
"facebook_scraper/extractors.py:PostExtractor.extract_comments_full"
],
"added_modules": null,
"edited_entities": [
"facebook_scraper/extractors.py:PostExtractor.make_new_post",
"facebook_scraper/extractors.py:PostExtractor.extra... | kevinzg/facebook-scraper | 9f4ff38ee104424c163c4db337cb11d4362d1146 | Can we add a feature to take the text of the comments of each post? | diff --git a/facebook_scraper/extractors.py b/facebook_scraper/extractors.py
index ff3f385..d3cec0d 100644
--- a/facebook_scraper/extractors.py
+++ b/facebook_scraper/extractors.py
@@ -95,6 +95,7 @@ class PostExtractor:
'shared_username': None,
'shared_post_url': None,
'available'... |
khornberg__octokit.py-109 | [
{
"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": [
"src/octokit/webhook.py:vali... | khornberg/octokit.py | 1314f1609616f6ed69c2d3636b0c485f5342cd6e | Verify seems broken(ish)
We've got a test that revealed an issue with this line of code:
https://github.com/khornberg/octokit.py/blob/master/src/octokit/webhook.py#L24
Since `webhook_names` contains a `*` this method will always return `True` | diff --git a/setup.py b/setup.py
index 668640c..716e3e4 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ def read(*names, **kwargs):
setup(
name="octokitpy",
- version="0.14.2",
+ version="0.14.3",
license="MIT license",
description="Python client for GitHub API",
long_description="%s... |
kidosoft__Morelia-125 | [
{
"changes": {
"added_entities": [
"morelia/visitors.py:StepMatcherVisitor.permute_schedule"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"morelia/visitors.py:StepMatcherVisitor"
]
},
"file": "morelia/visitors.py"
}
] | kidosoft/Morelia | 912b0ec21310b8bbf3b346dcf7cc10123bc5ebc8 | initial step matching is done with non-augmented predicates when show_all_missing=True
* Morelia version: 0.7.1
* Python version: 2.7
### Description
`show_all_missing=True` does an initial matching pass where the `augmented_predicate` is not augmented yet
this prevents using a regex like `(\d+)` to match ste... | diff --git a/CHANGES.rst b/CHANGES.rst
index b0066c2..e8bd1aa 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -10,6 +10,10 @@ and this project adheres to `Semantic Versioning <http://semver.org/>`_.
Version: Unreleased
===============================================================================
+FIXED
+-----
+
+ ... |
kids-first__kf-lib-data-ingest-637 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kf_lib_data_ingest/validation/reporting/markdown.py:MarkdownReportBuilder._build"
],
"edited_modules": [
"kf_lib_data_ingest/validation/reporting/markdown.py:MarkdownReportBuilder"
... | kids-first/kf-lib-data-ingest | ddc2f3e99ad40a56aa8af8141c96934d25fb7420 | Optionally exclude tests in validation report
I would like a way to exclude relevant test sections from the validation report (e.g. only display relationship tests and count tests).
The Data Tracker is using the ingest library's data validator and reporting functionality for validating uploaded files and displaying ... | diff --git a/kf_lib_data_ingest/validation/reporting/markdown.py b/kf_lib_data_ingest/validation/reporting/markdown.py
index 3ed8e7f..d7a3d43 100644
--- a/kf_lib_data_ingest/validation/reporting/markdown.py
+++ b/kf_lib_data_ingest/validation/reporting/markdown.py
@@ -53,7 +53,7 @@ class MarkdownReportBuilder(AbstractR... |
kinegratii__borax-21 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"borax/calendars/lunardate.py:LunarDate.cn_day_calendar"
],
"edited_modules": [
"borax/calendars/lunardate.py:LunarDate"
]
},
"file": "borax/calendars/lunardate.py"
}
... | kinegratii/borax | f9e51116e04eb9539e54e0db1e321b6e40200903 | ๅๅ:LunarDate.cn_day_calendar ่ฎก็ฎ้่ฏฏ%F ๆ่ฟฐ็ฌฆ็ผบๅฐโๆโๅ็ผ
## ้ฎ้ข็ฑปๅ
- [X] BUG
- [ ] ๆฐๅ่ฝ
- [ ] ๅ่ฝไผๅ
## ้ฎ้ข
LunarDate.cn_day_calendar ่ฎก็ฎ้่ฏฏ๏ผๅๆถ '%F' ๆ่ฟฐ็ฌฆ่ฎก็ฎ้่ฏฏใ
## ไปฃ็
```python
from borax.calendars import LunarDate, LCalendars
print([LunarDate(year=2017, month=month, day=1, leap=leap).cn_day_calendar for month, days, l... | diff --git a/borax/calendars/lunardate.py b/borax/calendars/lunardate.py
index 1ff9b59..b7adda7 100644
--- a/borax/calendars/lunardate.py
+++ b/borax/calendars/lunardate.py
@@ -456,7 +456,10 @@ class LunarDate(EncoderMixin):
@property
def cn_day_calendar(self) -> str:
if self.day == 1:
- r... |
kinegratii__borax-23 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"borax/calendars/lunardate.py:TextUtils.day_cn"
],
"edited_modules": [
"borax/calendars/lunardate.py:TextUtils"
]
},
"file": "borax/calendars/lunardate.py"
}
] | kinegratii/borax | c7741cdfcd1b04476e2f140e86c96160227b1207 | ๅๅๆฅโไบๅโโไธๅโไธญๆๅ็งฐ้่ฏฏ
## ๅ็ฐ็ๆฌ
v3.4.0
## ้ฎ้ขๆ่ฟฐ
โๅปฟๅโใโๅ
ๅโ ๆฏไธๆญฃ็กฎ็็จๆณ๏ผๅ ไธบโๅปฟโใโๅ
โ ๆฌ่บซๅฐฑๆฏไบๅใไธๅ็ๆๆไบ๏ผๆญฃ็กฎ็ๅบ่ฏฅไธบโไบๅโใโไธๅโใ
## ไปฃ็ ็คบไพ
```python
from borax.calendars.lunardate import LunarDate, TextUtils
print(TextUtils.day_cn(20)) # โๅปฟๅโ
ld = LunarDate(2020, 10, 20, 0)
print(ld.cn_day) # โๅปฟๅโ
print(ld.cn_day_calendar) # ... | diff --git a/borax/calendars/lunardate.py b/borax/calendars/lunardate.py
index b7adda7..6e37c33 100644
--- a/borax/calendars/lunardate.py
+++ b/borax/calendars/lunardate.py
@@ -352,9 +352,10 @@ class TextUtils:
def day_cn(day: int) -> str:
a, b = divmod(day, 10)
if b == 0: # 10,20,30
- ... |
kinnala__scikit-fem-1050 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"skfem/io/meshio.py:from_meshio"
],
"edited_modules": [
"skfem/io/meshio.py:from_meshio"
]
},
"file": "skfem/io/meshio.py"
}
] | kinnala/scikit-fem | 29ac66cac6c60cbf9ed328d8976794ed1b343f49 | slow to build meshes with labeled subdomains
# The problem, with labelled subdomains:
```python
gmsh.initialize()
try:
gmsh.option.setNumber("General.Verbosity", 3)
gmsh.option.setNumber("Mesh.MeshSizeFactor", .5)
gmsh.model.occ.add_box(0, 0, 0, 1, 1, 1)
gmsh.model.occ.synchronize()
for e ... | diff --git a/README.md b/README.md
index ad604d7b..05d8e302 100644
--- a/README.md
+++ b/README.md
@@ -212,6 +212,11 @@ with respect to documented and/or tested features.
### Unreleased
- Removed: Python 3.7 support
+- Added: `Mesh.load` supports new keyword arguments
+ `ignore_orientation=True` and `ignore_interi... |
kinnala__scikit-fem-340 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"skfem/io/meshio.py:from_meshio"
],
"edited_modules": [
"skfem/io/meshio.py:from_meshio"
]
},
"file": "skfem/io/meshio.py"
},
{
"changes": {
"added_entitie... | kinnala/scikit-fem | ff9abd7af7abb5cb0707c76507da2895482244f0 | internal boundaries from meshio not in bndfacets
I was porting some old one-dimensional code to scikit-fem and found that whereas previously I had identified an internal vertex facet as a `Physical Point` in the Gmsh GEO, this wasn't picked up by `skfem.io.meshio.from_meshio`.
Roughly the code is like:
```python
f... | diff --git a/skfem/io/meshio.py b/skfem/io/meshio.py
index 304ffe0c..8f75d157 100644
--- a/skfem/io/meshio.py
+++ b/skfem/io/meshio.py
@@ -76,7 +76,6 @@ def from_meshio(m, force_mesh_type=None):
return key
return None
- bndfacets = mtmp.boundary_facets()
if m.cell_set... |
kinnala__scikit-fem-344 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"skfem/element/element_hex/element_hex1.py:ElementHex1"
]
},
"file": "skfem/element/element_hex/element_hex1.py"
},
{
"changes": {
"added_entitie... | kinnala/scikit-fem | 65d9b7856888b54c8e8b8a55efeeb1a1af4bb038 | Add doflocs to all Element subclasses
Remaining work from #223 . | diff --git a/skfem/assembly/basis/basis.py b/skfem/assembly/basis/basis.py
index cfd8b19c..e998c5b8 100644
--- a/skfem/assembly/basis/basis.py
+++ b/skfem/assembly/basis/basis.py
@@ -48,6 +48,8 @@ class Basis:
if hasattr(elem, 'doflocs'):
doflocs = self.mapping.F(elem.doflocs.T)
self.... |
kinnala__scikit-fem-374 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "docs/examples/ex04.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modul... | kinnala/scikit-fem | cd048e6a67f67ef265b3f0ebae7b3ac78238dbae | Incorrect edges returned by `Mesh3D.boundary_edges`
I've been working on applying the block-diagonally preconditioned MINRES+AMG Stokes solver of #342 & ex32 to other MeshTet geometries and found some odd errors. It seems to have nothing to do with the operators but something to do with `.find_dofs` when there are sev... | diff --git a/README.md b/README.md
index 441c9c98..6af9da4b 100644
--- a/README.md
+++ b/README.md
@@ -109,6 +109,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### [Unreleased]
+#### Added
+- `ElementTetMini`, MINI-element for tetrahedral mesh
+
+#### Fixed
+- `Mesh3d.bound... |
kinnala__scikit-fem-976 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"skfem/assembly/basis/abstract_basis.py:AbstractBasis._normalize_interp",
"skfem/assembly/basis/abstract_basis.py:AbstractBasis._projection"
],
"edited_modules": [
"skfem/asse... | kinnala/scikit-fem | 1eb9571dcbfdf1ec4667c8066b5f5beb73890bf1 | Projecting on a Basis with a combination of ElementVector and ElementComposite
```python
from skfem import *
from skfem.helpers import *
mesh = MeshTri()
basis = Basis(mesh, ElementVector(ElementTriP1()) * ElementTriP1())
@LinearForm
def from_form(v_t, v_z, w): # e_t=[y,-x], e_z = 2
return w.x[1] * ... | diff --git a/skfem/assembly/basis/abstract_basis.py b/skfem/assembly/basis/abstract_basis.py
index eb3a4c02..5d5c6cd1 100644
--- a/skfem/assembly/basis/abstract_basis.py
+++ b/skfem/assembly/basis/abstract_basis.py
@@ -394,14 +394,17 @@ class AbstractBasis:
def _normalize_interp(self, interp) -> Tuple[ndarray, .... |
kinnala__scikit-fem-985 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"skfem/assembly/basis/abstract_basis.py:AbstractBasis.interpolate"
],
"edited_modules": [
"skfem/assembly/basis/abstract_basis.py:AbstractBasis"
]
},
"file": "skfem/asse... | kinnala/scikit-fem | d6b1fac6ceb5a2f7c7d4f0cee29f007e4a83da7a | FacetBasis on a set of facets with ElementComposite not working
```python
from skfem import *
mesh = MeshTri().refined(3)
facet_basis = FacetBasis(mesh, ElementTriP1() * ElementTriP1(), facets='left')
facet_basis.interpolate(facet_basis.zeros())
```
results in
```
ValueError: operands could not be broadcast... | diff --git a/skfem/assembly/basis/abstract_basis.py b/skfem/assembly/basis/abstract_basis.py
index 63290000..d352694e 100644
--- a/skfem/assembly/basis/abstract_basis.py
+++ b/skfem/assembly/basis/abstract_basis.py
@@ -295,13 +295,13 @@ class AbstractBasis:
# loop over solution components
for c in r... |
kinow__protobuf-uml-diagram-30 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"protobuf_uml_diagram.py:_module",
"protobuf_uml_diagram.py:Diagram.from_file"
],
"edited_modules": [
"protobuf_uml_diagram.py:_module",
"protobuf_uml_diagram.py:Diagr... | kinow/protobuf-uml-diagram | b126306f46147d912d770b5b10b67dd56f98ed40 | Having proto as a module name makes things tricky
When I run the program with this command:
```
protobuf-uml-diagram --output doc --proto gs.proto.configs_data_pb2
```
I get:
```
ModuleNotFoundError: No module named 'gs_pb2'
```
After some initial confusion, I found the reason:
```python
return impo... | diff --git a/CHANGES.md b/CHANGES.md
index b064882..2bbb705 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -16,7 +16,9 @@
- Update protobuf requirement from <3.17,>=3.13 to >=3.13,<3.18 [#25](https://github.com/kinow/protobuf-uml-diagram/pull/25)
- Update pytest-cov requirement from <2.12,>=2.10 to >=2.10,<2.13 [#26](ht... |
kinverarity1__lasio-313 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"lasio/writer.py:write"
],
"edited_modules": [
"lasio/writer.py:write"
]
},
"file": "lasio/writer.py"
}
] | kinverarity1/lasio | f9fc3d0e934f3be5f26d23e894cccb6cb2e3ea0a | write(version=X) is overwriting las.version.VERS
If you call ``las.write('blah.las', version=2)`` when ``las.version.VERS.value`` is 1.2, then after the file is written, ``las.version.VERS.value`` becomes 2.0. This is incorrect behaviour. Changing the version in the write method should only affect the file being writte... | diff --git a/lasio/writer.py b/lasio/writer.py
index 1f3bf3f..b007a92 100644
--- a/lasio/writer.py
+++ b/lasio/writer.py
@@ -3,6 +3,8 @@ import textwrap
import numpy as np
+from copy import deepcopy
+
from .las_items import HeaderItem, CurveItem, SectionItems, OrderedDict
from . import defaults
from . import ex... |
kinverarity1__lasio-474 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"lasio/reader.py:configure_metadata_patterns"
],
"edited_modules": [
"lasio/reader.py:configure_metadata_patterns"
]
},
"file": "lasio/reader.py"
}
] | kinverarity1/lasio | 948f9b8334674c9664d09b3078c30588ffe7ac7f | Header lines without a period are discarded unnecessarily
**Is your feature request related to a problem? Please describe.**
Frustrating when erroneous LAS header section lines like this are discarded and therefore unavailable for parsing:
```
## Unique Well Identification ##
HOLE NUMBER :CEM146
... | diff --git a/lasio/reader.py b/lasio/reader.py
index d3a715d..00290b9 100644
--- a/lasio/reader.py
+++ b/lasio/reader.py
@@ -918,17 +918,32 @@ def configure_metadata_patterns(line, section_name):
unit_re = r"(?P<unit>([0-9]+\s)?[^\s]*)"
# Alternate regular expressions for special cases
+ name_missing_per... |
kinverarity1__lasio-479 | [
{
"changes": {
"added_entities": [
"lasio/las.py:LASFile.replace_curve_item",
"lasio/las.py:LASFile.update_curve"
],
"added_modules": null,
"edited_entities": [
"lasio/las.py:LASFile.__setitem__"
],
"edited_modules": [
"lasio/las.py:LASFile"
... | kinverarity1/lasio | 85bf606f29bba096df89f9c225d35a512534416f | :1 :2 should only be appended to mnemonics when using LASFile.read
**Describe the bug**
Confusing overloaded behaviour with `LASFile.__setitem__` which creates duplicate mnemonics with appended `:1`, `:2` when trying to update curves.
**To Reproduce**
```
>>> import lasio.examples
>>> las = lasio.examples.open("... | diff --git a/docs/source/pandas.rst b/docs/source/pandas.rst
index 607f4a3..3f2b546 100644
--- a/docs/source/pandas.rst
+++ b/docs/source/pandas.rst
@@ -28,46 +28,8 @@ for the dataframe's index. See below for an example using this LAS file:
>>> import lasio.examples
>>> las = lasio.examples.open('6038187_v1.2... |
kinverarity1__lasio-510 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "docs/source/conf.py"
},
{
"changes": {
"added_entities": [
"lasio/las_items.py:SectionItems.get"
],
"added_modules": null,
... | kinverarity1/lasio | 357cec616fbcc7d47b5a77ea4087433b6e52acdc | Add SectionItems.get(mnemonic, default, add=False)
Analogous to dict.get but with extra "add" kwarg.
SectionItems.get should accept strings or HeaderItem objects for the "default" arg. If it is a string, it should be converted to a HeaderItem with the appropriate mnemonic.
Always returns a HeaderItem.
If add is True... | diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst
index 2d4cf26..8798ca0 100644
--- a/docs/source/changelog.rst
+++ b/docs/source/changelog.rst
@@ -1,6 +1,55 @@
List of changes
===============================
+Unreleased changes (Available on GitHub)
+----------------------------------------
+- Fix... |
kiorky__croniter-13 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/croniter/croniter.py:croniter.set_current"
],
"edited_modules": [
"src/croniter/croniter.py:croniter"
]
},
"file": "src/croniter/croniter.py"
}
] | kiorky/croniter | 95ea501bd97df25334d804fdf3c526eb17b09be9 | `get_next` behaviour seems to have changed in 1.3.0
Hi, i'm using croniter through [Procrastinate](https://procrastinate.readthedocs.io/en/stable/howto/cron.html), an asynchronous task scheduler and executor. Procrastinate relies on croniter to trigger recurring jobs.
My recurring jobs have stopped triggering today,... | diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py
index 061e35a..c3f69ba 100644
--- a/src/croniter/croniter.py
+++ b/src/croniter/croniter.py
@@ -175,7 +175,7 @@ class croniter(object):
return self._timestamp_to_datetime(self.cur)
return self.cur
- def set_current(self, start_t... |
kiorky__croniter-69 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/croniter/croniter.py:croniter._expand",
"src/croniter/croniter.py:croniter.is_valid"
],
"edited_modules": [
"src/croniter/croniter.py:croniter"
]
},
"file":... | kiorky/croniter | ce61b6221d2ef16e0991bf088f440f2b0e82ed87 | Croniter expression "* * 5 3 1-7" does not match weeks
I want to match March 5th or Monday to Sunday in March, so I used the expression `* * 5 3 1-7`, but the expression optimization will convert the expression to `* * 5 3 *`, so that only Match March 5th. Let's look at another example, `* * 5 3 1-6` is correct, the ex... | diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py
index 2a3e3c8..9124954 100644
--- a/src/croniter/croniter.py
+++ b/src/croniter/croniter.py
@@ -787,7 +787,12 @@ class croniter(object):
res = set(res)
res = sorted(res, key=lambda i: "{:02}".format(i) if isinstance(i, int) else ... |
kiorky__croniter-86 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/croniter/croniter.py:croniter.get_next",
"src/croniter/croniter.py:croniter.get_prev",
"src/croniter/croniter.py:croniter.all_next",
"src/croniter/croniter.py:croniter.all_pr... | kiorky/croniter | b46e567be24103f3bf5d234d9f32bba123fe784c | start_time not respected in get_next/get_prev/all_next/all_prev
The argument start_time does not have any effect with version 3.0.1
| diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py
index 8a01cf1..4f75398 100644
--- a/src/croniter/croniter.py
+++ b/src/croniter/croniter.py
@@ -235,10 +235,10 @@ class croniter(object):
def get_next(self, ret_type=None, start_time=None, update_current=True):
if start_time and self._expand... |
kip-hart__AABBTree-6 | [
{
"changes": {
"added_entities": [
"aabbtree.py:AABBTree.overlap_aabbs",
"aabbtree.py:_merge"
],
"added_modules": [
"aabbtree.py:_merge"
],
"edited_entities": [
"aabbtree.py:AABB.__eq__",
"aabbtree.py:AABB.merge",
"aabbtree.py:AABB.pe... | kip-hart/AABBTree | c0a3dac6837dbf25b80f57b5354c1cdc89b0813e | Getting boundaries of the overlaps
Hi! Is there any method to actually get the boundaries or of the overlapping boxes inside a tree?
Now I can use the "does_overlap(aabb_obj)" method of the AABBTree to check for overlaps but it says nothing about the exact box which overlaps given aabb_obj, only "yes/no" answer.
Or... | diff --git a/LICENSE.rst b/LICENSE.rst
index 758b79b..4f5d74e 100644
--- a/LICENSE.rst
+++ b/LICENSE.rst
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2019 Georgia Tech Research Corporation
+Copyright (c) 2020 Georgia Tech Research Corporation
Permission is hereby granted, free of charge, to any person obtaining a c... |
kipe__enocean-87 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"enocean/communicators/communicator.py:Communicator.parse"
],
"edited_modules": [
"enocean/communicators/communicator.py:Communicator"
]
},
"file": "enocean/communicator... | kipe/enocean | 1d0d602833c104609199d49456594ad018283901 | Re-structure Communicator
Based on discussion in 3bc29571ed1aef69f5b03bf1416e7bb15a072b1e
@romor wrote:
> Just my impression: I do not think that it is a nice solution to store a reference to communicator in `UTETeachIn` class. It could be provided as an argument to `send_response()` instead.
>
> But even this is no... | diff --git a/enocean/communicators/communicator.py b/enocean/communicators/communicator.py
index 4562219..4f9d540 100644
--- a/enocean/communicators/communicator.py
+++ b/enocean/communicators/communicator.py
@@ -8,7 +8,7 @@ try:
import queue
except ImportError:
import Queue as queue
-from enocean.protocol.p... |
kissmetrics__py-KISSmetrics-27 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"KISSmetrics/query_string.py:create_query"
],
"edited_modules": [
"KISSmetrics/query_string.py:create_query"
]
},
"file": "KISSmetrics/query_string.py"
}
] | kissmetrics/py-KISSmetrics | 3e1819f735771472c112ee471ec732e5a8277bfe | Support for timestamps submitted as floats
From Dylan:
"
Currently, if someone using the Python library (and potentially other libraries) tries to send in a float as a timestamp, it gets converted to something like 1426982400.0. This doesn't generate any errors, and it shows up in the live tab just fine, but any even... | diff --git a/KISSmetrics/query_string.py b/KISSmetrics/query_string.py
index 4765b2c..4013d3a 100644
--- a/KISSmetrics/query_string.py
+++ b/KISSmetrics/query_string.py
@@ -43,7 +43,7 @@ def create_query(key, person, event=None, timestamp=None,
query_dict = {KEY_KEY: key, PERSON_KEY: person}
if timestamp:
... |
kivy__buildozer-1225 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"buildozer/targets/android.py:TargetAndroid.__init__"
],
"edited_modules": [
"buildozer/targets/android.py:TargetAndroid"
]
},
"file": "buildozer/targets/android.py"
}... | kivy/buildozer | 7bf9f397098d3185a953f8fdf265834f8da83378 | Cannot tell p4a to use/not to use distutils integration
<!--
The issue tracker is a tool to address bugs.
For support questions, please use: https://github.com/kivy/buildozer#support
Before opening a new issue, make sure you do the following:
* check that your issue isn't already filed: https://github.com/kiv... | diff --git a/buildozer/default.spec b/buildozer/default.spec
index 612f79e..b33a62d 100644
--- a/buildozer/default.spec
+++ b/buildozer/default.spec
@@ -256,6 +256,13 @@ android.allow_backup = True
# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =
+# Control passin... |
kivy__buildozer-882 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"buildozer/scripts/client.py:main"
],
"edited_modules": [
"buildozer/scripts/client.py:main"
]
},
"file": "buildozer/scripts/client.py"
}
] | kivy/buildozer | 4183428daa7cdd4b8ac2806a0551aa10451d2270 | Buildozer exit code on recipe fail
My `cffi` recipe build failed, but `buildozer` exit code was `0`. I'm expecting this to be the same as the recipe exit code (`ErrorReturnCode_1`) or at least different than zero.
See debug trace below:
```
[INFO]: Installing cffi into site-packages
[INFO]: -> directory conte... | diff --git a/buildozer/scripts/client.py b/buildozer/scripts/client.py
index e30a9b4..fcf41ef 100644
--- a/buildozer/scripts/client.py
+++ b/buildozer/scripts/client.py
@@ -14,9 +14,10 @@ def main():
except BuildozerCommandException:
# don't show the exception in the command line. The log already show
... |
kivy__kivy-5926 | [
{
"changes": {
"added_entities": [
"kivy/animation.py:CompoundAnimation.cancel",
"kivy/animation.py:CompoundAnimation.have_properties_to_animate",
"kivy/animation.py:CompoundAnimation.animated_properties",
"kivy/animation.py:CompoundAnimation.transition"
],
"add... | kivy/kivy | 5cfa5bf6edeaaa6b3fc3948d76bb6d356e3d0150 | kivy.animation.Sequence sends "on_complete" event while animation is still in progress
### Versions
* Python: 2.7
* OS: Linux Ubuntu 16.04
* Kivy: 1.10.1.dev0
* Kivy installation method: git clone and python setup.py install
### Description
The program uses Animation to pulse a Widget color from black to re... | diff --git a/doc/sources/guide/packaging-ios-prerequisites.rst b/doc/sources/guide/packaging-ios-prerequisites.rst
index 577238392..7cfcf2d7e 100644
--- a/doc/sources/guide/packaging-ios-prerequisites.rst
+++ b/doc/sources/guide/packaging-ios-prerequisites.rst
@@ -40,11 +40,9 @@ The first thing is to ensure you have ru... |
kivy__kivy-6798 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kivy/utils.py:_get_platform"
],
"edited_modules": [
"kivy/utils.py:_get_platform"
]
},
"file": "kivy/utils.py"
}
] | kivy/kivy | ede9bd1b806619dda022ab438964ce1b48645521 | incorrect platform detection on Android
The platform in the module kiv.utils returns linux on Android platform. It should return Android.
Tested on a M10 Lenovo tablet running Android 8.1 with pydroid3.
| diff --git a/kivy/utils.py b/kivy/utils.py
index 15455e884..628c30598 100644
--- a/kivy/utils.py
+++ b/kivy/utils.py
@@ -424,9 +424,12 @@ def format_bytes_to_human(size, precision=2):
def _get_platform():
# On Android sys.platform returns 'linux2', so prefer to check the
- # presence of python-for-android en... |
kivy__kivy-6852 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kivy/utils.py:_get_platform"
],
"edited_modules": [
"kivy/utils.py:_get_platform"
]
},
"file": "kivy/utils.py"
}
] | kivy/kivy | b6eddbb2fcf97a21b7f0c4cfbf0d8ccdb74fb3ec | Platform linux on some android devices
<!--
The issue tracker is a tool to address bugs.
Please use the Disord community or Stack Overflow for support questions,
more information at https://github.com/kivy/python-for-android#support
Before opening a new issue, make sure you do the following:
* check that you... | diff --git a/kivy/utils.py b/kivy/utils.py
index 628c30598..7afbde0e0 100644
--- a/kivy/utils.py
+++ b/kivy/utils.py
@@ -424,15 +424,17 @@ def format_bytes_to_human(size, precision=2):
def _get_platform():
# On Android sys.platform returns 'linux2', so prefer to check the
- # existence of system specific com... |
kivy__kivy-6954 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kivy/network/urlrequest.py:UrlRequest._fetch_url"
],
"edited_modules": [
"kivy/network/urlrequest.py:UrlRequest"
]
},
"file": "kivy/network/urlrequest.py"
}
] | kivy/kivy | e4de92ca12594d8060ccf25766a4256cec3e25fa | Regular http requests via UrlRequest fail on Android
**Software Versions**
* Python: v3.8.1
* OS: Android 9 API29
* Kivy: v2.0.0rc2
* Kivy installation method: python-for-android develop
**Describe the bug**
Since #6703, regular http requests via urlrequest no longer work on android. The on_error function of ur... | diff --git a/kivy/network/urlrequest.py b/kivy/network/urlrequest.py
index 4b55b73f3..798bb6e09 100644
--- a/kivy/network/urlrequest.py
+++ b/kivy/network/urlrequest.py
@@ -334,7 +334,8 @@ class UrlRequest(Thread):
if timeout is not None:
args['timeout'] = timeout
- if ca_file is not None... |
kivy__kivy-7946 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "doc/autobuild.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kivy/logger.py:Colo... | kivy/kivy | bb5a85724229a79a54b9e2cd2748ca979867e0d5 | 'Canvas.add()' checks boundary but 'Canvas.insert()' doesn't
**Software Versions**
* Python: 3.8.12
* OS: Linux Mint 20.2 Mate Edition
* Kivy: master 714f4935085d4ac0c220fdf7183fb35175f8bcad
* Kivy installation method: `git clone` then `python -m pip install -e ".[dev,full]"`
### Issue
There was a canvas con... | diff --git a/doc/autobuild.py b/doc/autobuild.py
index 1c9222003..cd3f311cd 100644
--- a/doc/autobuild.py
+++ b/doc/autobuild.py
@@ -15,7 +15,8 @@ ignore_list = (
'kivy.graphics.vertex',
'kivy.uix.recycleview.__init__',
'kivy.setupconfig',
- 'kivy.version'
+ 'kivy.version',
+ 'kivy._version'
)
... |
kivy__kivy-7985 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kivy/logger.py:ColoredLogRecord._format_message",
"kivy/logger.py:UncoloredLogRecord._format_message"
],
"edited_modules": [
"kivy/logger.py:ColoredLogRecord",
"kivy/... | kivy/kivy | 9d6bd547d26b7c98819aa48ee62f834745883dd6 | Kivy Logger doesn't take into account non-string messages
**Software Versions**
* Python: *
* OS: *
* Kivy: `master`
* Kivy installation method: `source`
**Describe the bug**
Kivy Logger doesn't take into account non-string messages, and fails with:
`AttributeError: ... object has no attribute 'replace'`
... | diff --git a/kivy/logger.py b/kivy/logger.py
index 55dcfbc4c..7ed494ca5 100644
--- a/kivy/logger.py
+++ b/kivy/logger.py
@@ -361,7 +361,7 @@ class ColoredLogRecord(logging.LogRecord):
@classmethod
def _format_message(cls, message):
- return message.replace(
+ return str(message).replace(
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.