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 |
|---|---|---|---|---|---|
kivy__python-for-android-2213 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pythonforandroid/bootstraps/common/build/build.py:parse_args_and_make_package"
],
"edited_modules": [
"pythonforandroid/bootstraps/common/build/build.py:parse_args_and_make_package"
... | kivy/python-for-android | d96d71e008ee06cc19253612717d6a8d6dd1b720 | apk size growing
### Versions
* Python: 3.8.2
* OS: Win10/WSL/Ubuntu20.04
* Kivy: 1.11.1
* Cython: 0.29.17
### Description
Building "Hello World" in an empty directory:
buildozer init
buildozer android debug
Results in an apk that is 28MB
p4a 2020.4.29 (NDK 19c, SDK 29, armeapi-v7a ) also... | diff --git a/pythonforandroid/bootstraps/common/build/build.py b/pythonforandroid/bootstraps/common/build/build.py
index 8d3bee6e..a91ac71e 100644
--- a/pythonforandroid/bootstraps/common/build/build.py
+++ b/pythonforandroid/bootstraps/common/build/build.py
@@ -680,6 +680,9 @@ tools directory of the Android SDK.
... |
kivy__python-for-android-2636 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "pythonforandroid/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pythonf... | kivy/python-for-android | 28151d1864df9564ee796910f38a995b54d73631 | splash always loading
i build app with bootstrap=webview,
the application works perfect, but when I press the back button the splah comes back out and stays loaded. What I try is that this does not happen and that when you press the button to go back out of the application, is there any option to access the onResume... | diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 597293a9..74121077 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -3,9 +3,9 @@ name: Unit tests & build apps
on: ['push', 'pull_request']
env:
- APK_ARTIFACT_FILENAME: bdist_unit_tests_app-debug-1.1-.apk
- AAB_... |
kiwicom__structlog-sentry-18 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"structlog_sentry/__init__.py:SentryProcessor._get_event_and_hint"
],
"edited_modules": [
"structlog_sentry/__init__.py:SentryProcessor"
]
},
"file": "structlog_sentry/_... | kiwicom/structlog-sentry | 00ba79ef470ed81f4e396fde134f6612aa34551d | Can't use format_exc_info with SentryProcessor
The `SentryProcessor` as well as the structlog built-in `format_exc_info` processor both use `event_dict.pop("exc_info", None)`. This means, when the built-in processor is used for nicely converting the exception into a readable traceback and the former is used to send the... | diff --git a/README.md b/README.md
index f0cfe2f..7d67e81 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,12 @@ except RequestException:
This will automatically collect `sys.exc_info()` along with the message, if you want
to turn this behavior off, just pass `exc_info=False`.
+When you want to use structlog's b... |
kiwicom__structlog-sentry-19 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"structlog_sentry/__init__.py:SentryProcessor._get_event_and_hint"
],
"edited_modules": [
"structlog_sentry/__init__.py:SentryProcessor"
]
},
"file": "structlog_sentry/_... | kiwicom/structlog-sentry | 2fcdc295d35e0425859fe304e7e6de21237affca | Logger not set when recording events
The Sentry SDK sets a `logger` key at the root level of the `event`: https://github.com/getsentry/sentry-python/blob/718f61b892398c1156ab8952f41494768175da6f/sentry_sdk/integrations/logging.py#L206. structlog-sentry does not do that: https://github.com/kiwicom/structlog-sentry/blob/... | diff --git a/README.md b/README.md
index 7d67e81..e02f2f1 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,7 @@ sentry_sdk.init() # pass dsn in argument or via SENTRY_DSN env variable
structlog.configure(
processors=[
+ structlog.stdlib.add_logger_name, # optional, but before SentryProcessor()
... |
kiwiz__gkeepapi-153 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/gkeepapi/node.py:WebLink.__init__",
"src/gkeepapi/node.py:WebLink._load",
"src/gkeepapi/node.py:WebLink.title",
"src/gkeepapi/node.py:WebLink.description"
],
"edi... | kiwiz/gkeepapi | 47b9a2bcd9228505a0f3362c5fbf54c46d140a93 | Migrated Assistant Notes raise KeyError: 'title' on resume
Please make sure you've done the following before submitting your issue:
- [x] Check that you're running the newest version of the library.
- [x] If you're providing a stack trace, make sure it doesn't contain your password.
- [x] If you're getting a KeyEr... | diff --git a/src/gkeepapi/node.py b/src/gkeepapi/node.py
index eb52b05..79dbec1 100644
--- a/src/gkeepapi/node.py
+++ b/src/gkeepapi/node.py
@@ -311,15 +311,19 @@ class WebLink(Annotation):
def __init__(self) -> None:
"""Construct a weblink"""
super().__init__()
- self._title = ""
+ ... |
kjd__idna-111 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"idna/core.py:decode"
],
"edited_modules": [
"idna/core.py:decode"
]
},
"file": "idna/core.py"
}
] | kjd/idna | d0116b5d390a3f7934501d328faa6daaeea21124 | [Uncaught exception] UnicodeDecodeError when calling decode with arbitrary data
Hey,
I was doing some fuzzing and I found out that the `idna.decode()` method can raise a `UnicodeDecodeError` leading to a crash of the running program.
This could be problematic if users of the library are dealing with untrusted dat... | diff --git a/idna/core.py b/idna/core.py
index d605129..871ebd3 100644
--- a/idna/core.py
+++ b/idna/core.py
@@ -383,8 +383,11 @@ def encode(s, strict=False, uts46=False, std3_rules=False, transitional=False):
def decode(s, strict=False, uts46=False, std3_rules=False):
# type: (Union[str, bytes, bytearray], boo... |
kjd__idna-112 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"idna/core.py:ulabel"
],
"edited_modules": [
"idna/core.py:ulabel"
]
},
"file": "idna/core.py"
}
] | kjd/idna | c3383c97b3fffd8aa73aaefd16baf9c6da1e9f4e | [Uncaught exception] UnicodeError (punycode) when calling decode with arbitrary data
Hey,
I just found another case making the program crash where `idna.decode()` raise a `UnicodeError` (due to punycode).
In the same way as #108, this could be problematic if users of the library are dealing with untrusted data si... | diff --git a/idna/core.py b/idna/core.py
index 871ebd3..c66fb9f 100644
--- a/idna/core.py
+++ b/idna/core.py
@@ -312,7 +312,10 @@ def ulabel(label):
check_label(label_bytes)
return label_bytes.decode('ascii')
- label = label_bytes.decode('punycode')
+ try:
+ label = label_bytes.decode('... |
kjd__idna-145 | [
{
"changes": {
"added_entities": [
"idna/codec.py:search_function"
],
"added_modules": [
"idna/codec.py:search_function"
],
"edited_entities": [
"idna/codec.py:IncrementalEncoder._buffer_encode",
"idna/codec.py:IncrementalDecoder._buffer_decode",
... | kjd/idna | 55e98a52da69835d720c0c41c555f731afdab359 | Using idna codec
As per the documentation I tried using idna codec but it still uses the one from encodings.idna.
```
>>> import idna.codec
>>> codecs.encode('fuß', 'idna')
b'fuss'
>>> codecs.getencoder('idna')
<bound method Codec.encode of <encodings.idna.Codec object at 0x7ff6eb158fa0>>
```
I also tried... | diff --git a/README.rst b/README.rst
index 27731b1..c926351 100644
--- a/README.rst
+++ b/README.rst
@@ -57,9 +57,9 @@ You may use the codec encoding and decoding methods using the
.. code-block:: pycon
>>> import idna.codec
- >>> print('домен.испытание'.encode('idna'))
+ >>> print('домен.испытание'.encod... |
kjd__idna-83 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"idna/core.py:ulabel"
],
"edited_modules": [
"idna/core.py:ulabel"
]
},
"file": "idna/core.py"
}
] | kjd/idna | 3062063d477591228a4b4d000688ef4e7ab7cf81 | IndexError with new trailing hyphen check
#64 introduced the following uncaught exception. Is this intended?
```python
>>> idna.ulabel('xn--')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/John/.pyenv/versions/3.6.5/Python.framework/Versions/3.6/lib/python3.6/site-packag... | diff --git a/idna/core.py b/idna/core.py
index b861d14..2c193d6 100644
--- a/idna/core.py
+++ b/idna/core.py
@@ -296,6 +296,8 @@ def ulabel(label):
label = label.lower()
if label.startswith(_alabel_prefix):
label = label[len(_alabel_prefix):]
+ if not label:
+ raise IDNAError('Malfo... |
klen__graphite-beacon-32 | [
{
"changes": {
"added_entities": [
"graphite_beacon/core.py:_get_numeric_log_level"
],
"added_modules": [
"graphite_beacon/core.py:_get_numeric_log_level"
],
"edited_entities": [
"graphite_beacon/core.py:Reactor.reinit"
],
"edited_modules": [
... | klen/graphite-beacon | 66ec0720ca5a3a9d43a63fa0a60b3eb6e26e4157 | Logging configuration only works in Python 2.7+
Hi,
The way log level is set in [`Reactor`](https://github.com/klen/graphite-beacon/blob/develop/graphite_beacon/core.py#L59) requires that textual log levels ("INFO", "WARN") are converted to the numeric log levels by the `logging.Logger.setLevel` method. This is only... | diff --git a/graphite_beacon/core.py b/graphite_beacon/core.py
index 88fadfa..adef419 100644
--- a/graphite_beacon/core.py
+++ b/graphite_beacon/core.py
@@ -2,6 +2,7 @@ import os
from re import compile as re, M
import json
+import logging
from tornado import ioloop, log
from .alerts import BaseAlert
@@ -56,7 +5... |
klen__peewee_migrate-142 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"peewee_migrate/router.py:load_models"
],
"edited_modules": [
"peewee_migrate/router.py:load_models"
]
},
"file": "peewee_migrate/router.py"
}
] | klen/peewee_migrate | b77895ab1c9be3121bc127e0c2dfb047eed8b24c | peewee_migrate/router.py: module has no attribute '__path__'
File "/Users/anaconda3/lib/python3.6/site-packages/peewee_migrate/router.py", line 277, in _import_submodules
if set(package.__path__) & passed:
AttributeError: module 'model' has no attribute '__path__'
| diff --git a/peewee_migrate/router.py b/peewee_migrate/router.py
index 77973a2..0abdac0 100644
--- a/peewee_migrate/router.py
+++ b/peewee_migrate/router.py
@@ -4,6 +4,8 @@ import sys
from importlib import import_module
import pkgutil
+from types import ModuleType
+
import mock
import peewee as pw
from cached_pr... |
klen__peewee_migrate-203 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"peewee_migrate/auto.py:Column.__init__"
],
"edited_modules": [
"peewee_migrate/auto.py:Column"
]
},
"file": "peewee_migrate/auto.py"
}
] | klen/peewee_migrate | c78f6fc199e73df086a4e4badbffefdb6e11b75f | Bug report: Self foreign keys are not handled
**Describe the bug**
After creating the migration with the model containing foreign key to itself, migration is failing due to `KeyError`. After quick investigation, the exact line containing the bug is `ForeignKeyField(model=migrator.orm["model"], ...)`. During execution ... | diff --git a/peewee_migrate/auto.py b/peewee_migrate/auto.py
index cab9f2a..a71ff4b 100644
--- a/peewee_migrate/auto.py
+++ b/peewee_migrate/auto.py
@@ -67,7 +67,11 @@ class Column(VanilaColumn):
if isinstance(field, pw.ForeignKeyField):
self.to_field = field.rel_field.name
self.relat... |
klen__peewee_migrate-212 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"peewee_migrate/auto.py:diff_one"
],
"edited_modules": [
"peewee_migrate/auto.py:diff_one"
]
},
"file": "peewee_migrate/auto.py"
}
] | klen/peewee_migrate | 903a8e19079ab9d9b934f37f7dea4eb53e071187 | Add support for multi-column index/unique
I added a "multi-column index unique" definition according to the PeeWee documentation: http://docs.peewee-orm.com/en/latest/peewee/models.html#indexes-and-constraints but when I run **peewee_migrate** it doesn't generate the statements for the multi-column index.
I was ta... | diff --git a/peewee_migrate/auto.py b/peewee_migrate/auto.py
index 1043072..38a5ea6 100644
--- a/peewee_migrate/auto.py
+++ b/peewee_migrate/auto.py
@@ -156,6 +156,22 @@ def diff_one(model1: pw.Model, model2: pw.Model, **kwargs) -> t.List[str]:
else:
changes.append(drop_index(model1, name))
+ ... |
knknkn1162__anyloadump-11 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "anyloadump/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"anyloadump/du... | knknkn1162/anyloadump | 3aedfe9cfcee8481739b0a2effa3a1890c61a08f | test loadump.load module
test loadump.load module
see also #9 | diff --git a/anyloadump/__init__.py b/anyloadump/__init__.py
index b945f70..67c25d0 100644
--- a/anyloadump/__init__.py
+++ b/anyloadump/__init__.py
@@ -1,1 +1,2 @@
+__all__ = ["dump", "load"]
from . import dump, load
diff --git a/anyloadump/dump.py b/anyloadump/dump.py
index 3297150..83de06f 100644
--- a/anyloadump/d... |
knknkn1162__anyloadump-17 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "anyloadump/__init__.py"
}
] | knknkn1162/anyloadump | 30965896a2f42ac3fa92a7013f0936008e02ad5e | call as anyloadump.load(...) or anylodump.dump(...)
Modify import in __init__.py. | diff --git a/anyloadump/__init__.py b/anyloadump/__init__.py
index 67c25d0..8e3dd12 100644
--- a/anyloadump/__init__.py
+++ b/anyloadump/__init__.py
@@ -1,2 +1,3 @@
__all__ = ["dump", "load"]
-from . import dump, load
+from .dump import *
+from .load import *
|
knknkn1162__anyloadump-8 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"anyloadump/loadump.py:_invoke"
],
"edited_modules": [
"anyloadump/loadump.py:_invoke"
]
},
"file": "anyloadump/loadump.py"
}
] | knknkn1162/anyloadump | 9f69fe9b1c27ec66d52e1eaa1028f89733aed842 | use importlib.import_module instead of __import__
https://docs.python.org/3.6/library/functions.html#__import__ says
> This is an advanced function that is not needed in everyday Python programming, unlike importlib.import_module().
| diff --git a/anyloadump/loadump.py b/anyloadump/loadump.py
index 18050d2..a5944bf 100644
--- a/anyloadump/loadump.py
+++ b/anyloadump/loadump.py
@@ -1,7 +1,7 @@
from enum import Enum
import subprocess, os, re, codecs
-import logging
+import logging, importlib
logger = logging.getLogger(__name__)
@@ -49,7 +49,8... |
koaning__bulk-12 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bulk/_bokeh_utils.py:get_color_mapping"
],
"edited_modules": [
"bulk/_bokeh_utils.py:get_color_mapping"
]
},
"file": "bulk/_bokeh_utils.py"
}
] | koaning/bulk | 3dd6a1957c00564ad242af4b9fce9a6281646b3c | Color mapping crashes if too many classes defined
Looks like I crashed the color mapping with too many classes.
The palette could be upped to Category20, though this would still limit the number of classes a user can visualize. Whatever the limit is, there should be an error message with a graceful exit if the user ... | diff --git a/bulk/_bokeh_utils.py b/bulk/_bokeh_utils.py
index 5276d85..67dd7f5 100644
--- a/bulk/_bokeh_utils.py
+++ b/bulk/_bokeh_utils.py
@@ -20,6 +20,9 @@ def get_color_mapping(df: pd.DataFrame) -> Tuple[Optional[bokeh.transform.transf
all_values = list(df["color"].dropna().unique())
if len(all_va... |
koaning__clumper-36 | [
{
"changes": {
"added_entities": [
"clumper/clump.py:Clumper.read_csv"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"clumper/clump.py:Clumper"
]
},
"file": "clumper/clump.py"
}
] | koaning/clumper | f24197cd178d0c1ec5e20f0dfb31acc9d9ecf621 | Data Loader: .from_csv()
It'd be nice if we could also read data from disk. A syntax like this would be nice:
```python
Clumper.from_csv(path, settings)
``` | diff --git a/clumper/clump.py b/clumper/clump.py
index 2fa98f1..134e204 100644
--- a/clumper/clump.py
+++ b/clumper/clump.py
@@ -1,4 +1,5 @@
import json
+import csv
import pathlib
import itertools as it
import urllib.request
@@ -112,6 +113,54 @@ class Clumper:
except Exception:
raise RuntimeEr... |
koaning__clumper-40 | [
{
"changes": {
"added_entities": [
"clumper/clump.py:Clumper.write_json",
"clumper/clump.py:Clumper.write_jsonl",
"clumper/clump.py:Clumper.write_csv"
],
"added_modules": null,
"edited_entities": [
"clumper/clump.py:Clumper.read_csv"
],
"edited... | koaning/clumper | a2f86ad8a23fcb81853c7c5b1b9835765df1d279 | Data Writer: json/jsonl
Data Loader: .to_json()/to_jsonl()
It'd be nice if we could also write data to disk. A syntax like this would be nice:
```python
Clumper.to_json(path, settings)
Clumper.to_jsonl(path, settings)
``` | diff --git a/clumper/clump.py b/clumper/clump.py
index 4ea124c..fe729da 100644
--- a/clumper/clump.py
+++ b/clumper/clump.py
@@ -6,6 +6,7 @@ import urllib.request
from functools import reduce
from statistics import mean, variance, stdev, median
+
from clumper.decorators import return_value_if_empty, grouped, dict_... |
koaning__clumper-53 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"clumper/clump.py:Clumper.read_jsonl",
"clumper/clump.py:Clumper.write_json"
],
"edited_modules": [
"clumper/clump.py:Clumper"
]
},
"file": "clumper/clump.py"
... | koaning/clumper | 0f7ec0ad87ebe883942c501a82e127d446ef8548 | Let's remove "Error occured during writing JSONL file"
This is the result of a failing pytest on my side.
```
def write_jsonl(self, path, sort_keys=False, indent=None):
"""
Writes to a jsonl file.
Arguments:
path: filename
sort_keys: If sort_keys is ... | diff --git a/clumper/clump.py b/clumper/clump.py
index b95ffb4..6be9a4d 100644
--- a/clumper/clump.py
+++ b/clumper/clump.py
@@ -116,28 +116,24 @@ class Clumper:
if n <= 0:
raise ValueError("Number of lines to read must be > 0.")
- try:
- # Case 1 : Open cloud file in s... |
koaning__scikit-lego-680 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "docs/_scripts/meta-models.py"
},
{
"changes": {
"added_entities": [
"sklego/meta/zero_inflated_regressor.py:ZeroInflatedRegressor.score_... | koaning/scikit-lego | 439c9c09035ed675d76d98599091baa87710a4a3 | [FEATURE] Implement predict proba in ZeroInflatedRegressor()
Please explain clearly what you'd like to see added.
- [x] convince us of the use-case, we're open to many suggestions but we prefer to solve problems with pipelines that are at least somewhat general:
In any risk estimation task usually estimation of ... | diff --git a/docs/_scripts/meta-models.py b/docs/_scripts/meta-models.py
index da473ab..b7134eb 100644
--- a/docs/_scripts/meta-models.py
+++ b/docs/_scripts/meta-models.py
@@ -400,23 +400,31 @@ plt.clf()
# --8<-- [start:zero-inflated]
import numpy as np
-from sklearn.ensemble import RandomForestClassifier, RandomF... |
koaning__scikit-lego-697 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sklego/meta/_grouped_utils.py:parse_X_y"
],
"edited_modules": [
"sklego/meta/_grouped_utils.py:parse_X_y"
]
},
"file": "sklego/meta/_grouped_utils.py"
},
{
"cha... | koaning/scikit-lego | a4c8e252f6f835d83f9d7eebdfdf15ea785ce9e0 | [FEATURE] Enable GroupedTransformer to work with .set_output(transform="pandas")
In Scikit-learn the `set_output` API was recently introduced: https://scikit-learn.org/stable/auto_examples/miscellaneous/plot_set_output.html
However, unless I am mistaken, Scikit-lego is not yet compatible with this. It would be nice ... | diff --git a/sklego/meta/_grouped_utils.py b/sklego/meta/_grouped_utils.py
index 47e71df..32bec84 100644
--- a/sklego/meta/_grouped_utils.py
+++ b/sklego/meta/_grouped_utils.py
@@ -25,7 +25,7 @@ def parse_X_y(X, y, groups, check_X=True, **kwargs) -> nw.DataFrame:
X = nw.from_native(pd.DataFrame(X))
# Ch... |
koaning__scikit-lego-708 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sklego/linear_model.py:LowessRegression.predict"
],
"edited_modules": [
"sklego/linear_model.py:LowessRegression"
]
},
"file": "sklego/linear_model.py"
}
] | koaning/scikit-lego | 3d51e7b3e85ba755b6c251ec02297756fd5e8242 | [BUG] LowessRegressor: ZeroDivisionError: Weights sum to zero, can't be normalized
Using LowessRegressor, I received a "ZeroDivisionError: Weights sum to zero, can't be normalized" error. A little debugging revealed that the problem is in _calc_wts:
```
def _calc_wts(self, x_i):
"""Calculate the weigh... | diff --git a/sklego/linear_model.py b/sklego/linear_model.py
index 7c05262..ebe9fc4 100644
--- a/sklego/linear_model.py
+++ b/sklego/linear_model.py
@@ -141,7 +141,17 @@ class LowessRegression(BaseEstimator, RegressorMixin):
X = check_array(X, estimator=self, dtype=FLOAT_DTYPES)
check_is_fitted(self, ... |
kobotoolbox__kobo-install-129 | [
{
"changes": {
"added_entities": [
"helpers/cli.py:CLI.framed_print",
"helpers/cli.py:CLI.yes_no_question"
],
"added_modules": null,
"edited_entities": [
"helpers/cli.py:CLI.get_response",
"helpers/cli.py:CLI.colored_input",
"helpers/cli.py:CLI.col... | kobotoolbox/kobo-install | ed43149c3c8d24c84a19036d64394a93b1bcf5fa | Improve coding style
### Comply with KoBo team's coding rules.
- [x] Reorganize imports
- [x] Use single quotes for string
- [x] Use https://github.com/kobotoolbox/kpi/issues/2307 as much as possible
- [x] Use 80 characters per line
- ~~[ ] Use function annotations~~ Not until Python2 is supported
### Usage... | diff --git a/helpers/cli.py b/helpers/cli.py
index 1bd794f..98d71b4 100644
--- a/helpers/cli.py
+++ b/helpers/cli.py
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
-import re
import subprocess
import sys
+import re
+import textwrap
PY2 = sys.version_info[0] == ... |
kobotoolbox__kobo-install-132 | [
{
"changes": {
"added_entities": [
"helpers/cli.py:CLI.framed_print",
"helpers/cli.py:CLI.yes_no_question"
],
"added_modules": null,
"edited_entities": [
"helpers/cli.py:CLI.get_response",
"helpers/cli.py:CLI.colored_input",
"helpers/cli.py:CLI.col... | kobotoolbox/kobo-install | 32b0daab25691d6c217ca8fefa53f40b1e014369 | Improve coding style
### Comply with KoBo team's coding rules.
- [x] Reorganize imports
- [x] Use single quotes for string
- [x] Use https://github.com/kobotoolbox/kpi/issues/2307 as much as possible
- [x] Use 80 characters per line
- ~~[ ] Use function annotations~~ Not until Python2 is supported
### Usage... | diff --git a/helpers/cli.py b/helpers/cli.py
index 79d401b..98d71b4 100644
--- a/helpers/cli.py
+++ b/helpers/cli.py
@@ -4,6 +4,7 @@ from __future__ import print_function, unicode_literals
import subprocess
import sys
import re
+import textwrap
PY2 = sys.version_info[0] == 2
if PY2:
@@ -14,28 +15,103 @@ else:
... |
kobotoolbox__kobo-install-157 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"helpers/config.py:Config.build",
"helpers/config.py:Config.get_template",
"helpers/config.py:Config.__questions_backup",
"helpers/config.py:Config.__questions_dev_mode",
... | kobotoolbox/kobo-install | a390e7f6a96d56a8ac08c8b913e2b4352f3e1f3f | Disable SSRF protection for local installs
If the response to "What kind of installation do you need?" is "On your workstation" (**not** "On a server"), then we should disable SSRF protection so that Enketo can communicate with KoBoCAT. Otherwise, when Enketo tries to retrieve form media from KoBoCAT, it will be blocke... | diff --git a/helpers/config.py b/helpers/config.py
index a9bfc27..4eb67a4 100644
--- a/helpers/config.py
+++ b/helpers/config.py
@@ -30,8 +30,8 @@ class Config(metaclass=Singleton):
DEFAULT_PROXY_PORT = '8080'
DEFAULT_NGINX_PORT = '80'
DEFAULT_NGINX_HTTPS_PORT = '443'
- KOBO_DOCKER_BRANCH = '2.021.09'... |
kobotoolbox__kobo-install-61 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"helpers/command.py:Command.update"
],
"edited_modules": [
"helpers/command.py:Command"
]
},
"file": "helpers/command.py"
},
{
"changes": {
"added_entities... | kobotoolbox/kobo-install | 45906a1316b59ff3c56ec82a078ffa354101e86e | Can't build frontend from local machine with npm run watch
## Description
On MacOS after fresh `kobo-install` run, calling `npm run watch` command from local machine will throw error `Local package.json exists, but node_modules missing, did you mean to install?`.
Guess: this happens because `node_modules` and `js... | diff --git a/helpers/command.py b/helpers/command.py
index b452f6d..26abf09 100644
--- a/helpers/command.py
+++ b/helpers/command.py
@@ -71,6 +71,8 @@ class Command:
CLI.run_command(frontend_command, config.get("kobodocker_path"))
+ # ToDo When Python3 container is released.
+ ... |
kobotoolbox__kobo-install-72 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"helpers/cli.py:CLI.get_response"
],
"edited_modules": [
"helpers/cli.py:CLI"
]
},
"file": "helpers/cli.py"
},
{
"changes": {
"added_entities": null,
... | kobotoolbox/kobo-install | 12b45f83054b79f0e0ad847050192dca1f596ff9 | Secure backend ports
By default PostgreSQL, Redis, Mongo ports are listening on `0.0.0.0`.
It should be restricted to private ip.
For references:
https://github.com/kobotoolbox/kobo-docker/issues/249 | diff --git a/helpers/cli.py b/helpers/cli.py
index 61a3daa..1bd794f 100644
--- a/helpers/cli.py
+++ b/helpers/cli.py
@@ -24,7 +24,8 @@ class CLI(object):
EMPTY_CHARACTER = "-"
@classmethod
- def get_response(cls, validators=None, default=""):
+ def get_response(cls, validators=None, default="", to_low... |
kobotoolbox__ssrf-protect-3 | [
{
"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/ssrf_protect/ssrf_prote... | kobotoolbox/ssrf-protect | 755efe16694273ce66060a51e04f973dc034ca4e | suggestion: have deny take precedence over allow
right now, it looks like the order of operations is:
1. is the ip on the allow list? allow.
1. is the ip private? deny.
1. is the ip on the deny list? deny.
i would suggest:
1. is the ip on the deny list? deny.
1. is the ip on the allow list? allow.
1. is th... | diff --git a/README.md b/README.md
index 3e918e7..7f226ee 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ SSRFProtect.validate(url) # Raise SSRFProtectException
requests.get(url) # request is not processed
```
-### Whitelisted ip addresses
+### Whitelisted IP addresses
```python
import requests
from ... |
kofferdahl__bme590hrm-23 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.write_outputs_to_dict",
"HRM_Processor.py:HRM_Processor.determine_voltage_extremes"
],
"added_modules": null,
"edited_entities": [
"HRM_Processor.py:HRM_Processor.__init__"
],
"edited_m... | kofferdahl/bme590hrm | 744f3fa1931c73cde846eba0e61b3df82f4fe683 | HRM_Processor must be able to determine voltage extremes
The HRM_Processor requires functionality to determine the extremes of a voltage array, and output the min and max voltages as a tuple to the output dictionary.
Input: numpy arrays containing voltage data
Output: a tuple containing the minimum and maximum va... | diff --git a/HRM_Processor.py b/HRM_Processor.py
index b6234c5..6b4e7c3 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -15,3 +15,39 @@ class HRM_Processor:
self.input_data = DataReader.output_dict
self.output_dict = {}
+ self.write_outputs_to_dict()
+
+ def write_outputs_to_dict(s... |
kofferdahl__bme590hrm-24 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.determine_ecg_strip_duration"
],
"added_modules": null,
"edited_entities": [
"HRM_Processor.py:HRM_Processor.write_outputs_to_dict"
],
"edited_modules": [
"HRM_Processor.py:HRM_Processo... | kofferdahl/bme590hrm | 8aff88d12a3c30bc3bcbfcff2be8954e20047035 | HRM_Processor needs to determine the duration of an ECG strip
The HRM_Processor should be able to determine the duration of an ECG strip, and write that value to the output dictionary.
Input: numpy array containing time data
Output: a float containing the maximum value in the time array
The test for this functi... | diff --git a/HRM_Processor.py b/HRM_Processor.py
index 6b4e7c3..b3ed186 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -30,6 +30,10 @@ class HRM_Processor:
"voltage"])
self.output_dict["voltage_extremes"] = voltage_extremes
+ ecg_stri... |
kofferdahl__bme590hrm-25 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.determine_beat_start_times",
"HRM_Processor.py:HRM_Processor.determine_threshold",
"HRM_Processor.py:HRM_Processor.find_indices_above_threshold",
"HRM_Processor.py:HRM_Processor.find_beat_separation_points",... | kofferdahl/bme590hrm | 110598c9b418dac359aa4d171815f5afce35c746 | The HRM_Processor needs to determine the times at which the beats occurred.
The HRM_Processor needs to be able to determine the times at which the beats occurred. For the initial implementation of this functionality, this will be based on a thresholding operation - a beat will be defined by the time of the maximum valu... | diff --git a/HRM_Processor.py b/HRM_Processor.py
index b3ed186..c4bdeda 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -34,6 +34,10 @@ class HRM_Processor:
"time"])
self.output_dict["duration"] = ecg_strip_duration
+ beat_sta... |
kofferdahl__bme590hrm-34 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.determine_num_beats"
],
"added_modules": null,
"edited_entities": [
"HRM_Processor.py:HRM_Processor.write_outputs_to_dict"
],
"edited_modules": [
"HRM_Processor.py:HRM_Processor"
... | kofferdahl/bme590hrm | 980ebd48ffc09f11020623a8d037d103af5afbae | The HRM_Processor needs to determine the BPM
The HRM_Processor should be able to write the mean BPM calculated either during a user specified duration or the default duration.
Input: Array of beat start times, duration of interest as a tuple.
Output: mean BPM, rounded to the nearest int
Basic steps:
- Access t... | diff --git a/HRM_Processor.py b/HRM_Processor.py
index c4bdeda..a195f4f 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -38,6 +38,9 @@ class HRM_Processor:
self.input_data["time"], self.input_data["voltage"])
self.output_dict["start_times"] = beat_start_times
+ num_beats = self.de... |
kofferdahl__bme590hrm-35 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.determine_bpm"
],
"added_modules": null,
"edited_entities": [
"HRM_Processor.py:HRM_Processor.write_outputs_to_dict"
],
"edited_modules": [
"HRM_Processor.py:HRM_Processor"
]
... | kofferdahl/bme590hrm | f57c4d8cb4d263603ffdbde28b115e2cd114b09b | The HRM_Processor needs to determine the number of beats.
The HRM_Processor needs to determine the number of beats that occurred in the ecg strip. This value will be written to the output dictionary.
Input: numpy array containing start times of beats
Output: the length of that numpy array
| diff --git a/DataReader.py b/DataReader.py
index 6b08776..1842b8c 100644
--- a/DataReader.py
+++ b/DataReader.py
@@ -119,7 +119,7 @@ class DataReader:
Parameters
----------
- time_array: numpy array of time values (from CSV file, or directly
+ time_array: numpy array of time values (fr... |
kofferdahl__bme590hrm-48 | [
{
"changes": {
"added_entities": [
"DataWriter.py:DataWriter.get_output_file_name",
"DataWriter.py:DataWriter.write_to_json"
],
"added_modules": null,
"edited_entities": [
"DataWriter.py:DataWriter.__init__"
],
"edited_modules": [
"DataWriter.p... | kofferdahl/bme590hrm | c75b2adc68fb3a91a332e7eedaa53cd06fddffa2 | The DataWriter needs to be able to write information from the HRM_Processor to a JSON file. | diff --git a/DataWriter.py b/DataWriter.py
index 80496f5..b4fee64 100644
--- a/DataWriter.py
+++ b/DataWriter.py
@@ -1,3 +1,7 @@
+import json
+import os
+
+
class DataWriter:
def __init__(self, hrm):
"""Constructor for DataWriter Object
@@ -10,3 +14,46 @@ class DataWriter:
"""
self.me... |
kofferdahl__bme590hrm-50 | [
{
"changes": {
"added_entities": [
"DataWriter.py:DataWriter.convert_np_arrays"
],
"added_modules": null,
"edited_entities": [
"DataWriter.py:DataWriter.__init__"
],
"edited_modules": [
"DataWriter.py:DataWriter"
]
},
"file": "DataWriter.... | kofferdahl/bme590hrm | f7fda879b25fc58cb9f6dcedc79bcb933dba0407 | The HRM_Processor writes numpy arrays in the dictionary, which aren't serializable for the DataWriter
The write_outputs_to_dict function in the HRM_Processor writes some of the parameters to the output_dict as numpy arrays. This causes problems when the DataWriter tries to write that dictionary to a JSON file. The Data... | diff --git a/DataWriter.py b/DataWriter.py
index b4fee64..a4e6148 100644
--- a/DataWriter.py
+++ b/DataWriter.py
@@ -13,9 +13,10 @@ class DataWriter:
relevant output parameters to be written to the JSON file.
"""
- self.metrics = hrm.output_dict
+ self.metrics = self.convert_np... |
kofferdahl__bme590hrm-68 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.validate_outputs",
"HRM_Processor.py:HRM_Processor.check_voltage_extremes"
],
"added_modules": null,
"edited_entities": [
"HRM_Processor.py:HRM_Processor.__init__"
],
"edited_modules": ... | kofferdahl/bme590hrm | acaa282a7104998d882bc3c9f5388f04f7e4d873 | The HRM_Processor should display a warning when the voltage signal is beyond typical ECG values | diff --git a/HRM_Processor.py b/HRM_Processor.py
index f80e6a6..20de108 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -1,4 +1,5 @@
import numpy as np
+import pytest
class HRM_Processor:
@@ -31,6 +32,7 @@ class HRM_Processor:
self.input_data = DataReader.output_dict
self.output_dict = {... |
kofferdahl__bme590hrm-69 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.is_unrealistic_num_beats"
],
"added_modules": null,
"edited_entities": [
"HRM_Processor.py:HRM_Processor.__init__",
"HRM_Processor.py:HRM_Processor.validate_outputs"
],
"edited_modules"... | kofferdahl/bme590hrm | 2a7ac75021ded340816dfb7d4d4af35755f8b4a6 | The HRM_Processor should fail gracefully when it calculates unrealistic numbers of beats.
In situations where the beat detection algorithm calculates heart rate values that are unrealistic, it is more likely that the algorithm failed due to noisy data. In these cases, the program should not output a JSON file, and inst... | diff --git a/HRM_Processor.py b/HRM_Processor.py
index 20de108..c7487c2 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -16,6 +16,10 @@ class HRM_Processor:
output_dict: dict
A dictionary containing the heart rate metrics that will be
written to the JSON file by the DataWr... |
kofferdahl__bme590hrm-74 | [
{
"changes": {
"added_entities": [
"HRM_Processor.py:HRM_Processor.validate_outputs",
"HRM_Processor.py:HRM_Processor.check_voltage_extremes",
"HRM_Processor.py:HRM_Processor.is_unrealistic_num_beats"
],
"added_modules": null,
"edited_entities": [
"HRM_Pro... | kofferdahl/bme590hrm | 6bf37a4c18f2a48ed78dd8cb6713280429a01019 | The HRM_Processor should display a warning when the voltage signal is beyond typical ECG values | diff --git a/HRM_Processor.py b/HRM_Processor.py
index f80e6a6..a4db441 100644
--- a/HRM_Processor.py
+++ b/HRM_Processor.py
@@ -1,4 +1,5 @@
import numpy as np
+import logging
class HRM_Processor:
@@ -15,6 +16,10 @@ class HRM_Processor:
output_dict: dict
A dictionary containing the heart rat... |
kofferdahl__bme590hrm-76 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"DataWriter.py:DataWriter.__init__"
],
"edited_modules": [
"DataWriter.py:DataWriter"
]
},
"file": "DataWriter.py"
},
{
"changes": {
"added_entities": null... | kofferdahl/bme590hrm | 5cc99e8b510abe07811afe04760e74cb66700330 | The DataWriter should not write if the ECG data from the HRM_Processor is not valid
The HRM_Processor now has a parameter, isValid, which specifies whether or not the number of beats is physiologically realistic. The DataWriter should use this parameter to decide whether or not it should actually write the data. | diff --git a/DataWriter.py b/DataWriter.py
index f14a5b6..44f4f11 100644
--- a/DataWriter.py
+++ b/DataWriter.py
@@ -1,5 +1,6 @@
import json
import os
+import logging
class DataWriter:
@@ -24,10 +25,22 @@ class DataWriter:
relevant output parameters to be written to the JSON file.
"""
... |
kofferdahl__heart_rate_sentinel_server-12 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"server.py:is_tachycardic"
],
"edited_modules": [
"server.py:Patient",
"server.py:is_tachycardic"
]
},
"file": "server.py"
}
] | kofferdahl/heart_rate_sentinel_server | cea118e0ae3aee1df7980966f4275cdd05cf0b4b | The program should be able to handle situations where the age is less than 1
Right now, the age is specified in years, so it cannot discern tachycardia for patients who are less than 1 year old, which have different tachycardia cutoffs for different age ranges between 0 and 1. The program should be modified to have age... | diff --git a/server.py b/server.py
index 87ae679..1031912 100644
--- a/server.py
+++ b/server.py
@@ -32,7 +32,7 @@ def create_patient(patient_id, attending_email, user_age):
class Patient(MongoModel):
patient_id = fields.CharField(primary_key=True)
attending_email = fields.EmailField()
- user_age = fields... |
kokorin__dbt-pumpkin-28 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dbt_pumpkin/storage.py:DiskStorage.__init__"
],
"edited_modules": [
"dbt_pumpkin/storage.py:DiskStorage"
]
},
"file": "dbt_pumpkin/storage.py"
}
] | kokorin/dbt-pumpkin | d44c45bd299c46a563967da5ffc7291f2f9ff5de | DiskStorage: use round-trip YAML
It appears ruamel provides dedicated parser/dumper to read and update YAML files. It also provides limited capabilities to keep comments (at least line-ending).
`YAML(typ="rt")` or just `YAML()` | diff --git a/README.md b/README.md
index 3eb41d9..4bfa941 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ Inspired by [dbt-osmosis](https://z3z1ma.github.io/dbt-osmosis/)
### Botstrap DBT Resources
-`dbt-osmosis` allows to create DBT YAML schema files for Seeds, Models and Snapshots. For that one has to add... |
konradhalas__dacite-206 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dacite/core.py:from_dict",
"dacite/core.py:_build_value",
"dacite/core.py:_build_value_for_union",
"dacite/core.py:_build_value_for_collection"
],
"edited_modules": [... | konradhalas/dacite | e9e99e831b7f71fcbae21b7dca9856684a7093f7 | Cannot cast sets
There is a problem with casting sets/frozensets, for which is quite common that lists are used for json when serializing.
This fails in dacite as iterables are casted before inner values are transformed.
An example of failing code:
```
from dataclasses import dataclass
from typing import Set
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fbb47dd..9a7ef6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
-Nothing yet.
+### Fixed
+
+- Fix set's casting
## [1.7.0] - 2022-12-22
diff --git a/dac... |
konradhalas__dacite-216 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dacite/dataclasses.py"
}
] | konradhalas/dacite | c076b8c3b3de3631f28db01f3ae41e4d69aa6c50 | Incorrect work when using field with default_factory
**Describe the bug**
`default_factory` is called only once if a field absent in the data
**To Reproduce**
```python
#!/usr/bin/env python
from dataclasses import field, dataclass
from dacite import from_dict
@dataclass
class A:
name: str
i... | diff --git a/dacite/dataclasses.py b/dacite/dataclasses.py
index d70f423..c06ddc0 100644
--- a/dacite/dataclasses.py
+++ b/dacite/dataclasses.py
@@ -11,7 +11,6 @@ class DefaultValueNotFoundError(Exception):
pass
-@cache
def get_default_value_for_field(field: Field, type_: Type) -> Any:
if field.default !... |
konradhalas__dacite-274 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dacite/generics.py:__concretize"
],
"edited_modules": [
"dacite/generics.py:__concretize"
]
},
"file": "dacite/generics.py"
}
] | konradhalas/dacite | 75583d806d2d9b12e44fe98e46591bc3e8dc65e0 | "AttributeError: readonly attribute" for dataclasses containing iterables with dacite `1.9.0`
**Describe the bug**
When trying to instantiate a dataclass, which contains an iterable (tested with `list` and `tuple`), using `dacite.from_dict` in version `1.9.0`, `AttributeError: readonly attribute` is raised.
**To Repro... | diff --git a/dacite/generics.py b/dacite/generics.py
index 9a44c19..30ef0eb 100644
--- a/dacite/generics.py
+++ b/dacite/generics.py
@@ -56,7 +56,12 @@ def __concretize(
hint_origin = get_origin(hint)
hint_args = get_args(hint)
if hint_origin and hint_args and hint_origin is not Literal:
- hint.__... |
kootenpv__access_points-22 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"access_points/__init__.py:OSXWifiScanner.parse_output"
],
"edited_modules": [
"access_points/__init__.py:OSXWifiScanner"
]
},
"file": "access_points/__init__.py"
}
] | kootenpv/access_points | 7ca2aaed39b966249a30580fd8b6f13612b4ac04 | "list index out of range"
```
list index out of range
Line:
CFInternet19 -91 100 Y -- WPA2(PSK/AES/AES)
Output:
SSID BSSID RSSI CHANNEL HT CC SECURITY (auth/unicast/group)
CFInternet19 -91 10... | diff --git a/access_points/__init__.py b/access_points/__init__.py
index b0040cf..ab7ecdc 100644
--- a/access_points/__init__.py
+++ b/access_points/__init__.py
@@ -94,22 +94,28 @@ class OSXWifiScanner(WifiScanner):
cmd = "airport -s"
return path + cmd
+ # OSX Monterey doesn't output the BSSID un... |
kopf__httsleep-12 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"httsleep/main.py:HttSleeper.__init__",
"httsleep/main.py:HttSleeper.run",
"httsleep/main.py:httsleep"
],
"edited_modules": [
"httsleep/main.py:HttSleeper",
"h... | kopf/httsleep | 969f30c9a77519e05434e1c46dd486c066c1002a | Support `verify=False` usage as per requests library
It's not currently possible to use `httsleep` and ignore certificate errors, as you would with `requests.get(..., verify=False)`.
This looks fairly simple to add so I'll try to follow this with a PR and hopefully we can improve things. | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index f6a9e74..a162d14 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,11 @@
httsleep Changelog
==================
+Version NEXT
+-------------
+* The kwarg ``verify`` is now supported, allowing users of httsleep to specify
+ ``verify=False`` in the same way as ... |
kopf__httsleep-14 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"httsleep/main.py:HttSleeper.__init__",
"httsleep/main.py:HttSleeper.run",
"httsleep/main.py:httsleep"
],
"edited_modules": [
"httsleep/main.py:HttSleeper",
"h... | kopf/httsleep | 1a5e76d39488876abe06c7f359bdf84e1e5433e5 | Support passing in a `Session` object
Users may already have a `requests.Session` object and wish to reuse that rather than having `httsleep` create a blank one. This would save users from re-entering standard headers, settings etc. that they've already configured elsewhere.
### Ideal usage afterwards:
```python
... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index a162d14..836d8b5 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,8 +3,8 @@ httsleep Changelog
Version NEXT
-------------
-* The kwarg ``verify`` is now supported, allowing users of httsleep to specify
- ``verify=False`` in the same way as when directly using th... |
kornia__kornia-1162 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"docs/generate_example_images.py:main"
],
"edited_modules": [
"docs/generate_example_images.py:main"
]
},
"file": "docs/generate_example_images.py"
},
{
"changes... | kornia/kornia | 353fb68429b8b5eae4ad7c06389c0a1943935a3e | gray_to_(rgb,bgr)
## 🚀 Feature
I have a grayscale image, and I'd like to use it with the augmentation functions which only support 3 channel images.
I'm looking for the equivalent of ``cv2.cvtColor(cv2.COLOR_GRAY2BGR, gray)``.
| diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8aee6e71..7405f155 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,7 +16,7 @@ repos:
- id: pretty-format-json
- repo: https://github.com/psf/black
- rev: 21.6b0
+ rev: 21.7b0
hooks:
- id: black
... |
kornia__kornia-1740 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kornia/geometry/boxes.py:_boxes_to_quadrilaterals"
],
"edited_modules": [
"kornia/geometry/boxes.py:_boxes_to_quadrilaterals"
]
},
"file": "kornia/geometry/boxes.py"
... | kornia/kornia | e73dab6e13e7daec01418c0da1fea1fd8ff81a3f | mode="vertices" in Boxes.from_tensor add +1 to boxes width and height
### Describe the bug
mode="vertices" in Boxes.from_tensor add +1 to boxes width and height
### Reproduction steps
```python
from kornia.geometry.boxes import Boxes
boxes = torch.tensor([[[355,10, 660,250], [10,125, 200,400]]])
vertices... | diff --git a/kornia/geometry/boxes.py b/kornia/geometry/boxes.py
index bbc005ec..79d14342 100644
--- a/kornia/geometry/boxes.py
+++ b/kornia/geometry/boxes.py
@@ -97,10 +97,15 @@ def _boxes_to_quadrilaterals(
if mode.startswith("vertices"):
if mode == "vertices":
- # Avoid passing reference
... |
kornia__kornia-2682 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kornia/feature/loftr/utils/fine_matching.py:FineMatching.forward"
],
"edited_modules": [
"kornia/feature/loftr/utils/fine_matching.py:FineMatching"
]
},
"file": "kornia... | kornia/kornia | 619d65f9caae73016cad33d7aa006be4095a1164 | Add from / to euler angle in Quaterion
## 🚀 Feature
We would like a direct interface for the [Quaternion](https://github.com/kornia/kornia/blob/02de36a3dbe6fe7361c9a5cea78974413f09f67d/kornia/geometry/quaternion.py#L19) class to go from / to Euler angles implemented in
https://github.com/kornia/kornia/blob/02de36a... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 45fd9e5c..c7a59654 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.1.6
+ rev: v0.1.7
hooks:
- ... |
kornia__kornia-2914 | [
{
"changes": {
"added_entities": [
"kornia/geometry/epipolar/essential.py:fun_select",
"kornia/geometry/epipolar/essential.py:null_to_Nister_solution"
],
"added_modules": [
"kornia/geometry/epipolar/essential.py:fun_select",
"kornia/geometry/epipolar/essential.p... | kornia/kornia | 0aadc10a6e4dc8b03400c9f542c82181c649c576 | find_essential and run_5point are not working correctly with batch size>1
### Describe the bug
The problem is with run_5point solver, which has several filters:
https://github.com/kornia/kornia/blob/a041d9255f459a0034c75b20fb9ab524d7ae3983/kornia/geometry/epipolar/essential.py#L124
https://github.com/kornia/kornia/b... | diff --git a/docs/source/references.bib b/docs/source/references.bib
index fd8c4acf..aee01394 100644
--- a/docs/source/references.bib
+++ b/docs/source/references.bib
@@ -398,3 +398,10 @@ month = {mar}
booktitle = {ICCV},
year = {2023}
}
+
+@article{wang2023vggsfm,
+ title={VGGSfM: Visual Geometry Grou... |
koxudaxi__datamodel-code-generator-1248 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datamodel_code_generator/__init__.py:generate"
],
"edited_modules": [
"datamodel_code_generator/__init__.py:generate"
]
},
"file": "datamodel_code_generator/__init__.py... | koxudaxi/datamodel-code-generator | e10f1bcce5f0135458a96e4d0e3d4e6ab7e54c3d | (🎁) Log input file type when when `--input-file-type` is `auto`
I was left a little confused when my json file was silently detected as jsonschema instead of json. | diff --git a/datamodel_code_generator/__init__.py b/datamodel_code_generator/__init__.py
index b78d25f8..55285754 100644
--- a/datamodel_code_generator/__init__.py
+++ b/datamodel_code_generator/__init__.py
@@ -2,6 +2,7 @@ from __future__ import annotations
import contextlib
import os
+import sys
from datetime imp... |
koxudaxi__datamodel-code-generator-1422 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datamodel_code_generator/__init__.py:generate"
],
"edited_modules": [
"datamodel_code_generator/__init__.py:generate"
]
},
"file": "datamodel_code_generator/__init__.py... | koxudaxi/datamodel-code-generator | 9a6814fd6c6b32399b215fd59c3b7492c038776e | Ability to add custom imports
**Is your feature request related to a problem? Please describe.**
Can't customize my template to add new imports
**Describe the solution you'd like**
New argument `additional_imports` in `generate` function which adds additional imports to final rendered template
**Describe altern... | diff --git a/datamodel_code_generator/__init__.py b/datamodel_code_generator/__init__.py
index a71ff67a..cceaa958 100644
--- a/datamodel_code_generator/__init__.py
+++ b/datamodel_code_generator/__init__.py
@@ -225,6 +225,7 @@ def generate(
output_model_type: DataModelType = DataModelType.PydanticBaseModel,
t... |
koxudaxi__datamodel-code-generator-2389 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/datamodel_code_generator/parser/base.py:Parser.__change_field_name"
],
"edited_modules": [
"src/datamodel_code_generator/parser/base.py:Parser"
]
},
"file": "src/da... | koxudaxi/datamodel-code-generator | 4fa8ea313b82c649088d73f304ec44ce3e347f20 | --capitalise-enum-members not working since v0.28.5
When using the flag `--capitalise-enum-members` (or `--capitalize-enum-members`) in e.g.
```bash
python3 -m datamodel_code_generator
--input-file-type openapi \
--output-model-type pydantic_v2.BaseModel \
--encoding "UTF-8" \
--disable-timestamp \
--use-sch... | diff --git a/src/datamodel_code_generator/parser/base.py b/src/datamodel_code_generator/parser/base.py
index 35fa842f..74df98e5 100644
--- a/src/datamodel_code_generator/parser/base.py
+++ b/src/datamodel_code_generator/parser/base.py
@@ -1121,6 +1121,9 @@ class Parser(ABC):
if self.data_model_type != pydantic... |
koxudaxi__datamodel-code-generator-726 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datamodel_code_generator/format.py:black_find_project_root"
],
"edited_modules": [
"datamodel_code_generator/format.py:black_find_project_root"
]
},
"file": "datamodel_... | koxudaxi/datamodel-code-generator | ca976e8e43815600b9cc3b3ca3e30c45464d2839 | Optional command to generate code without constr
**Is your feature request related to a problem? Please describe.**
The inclusion of `constr` in the generated datamodel when it contains regular expressions can cause the generated code to fail checks in mypy and flake8.
Specifically, with `https://github.com/compo... | diff --git a/datamodel_code_generator/format.py b/datamodel_code_generator/format.py
index 1b2ffb53..a742d884 100644
--- a/datamodel_code_generator/format.py
+++ b/datamodel_code_generator/format.py
@@ -51,7 +51,7 @@ def black_find_project_root(sources: Sequence[Path]) -> Path:
project_root = _find_project_root(tu... |
koxudaxi__datamodel-code-generator-767 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datamodel_code_generator/parser/base.py:sort_data_models"
],
"edited_modules": [
"datamodel_code_generator/parser/base.py:sort_data_models"
]
},
"file": "datamodel_code... | koxudaxi/datamodel-code-generator | fc1c25756a0b41ff68ce541c644456363cd1418b | `update_forward_refs()` is not created for all necessary models
**Describe the bug**
`update_forward_refs()` is not called for all necessary models if I use inheritance in the models.
**To Reproduce**
Example schema:
```json
{
"title": "PersonsBestFriend",
"description": "This is the main model.",
... | diff --git a/datamodel_code_generator/parser/base.py b/datamodel_code_generator/parser/base.py
index 9d0b3f32..692c67b7 100644
--- a/datamodel_code_generator/parser/base.py
+++ b/datamodel_code_generator/parser/base.py
@@ -159,6 +159,16 @@ def sort_data_models(
unresolved_model = (
model.r... |
kozistr__pytorch_optimizer-281 | [
{
"changes": {
"added_entities": [
"pytorch_optimizer/__init__.py:load_ao_optimizer"
],
"added_modules": [
"pytorch_optimizer/__init__.py:load_ao_optimizer"
],
"edited_entities": [
"pytorch_optimizer/__init__.py:load_optimizer"
],
"edited_modules... | kozistr/pytorch_optimizer | 1687e370bd7f1b41bbf3635918bedcffe89b56a8 | Request to add 4-bit AdamW
## Paper and Code
Paper: [Memory Efficient Optimizers with 4-bit States](https://arxiv.org/abs/2309.01507)
Code : https://github.com/thu-ml/low-bit-optimizers/blob/main/lpmm/optim/optimizer.py
| diff --git a/README.md b/README.md
index 2e1b77e8..24d013eb 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
**pytorch-optimizer** is optimizer & lr scheduler collections in PyTorch.
I just re-implemented (speed & memory tweaks, plug-ins) the algorithm while based on the original paper. Also, It includes u... |
kozistr__pytorch_optimizer-359 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "pytorch_optimizer/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edit... | kozistr/pytorch_optimizer | b85065d9d44d5f63752727c1fcbd9e6ac19a4ce3 | Support StableSPAM
## Paper or Code
https://github.com/TianjinYellow/StableSPAM | diff --git a/README.md b/README.md
index b9579d74..000850cf 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
## The reasons why you use `pytorch-optimizer`.
-* Wide range of supported optimizers. Currently, **99 optimizers (+ `bitsandbytes`, `qgalore`, `torchao`)**, **16 lr schedulers**, and **13 loss func... |
kpetremann__mqtt-exporter-37 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mqtt_exporter/main.py:_normalize_name_in_topic_msg"
],
"edited_modules": [
"mqtt_exporter/main.py:_normalize_name_in_topic_msg"
]
},
"file": "mqtt_exporter/main.py"
}... | kpetremann/mqtt-exporter | 4126ec64830517ee43384dde82fa43d807701f57 | Doesn't support Shelly 3EM format very well
Hello there,
my understanding from trying to use this to push 6 different power measurements from 2 Shelly 3EM devices, is that there's no way to either sum, or differentiate the three phases' measurements.
This is what one Shelly 3EM sends as MQTT topics:
```
shelli... | diff --git a/README.md b/README.md
index 4458dce..f132d1f 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,7 @@ The exporter is tested with:
* Aqara/Xiaomi sensors (WSDCGQ11LM and VOCKQJK11LM)
* SONOFF sensors (SNZB-02)
* Shelly sensors (H&T wifi)
+ * Shelly power sensors (3EM - only with `KEEP_FULL_TOPIC`... |
kpn__settings-vial-12 | [
{
"changes": {
"added_entities": [
"settings_vial/settings_vial.py:Settings.as_dict"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"settings_vial/settings_vial.py:Settings"
]
},
"file": "settings_vial/settings_vial.py"
}
] | kpn/settings-vial | 541429020f1c1c89ceef2c99777104faa8f286ad | Add as_dict method to make it compatible with settings-vial API
The `class Settings` does not have the method `as_dict` which makes it incompatible with [SimpleSettings](https://github.com/kpn-digital/py-pkgsettings/blob/master/pkgsettings/pkgsettings.py#L9) object.
If `pkgsettings` is used and the `ENV` variables ... | diff --git a/settings_vial/settings_vial.py b/settings_vial/settings_vial.py
index cfa5315..0263871 100755
--- a/settings_vial/settings_vial.py
+++ b/settings_vial/settings_vial.py
@@ -1,3 +1,4 @@
+import copy
import json
import warnings
from os import environ
@@ -90,7 +91,7 @@ class Settings:
return overri... |
kratsg__itksn-71 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/itksn/pixels.py"
}
] | kratsg/itksn | 8002b3ed91402ddd253758aff5cee9ed85ec5388 | Pixel FE wafer/chip codes
HI @kratsg
as of today the pixel FE wafer/chip numbering has changed. The last 7 digits is the decimal presentation of 0xBWWXY, where B is the batch indicator and the 2 was reserved for CROC but is used for ITkPix v2 now. See the screenshot attached. Here is the link to the numbering docu... | diff --git a/src/itksn/pixels.py b/src/itksn/pixels.py
index 2233e46..cc96f3e 100644
--- a/src/itksn/pixels.py
+++ b/src/itksn/pixels.py
@@ -23,7 +23,7 @@ fe_chip_wafer = Struct(
Bytes(1),
RD53A=b"0",
ITkpix_v1=b"1",
- CROC=b"2",
+ ITkpix_v2=b"2",
),
"number" / Bytes(6... |
krayzpipes__txt-ferret-16 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "setup.py"
},
{
"changes": {
"added_entities": [
"src/txtferret/cli.py:prep_config",
"src/txtferret/cli.py:bootstrap",
"s... | krayzpipes/txt-ferret | 45ca5e04c3bb50d7be8ff3a086b2a9c6c20e9563 | Add bulk file scan.
Add a switch and/or config option that would allow all files in a directory to be scanned and then an aggregate report be generated. | diff --git a/README.md b/README.md
index 4c7f434..5745621 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,7 @@ Why use txtferret? See the __How/why did this come about?__ section below.
```bash
$ pip3 install txtferret
```
+
### Repo
1. Clone it.
```bash
@@ -41,6 +42,7 @@ Why use txtferret? ... |
krishnanlab__PecanPy-50 | [
{
"changes": {
"added_entities": [
"src/pecanpy/graph.py:SparseGraph.from_adjlst_graph",
"src/pecanpy/graph.py:DenseGraph.from_adjlst_graph"
],
"added_modules": null,
"edited_entities": [
"src/pecanpy/graph.py:AdjlstGraph.from_mat",
"src/pecanpy/graph.py:S... | krishnanlab/PecanPy | 98b4860b58b44b4d2b01920251b5b4630724878f | Read from adjacency matrix | diff --git a/src/pecanpy/graph.py b/src/pecanpy/graph.py
index 5185910..3b35cd8 100644
--- a/src/pecanpy/graph.py
+++ b/src/pecanpy/graph.py
@@ -191,25 +191,6 @@ class AdjlstGraph(IDHandle):
return indptr, indices, data
- def from_mat(self, adj_mat, ids):
- """Construct graph using adjacency matr... |
kumar303__mohawk-36 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mohawk/base.py:Resource.__init__"
],
"edited_modules": [
"mohawk/base.py:Resource"
]
},
"file": "mohawk/base.py"
},
{
"changes": {
"added_entities": null,... | kumar303/mohawk | cacfa3c2c792a065adb812aded5b8daa5b0362aa | Commas in header values break parsing
The parser tries to split the entire header `Hawk id="something", key="value"` on commas to separate the fields, thus any field with comma in it will cause breakage.
``` python
def test_ext_with_all_valid_characters(self):
valid_characters = "!#$%&'()*+,-./:;<=>?@[]^_`{|}~ azA... | diff --git a/docs/index.rst b/docs/index.rst
index 89c0753..c2970a5 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -106,6 +106,11 @@ TODO
Changelog
---------
+- **UNRELEASED**
+ - **Breaking**: Escape characters in header values are no longer allowed,
+ potentially breaking clients that depend on this beha... |
kumar303__mohawk-57 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mohawk/util.py:calculate_payload_hash"
],
"edited_modules": [
"mohawk/util.py:calculate_payload_hash"
]
},
"file": "mohawk/util.py"
}
] | kumar303/mohawk | 037be67ccf50ae704705e67add44e02737a65d21 | Support file objects as content
We have some large files we need to send via an HTTP POST, and the API requires Hawk authentication. Currently this means the entire file has to be loaded into memory so that it can be passed as `content` to `mohawk.Sender`
Can we instead pass an open file object, and then mohawk can ... | diff --git a/.travis.yml b/.travis.yml
index c5b41fe..7617ace 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,4 @@
-sudo: false
+dist: trusty # For python 2.6
language: python
matrix:
include:
diff --git a/docs/index.rst b/docs/index.rst
index 61cdead..7d7ed8c 100644
--- a/docs/index.rst
+++ b/docs/index.... |
kutaslab__fitgrid-109 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/epochs.py:Epochs.__init__"
],
"edited_modules": [
"fitgrid/epochs.py:Epochs"
]
},
"file": "fitgrid/epochs.py"
},
{
"changes": {
"added_entities": ... | kutaslab/fitgrid | a6774dc90334ddfac77ff7aff901cc1ef7f75920 | add design matrix check
if the design matrix, given a formula, doesn't change across time/channels, we can run certain computations much faster | diff --git a/fitgrid/epochs.py b/fitgrid/epochs.py
index 9a33eba..f252bc9 100644
--- a/fitgrid/epochs.py
+++ b/fitgrid/epochs.py
@@ -60,7 +60,9 @@ class Epochs:
raise FitGridError('Duplicate column names not allowed.')
# make our own copy so we are immune to modification to original table
- ... |
kutaslab__fitgrid-23 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/epochs.py:Epochs.__init__"
],
"edited_modules": [
"fitgrid/epochs.py:Epochs"
]
},
"file": "fitgrid/epochs.py"
}
] | kutaslab/fitgrid | 1cba86280c45b7a5f1422621167aeee1952a2254 | Set epochs table index to EPOCH_ID and TIME during Epochs creation
In `__init__` we reset the index to only keep `EPOCH_ID`. After `snapshots` are created, set index to `EPOCH_ID`, `TIME`. This is needed for plotting of individual epochs. | diff --git a/fitgrid/epochs.py b/fitgrid/epochs.py
index 1b09227..b14ad8a 100644
--- a/fitgrid/epochs.py
+++ b/fitgrid/epochs.py
@@ -41,12 +41,13 @@ class Epochs:
levels_to_remove = set(epochs_table.index.names)
levels_to_remove.discard(EPOCH_ID)
- # so we remove all levels from index except ... |
kutaslab__fitgrid-30 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/epochs.py:Epochs.__init__",
"fitgrid/epochs.py:Epochs.lm",
"fitgrid/epochs.py:Epochs.plot_averages"
],
"edited_modules": [
"fitgrid/epochs.py:Epochs"
]
... | kutaslab/fitgrid | 18722a8e8b95ee02f3578e425967adc63778bbe8 | Make Epochs and FitGrid channel aware
`Epochs` and `FitGrid` objects should know what channels (dependent variables) are inside them. `FitGrid`: easy, it's the columns. `Epochs`: the value of `fitgrid.CHANNELS` at the time of creation.
This makes plotting averages or running models easier since we have a reasonable ... | diff --git a/fitgrid/epochs.py b/fitgrid/epochs.py
index 40004d2..459530e 100644
--- a/fitgrid/epochs.py
+++ b/fitgrid/epochs.py
@@ -22,23 +22,42 @@ class Epochs:
"""
- def __init__(self, epochs_table):
+ def __init__(self, epochs_table, channels='default'):
- from . import EPOCH_ID, TIME
+ ... |
kutaslab__fitgrid-39 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/epochs.py:Epochs.__init__"
],
"edited_modules": [
"fitgrid/epochs.py:Epochs"
]
},
"file": "fitgrid/epochs.py"
},
{
"changes": {
"added_entities": ... | kutaslab/fitgrid | 06e5803882f11412adf99d32c57f04381d581ffa | BUG: usage of `groupby.get_group(0)` is bad
`groupby.get_group(0)` gets the group with name `0`, not the first group.
Possible fix is to replace with
```python
first_group_name = list(groupby.groups)[0]
first_group = groupby.get_group(first_group_name)
``` | diff --git a/fitgrid/epochs.py b/fitgrid/epochs.py
index d1f5b86..899298a 100644
--- a/fitgrid/epochs.py
+++ b/fitgrid/epochs.py
@@ -87,7 +87,7 @@ class Epochs:
self.channels = channels
self.table = table
self._snapshots = snapshots
- self._epoch_index = snapshots.get_group(0).index.co... |
kutaslab__fitgrid-52 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/fitgrid.py:FitGrid.plot_betas"
],
"edited_modules": [
"fitgrid/fitgrid.py:FitGrid"
]
},
"file": "fitgrid/fitgrid.py"
}
] | kutaslab/fitgrid | 5b4dae658d22e5aabfef7360c1c3a8e0a52da918 | plot_betas fails on grid with single channel
Wrap `axes` in list when single object? | diff --git a/fitgrid/fitgrid.py b/fitgrid/fitgrid.py
index 8569c1d..5cd5f5a 100644
--- a/fitgrid/fitgrid.py
+++ b/fitgrid/fitgrid.py
@@ -237,6 +237,10 @@ class FitGrid:
nrows=len(channels), figsize=figsize, sharey=True
)
+ # wrap in list to allow for zipping later
+ ... |
kutaslab__fitgrid-54 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/fitgrid.py:FitGrid.plot_betas"
],
"edited_modules": [
"fitgrid/fitgrid.py:FitGrid"
]
},
"file": "fitgrid/fitgrid.py"
}
] | kutaslab/fitgrid | 02b618f14944e15765bf2066a29dbd77c83c9be7 | Fitgrid.grid.plot_betas() is unhappy with lots of betas
such as modeling 32 individual subjects with all single trial epochs in the whole experiment in the pd.DataFrame
```
>>> article_fg=(fg_epochs.lm(LHS=model_chans, RHS='data_group + data_group:orth_article_initial_cloze - 1'))
>>> article_fg.plot_betas()
```
... | diff --git a/fitgrid/fitgrid.py b/fitgrid/fitgrid.py
index d83530a..4d50b48 100644
--- a/fitgrid/fitgrid.py
+++ b/fitgrid/fitgrid.py
@@ -250,7 +250,7 @@ class FitGrid:
samples, chans = self._grid.shape
return f'{samples} by {chans} FitGrid of type {type(self.tester)}.'
- def plot_betas(self):
+ ... |
kutaslab__fitgrid-58 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fitgrid/epochs.py:Epochs.__init__"
],
"edited_modules": [
"fitgrid/epochs.py:Epochs"
]
},
"file": "fitgrid/epochs.py"
},
{
"changes": {
"added_entities": ... | kutaslab/fitgrid | 1c1e2dda19d0fcf1bed94b9fea5f22999372db0d | duplicate channel names cause trouble for slicing fit objects
after loading multichannel fitgrid as article_fg ...
works fine for channel slicer ['MiPf', 'MiCe', 'MiPa', 'MiOc']
bombs if 'MiPa' is in the channel slicer twice
```
>>> infl = article_fg[-500:600,['MiPa', 'MiCe', 'MiPa', 'MiOc']].get_influence()... | diff --git a/fitgrid/epochs.py b/fitgrid/epochs.py
index 0485bf9..149821f 100644
--- a/fitgrid/epochs.py
+++ b/fitgrid/epochs.py
@@ -61,6 +61,12 @@ class Epochs:
f'{item} must be a column in the epochs table index.'
)
+ # check no duplicate column names in index and regula... |
kvankova__code-embedder-15 | [
{
"changes": {
"added_entities": [
"src/code_embedding.py:ScriptPathExtractor._is_code_block_start",
"src/code_embedding.py:ScriptPathExtractor._is_code_block_end",
"src/code_embedding.py:ScriptPathExtractor._start_new_block",
"src/code_embedding.py:ScriptPathExtractor._fin... | kvankova/code-embedder | 5448137979a814095fed723d28fe9f90e19ab15e | Add possibility of updating multiple readme files
Currently, only one readme file can be updated. Add support for updating multiple readme files. | diff --git a/Makefile b/Makefile
index de0e6ec..bb61ffd 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,3 @@ run:
test:
poetry run pytest
-
-del:
- gh release delete 0.0.1
- git push origin --delete 0.0.1
- git tag -d 0.0.1
- gh release create 0.0.1 -t "Testing" -n "Testing"
diff --git a/README.md b/README.md
inde... |
kvankova__code-embedder-32 | [
{
"changes": {
"added_entities": [
"src/script_content_reader.py:ScriptContentReader._update_script_content_with_extraction_part",
"src/script_content_reader.py:ScriptContentReader._extract_part",
"src/script_content_reader.py:ScriptContentReader._validate_section_bounds",
... | kvankova/code-embedder | ba27426f9ee35b7f525b19c3422f5612133435c5 | Add support for Python to extract functions or classes definitions from a script | diff --git a/README.md b/README.md
index 329bae0..84817f2 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
## **Code Embedder**
Seamlessly update code snippets in your **README** files! 🔄📝🚀
-[Description](#-description) • [How it works](#-how-it-works) • [Examples](#-examples) • [Setup](#-setup) • [Under t... |
kvankova__code-embedder-35 | [
{
"changes": {
"added_entities": [
"src/script_content_reader.py:ScriptContentReader._extract_object_part",
"src/script_content_reader.py:ScriptContentReader._extract_section_part"
],
"added_modules": null,
"edited_entities": [
"src/script_content_reader.py:Script... | kvankova/code-embedder | fcf022873ec3e5fe3e470fd985df604877cca703 | Add recognition of section and object name
Update tag to
- `language:path/to/script:o:object_name`
- `language:path/to/script:s:section_name`
| diff --git a/README.md b/README.md
index 70971fa..2d41adc 100644
--- a/README.md
+++ b/README.md
@@ -35,9 +35,12 @@ In the `README` (or other markdown) file, the full script is marked with the fol
### 📂 **Section** updates
In the `README` (or other markdown) file, the section of the script is marked with the followi... |
kvesteri__intervals-54 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "intervals/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"intervals/inte... | kvesteri/intervals | f5fd76036ab02275dff79f025b7234fa942c01a6 | length should return the actual length for discrete intervals
``IntInterval.from_string('[0, 2)').length`` should be `1` not `2` | diff --git a/CHANGES.rst b/CHANGES.rst
index ab8d128..41c7cdc 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,12 @@ Changelog
Here you can see the full list of changes between each intervals release.
+0.9.1 (2020-12-31)
+^^^^^^^^^^^^^^^^^^
+
+- Fixed discrete interval length (#53)
+
+
0.9.0 (2020-07-16)
^^... |
kwzrd__pypopulation-16 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pypopulation/implementation.py:get_population_a2",
"pypopulation/implementation.py:get_population_a3"
],
"edited_modules": [
"pypopulation/implementation.py:get_population_a2... | kwzrd/pypopulation | e082081a463ba2330a8779b1a0daeac7f1fef6ca | Load resource file at import time
The current methodology is to delay loading the resource file until the first lookup is made, and then to cache the loaded map using a 1-size LRU cache. This was done in an effort to make the import faster and to avoid the price of loading the file should the module be imported but nev... | diff --git a/README.md b/README.md
index b24bc4a..0fe7e4c 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Lightweight population lookup using [ISO 3166](https://en.wikipedia.org/wiki/ISO
83132799
```
-The aim is to provide a minimalist package with no dependencies that does one thing only, as best as possi... |
kylebgorman__wikipron-392 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"data/src/generate_phones_summary.py:main"
],
"edited_modules": [
"data/src/generate_phones_summary.py:main"
]
},
"file": "data/src/generate_phones_summary.py"
}
] | kylebgorman/wikipron | 18e8b2d9cfc496fc08608d2ceaea1dc025f24f1f | Phoneme count bug
As pointed out by @ajmalanoski in #387, the phoneme summary counter in `generate_phones_summary.py` is actualy counting lines, not phonemes, and we allow blank lines.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 85a299f..79cc751 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -41,6 +41,7 @@ Unreleased
- Configured and scraped Yamphu (`ybi`). (\#380)
- Configured and scraped Khumi Chin (`cnk`). (\#381)
- Made summary generation in `common_characters.py` optional. (\#382)
+... |
kymatio__kymatio-848 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"examples/1d/plot_filters.py:scattering1D_filter_factory",
"examples/1d/plot_filters.py:scattering1D_filter_factory_T"
],
"edited_modules": [
"examples/1d/plot_filters.py:scat... | kymatio/kymatio | 45afade13634ad497d2e988c91f502823801f343 | `compute_params_filterbank` should be simpler
The current code for `compute_params_filterbank` is messy and its documentation is outdated. It says it returns dictionaries where in fact it returns list.
It just came to my attention that we don't need dictionaries at all in this part of the code, and can make everythi... | diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 8105fe1..6c33240 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported by contacti... |
kymatio__kymatio-863 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kymatio/scattering1d/filter_bank.py:scattering_filter_factory"
],
"edited_modules": [
"kymatio/scattering1d/filter_bank.py:scattering_filter_factory"
]
},
"file": "kyma... | kymatio/kymatio | a776d575aeff2bcefe2b8c002a8da9b492158303 | redefine 1D `self.N`, deprecate`self.J_pad`?
in 1D, `self.N` is the unpadded length of the input signal. It is defined in `ScatteringBase1D` as some derivative of `self.shape` and isn't being used anywhere else.
Same for 2D where `self.shape` unpacks as `self.M`, `self.N`.
I see no reason to keep these values a... | diff --git a/kymatio/scattering1d/filter_bank.py b/kymatio/scattering1d/filter_bank.py
index 003cfba..090e48d 100644
--- a/kymatio/scattering1d/filter_bank.py
+++ b/kymatio/scattering1d/filter_bank.py
@@ -287,7 +287,7 @@ def compute_params_filterbank(sigma_min, Q, alpha, r_psi=math.sqrt(0.5)):
----------
sigm... |
kymatio__kymatio-982 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kymatio/scattering1d/filter_bank.py:scattering_filter_factory"
],
"edited_modules": [
"kymatio/scattering1d/filter_bank.py:scattering_filter_factory"
]
},
"file": "kyma... | kymatio/kymatio | 954c44990ca2edcd9b4cc12c20321dd20d27cce6 | BUG missing one second-order wavelet for low-T Sc1D and JTFS
MWE
```python
import numpy as np
from kymatio.numpy import Scattering1D
N = 1024
x = np.zeros(N)
S = Scattering1D(J=8, shape=(N,), T=2)
Sx = S(x)
```
Traceback:
```
IndexError Traceback (most recent call last... | diff --git a/kymatio/scattering1d/filter_bank.py b/kymatio/scattering1d/filter_bank.py
index 63e7dd5..b1d69ea 100644
--- a/kymatio/scattering1d/filter_bank.py
+++ b/kymatio/scattering1d/filter_bank.py
@@ -377,8 +377,8 @@ def scattering_filter_factory(N, J, Q, T, filterbank):
j = get_max_dyadic_subsampling(... |
kynan__nbstripout-182 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"nbstripout/_nbstripout.py:install",
"nbstripout/_nbstripout.py:main"
],
"edited_modules": [
"nbstripout/_nbstripout.py:install",
"nbstripout/_nbstripout.py:main"
... | kynan/nbstripout | 1185a8d25bb45ada13f64d9591c14d81d69206bc | Specifying Python executable path in `nbstripout --install`
It would be helpful if there was a way to specify the path `nbstripout --install` puts into e.g. `.git/config`. This would enable to specify only `python` or `python3`, not the full path, which can differ between runtimes, e.g. when using [Apptainer/Singularit... | diff --git a/README.rst b/README.rst
index c2f55a7..a161c65 100644
--- a/README.rst
+++ b/README.rst
@@ -95,6 +95,19 @@ Set up the git filter using ``.gitattributes`` ::
nbstripout --install --attributes .gitattributes
+Specify a different path to the Python interpreter to be used for the git
+filters (default... |
kytos__kytos-1131 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kytos/core/api_server.py:APIServer.register_rest_endpoint",
"kytos/core/api_server.py:APIServer.register_core_endpoint",
"kytos/core/api_server.py:APIServer.register_napp_endpoints",
... | kytos/kytos | 8de8c8b0da210cf874efba939654c5a5985dc946 | Error if two NApps have methods with the same name decorated with @rest
If two NApps declare REST endpoints in methods with the same name, Flask raises an exception. One way to solve this problem is to use Flask [blueprints](https://flask.palletsprojects.com/en/1.1.x/blueprints). | diff --git a/Makefile b/Makefile
index 42b498c..da50505 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
build: clean prepare
- python3 setup.py sdist bdist_wheel
+ python3.6 setup.py sdist bdist_wheel
ls -l dist/
clean:
rm -rf build/ dist/ *.egg-info/ kytos/web-ui-*
prepare:
- pip3 install --upgrade p... |
kytos__kytos-1146 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kytos/core/api_server.py:APIServer.web_ui",
"kytos/core/api_server.py:APIServer.update_web_ui"
],
"edited_modules": [
"kytos/core/api_server.py:APIServer"
]
},
... | kytos/kytos | b4d1010f90e3a36a8caa646362d1bd8646589691 | Remove hard dependency on github for UI
# The Issue
In order to execute `kytosd`, the kytos needs to be able to download the UI from github. This download may be inaccessible, either from github being unavailable, firewall blocking github, or DNS unable to find github.
# Proposed Solution
- Allow for executing... | diff --git a/kytos/core/api_server.py b/kytos/core/api_server.py
index f10c3b0..ccc0c80 100644
--- a/kytos/core/api_server.py
+++ b/kytos/core/api_server.py
@@ -200,7 +200,10 @@ class APIServer:
def web_ui(self):
"""Serve the index.html page for the admin-ui."""
- return send_file(f"{self.flask_d... |
kytos__kytos-1163 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kytos/lib/helpers.py:get_link_mock"
],
"edited_modules": [
"kytos/lib/helpers.py:get_link_mock"
]
},
"file": "kytos/lib/helpers.py"
}
] | kytos/kytos | c67933ccecd8c87eab9a7d527312956841959b97 | Improve key generation for mock `Link.metadata`
The following test code in does not sufficiently expose kytos/pathfinder#64:
https://github.com/kytos/kytos/blob/c67933ccecd8c87eab9a7d527312956841959b97/kytos/lib/helpers.py#L34-L40
This change is to address the problem of the referenced bug not showing up for sing... | diff --git a/kytos/lib/helpers.py b/kytos/lib/helpers.py
index 1f9b771..5c12f86 100644
--- a/kytos/lib/helpers.py
+++ b/kytos/lib/helpers.py
@@ -36,7 +36,7 @@ def get_link_mock(endpoint_a, endpoint_b):
link = create_autospec(Link)
link.endpoint_a = endpoint_a
link.endpoint_b = endpoint_b
- link.metada... |
kytos__kytos-1249 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"kytos/core/api_server.py:APIServer.start_api",
"kytos/core/api_server.py:APIServer.stop_api_server",
"kytos/core/api_server.py:APIServer.shutdown_api"
],
"edited_modules": [
... | kytos/kytos | 8c8456626a73ba0112680447b1fcfcabb00a3a37 | Kytos running in background only stop after two pkill
Hi, even though this seems to be similar to #1236 and #1235, I've decided to create this new issue because it just started happening after PR #1231. The problem is: when you start kytos in the background, you have to issue pkill kytos twice before be able to stop th... | diff --git a/kytos/core/api_server.py b/kytos/core/api_server.py
index a18e15e..2682535 100644
--- a/kytos/core/api_server.py
+++ b/kytos/core/api_server.py
@@ -12,7 +12,7 @@ from http import HTTPStatus
from urllib.error import HTTPError, URLError
from urllib.request import urlopen, urlretrieve
-from flask import B... |
kytos__python-openflow-201 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pyof/foundation/basic_types.py:DPID.pack"
],
"edited_modules": [
"pyof/foundation/basic_types.py:DPID"
]
},
"file": "pyof/foundation/basic_types.py"
}
] | kytos/python-openflow | 013e9c24bd4c234f0bf39210686a58af4c586d7d | Fix tests
I ran bisect assigning zeros to default DPID value and it lead to d207690facd4844557fb7d53aebbd5d2fb66a414 (added a new basic type: dpid). | diff --git a/pyof/foundation/basic_types.py b/pyof/foundation/basic_types.py
index 297baa2..a3b5461 100644
--- a/pyof/foundation/basic_types.py
+++ b/pyof/foundation/basic_types.py
@@ -130,10 +130,11 @@ class DPID(GenericType):
self._value = ':'.join(bytes)
def pack(self, value=None):
- buffer = ... |
kytos__python-openflow-225 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pyof/v0x01/common/header.py:Header.__init__"
],
"edited_modules": [
"pyof/v0x01/common/header.py:Header"
]
},
"file": "pyof/v0x01/common/header.py"
}
] | kytos/python-openflow | 7185bc685a1e11d159eb4aba5384b795c373567f | Fix Header's random xid
One single random value is used during all code execution. | diff --git a/pyof/v0x01/common/header.py b/pyof/v0x01/common/header.py
index 1e62b87..c0489e5 100644
--- a/pyof/v0x01/common/header.py
+++ b/pyof/v0x01/common/header.py
@@ -73,7 +73,7 @@ class Header(GenericStruct):
length = UBInt16()
xid = UBInt32()
- def __init__(self, message_type=None, length=None, x... |
kytos__python-openflow-240 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pyof/foundation/network_types.py:GenericTLV.length",
"pyof/foundation/network_types.py:GenericTLV.pack",
"pyof/foundation/network_types.py:GenericTLV.unpack"
],
"edited_modul... | kytos/python-openflow | 558038f25ef5e85cf46dfa395c1c5262919b2850 | Error while migrating to python 3.6
While testing the full project on python 3.6 (running kyco against a mininet instance with 3 hosts and 3 switches, no loop version), the error below were throughed on the kytos console:
> Exception in thread Thread-198:
> Traceback (most recent call last):
> File "/usr/local/l... | diff --git a/docs/.gitignore b/docs/.gitignore
index 6b8dea0..5ce97da 100644
--- a/docs/.gitignore
+++ b/docs/.gitignore
@@ -1,1 +1,3 @@
+_rebuild
+modules.rst
python.inv
diff --git a/pyof/foundation/network_types.py b/pyof/foundation/network_types.py
index a538631..d91847c 100644
--- a/pyof/foundation/network_types.p... |
kytos__python-openflow-343 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pyof/v0x01/common/queue.py:QueuePropHeader.__init__"
],
"edited_modules": [
"pyof/v0x01/common/queue.py:QueuePropHeader",
"pyof/v0x01/common/queue.py:QueuePropMinRate"
... | kytos/python-openflow | e221a33f932eb6aa7ceeb45d6bc8130baac0b7f7 | Attribute with builtin name
In `/v0x04/common/queue.py`, `class QueuePropHeader` has an attribute called `property`, which is a Python builtin name. Is this needed somehow? | diff --git a/pyof/v0x01/common/queue.py b/pyof/v0x01/common/queue.py
index 8bb6fd0..b33d776 100644
--- a/pyof/v0x01/common/queue.py
+++ b/pyof/v0x01/common/queue.py
@@ -49,21 +49,21 @@ class ListOfProperties(FixedTypeList):
class QueuePropHeader(GenericStruct):
"""Describe the header of each queue property."""
... |
kytos__python-openflow-50 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"pyof/v0x01/common/header.py:Header"
]
},
"file": "pyof/v0x01/common/header.py"
},
{
"changes": {
"added_entities": null,
"added_modules": ... | kytos/python-openflow | 9b9c0c3e86c73aaebdcb57bda00feeefbdbcfe09 | Error on Descriptor utilization
The way we are using Descriptors is incurring in a wrong behavior when instantiating two objects of the same class. | diff --git a/pyof/v0x01/common/header.py b/pyof/v0x01/common/header.py
index 7cb2684..2521ebe 100644
--- a/pyof/v0x01/common/header.py
+++ b/pyof/v0x01/common/header.py
@@ -67,7 +67,7 @@ class Header(base.GenericStruct):
:param length: Length of the message, including the header itself
"""
version ... |
kytos__python-openflow-99 | [
{
"changes": {
"added_entities": [
"pyof/v0x01/controller2switch/packet_out.py:PacketOut.validate",
"pyof/v0x01/controller2switch/packet_out.py:PacketOut.is_valid",
"pyof/v0x01/controller2switch/packet_out.py:PacketOut._validate_in_port"
],
"added_modules": null,
... | kytos/python-openflow | 1b4d191de2e51695ab94395d4f0ba93a7f0e98f8 | Check 1.0.1 and 1.0.2 compliance | diff --git a/pyof/v0x01/controller2switch/packet_out.py b/pyof/v0x01/controller2switch/packet_out.py
index 78cb669..e7c9965 100644
--- a/pyof/v0x01/controller2switch/packet_out.py
+++ b/pyof/v0x01/controller2switch/packet_out.py
@@ -7,12 +7,16 @@ uses the OFPT_PACKET_OUT message"""
# Local source tree imports
from ... |
l-johnston__nitdms-12 | [
{
"changes": {
"added_entities": [
"nitdms/waveformdatatype.py:WaveformDT.head",
"nitdms/waveformdatatype.py:WaveformDT.tail"
],
"added_modules": null,
"edited_entities": [
"nitdms/waveformdatatype.py:WaveformDT.__repr__"
],
"edited_modules": [
... | l-johnston/nitdms | a98c8c325af85c66272a1357cc75c9facf964913 | Add head() and tail() functions to WaveformDT. AB#5 | diff --git a/nitdms/waveformdatatype.py b/nitdms/waveformdatatype.py
index 75f246e..7dbc4c1 100644
--- a/nitdms/waveformdatatype.py
+++ b/nitdms/waveformdatatype.py
@@ -46,9 +46,24 @@ class WaveformDT(np.ndarray):
self.dt = getattr(obj, "dt", 1.0)
def __repr__(self):
- repr_str = super(WaveformDT... |
l-vo__photos-picker-49 | [
{
"changes": {
"added_entities": [
"photospicker/uploader/filesystem_uploader.py:FilesystemUploader.__init__"
],
"added_modules": null,
"edited_entities": [
"photospicker/uploader/filesystem_uploader.py:FilesystemUploader.initialize"
],
"edited_modules": [
... | l-vo/photos-picker | 3ed989be337cfcfd97d926cdfad8573fe5db8f14 | FilesystemUploader: check that directory exists and is empty in the constructor
For raising the error before the files scan | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b17ec72..b760c15 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
* Add CHANGELOG.md
* Add SmartPicker
* Take care that photos to retrieve count is not greater than total photos count (at AbstractPicker level)
+* On FilesystemUploader, check that target dire... |
lace__polliwog-127 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"polliwog/plane/plane.py:Plane.sign",
"polliwog/plane/plane.py:Plane.distance"
],
"edited_modules": [
"polliwog/plane/plane.py:Plane"
]
},
"file": "polliwog/plan... | lace/polliwog | 3953122d5f309753bddd7c1df38afe5a877d3ba9 | Remove partition_segment_old
Seems a safe bet that we'd want to remove a function with this name. | diff --git a/polliwog/plane/plane.py b/polliwog/plane/plane.py
index fc35b8b..c115070 100644
--- a/polliwog/plane/plane.py
+++ b/polliwog/plane/plane.py
@@ -141,7 +141,6 @@ class Plane(object):
the plane (away from the normal), and 0 for points on the plane.
"""
- vg.shape.check(locals(), "po... |
lace__polliwog-128 | [
{
"changes": {
"added_entities": [
"polliwog/transform/affine_transform.py:_convert_33_to_44",
"polliwog/transform/affine_transform.py:transform_matrix_for_rotation",
"polliwog/transform/affine_transform.py:transform_matrix_for_translation",
"polliwog/transform/affine_trans... | lace/polliwog | b4399acbe78b92924f98d395135a2e95fd30033a | Clean up matrix functions
- [x] Stop using `matrix` functions from vg (opened lace/vg#95 about removing them)
- [ ] Add `affine_transform`
- [x] Add `apply_affine_transform` (from `vg.matrix.transform`) | diff --git a/polliwog/transform/affine_transform.py b/polliwog/transform/affine_transform.py
index 4c25c0d..feab638 100644
--- a/polliwog/transform/affine_transform.py
+++ b/polliwog/transform/affine_transform.py
@@ -18,3 +18,116 @@ def apply_affine_transform(points, transform_matrix):
transformed_points = np.dele... |
lace__polliwog-146 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "polliwog/line/__init__.py"
},
{
"changes": {
"added_entities": [
"polliwog/line/functions.py:project_point_to_line",
"polliwog/l... | lace/polliwog | 9fee49c8c4e2693d7d0b82bc36205463d9b08094 | Renames
- [ ] Move coplanar_points_are_on_same_side_of_line to line_functions.
- [ ] Rename contains_coplanar_point to tri_contains_coplanar_point
- [ ] ~Rename as_rotation_matrix?~
- [ ] Rename project_to_line to project_point_to_line
- [ ] Rename line_intersect3 to intersect_lines
- [ ] Rename line_intersect2 to... | diff --git a/polliwog/line/__init__.py b/polliwog/line/__init__.py
index fd46546..6c4309a 100644
--- a/polliwog/line/__init__.py
+++ b/polliwog/line/__init__.py
@@ -1,5 +1,5 @@
from . import functions as _functions
from .functions import * # noqa: F401,F403
-from .line_intersect import line_intersect2, line_intersec... |
lace__polliwog-147 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "polliwog/line/__init__.py"
},
{
"changes": {
"added_entities": [
"polliwog/line/functions.py:project_point_to_line",
"polliwog/l... | lace/polliwog | 9fee49c8c4e2693d7d0b82bc36205463d9b08094 | Remove mentions of Lace in the documentation | diff --git a/polliwog/line/__init__.py b/polliwog/line/__init__.py
index fd46546..6c4309a 100644
--- a/polliwog/line/__init__.py
+++ b/polliwog/line/__init__.py
@@ -1,5 +1,5 @@
from . import functions as _functions
from .functions import * # noqa: F401,F403
-from .line_intersect import line_intersect2, line_intersec... |
lace__polliwog-151 | [
{
"changes": {
"added_entities": [
"polliwog/polyline/polyline.py:Polyline.subdivided_by_length"
],
"added_modules": null,
"edited_entities": [
"polliwog/polyline/polyline.py:Polyline.partition_by_length"
],
"edited_modules": [
"polliwog/polyline/polyl... | lace/polliwog | 1c2291f417ea6a563b59c479703779d146f546a8 | Convert `Polyline.partition_by_length()` to work on a copy
This follows the pattern of most of the other mutating functions. | diff --git a/polliwog/polyline/polyline.py b/polliwog/polyline/polyline.py
index 2f79230..a9fe270 100644
--- a/polliwog/polyline/polyline.py
+++ b/polliwog/polyline/polyline.py
@@ -285,15 +285,16 @@ class Polyline(object):
else:
return result
- def partition_by_length(self, max_length, ret_in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.