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
encode__uvicorn-1706
[ { "changes": { "added_entities": [ "uvicorn/protocols/http/h11_impl.py:H11Protocol._get_upgrade", "uvicorn/protocols/http/h11_impl.py:H11Protocol._should_upgrade_to_ws", "uvicorn/protocols/http/h11_impl.py:H11Protocol.handle_websocket_upgrade" ], "added_modules": null, ...
encode/uvicorn
a94781dcd122b9727b85f86fcc60318eed72d223
"Date" header not changing between requests ### Discussed in https://github.com/encode/uvicorn/discussions/1610 <div type='discussions-op-text'> <sup>Originally posted by **arjwilliams** August 22, 2022</sup> I am testing out some cache-control headers in my web app, but the auto-generated "Date" header seems to...
diff --git a/docs/settings.md b/docs/settings.md index c40905f..14b2882 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -67,7 +67,7 @@ Using Uvicorn with watchfiles will enable the following options (which are other * `--loop <str>` - Set the event loop implementation. The uvloop implementation provides grea...
encode__uvicorn-1737
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/config.py:Config.__init__" ], "edited_modules": [ "uvicorn/config.py:Config" ] }, "file": "uvicorn/config.py" }, { "changes": { "added_entities": ...
encode/uvicorn
3243f20c300eaad0c50f2707a5cb3fe80a284249
Handshaking may not be completed yet at `shutdown` in wsproto impl Traceback: ``` LocalProtocolError: Event CloseConnection(code=1012, reason=None) cannot be sent during the handshake File "gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "uvicorn/workers.py", line 57, in init_pro...
diff --git a/setup.cfg b/setup.cfg index 46f4e3b..ac52be5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -82,7 +82,7 @@ plugins = [coverage:report] precision = 2 -fail_under = 97.82 +fail_under = 97.92 show_missing = true skip_covered = true exclude_lines = diff --git a/uvicorn/config.py b/uvicorn/config.py index df9...
encode__uvicorn-1782
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/protocols/http/h11_impl.py:RequestResponseCycle.send" ], "edited_modules": [ "uvicorn/protocols/http/h11_impl.py:RequestResponseCycle" ] }, "file": "uvicorn/pro...
encode/uvicorn
085f67be1d1eeb1546da6522fc4eb17751b62463
Uvicorn assumes that `HTTPResponseStartEvent.headers` is a `List` ### Discussed in https://github.com/encode/uvicorn/discussions/1779 <div type='discussions-op-text'> <sup>Originally posted by **rijenkii** November 27, 2022</sup> According to the spec and asgiref, `HTTPResponseStartEvent.headers` is `Iterable[Tu...
diff --git a/uvicorn/protocols/http/h11_impl.py b/uvicorn/protocols/http/h11_impl.py index 9f6931e..c2764b0 100644 --- a/uvicorn/protocols/http/h11_impl.py +++ b/uvicorn/protocols/http/h11_impl.py @@ -468,10 +468,7 @@ class RequestResponseCycle: self.waiting_for_100_continue = False status_c...
encode__uvicorn-1950
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/config.py:Config.__init__" ], "edited_modules": [ "uvicorn/config.py:Config" ] }, "file": "uvicorn/config.py" }, { "changes": { "added_entities": ...
encode/uvicorn
6dcb6a6b9456c08d502373285e0c2bfd73d9c19e
How do I cancel a streaming response on shutdown? The code below simulates a server sent event with uvicorn 0.9. When run, if the HTTP request is *not* initiated the lifespan startup and shutdown events get called correctly on `^C`. If the HTTP request *is* made the first `^C` will **not stop the responses**. The...
diff --git a/docs/deployment.md b/docs/deployment.md index b65c431..65163b5 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -104,6 +104,9 @@ Options: --timeout-keep-alive INTEGER Close Keep-Alive connections if no new data is received within this timeout. [default: ...
encode__uvicorn-227
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/middleware/message_logger.py:MessageLoggerResponder.__init__", "uvicorn/middleware/message_logger.py:MessageLoggerResponder.__call__" ], "edited_modules": [ "uvicorn/...
encode/uvicorn
21494a0e7b4a063793ec1165c9e94b2c09ead2aa
Error integrating with Channels if 'lifespan' is not specified in router I'm not entirely sure if I should be posting this here or on `channels`. I'm using v0.3.12 which I believe has already introduced the new `lifespan` protocol defined in asgiref. But this causes an error with `channels`' router ```bash Trace...
diff --git a/uvicorn/middleware/message_logger.py b/uvicorn/middleware/message_logger.py index 3ddc9c9..a33736d 100644 --- a/uvicorn/middleware/message_logger.py +++ b/uvicorn/middleware/message_logger.py @@ -36,20 +36,27 @@ class MessageLoggerMiddleware: class MessageLoggerResponder: def __init__(self, scope, ap...
encode__uvicorn-234
[ { "changes": { "added_entities": [ "uvicorn/lifespan.py:Lifespan.wait_shutdown" ], "added_modules": null, "edited_entities": [ "uvicorn/lifespan.py:Lifespan.__init__", "uvicorn/lifespan.py:Lifespan.send", "uvicorn/lifespan.py:Lifespan.wait_cleanup" ]...
encode/uvicorn
c754a22105e4f9399222ec16ac7c5fdaf832784c
Lifespan `cleanup` should become `shutdown` Naming in ASGI spec recently tweaked here. Good one of a contributor to jump on. We’re first want to update Starlette to deal with *either* of the two names.
diff --git a/uvicorn/lifespan.py b/uvicorn/lifespan.py index aa53860..e419beb 100644 --- a/uvicorn/lifespan.py +++ b/uvicorn/lifespan.py @@ -7,12 +7,12 @@ STATE_TRANSITION_ERROR = 'Got invalid state transition on lifespan protocol.' class Lifespan: - def __init__(self, app, logger=None, startup_timeout=10, clea...
encode__uvicorn-271
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/protocols/http/httptools_impl.py:RequestResponseCycle.send" ], "edited_modules": [ "uvicorn/protocols/http/httptools_impl.py:RequestResponseCycle" ] }, "file": ...
encode/uvicorn
f6f173c16887b4fceeec8ebf62808ea7a6111472
Extra chunk when body is empty Using the example from the Readme, but returning an empty body: ```python class App(): def __init__(self, scope): assert scope['type'] == 'http' self.scope = scope async def __call__(self, receive, send): await send({ 'type': 'http...
diff --git a/.travis.yml b/.travis.yml index 60f9f9b..43be62e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ python: - "3.7-dev" install: - - pip install -r requirements.txt + - pip install -U -r requirements.txt script: - scripts/test diff --git a/uvicorn/protocols/http/httptools_impl...
encode__uvicorn-591
[ { "changes": { "added_entities": [ "uvicorn/middleware/proxy_headers.py:ProxyHeadersMiddleware.get_trusted_client_host" ], "added_modules": null, "edited_entities": [ "uvicorn/middleware/proxy_headers.py:ProxyHeadersMiddleware.__init__", "uvicorn/middleware/proxy_...
encode/uvicorn
baff0843389a65dcd9b94f667f95a4b70d28e12f
Proxy Middleware grabs the last IP in `x-forwarded-for`, not the first https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For says the first IP in is a client IP, but ProxyHeadersMiddleware grabs the last IP: https://github.com/encode/uvicorn/blob/9d9f8820a8155e36dcb5e4d4023f470e51aa4e03/uvicorn/mid...
diff --git a/uvicorn/middleware/proxy_headers.py b/uvicorn/middleware/proxy_headers.py index 05f4f70..23901bd 100644 --- a/uvicorn/middleware/proxy_headers.py +++ b/uvicorn/middleware/proxy_headers.py @@ -8,17 +8,28 @@ the connecting client, rather that the connecting proxy. https://developer.mozilla.org/en-US/docs/...
encode__uvicorn-597
[ { "changes": { "added_entities": [ "uvicorn/config.py:Config.asgi_version" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "uvicorn/config.py:Config" ] }, "file": "uvicorn/config.py" }, { "changes": { "added_entitie...
encode/uvicorn
779fcf7547e14a49259063ca05be919453883a60
HTTP Scope missing fields https://asgi.readthedocs.io/en/latest/specs/www.html#connection-scope >The connection scope contains: ... asgi["version"] (Unicode string) – Version of the ASGI spec. asgi["spec_version"] (Unicode string) – Version of the ASGI HTTP spec this server understands; one of "2.0" o...
diff --git a/uvicorn/config.py b/uvicorn/config.py index 331f738..c35b567 100644 --- a/uvicorn/config.py +++ b/uvicorn/config.py @@ -200,6 +200,10 @@ class Config: else: self.forwarded_allow_ips = forwarded_allow_ips + @property + def asgi_version(self) -> str: + return {"asgi2": "2...
encode__uvicorn-646
[ { "changes": { "added_entities": [ "uvicorn/supervisors/statreload.py:StatReload.iter_files" ], "added_modules": null, "edited_entities": [ "uvicorn/supervisors/statreload.py:StatReload.should_restart", "uvicorn/supervisors/statreload.py:StatReload.iter_py_files" ...
encode/uvicorn
7e55554a9f32a127ea3511fa2f55d1b47b66029d
Add support for --reload to monitor additional file types. The "reload" process currently only monitors ".py" files in various directories. I have a changes that will pass in a list of additional "reload_suffixes" that the process will monitor. This allows the service to monitor data files in addition to code files. ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 15ffc8d..67020e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased * Use `watchgod`, if installed, for watching code changes. +* Reload application when any files in watched directories change, not just `.py` files. ## 0.11.3 diff --git a/...
encode__uvicorn-721
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/protocols/http/h11_impl.py:RequestResponseCycle.send" ], "edited_modules": [ "uvicorn/protocols/http/h11_impl.py:RequestResponseCycle" ] }, "file": "uvicorn/pro...
encode/uvicorn
320fd6d975d47257aecde808d602c9a57fb74cba
connection: close header not returned in response Hello, the [W3 standard](https://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html) seems to say that a server which receives a request with a `connection: close` header should also return this header to the client. Specifically I'm talking about the first line in `8.1.2.1...
diff --git a/uvicorn/protocols/http/h11_impl.py b/uvicorn/protocols/http/h11_impl.py index 5d2bad4..90850da 100644 --- a/uvicorn/protocols/http/h11_impl.py +++ b/uvicorn/protocols/http/h11_impl.py @@ -25,6 +25,8 @@ STATUS_PHRASES = { status_code: _get_status_phrase(status_code) for status_code in range(100, 600) ...
encode__uvicorn-820
[ { "changes": { "added_entities": [ "uvicorn/config.py:is_dir", "uvicorn/config.py:resolve_reload_patterns" ], "added_modules": [ "uvicorn/config.py:is_dir", "uvicorn/config.py:resolve_reload_patterns" ], "edited_entities": [ "uvicorn/config.p...
encode/uvicorn
c87c7834b77583efd5963dfddb08681206701d33
Support --ignore or --reload-file option ### Is your feature related to a problem? Please describe. My application's file structure is as follows: ``` cloud-app git:(dev) ✗ tree -L 1 . ├── Dockerfile ├── README.md ├── frontend ├── gatekeeper ├── iam ├── main.py ├── manage.py ├── requirements.txt ├── te...
diff --git a/docs/deployment.md b/docs/deployment.md index 819a932..ad8c099 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -37,6 +37,13 @@ Options: --reload Enable auto-reload. --reload-dir PATH Set reload directories explicitly, instead ...
encode__uvicorn-943
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "uvicorn/main.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/protocols/ht...
encode/uvicorn
320fd6d975d47257aecde808d602c9a57fb74cba
Docs: workers = 1 when WEB_CONCURRENCY is not set Hello, thanks for this great ASGI server 🙂 I have an application that must use only one worker (it's not thread-safe), and so I wanted to confirm that, by default, uvicorn only uses one worker. But I had to read the source code https://github.com/encode/uvicorn/...
diff --git a/docs/deployment.md b/docs/deployment.md index cec0d8e..8aabe1b 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -45,7 +45,7 @@ Options: --workers INTEGER Number of worker processes. Defaults to the $WEB_CONCURRENCY environment variable if - ...
encode__uvicorn-957
[ { "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": null, "edited_modules": null ...
encode/uvicorn
bf7dac3112bc6ce59561703c80a619a287d50fa6
Allow specifying reason during websocket close ### Checklist <!-- Please make sure you check all these items before submitting your feature request. --> - [x] There are no similar issues or pull requests for this yet. - [x] I discussed this idea on the [community chat](https://gitter.im/encode/community) and fee...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b5f5ca..2328484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 0.13.4 - 2021-02-20 + +### Fixed + +- Fixed wsgi middleware PATH_INFO encoding (#962) 2/20/21 +- Fixed uvloop dependency (#952) 2/10/21 then (#959) 2/20/21 +- Relax watchgod...
encode__uvicorn-962
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "uvicorn/middleware/wsgi.py:build_environ" ], "edited_modules": [ "uvicorn/middleware/wsgi.py:build_environ" ] }, "file": "uvicorn/middleware/wsgi.py" } ]
encode/uvicorn
9d51e1cfa68ee6e4ee3fb8a23b8599bb44c3985a
WSGI middleware error in non-latin1 path ### Checklist <!-- Please make sure you check all these items before submitting your bug report. --> - [x] The bug is reproducible against the latest release and/or `master`. - [x] There are no similar issues or pull requests to fix it yet. ### Describe the bug <!--...
diff --git a/uvicorn/middleware/wsgi.py b/uvicorn/middleware/wsgi.py index e5346dd..fca747e 100644 --- a/uvicorn/middleware/wsgi.py +++ b/uvicorn/middleware/wsgi.py @@ -11,7 +11,7 @@ def build_environ(scope, message, body): environ = { "REQUEST_METHOD": scope["method"], "SCRIPT_NAME": "", - ...
enowars__enochecker-79
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/enochecker/enochecker.py:BaseChecker._run_method", "src/enochecker/enochecker.py:BaseChecker.run" ], "edited_modules": [ "src/enochecker/enochecker.py:BaseChecker" ...
enowars/enochecker
e1ddd2c15096d22dd76321086ec7fd8687529d54
Do not return OK when previous putflag/putnoise wasn't successful See https://github.com/enowars/enochecker/blob/master/src/enochecker/enochecker.py#L416
diff --git a/src/enochecker/enochecker.py b/src/enochecker/enochecker.py index 831cb5b..6ddc1ef 100644 --- a/src/enochecker/enochecker.py +++ b/src/enochecker/enochecker.py @@ -395,9 +395,6 @@ class BaseChecker(metaclass=_CheckerMeta): 1, ) - # def __format_internal_db_entry(name): - # ...
enowars__enochecker-80
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/enochecker/enochecker.py:BaseChecker.run" ], "edited_modules": [ "src/enochecker/enochecker.py:BaseChecker" ] }, "file": "src/enochecker/enochecker.py" } ]
enowars/enochecker
e1ddd2c15096d22dd76321086ec7fd8687529d54
Show warning when returning error status without accompanying message As mentioned in https://github.com/enowars/enochecker/pull/55 while returning Result.MUMBLE or Result.OFFLINE is supported it does not include details which would be necessary for e.g. https://github.com/enowars/enowars4-scoreboard/issues/2 The pr...
diff --git a/src/enochecker/enochecker.py b/src/enochecker/enochecker.py index 831cb5b..0e0e4ca 100644 --- a/src/enochecker/enochecker.py +++ b/src/enochecker/enochecker.py @@ -455,6 +455,11 @@ class BaseChecker(metaclass=_CheckerMeta): # Better wrap this, in case somebody returns raw ints (?) ...
enowars__enochecker-82
[ { "changes": { "added_entities": [ "src/enochecker/enochecker.py:BaseChecker.current_round" ], "added_modules": null, "edited_entities": [ "src/enochecker/enochecker.py:BaseChecker.__init__" ], "edited_modules": [ "src/enochecker/enochecker.py:BaseChec...
enowars/enochecker
575aecd3d737f50380bd14b220f02248c03ecd44
Deprecate self.round or self.current_round I'm not sure which one to keep, but I would replace the other one with: ``` @property def current_round(self): raise DeprecationWarning(...) return self.round ```
diff --git a/src/enochecker/enochecker.py b/src/enochecker/enochecker.py index fc8dbbc..976688e 100644 --- a/src/enochecker/enochecker.py +++ b/src/enochecker/enochecker.py @@ -287,7 +287,6 @@ class BaseChecker(metaclass=_CheckerMeta): ) round_id = round_id or round self.round: Option...
enthought__okonomiyaki-119
[ { "changes": { "added_entities": [ "okonomiyaki/platforms/epd_platform.py:EPDPlatform.__str__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "okonomiyaki/platforms/epd_platform.py:EPDPlatform" ] }, "file": "okonomiyaki/platform...
enthought/okonomiyaki
9830662935a3432c0619f60bf72dd1f312f0f2a8
Implement str(epd_platform) Should look as follows: ```python >>> platform = EPDPlatform.from_epd_string("rh5-64") >>> str(platform) rh5_x86_64 ```
diff --git a/CHANGELOG b/CHANGELOG index da8cdd4..74c7922 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,8 @@ Improvements: * SemanticVersion class added * MetadataVersion class added to easily manipulate metadata versions. * runtime_metadata_factory function to parse and validate runtime packages. + * __s...
enthought__okonomiyaki-182
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/runtimes/runtime_metadata.py:runtime_metadata_factory" ], "edited_modules": [ "okonomiyaki/runtimes/runtime_metadata.py:runtime_metadata_factory" ] }, "file...
enthought/okonomiyaki
38b9e3ecc18d2041f43a7681d05ed860b76b8d01
MetadataVersion object should not be repr()'d in exception message ```python 'cpython-2.7.9+1-rh5_x86_64-gnu.runtime': No support for language 'whitespace' ('MetadataVersion(1, 0)') ``` https://github.com/enthought/okonomiyaki/blob/master/okonomiyaki/runtimes/runtime_metadata.py#L212
diff --git a/okonomiyaki/runtimes/runtime_metadata.py b/okonomiyaki/runtimes/runtime_metadata.py index ed9d415..d103630 100644 --- a/okonomiyaki/runtimes/runtime_metadata.py +++ b/okonomiyaki/runtimes/runtime_metadata.py @@ -209,7 +209,7 @@ def runtime_metadata_factory(path_or_file): key = _factory_key_from_metada...
enthought__okonomiyaki-183
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/errors.py:InvalidMetadataField.__init__" ], "edited_modules": [ "okonomiyaki/errors.py:InvalidMetadataField" ] }, "file": "okonomiyaki/errors.py" }, { ...
enthought/okonomiyaki
38b9e3ecc18d2041f43a7681d05ed860b76b8d01
Wrong exception raised for invalid python attribute in egg metadata The exception raised should be `InvalidMetadataField`, as used elsewhere in the module. ``` Traceback (most recent call last): File "okonomiyaki/file_formats/_egg_info.py", line 733, in _from_egg spec_depend = LegacySpecDepend._from_egg(pat...
diff --git a/okonomiyaki/errors.py b/okonomiyaki/errors.py index be3e7d6..fd003c4 100644 --- a/okonomiyaki/errors.py +++ b/okonomiyaki/errors.py @@ -47,8 +47,11 @@ class InvalidMetadataField(InvalidMetadata): def __init__(self, name, value, *a, **kw): self.name = name self.value = value - ...
enthought__okonomiyaki-217
[ { "changes": { "added_entities": [ "okonomiyaki/file_formats/_egg_info.py:EggMetadata.from_json_dict", "okonomiyaki/file_formats/_egg_info.py:EggMetadata.to_json_dict" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "okonomiyaki/file_f...
enthought/okonomiyaki
a23c1b4909741d649ebd22f30dc1268712e63c0f
Move EggMetadata json serialization from edm See enthought/edm#719
diff --git a/okonomiyaki/file_formats/_egg_info.py b/okonomiyaki/file_formats/_egg_info.py index ddc2e2f..afc373c 100644 --- a/okonomiyaki/file_formats/_egg_info.py +++ b/okonomiyaki/file_formats/_egg_info.py @@ -663,6 +663,18 @@ def _normalized_info_from_string(spec_depend_string, epd_platform=None, return data, ...
enthought__okonomiyaki-220
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "okonomiyaki/platforms/__init__.py" }, { "changes": { "added_entities": [ "okonomiyaki/platforms/epd_platform.py:EPDPlatform.from_string"...
enthought/okonomiyaki
5cbd87f7c349f999ac8d53fec18e44f5656bf5eb
expose *Kind enum to `okonomiyaki.platforms`
diff --git a/okonomiyaki/platforms/__init__.py b/okonomiyaki/platforms/__init__.py index c4d0a73..bd7d12b 100644 --- a/okonomiyaki/platforms/__init__.py +++ b/okonomiyaki/platforms/__init__.py @@ -1,7 +1,7 @@ # flake8: noqa from .abi import PlatformABI, default_abi from .epd_platform import X86, X86_64, EPDPlatform,...
enthought__okonomiyaki-229
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/platforms/abi.py:_default_cpython_abi" ], "edited_modules": [ "okonomiyaki/platforms/abi.py:_default_cpython_abi" ] }, "file": "okonomiyaki/platforms/abi.py...
enthought/okonomiyaki
ecbef5d20e17783436532cce856d201df280eb09
Update _default_cpython_abi() to support Python 3.6 In okonomiyaki/platforms/abi.py#L47, we do not specify a default platform abi for the upcoming Python 3.6. This is needed to set the cp36 tag as indexable in https://github.com/enthought/brood/issues/1189. Otherwise, the following error is raised: ``` okonomiyaki....
diff --git a/okonomiyaki/platforms/abi.py b/okonomiyaki/platforms/abi.py index a69af1f..a3947aa 100644 --- a/okonomiyaki/platforms/abi.py +++ b/okonomiyaki/platforms/abi.py @@ -44,7 +44,7 @@ def _default_cpython_abi(platform, implementation_version): abi = u"msvc2008" elif implementation_v...
enthought__okonomiyaki-34
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/platforms/epd_platform.py:_guess_architecture" ], "edited_modules": [ "okonomiyaki/platforms/epd_platform.py:_guess_architecture" ] }, "file": "okonomiyaki/...
enthought/okonomiyaki
d32923ad74059883e31aaed8c12d3cd5e0288acd
Fix platform guessing on 64 bits processes on 32 bits kernel See #31
diff --git a/okonomiyaki/platforms/epd_platform.py b/okonomiyaki/platforms/epd_platform.py index 441712a..d32d37a 100644 --- a/okonomiyaki/platforms/epd_platform.py +++ b/okonomiyaki/platforms/epd_platform.py @@ -172,20 +172,16 @@ def _guess_architecture(): """ Returns the architecture of the running python. ...
enthought__okonomiyaki-358
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/runtimes/runtime_info.py:IRuntimeInfoV1._from_metadata_impl", "okonomiyaki/runtimes/runtime_info.py:PythonRuntimeInfoV1._from_metadata_impl", "okonomiyaki/runtimes/runtime_in...
enthought/okonomiyaki
5a755c35c254ec8a8b93d591b010d7255b957156
Problem when setting up environment with User name beginning with $ A problem arises from the following sequence when setting up a runtime environment where the user name begins with $: https://github.com/enthought/okonomiyaki/blob/master/okonomiyaki/runtimes/runtime_info.py#L111 https://github.com/enthought/okon...
diff --git a/okonomiyaki/runtimes/runtime_info.py b/okonomiyaki/runtimes/runtime_info.py index 5b20cdf..eb9a8e5 100644 --- a/okonomiyaki/runtimes/runtime_info.py +++ b/okonomiyaki/runtimes/runtime_info.py @@ -110,13 +110,16 @@ class IRuntimeInfoV1(IRuntimeInfo): variables = _compute_variables(metadata, prefi...
enthought__okonomiyaki-418
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/file_formats/legacy.py:_guess_abi_tag" ], "edited_modules": [ "okonomiyaki/file_formats/legacy.py:_guess_abi_tag" ] }, "file": "okonomiyaki/file_formats/leg...
enthought/okonomiyaki
5cc3d7214b5db0632646c9ff34aca0b404a3ec27
When repackaging setuptools eggs for Python 3.8 the abi tag is wrong The abi tag of repackaged setuptools eggs for Python 3.8 is wrong. The enthought metadata of the repackaged egg have abi tag `cp38m` but Python 3.8 has removed the `m` indication.
diff --git a/okonomiyaki/file_formats/legacy.py b/okonomiyaki/file_formats/legacy.py index e88b5f6..bdbc47f 100644 --- a/okonomiyaki/file_formats/legacy.py +++ b/okonomiyaki/file_formats/legacy.py @@ -5,7 +5,7 @@ import re from ..errors import InvalidMetadataField from ..platforms import PythonImplementation, defau...
enthought__okonomiyaki-436
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/versions/pep440.py:PEP440Version.__repr__" ], "edited_modules": [ "okonomiyaki/versions/pep440.py:PEP440Version" ] }, "file": "okonomiyaki/versions/pep440.p...
enthought/okonomiyaki
9048734fbe84f1f42c9858bca207c554fd02091b
RuntimeVersion does not offer a repr Simple objects like RuntimeVersion should offer a repr to help debuging
diff --git a/okonomiyaki/versions/pep440.py b/okonomiyaki/versions/pep440.py index 77f437a..8481b2c 100644 --- a/okonomiyaki/versions/pep440.py +++ b/okonomiyaki/versions/pep440.py @@ -190,7 +190,7 @@ class PEP440Version(object): return self._parts > other._parts def __repr__(self): - return "{0}...
enthought__okonomiyaki-438
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/platforms/abi.py:_default_cpython_abi" ], "edited_modules": [ "okonomiyaki/platforms/abi.py:_default_cpython_abi" ] }, "file": "okonomiyaki/platforms/abi.py...
enthought/okonomiyaki
4ab20a6488e47053e3a533e1e05da1888ab992dd
Print default cpython `RuntimeVersion` as `str` https://github.com/enthought/okonomiyaki/blob/51b8b4fa8d17255e13c097402691726545cf5b4c/okonomiyaki/platforms/abi.py#L28-L32 When you get this error message, the raw object ID is printed: ``` Traceback (most recent call last): ... File "okonomiyaki\platforms\abi...
diff --git a/okonomiyaki/platforms/abi.py b/okonomiyaki/platforms/abi.py index 3b6c9f4..03941b5 100644 --- a/okonomiyaki/platforms/abi.py +++ b/okonomiyaki/platforms/abi.py @@ -27,9 +27,8 @@ class PlatformABI(object): def _default_cpython_abi(platform, implementation_version): msg = ( - "Unsupported plat...
enthought__okonomiyaki-472
[ { "changes": { "added_entities": [ "okonomiyaki/platforms/_platform.py:Platform.from_dict" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "okonomiyaki/platforms/_platform.py:Platform" ] }, "file": "okonomiyaki/platforms/_platfor...
enthought/okonomiyaki
46fbff1efdf5e6daea887e7fcc2faa9aff1c5a36
Make it easier to create Platform instance from a json dictionary of values. We make it easier to create a new Platform instance from a json dictionary At the moment the only way to perform the operation is ``` Platform( os_kind=OSKind.__members__[data['os_kind']], family_kind=FamilyKind...
diff --git a/okonomiyaki/platforms/_platform.py b/okonomiyaki/platforms/_platform.py index f5f6e55..21a12ac 100644 --- a/okonomiyaki/platforms/_platform.py +++ b/okonomiyaki/platforms/_platform.py @@ -75,9 +75,10 @@ class Platform(object): machine = attr(validator=instance_of(Arch)) """ - The machine. Th...
enthought__okonomiyaki-91
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "okonomiyaki/platforms/epd_platform.py:EPDPlatform._from_spec_depend_data" ], "edited_modules": [ "okonomiyaki/platforms/epd_platform.py:EPDPlatform" ] }, "file": "okono...
enthought/okonomiyaki
231ef105738438f69c19c1805d9df1e410b9630a
Okonomiyaki fails to parse existing RedHat3-built eggs ```python metadata = file_formats.EggMetadata.from_egg(path) File "okonomiyaki/file_formats/_egg_info.py", line 627, in from_egg spec_depend = LegacySpecDepend.from_egg(path_or_file) File "okonomiyaki/file_formats/_egg_info.py", line 387, in from_eg...
diff --git a/CHANGELOG b/CHANGELOG index 5e8f7ce..b21e68e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,8 @@ Improvements: * EnpkgVersion.from_string now handles versions of the form `1.3.0`, with the build number being implicitly 0. + * EggMetadata.from_egg now handles eggs built for RedHat Enterprise +...
enthought__traits-futures-125
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "traits_futures/traits_executor.py:TraitsExecutor.__init__" ], "edited_modules": [ "traits_futures/traits_executor.py:TraitsExecutor" ] }, "file": "traits_futures/traits...
enthought/traits-futures
90be7ad24df65405877602d35eb2c7e870457f6e
Default number of workers in the `TraitsExecutor` should be configurable We have a hard-coded `max_workers=4` where the `TraitsExecutor` creates its underlying `concurrent.futures.ThreadPoolExecutor`. That's wrong! At the very least, that `4` should be a module-level constant, but it would be better to provide a way...
diff --git a/traits_futures/traits_executor.py b/traits_futures/traits_executor.py index 2cdb02d..04d3fd0 100644 --- a/traits_futures/traits_executor.py +++ b/traits_futures/traits_executor.py @@ -46,6 +46,20 @@ def _background_job_wrapper(background_job, sender): class TraitsExecutor(HasStrictTraits): """ E...
enthought__traits-futures-187
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "traits_futures/traits_executor.py:TraitsExecutor.__message_router_default", "traits_futures/traits_executor.py:TraitsExecutor._stop" ], "edited_modules": [ "traits_futures/tr...
enthought/traits-futures
344fdac05e79dfcea0302a49dcc38177bd7c0fd1
stop method creates message router if it doesn't already exist The message router for the `TraitsExecutor` is created on first use. If no jobs are submitted, that first use is at executor `stop` time: the message router is instantiated only to call its `disconnect` method. It would be better to rearrange the logic so t...
diff --git a/traits_futures/traits_executor.py b/traits_futures/traits_executor.py index 4ca4183..43a6755 100644 --- a/traits_futures/traits_executor.py +++ b/traits_futures/traits_executor.py @@ -289,6 +289,9 @@ class TraitsExecutor(HasStrictTraits): #: and foreground futures. _message_router = Any() + ...
enthought__traits-futures-203
[ { "changes": { "added_entities": [ "traits_futures/base_future.py:BaseFuture._dispatch_message" ], "added_modules": null, "edited_entities": [ "traits_futures/base_future.py:BaseFuture.result", "traits_futures/base_future.py:BaseFuture.exception", "traits_...
enthought/traits-futures
ff10fdb789681c7c843fdf267d90db2b2ac42112
Check test coverage 0.1.0 had 100% test coverage, but a lot of code has moved around since then. We should check the coverage before the 0.2.0 release (partly just to check for any pieces of code that became unused but weren't deleted).
diff --git a/docs/source/guide/advanced.rst b/docs/source/guide/advanced.rst index c6f9405..cbea979 100644 --- a/docs/source/guide/advanced.rst +++ b/docs/source/guide/advanced.rst @@ -163,7 +163,7 @@ background task type: substitutions .. |BaseFuture| replace:: :class:`~.BaseFuture` -.. |dispatch_message| repla...
enthought__traits-futures-255
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "traits_futures/message_router.py:MessageRouter.connect", "traits_futures/message_router.py:MessageRouter.disconnect", "traits_futures/message_router.py:MessageRouter.__pingee_default" ...
enthought/traits-futures
60efc6ca839fbcb235ebc886d64fa0ce4ce19fc5
Call Unbind in the wxPython Pingee implementation The wxPython `Pingee` implementation introduced in #246 has a `Bind` call without a matching `Unbind` call. While we don't have any evidence that this actually causes any problems, in general we probably want to provide an API for the `Pingee` to undo anything it's had ...
diff --git a/traits_futures/message_router.py b/traits_futures/message_router.py index 9ca7d3f..b2e4db4 100644 --- a/traits_futures/message_router.py +++ b/traits_futures/message_router.py @@ -69,13 +69,15 @@ class MessageRouter(HasStrictTraits): """ Prepare router for routing. """ - p...
enthought__traits-futures-391
[ { "changes": { "added_entities": [ "traits_futures/exception_handling.py:_qualified_type_name" ], "added_modules": [ "traits_futures/exception_handling.py:_qualified_type_name" ], "edited_entities": [ "traits_futures/exception_handling.py:marshal_exception" ...
enthought/traits-futures
28cb7e9bbb1f174202b9b706b24eb5c4edd18a73
Consider using `type.__name__` instead of `str(type)` in `marshal_exception()` Consider using `type.__name__` instead of `str(type)` in `marshal_exception()` for better use of that string. In my opinion, `'ZeroDivisionError'` is more useful than `"<class 'ZeroDivisionError'>"`. https://github.com/enthought/traits...
diff --git a/traits_futures/exception_handling.py b/traits_futures/exception_handling.py index c382978..1165b38 100644 --- a/traits_futures/exception_handling.py +++ b/traits_futures/exception_handling.py @@ -14,6 +14,34 @@ Support for transferring exception information from a background task. import traceback +de...
enthought__traits-futures-492
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "docs/source/guide/examples/headless.py:future_wrapper" ], "edited_modules": [ "docs/source/guide/examples/headless.py:future_wrapper" ] }, "file": "docs/source/guide/ex...
enthought/traits-futures
b4a837bbb02d3ed80b4c5c12a61983084021620d
Allow event_loop to be specified when creating AsyncioContext Currently the `AsyncioContext` uses `asyncio.get_event_loop` to get the event loop to use. Instead, it should be possible to pass in an event loop (and use `asyncio.get_event_loop` as a fallback if no event loop is specified). This would also allow us to ...
diff --git a/docs/source/changes.rst b/docs/source/changes.rst index 674089b..4480ebc 100644 --- a/docs/source/changes.rst +++ b/docs/source/changes.rst @@ -20,6 +20,8 @@ Features * Support Qt6-based toolkits PyQt6 and PySide6. (This is dependent on corresponding support in Pyface.) (#488) +* Allow an ``asyncio``...
eonu__sequentia-187
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/sequentia/classifiers/hmm/hmm_classifier.py:HMMClassifier._chunk_predict" ], "edited_modules": [ "lib/sequentia/classifiers/hmm/hmm_classifier.py:HMMClassifier" ] }, ...
eonu/sequentia
f8efde5155e1b90e56edafb4a040b59f19f2f127
KNN classifier labels Hi, Thank you for the great documentation and scripts. I think there is something missing in the method "_find_nearest" in the class "KNNClassifier". I will try to illustrate it with an example, let's assume the labels for the closest neighbors, sorted by closeness is nearest_label = [1 0 0 0 ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 86a8835..6cf6340 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,15 @@ ## [0.12.1](https://github.com/eonu/sequentia/releases/tag/v0.12.1) +> ⚠️: `KNNClassifier` has a major bug in this version resulting in inaccurate predictions (see [#186](https://github.com/...
eonu__sequentia-251
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sequentia/models/knn/base.py:KNNMixin._dtwi" ], "edited_modules": [ "sequentia/models/knn/base.py:KNNMixin" ] }, "file": "sequentia/models/knn/base.py" } ]
eonu/sequentia
506228868378c767f5b67d208fa4c2dc72c8b52d
Fix independent DTW ### Has this already been reported? - [X] This is a new bug! ### Expected behaviour Below should be calling `self._dtw1d`. https://github.com/eonu/sequentia/blob/506228868378c767f5b67d208fa4c2dc72c8b52d/sequentia/models/knn/base.py#L209 Add a unit test. ### Observed behaviour Calling `sel...
diff --git a/sequentia/models/knn/base.py b/sequentia/models/knn/base.py index f60687c..d2d91e9 100644 --- a/sequentia/models/knn/base.py +++ b/sequentia/models/knn/base.py @@ -206,7 +206,7 @@ class KNNMixin: def dtw(a: FloatArray, b: FloatArray) -> float: """Windowed DTW wrapper function.""" - ...
epochblue__nanogen-11
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nanogen/cli.py:init", "nanogen/cli.py:clean", "nanogen/cli.py:build", "nanogen/cli.py:new", "nanogen/cli.py:draft", "nanogen/cli.py:preview" ], "edite...
epochblue/nanogen
dfa6393e9c03290146be9d9e0676a40f84e517a5
Improve `preview` command The `preview` command currently only serves up the `_site` directory, which is created by the `build` command. This is OK, but it doesn't allow for previewing draft posts. The `preview` command should instead: 1. Collect and generate all available posts 2. Collect and generate all availabl...
diff --git a/.gitignore b/.gitignore index ae20bd2..7133977 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ dist # nanogen files example/_site +example/_preview nanogen.log diff --git a/nanogen/cli.py b/nanogen/cli.py index b78f549..1206f7f 100644 --- a/nanogen/cli.py +++ b/nanogen/cli.py @@ -7,9 +7,6 @...
epochblue__nanogen-5
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nanogen/cli.py:new", "nanogen/cli.py:draft" ], "edited_modules": [ "nanogen/cli.py:new", "nanogen/cli.py:draft" ] }, "file": "nanogen/cli.py" }, { ...
epochblue/nanogen
263ca7f785530adfafc3ce5afa496b6c3f465816
Add tests `nanogen` needs some manner of tests to ensure correctness, but right now it has zero. That's just not OK, y'all.
diff --git a/.gitignore b/.gitignore index 119f9d6..ae20bd2 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ *.egg-info build dist +.pytest_cache # nanogen files example/_site diff --git a/nanogen/cli.py b/nanogen/cli.py index b8cac8f..b78f549 100644 --- a/nanogen/cli.py +++ b/nanogen/cli.py @@ -7,7 +7...
epogrebnyak__weo-reader-12
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "weo/dataframe.py:read_csv", "weo/dataframe.py:accept_year", "weo/dataframe.py:WEO.country" ], "edited_modules": [ "weo/dataframe.py:read_csv", "weo/dataframe....
epogrebnyak/weo-reader
dfe8fa0b55adea01c523a08e414b333098d3fb53
doesn't work for 2020-October database weo package doesn't seem to work for 2020-October database. running this code: ``` from weo import download from weo import WEO download("2020-Oct", path='weo.csv', overwrite=True) w = WEO("weo.csv") ``` gives the following error: -----------------------------------...
diff --git a/weo/dataframe.py b/weo/dataframe.py index 2715367..5fed1c7 100644 --- a/weo/dataframe.py +++ b/weo/dataframe.py @@ -29,8 +29,11 @@ def convert(x): return np.nan -def read_csv(filename): +def read_csv(filename): # October 2020 and later files use UTF-16 LE encoding df = pd.read_csv(filena...
epsy__clize-102
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "clize/runner.py:Clize.__init__", "clize/runner.py:Clize._key", "clize/runner.py:Clize.signature", "clize/runner.py:Clize._process_alt" ], "edited_modules": [ ...
epsy/clize
162f84967bde7aaccb80d96472cec6e61331be71
Errors when using dictionnary to specify alternate commands Hi, Thanks for this project.... I am reading examples from documentation and get problem/error trying to use dictionnary as alternate commands list. Following is the code (mainly copied from documentation) and the errors i get. What i am doing wr...
diff --git a/clize/runner.py b/clize/runner.py index ccfcc9c..36966b2 100644 --- a/clize/runner.py +++ b/clize/runner.py @@ -78,7 +78,7 @@ class Clize(object): update_wrapper(self, fn) self.func = fn self.owner = owner - self.alt = util.maybe_iter(alt) + self.alt = util.dict_fro...
equinor__webviz-config-562
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "webviz_config/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webviz_con...
equinor/webviz-config
3282d6686e91180b996738dcb9a618306d82f9bc
Expose instance of `WebvizRunMode` during build and runtime Plugins may have code in their` __init__` method which isn't required to run when building portables. E.g. if their are methods called during `__init__` which are also included in `add_webvizstore`, the code will be executed twice during portable build. For...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b7df40..fddd0af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] - YYYY-MM-DD +### Changed +- [#562](https://github.com/equinor/webviz-config/pull/562) - Adde...
eribean__girth-82
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "girth/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "girth/jml_methods....
eribean/girth
31dd908f0b87db25defdfd9a47dcbdb772990376
Polytomous Missing Values Handling Allow missing values in polytomous datasets for parameter estimation.
diff --git a/.circleci/config.yml b/.circleci/config.yml index 6179386..783e86b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ orbs: jobs: build-and-test: docker: - - image: circleci/python:3.7 + - image: circleci/python:3.8 steps: - checkout - restore_cac...
eribean__girth-84
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "girth/utils.py:trim_response_set_and_counts" ], "edited_modules": [ "girth/utils.py:trim_response_set_and_counts" ] }, "file": "girth/utils.py" } ]
eribean/girth
194a4cb0122c97247fefa6a6fc7341776bfd56f5
Dichotomous JML issues While working on #30, noticed Joint Maximum Likelihood had large errors, need to investigate and fix.
diff --git a/girth/utils.py b/girth/utils.py index 7cb94c6..b981914 100644 --- a/girth/utils.py +++ b/girth/utils.py @@ -192,8 +192,11 @@ def trim_response_set_and_counts(response_sets, counts): response_set: updated response set with removal of undesired response patterns counts: updated counts to ac...
erikrose__parsimonious-113
[ { "changes": { "added_entities": [ "parsimonious/expressions.py:Expression.__hash__", "parsimonious/expressions.py:Expression.__eq__", "parsimonious/expressions.py:Expression.__ne__", "parsimonious/expressions.py:Compound.__hash__", "parsimonious/expressions.py:Comp...
erikrose/parsimonious
30b94f1be71a7be640f3f4285a34cc495e18b87a
Unnamed nodes should make up useful names for themselves When you print a node, you get something like this: ``` <Node called "char_range" matching "c-a"> <Node called "class_char" matching "c"> <RegexNode matching "c"> <Node matching "-"> <Node called "class_char" matching "a"> <RegexNode ...
diff --git a/parsimonious/expressions.py b/parsimonious/expressions.py index 5e2d2b9..dda8fd9 100644 --- a/parsimonious/expressions.py +++ b/parsimonious/expressions.py @@ -78,7 +78,7 @@ def expression(callable, rule_name, grammar): else: # Node or None return result - ...
erikrose__parsimonious-202
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "parsimonious/grammar.py:RuleVisitor.__init__", "parsimonious/grammar.py:RuleVisitor.visit_spaceless_literal" ], "edited_modules": [ "parsimonious/grammar.py:RuleVisitor" ...
erikrose/parsimonious
e98dd3342c1405c5021b0a7169e25f16b294f884
incorrect precedence for modifiers of string literals The precedence of literal modifiers like `r"string"` is wrong. `r` gets parsed as a rule reference, and the string literal is interpreted as-is. I discovered this while trying to add support for binary grammars. I hope to fix this as part of that project, but w...
diff --git a/README.rst b/README.rst index b27ecfd..c0ba2ae 100644 --- a/README.rst +++ b/README.rst @@ -236,6 +236,14 @@ Syntax Reference conventions for "raw" and Unicode strings help support fiddly characters. +``b"some literal"`` A bytes literal. Using bytes l...
erikrose__parsimonious-250
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "parsimonious/grammar.py:BootstrappingGrammar._expressions_from_rules", "parsimonious/grammar.py:RuleVisitor.visit_ored", "parsimonious/grammar.py:RuleVisitor.visit_or_term" ], ...
erikrose/parsimonious
0d3f5f93c98ae55707f0958366900275d1ce094f
IncompleteParseError I'm getting an IncompleteParseError creating a Grammar object on a very simple grammar that seems valid to me: ``` IncompleteParseError Rule 'rules' matched in its entirety, but it didn't consume all the text. The non-matching portion of the text begins with '/ "5" ' (line 2, column 21). ...
diff --git a/README.rst b/README.rst index ee2d3f7..4d98805 100644 --- a/README.rst +++ b/README.rst @@ -445,7 +445,7 @@ Niceties Version History =============== (Next release) - * ... + * Fix bug #238: correctly handle `/` expressions with multiple terms in a row. (lucaswiman) 0.10.0 * Fix infinite recursio...
erikrose__parsimonious-98
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "parsimonious/nodes.py:Node.__eq__" ], "edited_modules": [ "parsimonious/nodes.py:Node" ] }, "file": "parsimonious/nodes.py" } ]
erikrose/parsimonious
538aac8454425e72f059fb2ca196a4187be4653f
Node __eq__ method internal error `Node`'s `__eq__` method doesn't check the type of the object it's being compared to, which leads to an exception if you try to compare Nodes to non-nodes. For example, I can do `5 == "hello"` in Python, but if I try `5 == grammar.parse(text)`, I get the following exception: ``` ...
diff --git a/parsimonious/nodes.py b/parsimonious/nodes.py index a60e7f4..26d873d 100644 --- a/parsimonious/nodes.py +++ b/parsimonious/nodes.py @@ -90,8 +90,10 @@ class Node(StrAndRepr): def __eq__(self, other): """Support by-value deep comparison with other nodes for testing.""" - return (other...
erwanp__publib-15
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "publib/tools/colors.py:keep_color", "publib/tools/colors.py:get_next_color" ], "edited_modules": [ "publib/tools/colors.py:keep_color", "publib/tools/colors.py:get_ne...
erwanp/publib
84a4d8f51c4380410788678879d779f17614a6d9
Error with keep_color() : axes.get_lines.prop_cycler was made internal in matplotlib 3.8.0 Same error as here https://github.com/matplotlib/matplotlib/issues/26831
diff --git a/publib/__version__.txt b/publib/__version__.txt index 448a0fa..60a2d3e 100644 --- a/publib/__version__.txt +++ b/publib/__version__.txt @@ -1,1 +1,1 @@ -0.3.4 \ No newline at end of file +0.4.0 \ No newline at end of file diff --git a/publib/tools/colors.py b/publib/tools/colors.py index b944c9e..4570acb 1...
esi-neuroscience__syncopy-388
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "syncopy/datatype/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "syncopy...
esi-neuroscience/syncopy
d4a4d756aaa3091922d82ecb82ebc26f3b817dd4
Inter-trial coherence (ITC) **Is your feature request related to a problem? Please elaborate.** Intertrial coherence (ITC) is a measure of how consistent oscillatory phase is across an ensemble of trials. Please provide a clear and concise description of the problem. If possible/applicable, please consider provid...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dfc92f07..157ac000 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,14 @@ # Changelog of SyNCoPy All notable changes to this project will be documented in this file. - -## [Unreleased] +## [2022.12] ### NEW -- time dependent coherence analysis #287 -- basic ...
esi-neuroscience__syncopy-421
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "syncopy/datatype/base_data.py:Selector._selection_setter" ], "edited_modules": [ "syncopy/datatype/base_data.py:Selector" ] }, "file": "syncopy/datatype/base_data.py" ...
esi-neuroscience/syncopy
b95e7cddd7814d328304d090308d519c3810f5c4
Rewrite `selectdata` tests Everytime those tests fail, no one can really see what/why/where.. I can not possibly comment further.
diff --git a/syncopy/datatype/base_data.py b/syncopy/datatype/base_data.py index 6f79d246..bef30d1f 100644 --- a/syncopy/datatype/base_data.py +++ b/syncopy/datatype/base_data.py @@ -1419,7 +1419,7 @@ class Selector: ) # We first need to know which trials are of interest here (assuming - # th...
esi-neuroscience__syncopy-447
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "syncopy/connectivity/ST_compRoutines.py:CrossCovariance.process_metadata" ], "edited_modules": [ "syncopy/connectivity/ST_compRoutines.py:CrossCovariance" ] }, "file": ...
esi-neuroscience/syncopy
be4ef850b23981bd7683dda1aba01c5653940690
Single trial `corr` bug Something goes wrong with the trialdefinition for: ```python corr = spy.connectivityanalysis(adata, method='corr', keeptrials=True) ``` when there is an odd number of samples..
diff --git a/CHANGELOG.md b/CHANGELOG.md index fd559993..fec01324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. ### Fixed - fix bug #394 'Copying a spy.StructDict returns a dict'. - serializable `.cfg` #392 +- single trial cross-co...
espdev__csaps-18
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "csaps/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "csaps/_shortcut.py...
espdev/csaps
6a301dccaab25b9f345100befb486f6c2647154d
checking shapes equality is always false in evaluate method The following condition is always false because we compare list and tuple: https://github.com/espdev/csaps/blob/6a301dccaab25b9f345100befb486f6c2647154d/csaps/_sspumv.py#L110 We need to refactor the code to avoid performing this code in `SplinePPForm` cl...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aae99c4..e8d93c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v0.11.0 + +* Internal re-design `SplinePPForm` and `NdGridSplinePPForm` classes [#17](https://github.com/espdev/csaps/issues/17): + - Remove `shape` and `axis` properties a...
esphome__aioesphomeapi-500
[ { "changes": { "added_entities": [ "aioesphomeapi/_frame_helper/base.py:APIFrameHelper._set_ready_future_exception" ], "added_modules": null, "edited_entities": [ "aioesphomeapi/_frame_helper/base.py:APIFrameHelper.__init__", "aioesphomeapi/_frame_helper/base.py:A...
esphome/aioesphomeapi
85c2638cbac808a1cdb06c077f3120c18145619a
Connected event in frame helper should be a future https://github.com/esphome/aioesphomeapi/blob/85c2638cbac808a1cdb06c077f3120c18145619a/aioesphomeapi/_frame_helper/base.py#L52 there is only one consumer here so no need to wake multiple waiters
diff --git a/aioesphomeapi/_frame_helper/base.py b/aioesphomeapi/_frame_helper/base.py index d4ac0dc..8a53cb9 100644 --- a/aioesphomeapi/_frame_helper/base.py +++ b/aioesphomeapi/_frame_helper/base.py @@ -6,7 +6,7 @@ from abc import abstractmethod from functools import partial from typing import Callable, cast -fro...
esphome__aioesphomeapi-840
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aioesphomeapi/client.py:APIClient.cover_command", "aioesphomeapi/client.py:APIClient.climate_command", "aioesphomeapi/client.py:APIClient.execute_service" ], "edited_modules"...
esphome/aioesphomeapi
a3009097a8cec6132f70c9790a38b19b16348c05
thousands of error entries in homeassistant Not sure what other details you need. Please ask and I will provide. Noticed MANY of these entries. Using lates ESPHome and HA versions. ``` File "/usr/src/homeassistant/homeassistant/components/esphome/manager.py", line 695, in execute_service entry_data.client....
diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index 63d23c5..dcb82df 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -928,6 +928,7 @@ class APIClient: tilt: float | None = None, stop: bool = False, ) -> None: + connection = self._get_connection() ...
ethereum__py_ecc-48
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "py_ecc/optimized_bls12_381/optimized_field_elements.py:FQ2.__init__", "py_ecc/optimized_bls12_381/optimized_field_elements.py:FQ12.__init__" ], "edited_modules": [ "py_ecc/op...
ethereum/py_ecc
e9c42c76f1cc4f535dedec01b4c7ab2a59e46119
FQP initialization should take the mod of input coefficients Full context: https://github.com/ethereum/eth2.0-specs/issues/508 ### What is wrong? For BN and BLS, FQP object should take the modulo of the input during initialization. Test case: ```python from py_ecc.optimized_bls12_381 import FQ, FQ2 x = ...
diff --git a/py_ecc/optimized_bls12_381/optimized_field_elements.py b/py_ecc/optimized_bls12_381/optimized_field_elements.py index 3f537bb..b65f138 100644 --- a/py_ecc/optimized_bls12_381/optimized_field_elements.py +++ b/py_ecc/optimized_bls12_381/optimized_field_elements.py @@ -239,7 +239,10 @@ class FQP(object): # ...
ethereum__py_ecc-6
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "py_ecc/secp256k1/secp256k1.py:safe_ord" ], "edited_modules": [ "py_ecc/secp256k1/secp256k1.py:safe_ord" ] }, "file": "py_ecc/secp256k1/secp256k1.py" } ]
ethereum/py_ecc
812722660d87c5c7366b1b4927dbf49a8ecbf3f9
secp256k1.py fails on Python 3.4 Error test: ```python import binascii import rlp # sha3 from module `pysha3` not `ssh3` import sha3 from py_ecc.secp256k1 import ecdsa_raw_recover n = 0 p = 20000000000 g = 100000 v = 1000 Tn = '' Tp = p.to_bytes((p.bit_length()//8) + 1,byteorder='big') Tg = g.to_bytes(...
diff --git a/py_ecc/secp256k1/secp256k1.py b/py_ecc/secp256k1/secp256k1.py index 68f1ca1..db93ee5 100644 --- a/py_ecc/secp256k1/secp256k1.py +++ b/py_ecc/secp256k1/secp256k1.py @@ -6,8 +6,11 @@ import sys if sys.version_info.major == 2: safe_ord = ord else: - def safe_ord(x): - return x + def safe_o...
ethereum__pyrlp-42
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rlp/lazy.py:LazyList.__getitem__" ], "edited_modules": [ "rlp/lazy.py:LazyList" ] }, "file": "rlp/lazy.py" } ]
ethereum/pyrlp
8f16b5ebf3e009616689f2d95a3793affc88db2e
LazyList.__getitem__ assumes i is a number but it can be a slice LazyList's __getitem__ implementation [assumes **i** is always a number](https://github.com/ethereum/pyrlp/blob/develop/rlp/lazy.py#L108), but it can [be a slice as well](https://docs.python.org/2/reference/datamodel.html#object.__getitem__) The fix is...
diff --git a/rlp/lazy.py b/rlp/lazy.py index e12583d..e9a0b14 100644 --- a/rlp/lazy.py +++ b/rlp/lazy.py @@ -100,13 +100,26 @@ class LazyList(Sequence): return item def __getitem__(self, i): + if isinstance(i, slice): + if i.step is not None: + raise TypeError("Step not ...
ethereum__pyrlp-46
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rlp/sedes/lists.py:Serializable.get_sedes" ], "edited_modules": [ "rlp/sedes/lists.py:Serializable" ] }, "file": "rlp/sedes/lists.py" } ]
ethereum/pyrlp
691d1e107dd920882300372dc3d20151942b85af
Serializable.get_sedes() breaks inheritance when child defines different fields That method [caches the sedes in the _sedes class variable](https://github.com/ethereum/pyrlp/blob/develop/rlp/sedes/lists.py#L226), so if you call get_sedes() on a parent class, any childs of that class on which get_sedes() has not been ca...
diff --git a/.travis.yml b/.travis.yml index b6580be..e936b90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,20 @@ language: python python: - "3.5" sudo: false -env: - - TOXENV=py27 - - TOXENV=py34 - - TOXENV=py35 - - TOXENV=pypy - #- TOXENV=pypy3 +matrix: + include: + - python: "2.7" + env: ...
ethz-spylab__agentdojo-5
[ { "changes": { "added_entities": [ "src/agentdojo/ast_utils.py:parse_arg_value" ], "added_modules": [ "src/agentdojo/ast_utils.py:parse_arg_value" ], "edited_entities": [ "src/agentdojo/ast_utils.py:parse_tool_call_from_ast" ], "edited_modules": ...
ethz-spylab/agentdojo
34e9a686ac5ec83657ad0dad285d6d32c4d256da
Problem parsing list argument in LLaMA model The problem boils down to the following. If LLaMA outputs a list as argument to a function ``` <function-thoughts>I can use the `send_email` function to send an email to the specified recipient with the given subject and body.</function-thoughts> <function-call>[send_em...
diff --git a/src/agentdojo/ast_utils.py b/src/agentdojo/ast_utils.py index 54c793a2..b8f0c8e3 100644 --- a/src/agentdojo/ast_utils.py +++ b/src/agentdojo/ast_utils.py @@ -2,7 +2,7 @@ import ast import random import string -from agentdojo.functions_runtime import FunctionCall +from agentdojo.functions_runtime import...
ets-labs__python-dependency-injector-852
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/dependency_injector/wiring.py:_locate_dependent_closing_args", "src/dependency_injector/wiring.py:_bind_injections" ], "edited_modules": [ "src/dependency_injector/wiring...
ets-labs/python-dependency-injector
8b625d81ad2d40d0b839c37a91b151b42f3b18cf
`Closing` does not resolve nested dependecies `Closing` doesn't seem to resolve nested dependecies: e.g. when a `Factory` depends on another `Factory` dependent on a `Resource`. I have followed issue #633, and linked PR #636 that dealt with the detection of dependent resources, however in my example it doesn't look lik...
diff --git a/src/dependency_injector/wiring.py b/src/dependency_injector/wiring.py index 9bb990ab..5cded9f5 100644 --- a/src/dependency_injector/wiring.py +++ b/src/dependency_injector/wiring.py @@ -1,26 +1,26 @@ """Wiring module.""" import functools -import inspect import importlib import importlib.machinery +im...
ettoreleandrotognoli__python-cdi-28
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pycdi/__init__.py" }, { "changes": { "added_entities": [ "pycdi/core.py:is_producer" ], "added_modules": [ "pycdi/co...
ettoreleandrotognoli/python-cdi
fa769bb5b4100fb1090a57e6dd2e07230e086ec7
@Producer and register_instance register_instance should find producers at instance
diff --git a/pycdi/__init__.py b/pycdi/__init__.py index fff012f..bf06f43 100644 --- a/pycdi/__init__.py +++ b/pycdi/__init__.py @@ -1,3 +1,3 @@ # -*- encoding: utf-8 -*- -from .core import Inject, Producer, CDIContainer +from .core import Inject, Producer, CDIContainer, Component, Service from .utils import Singleto...
euro-cordex__py-cordex-101
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cordex/cf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cordex/domain.py:cordex...
euro-cordex/py-cordex
d444a09d516f1cd1884af727198dd547b20e1ed7
add `bounds` attribute for `lon`, `lat` coordinates
diff --git a/cordex/cf.py b/cordex/cf.py index a9b12c5..5cd7c76 100644 --- a/cordex/cf.py +++ b/cordex/cf.py @@ -84,3 +84,5 @@ DEFAULT_CORDEX_ATTRS = { "realization": 0, "cmor_version": "", } + +grid_mapping_dtype = np.int32 diff --git a/cordex/domain.py b/cordex/domain.py index fdf4510..0982a78 100644 --- a...
euro-cordex__py-cordex-102
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cordex/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cordex/domain.py:...
euro-cordex/py-cordex
9977089815e29961ed8c7686c2f24d2109bb78ca
use new transform_bounds function by default see also #16
diff --git a/cordex/__init__.py b/cordex/__init__.py index 76500e9..e7d0bc3 100644 --- a/cordex/__init__.py +++ b/cordex/__init__.py @@ -3,7 +3,13 @@ import pkg_resources from . import regions, tables, tutorial from .domain import cordex_domain, create_dataset, domain_info, vertices from .tables import domains, ecmw...
euro-cordex__py-cordex-307
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cordex/cf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cordex/domain.py:rewrit...
euro-cordex/py-cordex
dcfa6410d195f342fca6be5858fa47d6a8cf0d23
`add_bounds` does not update the lon lat bounds attribute
diff --git a/cordex/cf.py b/cordex/cf.py index 512fe67..9842188 100644 --- a/cordex/cf.py +++ b/cordex/cf.py @@ -165,12 +165,12 @@ vocabulary = { "CMIP6": dict( domain_id="domain_id", dims={ - "LAT": "latitude", - "LON": "longitude", + "LAT": "lat", + "...
ev3dev__ev3dev-lang-python-500
[ { "changes": { "added_entities": [ "ev3dev2/motor.py:SpeedPercent.__init__", "ev3dev2/motor.py:SpeedPercent.to_native_units", "ev3dev2/motor.py:SpeedNativeUnits.__init__", "ev3dev2/motor.py:SpeedNativeUnits.to_native_units", "ev3dev2/motor.py:SpeedRPS.__init__", ...
ev3dev/ev3dev-lang-python
e2dd9a1180eed72e20a22f5f53744b06754b9048
Should SpeedInteger actually be floating-point? We have these new `SpeedInteger` classes. But... as it turns out, it might make more sense to have them be `SpeedFloat`s (or, more likely, a better name like `SpeedMeasure` or simply `Speed`). My thinking is: given that we're converting from whatever input units are provi...
diff --git a/.travis.yml b/.travis.yml index 4235441..d447dcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,8 @@ sudo: false git: depth: 100 install: -- pip install -q Pillow evdev Sphinx sphinx_bootstrap_theme recommonmark evdev -- pip install -q -r ./docs/requirements.txt +- pip install Pillow Sphinx sph...
evansd__whitenoise-203
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "whitenoise/responders.py:StaticFile.is_not_modified" ], "edited_modules": [ "whitenoise/responders.py:StaticFile" ] }, "file": "whitenoise/responders.py" } ]
evansd/whitenoise
1b5a7f3a0f151ee1449d88da9e4813644e435fd4
HTTP 304 being returned when Etag doesn't match Hi! Currently WhiteNoise: * includes both an `Etag` and `Last-Modified` header on all responses * checks incoming requests to see if they specified a `If-None-Match` (used for Etag) or `If-Modified-Since` header, to determine whether to return an HTTP 304 response ...
diff --git a/whitenoise/responders.py b/whitenoise/responders.py index c36c887..debedcc 100644 --- a/whitenoise/responders.py +++ b/whitenoise/responders.py @@ -167,8 +167,9 @@ class StaticFile(object): return alternatives def is_not_modified(self, request_headers): - if self.etag == request_head...
evansde77__cirrus-198
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/cirrus/docker.py:_docker_build" ], "edited_modules": [ "src/cirrus/docker.py:_docker_build" ] }, "file": "src/cirrus/docker.py" } ]
evansde77/cirrus
e745a2056779cb2fbc12c02d9fe2f57de6764d14
More readable/streaming output from docker-image build The `git cirrus docker-image build` is really useful. It would be maybe even more useful if we could get at least one of these: * more readable output; if there is an error in the output it's very hard to read * streaming so that we can watch it scroll past th...
diff --git a/requirements.txt b/requirements.txt index f7083ec..b40b9ac 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,6 @@ virtualenv-api>=2.1.16 virtualenv twine>=1.9.1 pluggage>=0.0.4 -dockerstache>=0.0.13 +dockerstache>=0.0.14 requests-toolbelt>=0.8.0 tox>=2.7.0 diff --git a/src/cirrus/docke...
eve-val__evelink-212
[ { "changes": { "added_entities": [ "evelink/char.py:Char.kill_log" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "evelink/char.py:Char" ] }, "file": "evelink/char.py" }, { "changes": { "added_entities": [ ...
eve-val/evelink
db9e7bfeef9478a047f4f7db4f88324e185e4873
kills() uses KillLog rather than KillMails KillLog is a long cache endpoint, so you can only query it once. KillMails isn't a long cache, so you can query it as often as you want.
diff --git a/evelink/char.py b/evelink/char.py index 609d76d..0514dc6 100644 --- a/evelink/char.py +++ b/evelink/char.py @@ -137,7 +137,7 @@ class Char(object): """Get a list of PI routing entries for a character's planet.""" return api.APIResult(parse_planetary_routes(api_result.result), api_result.t...
eventbrite__conformity-69
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "conformity/fields/basic.py:Base.introspect", "conformity/fields/basic.py:Constant.errors", "conformity/fields/basic.py:Constant.introspect", "conformity/fields/basic.py:Anything....
eventbrite/conformity
bf5caa6885c63c8931cb77f1dd24ac88594147c0
Error: unorderable types: str() < int() in introspect Whet `fields.Constant` has values that are not all the same type and `field.introspect()` is called, you get errors like this: ``` unorderable types: str() < int() in introspect ```
diff --git a/conformity/fields/basic.py b/conformity/fields/basic.py index 95173b6..6d9a014 100644 --- a/conformity/fields/basic.py +++ b/conformity/fields/basic.py @@ -3,6 +3,7 @@ from __future__ import ( unicode_literals, ) +import datetime import decimal from typing import ( # noqa: F401 TODO Python 3 ...
eventbrite__conformity-72
[ { "changes": { "added_entities": [ "conformity/fields/currency.py:_get_errors_for_currency_amount", "conformity/fields/currency.py:AmountRequestDictionary.__init__", "conformity/fields/currency.py:AmountString.__attrs_post_init__", "conformity/fields/currency.py:AmountStrin...
eventbrite/conformity
d8b348ce331082b3c8d350986f6080d027162ddc
Improve Currint fields to more accurately support requests and responses Currently, we have an `Amount` and an `AmountDictionary`. `Amount` is fine. `AmountDictionary` works only for our API requests, and not for all of them. - We need an `AmountString` that accepts either `CUR,VALUE` or `CUR:VALUE` - We need an `A...
diff --git a/conformity/fields/currency.py b/conformity/fields/currency.py index 0659a86..c3f4b90 100644 --- a/conformity/fields/currency.py +++ b/conformity/fields/currency.py @@ -3,13 +3,16 @@ from __future__ import ( unicode_literals, ) +import re from typing import ( # noqa: F401 TODO Python 3 Abstra...
evopy__evopy-27
[ { "changes": { "added_entities": [ "evopy/evopy.py:EvoPy._check_early_stop" ], "added_modules": null, "edited_entities": [ "evopy/evopy.py:EvoPy.__init__", "evopy/evopy.py:EvoPy.run" ], "edited_modules": [ "evopy/evopy.py:EvoPy" ] }, ...
evopy/evopy
1ca150c0a4bd76cde3e989aafa114dc476928201
Support setting a target fitness value for early stop
diff --git a/.pylintrc b/.pylintrc index d826f05..6490d05 100644 --- a/.pylintrc +++ b/.pylintrc @@ -527,10 +527,10 @@ valid-metaclass-classmethod-first-arg=cls [DESIGN] # Maximum number of arguments for function / method. -max-args=15 +max-args=20 # Maximum number of attributes for a class (see R0902). -max-att...
ewels__rich-click-110
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/rich_click/rich_click.py:get_module_help_configuration" ], "edited_modules": [ "src/rich_click/rich_click.py:get_module_help_configuration" ] }, "file": "src/rich_c...
ewels/rich-click
c8797a7616af9c042e540ecdec8f35a4e5162b24
MAX_WIDTH setting acts only as fixed width ### Expected behavior Use the full width of the terminal for output if it is less than the MAX_WIDTH setting ### Actual behavior The rendered help is always displayed in MAX_WIDTH ### Screenshots With MAX_WIDTH = 128 ![image](https://github.com/ewels/rich-click/asset...
diff --git a/README.md b/README.md index ce9a70c..07a44ef 100644 --- a/README.md +++ b/README.md @@ -224,12 +224,20 @@ click.rich_click.ERRORS_EPILOGUE = "To find out more, visit [link=https://mytool The default behaviour of rich-click is to use the full width of the terminal for output. However, if you've carefully ...
ewels__rich-click-158
[ { "changes": { "added_entities": [ "src/rich_click/cli.py:_RichHelpConfigurationParamType.__repr__", "src/rich_click/cli.py:_RichHelpConfigurationParamType.convert" ], "added_modules": [ "src/rich_click/cli.py:_RichHelpConfigurationParamType" ], "edited_enti...
ewels/rich-click
8cb5c8ed64dad79a07914b98cbc34b590ff7cc9d
Use a RichCommand for the actual rich-click CLI tool + add formatting options Right now the `cli.py` uses a custom CLI implementation, I believe for historic reasons. I _think_ this can be refactored into being a `RichCommand`. There are two main benefits of this. First: simpler, more idiomatic, and more testable...
diff --git a/pyproject.toml b/pyproject.toml index 5ee07fa..d138c05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ exclude = [ "venv", "build", "sdist", - "tests/**", + "tests/fixtures/**", "examples/**", ] ignore = [ diff --git a/src/rich_click/cli.py b/src/rich_click/cl...
ewels__rich-click-167
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/rich_click/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_...
ewels/rich-click
7d40b91e2d747bdc23d1080964a5d3df33524ce6
Rich-Click does not translate the ascii codes into colors on windows 64 cmd.exe anymore Hi there, Upgrading from 1.6.1 to 1.7.0 breaks the color output in cmd.exe on windows 64. Running the example 01_simple.py works perfectly with rich-click 1.6.1. However with rich-click 1.7.3 (the bug appears in 1.7.0 but i tr...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e1ce06..eea2b0e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,15 +22,15 @@ repos: require_serial: true additional_dependencies: - isort - - id: black - name: Black - Auto-formatter....
executablebooks__MyST-Parser-734
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "myst_parser/sphinx_ext/myst_refs.py:MystReferenceResolver.resolve_myst_ref_doc" ], "edited_modules": [ "myst_parser/sphinx_ext/myst_refs.py:MystReferenceResolver" ] }, ...
executablebooks/MyST-Parser
585ce9acfb282c555e86b436fa5cdc449b80f27d
sphinx.errors.NoUri ### Describe the bug **context** I don't know whether this error relates to MyST-Parser, but I began getting this error after MyST-Parser 0.19.0 was released. **expectation** I expected no errors like my previous builds with myst v0.18.1. https://readthedocs.org/projects/deepmd/builds/1963413...
diff --git a/myst_parser/sphinx_ext/myst_refs.py b/myst_parser/sphinx_ext/myst_refs.py index 8a4dc20..74edcb3 100644 --- a/myst_parser/sphinx_ext/myst_refs.py +++ b/myst_parser/sphinx_ext/myst_refs.py @@ -178,9 +178,12 @@ class MystReferenceResolver(ReferencesResolver): ) assert self.app.builder...
executablebooks__MyST-Parser-742
[ { "changes": { "added_entities": [ "myst_parser/config/main.py:check_fence_as_directive" ], "added_modules": [ "myst_parser/config/main.py:check_fence_as_directive" ], "edited_entities": null, "edited_modules": [ "myst_parser/config/main.py:MdParserCon...
executablebooks/MyST-Parser
1e440e6d38da18abd83c88519679b68768e64596
support mermaid **Describe the solution you'd like** support mermaid **Describe alternatives you've considered** The conf.py I used to make work `mermaid` with `recommonmark`: ``` $ tail conf.py extensions = [ 'recommonmark', 'sphinxcontrib.mermaid'] from recommonmark.transform import AutoStructify def ...
diff --git a/myst_parser/config/main.py b/myst_parser/config/main.py index 4f3889d..f22791a 100644 --- a/myst_parser/config/main.py +++ b/myst_parser/config/main.py @@ -166,6 +166,14 @@ def _test_slug_func(text: str) -> str: return text[::-1] +def check_fence_as_directive( + inst: "MdParserConfig", field: d...
executablebooks__MyST-Parser-857
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "myst_parser/config/main.py:MdParserConfig" ] }, "file": "myst_parser/config/main.py" }, { "changes": { "added_entities": null, "added_modu...
executablebooks/MyST-Parser
abcc0877733f8c8a85106082033b59c531e7539c
Add support for the keys "target" and "rel" in inline_attrs ### Describe the feature you'd like to request I would like to be able to create a link that, when clicked, opens in a new tab. I found that [in the documentation](https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#syntax-attributes), "on...
diff --git a/myst_parser/config/main.py b/myst_parser/config/main.py index aa36193..f5174f2 100644 --- a/myst_parser/config/main.py +++ b/myst_parser/config/main.py @@ -234,6 +234,14 @@ class MdParserConfig: }, ) + links_external_new_tab: bool = dc.field( + default=False, + metadata={ +...
executablebooks__MyST-Parser-925
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "myst_parser/parsers/directives.py:_parse_directive_options" ], "edited_modules": [ "myst_parser/parsers/directives.py:_parse_directive_options" ] }, "file": "myst_parse...
executablebooks/MyST-Parser
446febadcaec172144e31927e935ee34bfdca4e2
For v3.0.1: indented directive options no longer recognised ### What version of `myst-parser` are you using? 3.0.0 ### What version dependencies are you using? <details> ```Package Version ----------------------------- ----------- ablog 0.11.8 accessible-pygm...
diff --git a/myst_parser/parsers/directives.py b/myst_parser/parsers/directives.py index d6a000c..22ff5a6 100644 --- a/myst_parser/parsers/directives.py +++ b/myst_parser/parsers/directives.py @@ -175,34 +175,34 @@ def _parse_directive_options( :returns: (content, options, validation_errors) """ - yaml_b...
executablebooks__mdit-py-plugins-119
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mdit_py_plugins/amsmath/__init__.py:match_environment", "mdit_py_plugins/amsmath/__init__.py:amsmath_block" ], "edited_modules": [ "mdit_py_plugins/amsmath/__init__.py:match_...
executablebooks/mdit-py-plugins
637f7e70a522a7eef6f7696fea0b7baa481933af
Infinite loop in `amsmath` extension for a simple input ### Describe the bug **context** The following markdown document, `bug.md` is a minimal version reproducing the issue (taken from a larger document): ```markdown --- myst: enable_extensions: ["amsmath"] --- > **Example** >\begin{equation}A= \begi...
diff --git a/mdit_py_plugins/amsmath/__init__.py b/mdit_py_plugins/amsmath/__init__.py index 0aed5c1..0712618 100644 --- a/mdit_py_plugins/amsmath/__init__.py +++ b/mdit_py_plugins/amsmath/__init__.py @@ -54,7 +54,7 @@ ENVIRONMENTS = [ # whose total width is the actual width of the contents; # thus they can be used a...
executablebooks__mdit-py-plugins-29
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mdit_py_plugins/dollarmath/index.py:dollarmath_plugin", "mdit_py_plugins/dollarmath/index.py:render_math_inline", "mdit_py_plugins/dollarmath/index.py:render_math_block", "mdit_p...
executablebooks/mdit-py-plugins
70a756d4c42476ec29cb4e06a2a81f83d8b5d435
Update dollarmath to be inline with JS version I've just created `markdown-it-dollarmath`, and in particular here: https://github.com/executablebooks/markdown-it-dollarmath/commit/e3eb24458137d3efb1c68cfc249fb2e12ed64825, I added the extra token `math_inline_double` and renamed `math_block_eqno` to `math_block_label`. ...
diff --git a/mdit_py_plugins/dollarmath/index.py b/mdit_py_plugins/dollarmath/index.py index 240bbba..5fe0381 100644 --- a/mdit_py_plugins/dollarmath/index.py +++ b/mdit_py_plugins/dollarmath/index.py @@ -1,18 +1,22 @@ import re -from typing import Callable +from typing import Any, Callable, Dict, Optional from mar...
executablebooks__mdit-py-plugins-31
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mdit_py_plugins/myst_blocks/index.py:target", "mdit_py_plugins/myst_blocks/index.py:render_myst_target" ], "edited_modules": [ "mdit_py_plugins/myst_blocks/index.py:target", ...
executablebooks/mdit-py-plugins
bb061190339e6e2083e8c192ef8b089bece72c3f
Support spaces in labels ### Describe the enhancement you'd like It would be useful if it were possible to use spaces in labels, like so: ```md (my label)= # My header Ref for [](my label). ``` In https://github.com/executablebooks/meta/discussions/467#discussioncomment-1223602 we discovered that, while ...
diff --git a/mdit_py_plugins/myst_blocks/index.py b/mdit_py_plugins/myst_blocks/index.py index 16baaaa..d0e4cf6 100644 --- a/mdit_py_plugins/myst_blocks/index.py +++ b/mdit_py_plugins/myst_blocks/index.py @@ -1,12 +1,9 @@ import itertools -import re from markdown_it import MarkdownIt from markdown_it.common.utils ...
executablebooks__mdit-py-plugins-46
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mdit_py_plugins/dollarmath/index.py:dollarmath_plugin", "mdit_py_plugins/dollarmath/index.py:math_block_dollar" ], "edited_modules": [ "mdit_py_plugins/dollarmath/index.py:do...
executablebooks/mdit-py-plugins
be145875645970545ccbd409e0221f85a0b4d329
Do not allow blank lines within $$ See https://github.com/executablebooks/markdown-it-dollarmath/pull/8
diff --git a/mdit_py_plugins/dollarmath/index.py b/mdit_py_plugins/dollarmath/index.py index 2663617..e2a4fed 100644 --- a/mdit_py_plugins/dollarmath/index.py +++ b/mdit_py_plugins/dollarmath/index.py @@ -13,6 +13,7 @@ def dollarmath_plugin( allow_labels: bool = True, allow_space: bool = True, allow_digi...
executablebooks__sphinx-panels-10
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sphinx_panels/__init__.py:parse_panels", "sphinx_panels/__init__.py:parse_single_panel", "sphinx_panels/__init__.py:Panels.run", "sphinx_panels/__init__.py:validate_config", ...
executablebooks/sphinx-panels
b8d6b36f946a6d86b264323189866c5e48eeff0b
Default vertical padding? Currently, the first example in the docs (https://sphinx-panels.readthedocs.io/en/latest/) shows: ![image](https://user-images.githubusercontent.com/1020496/81395801-8c7bdf80-9124-11ea-862a-630795e26331.png) So with horizontal spacing between the columns, but no vertical space between th...
diff --git a/README.md b/README.md index 5332587..8c13946 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,15 @@ and [cards layout](https://getbootstrap.com/docs/4.0/components/card/). Content of the top-left panel - ... + --- Content of the top-right panel - ... + --- Content o...
exo-lang__exo-232
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/LoopIR_compiler.py:compile_to_strings", "src/exo/LoopIR_compiler.py:Compiler.__init__" ], "edited_modules": [ "src/exo/LoopIR_compiler.py:compile_to_strings", ...
exo-lang/exo
e0ae33545d6fcec95afdb045ea883e0972e7b7a3
Dependent procs should be static Procs that are included in compilation only because they are called by a "root" proc should be marked `static` in C to promote inlining and reduce code size.
diff --git a/src/exo/LoopIR_compiler.py b/src/exo/LoopIR_compiler.py index 512f67d..e783cba 100644 --- a/src/exo/LoopIR_compiler.py +++ b/src/exo/LoopIR_compiler.py @@ -263,12 +263,12 @@ def compile_to_strings(lib_name, proc_list): # Header contents ctxt_def = _compile_context_struct(find_all_configs(proc_lis...
exo-lang__exo-236
[ { "changes": { "added_entities": [ "src/exo/API_scheduling.py:merge_writes" ], "added_modules": [ "src/exo/API_scheduling.py:merge_writes" ], "edited_entities": null, "edited_modules": null }, "file": "src/exo/API_scheduling.py" }, { "changes":...
exo-lang/exo
7cbb35083663ef09c8a2b3df53b78ce75fb39fd5
Implement merge_reduce Open to suggestions for a better name ``` loc = expr1 loc += expr2 ---> loc = expr1 + expr2 ```
diff --git a/src/exo/API_scheduling.py b/src/exo/API_scheduling.py index 0abc514..dcdb473 100644 --- a/src/exo/API_scheduling.py +++ b/src/exo/API_scheduling.py @@ -1592,6 +1592,63 @@ def reorder_loops(proc, nested_loops): return Procedure(loopir, _provenance_eq_Procedure=proc) +@sched_op([BlockCursorA(block_s...
exo-lang__exo-240
[ { "changes": { "added_entities": [ "src/exo/LoopIR_compiler.py:_window_struct", "src/exo/LoopIR_compiler.py:Compiler.needed_helpers", "src/exo/LoopIR_compiler.py:Compiler._call_static_helper" ], "added_modules": [ "src/exo/LoopIR_compiler.py:WindowStruct", ...
exo-lang/exo
f067109643bdf8ce3a8be813612bb863395e60cb
Empty structs differ in C/C++ Empty structs, such as: ``` typedef struct sgemm_Context { } sgemm_Context; ``` have different sizes in C and C++. This could lead to ABI issues down the line. If we would generate an empty struct, we should either: 1. use `void*` instead, or 2. add an `int_fast32_t dummy;` fi...
diff --git a/apps/x86/sgemm/alex_sgemm.cpp b/apps/x86/sgemm/alex_sgemm.cpp index 7a7d350..1f42606 100644 --- a/apps/x86/sgemm/alex_sgemm.cpp +++ b/apps/x86/sgemm/alex_sgemm.cpp @@ -99,7 +99,7 @@ static void sgemm_accumulate( template <int I_REG, int J_REG> void sgemm_micro_kernel_staged_M_N(const float *a, const floa...
exo-lang__exo-254
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/LoopIR_scheduling.py:_BindExpr.__init__", "src/exo/LoopIR_scheduling.py:_BindExpr.map_s" ], "edited_modules": [ "src/exo/LoopIR_scheduling.py:_BindExpr" ] }...
exo-lang/exo
0bdc5435a23390f15fc7ded3736dd49025520039
bind_expr with CSE is broken Per the discussion in https://github.com/exo-lang/exo/pull/237 the CSE option for bind_expr incorrectly factors out right-hand-sides and generally breaks well-formedness of the code. This needs to be fixed.
diff --git a/src/exo/API_scheduling.py b/src/exo/API_scheduling.py index dcdb473..6ba0939 100644 --- a/src/exo/API_scheduling.py +++ b/src/exo/API_scheduling.py @@ -823,7 +823,8 @@ def bind_expr(proc, expr_cursors, new_name, cse=False): Bind some numeric/data-value type expression into a new intermediate, sca...
exo-lang__exo-255
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/API.py:proc", "src/exo/API.py:config" ], "edited_modules": [ "src/exo/API.py:proc", "src/exo/API.py:config" ] }, "file": "src/exo/API.py" }, ...
exo-lang/exo
32c641397214064418d208676abfbfadb5fbe760
Rework parser to have the same path for proc and fragment ParseFragment should parse window as well
diff --git a/src/exo/API.py b/src/exo/API.py index 46c85d6..1408fd6 100644 --- a/src/exo/API.py +++ b/src/exo/API.py @@ -47,9 +47,9 @@ def proc(f, _instr=None) -> "Procedure": parser = Parser( body, - f.__globals__, - get_src_locals(depth=3 if _instr else 2), getsrcinfo, + ...
exo-lang__exo-259
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "apps/gemmini/src/exo/conv.py:schedule_conv_3" ], "edited_modules": [ "apps/gemmini/src/exo/conv.py:schedule_conv_3" ] }, "file": "apps/gemmini/src/exo/conv.py" }, {...
exo-lang/exo
deea8a654c4c1e89d9a3e8742e007a622e016bd3
Fix lift_alloc to emit error when n_lifts is too large
diff --git a/apps/gemmini/src/exo/conv.py b/apps/gemmini/src/exo/conv.py index fe239eb..8693bda 100644 --- a/apps/gemmini/src/exo/conv.py +++ b/apps/gemmini/src/exo/conv.py @@ -182,9 +182,13 @@ def schedule_conv_3(): conv = expand_dim( conv, "i_s: i8[_] #1", "30", "krow + orow_i", unsafe_disable_checks=Tr...
exo-lang__exo-306
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/parse_fragment.py:BuildEnv.__init__", "src/exo/parse_fragment.py:BuildEnv.do_s" ], "edited_modules": [ "src/exo/parse_fragment.py:BuildEnv" ] }, "file":...
exo-lang/exo
aa9d6a052827b15dbbd33895cc8232baeede8bcf
Parsing new expression uses incorrect variable when multiple are available ``` ======================================== FAILURES ========================================= _______________________________ test_new_expression_parsing _______________________________ def test_new_expression_parsing(): @pro...
diff --git a/src/exo/parse_fragment.py b/src/exo/parse_fragment.py index c5bed78..26dc3a2 100644 --- a/src/exo/parse_fragment.py +++ b/src/exo/parse_fragment.py @@ -52,6 +52,7 @@ class BuildEnv(LoopIR_Do): self.result = None self.trg = stmt self.proc = proc + self.halt = False ...
exo-lang__exo-315
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/API_scheduling.py:cut_loop" ], "edited_modules": [ "src/exo/API_scheduling.py:cut_loop" ] }, "file": "src/exo/API_scheduling.py" }, { "changes": { ...
exo-lang/exo
b01b3beb64d9375102f9f528aaddc58a6443dc4c
partition_loop() should work on loops with a variable upper bound Title. Right now, it only works on loops that have a constant upper bound such as `for i in par(0, 4)` It would assist with the implementation of TRSM and TRMM if it could be changed to work on loops like `for i in par(0, N)`
diff --git a/src/exo/API_scheduling.py b/src/exo/API_scheduling.py index 9217447..9f4668d 100644 --- a/src/exo/API_scheduling.py +++ b/src/exo/API_scheduling.py @@ -1540,7 +1540,9 @@ def cut_loop(proc, loop_cursor, cut_point): """ stmt = loop_cursor._impl proc_c = ic.Cursor.root(proc) - loopir = sched...
exo-lang__exo-427
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/API.py:Procedure.__init__" ], "edited_modules": [ "src/exo/API.py:Procedure" ] }, "file": "src/exo/API.py" }, { "changes": { "added_entities": nul...
exo-lang/exo
acff39a7b13d9170c2de2599787130f7bfddbf45
We should check Check_Aliasing from the frontend typecheck
diff --git a/src/exo/API.py b/src/exo/API.py index 2977369..8ad02cb 100644 --- a/src/exo/API.py +++ b/src/exo/API.py @@ -20,6 +20,7 @@ from .memory import Memory from .parse_fragment import parse_fragment from .pattern_match import match_pattern, get_match_no from .prelude import * +from .new_eff import Check_Aliasi...
exo-lang__exo-445
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/LoopIR_scheduling.py:DoSplit" ], "edited_modules": [ "src/exo/LoopIR_scheduling.py:DoSplit" ] }, "file": "src/exo/LoopIR_scheduling.py" } ]
exo-lang/exo
f5a2e098b3864a1e2b60c25605d3326b48a714bb
reorder_loop() issue: errors out when preceded with divide_loop() ``` ret_val = rename(gemm, "gemm_custom") ret_val = divide_loop(ret_val, 'j', 32, ['jo', 'ji'], perfect=True) ret_val = divide_loop(ret_val, 'i', 32, ['io', 'ii'], perfect=True) ret_val = reorder_loops(ret_val, 'ii jo') print(ret_val) ```
diff --git a/src/exo/LoopIR_scheduling.py b/src/exo/LoopIR_scheduling.py index 94ed869..3459d79 100644 --- a/src/exo/LoopIR_scheduling.py +++ b/src/exo/LoopIR_scheduling.py @@ -458,8 +458,8 @@ def DoSplit(loop_cursor, quot, hi, lo, tail="guard", perfect=False): return op("+", op("*", cnst(quot), rd(hi_i)), rd(...
exo-lang__exo-460
[ { "changes": { "added_entities": [ "src/exo/API_scheduling.py:unroll_buffer" ], "added_modules": [ "src/exo/API_scheduling.py:unroll_buffer" ], "edited_entities": null, "edited_modules": null }, "file": "src/exo/API_scheduling.py" }, { "changes...
exo-lang/exo
0ed53539e7d6c6f4998e552a7eeae52d323c4e00
Support unroll_buffer
diff --git a/src/exo/API_scheduling.py b/src/exo/API_scheduling.py index 3ffd66a..30fb98e 100644 --- a/src/exo/API_scheduling.py +++ b/src/exo/API_scheduling.py @@ -1268,6 +1268,28 @@ def mult_dim(proc, alloc_cursor, hi_dim_idx, lo_dim_idx): return Procedure(ir, _provenance_eq_Procedure=proc, _forward=fwd) +@s...
exo-lang__exo-473
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/LoopIR_scheduling.py:_DoNormalize.index_start" ], "edited_modules": [ "src/exo/LoopIR_scheduling.py:_DoNormalize" ] }, "file": "src/exo/LoopIR_scheduling.py" ...
exo-lang/exo
20805c55eb9a977f9d9ac62e95043c3b411d91b9
Add div support to DoNormalize e.g., `(wii + 8 * wio) / 4 / 2` should be simplified
diff --git a/src/exo/LoopIR_scheduling.py b/src/exo/LoopIR_scheduling.py index 1b5d585..cb3ae54 100644 --- a/src/exo/LoopIR_scheduling.py +++ b/src/exo/LoopIR_scheduling.py @@ -2657,6 +2657,36 @@ class _DoNormalize(Cursor_Rewrite): new_lhs = generate_loopIR(e.lhs, constant, normalization_list) ...
exo-lang__exo-542
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "apps/aarch64/filter1D/filter1D_cursor_forwarding.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entiti...
exo-lang/exo
295dd32a1dde0cb88499e255cdd86853081e67c7
bind_expr Bugs 1. bind_expr doesn't accept an argument that is a curosr to an expressions, but rather it must be given a list always if we are using a cursor. This is a bug in the arguments processor. Bug example: ``` def test_bind_expr_issue(): @proc def bar(n: size, x: f32[n], y: f32[n], z: f32[n]): ...
diff --git a/apps/aarch64/filter1D/filter1D_cursor_forwarding.py b/apps/aarch64/filter1D/filter1D_cursor_forwarding.py index fbc8245..c5aab1c 100644 --- a/apps/aarch64/filter1D/filter1D_cursor_forwarding.py +++ b/apps/aarch64/filter1D/filter1D_cursor_forwarding.py @@ -42,7 +42,6 @@ filter1D = fission(filter1D, filter1D...
exo-lang__exo-579
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exo/API_scheduling.py:divide_loop" ], "edited_modules": [ "src/exo/API_scheduling.py:divide_loop" ] }, "file": "src/exo/API_scheduling.py" }, { "changes": {...
exo-lang/exo
98e3255605df94ceabb6bc8956263022e51e317b
divide_loop should validate perfectness with a real solver `divide_loop`'s `perfect` argument is an important example of a scheduling directive that performs some custom analyses to check for validity. It currently has ad-hoc checks for constant extents, or for static asserts of the trivial form `assert size%k == 0`. I...
diff --git a/src/exo/API_scheduling.py b/src/exo/API_scheduling.py index 9485324..558df09 100644 --- a/src/exo/API_scheduling.py +++ b/src/exo/API_scheduling.py @@ -1646,7 +1646,7 @@ def divide_loop(proc, loop_cursor, div_const, new_iters, tail="guard", perfect=F stmt = loop_cursor._impl - ir, fwd = schedul...