This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| def get_reflog_entries(): | |
| """Get list of reflog entries (commit hashes) for current branch""" | |
| # Get current branch name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.0 | |
| info: | |
| title: Pet Store Service | |
| description: This is a sample server Petstore server. | |
| version: 0.0.0 | |
| tags: [] | |
| paths: | |
| /: | |
| post: | |
| operationId: Ratings_create |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from ... import ... | |
| class MyComonent(Component) | |
| close = Text.as_part("close"): | |
| async def on__close__click(self, ...): | |
| await self.close() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| benchmarks | dataclass | attrs | zokusei | |
| -------------------+------------------+----------------------+------------------ | |
| test_repr | 737.6109 (1.0) | 1,503.2417 (2.04) | 2,468.6994 (3.35) | |
| test_make_instance | 320.6658 (1.01) | 317.8374 (1.0) | 831.7211 (2.62) | |
| test_make_class | 238.7450 (19.83) | 4,727.8656 (392.77) | 12.0371 (1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "title": "example", | |
| "description": "example", | |
| "version": "1.2.3", | |
| "contact": {} | |
| }, | |
| "servers": [ | |
| { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| the parametersets of the different fixtures create a dependency tree, | |
| so the test using only foo gets executed 3 times, | |
| the test using bar gets executed 9 times | |
| and the test using baz gets executed 27 times | |
| simply generating the runs in order of the tests would mean that for each test all fxtures of all scopes would have to be set up and tear down | |
| so foo would setup 39 times instead of 3 times |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BAD_MATCH = re.compile(r""" | |
| (\.git/annex) | |
| | (home/\w+/\.(config|local|mozilla|macromedia|thunderbird)/) | |
| | (\.wine/drive_c/) | |
| | (Dropbox/) | |
| | (\.env/lib/python2.7.env/lib/python2.7/) | |
| | (home/\w+/\.eclipse/) | |
| | (home/\w+/\.local/opt/pyenv/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git fsck --strict | |
| Prüfe Objekt-Verzeichnisse: 100% (256/256), Fertig. | |
| Prüfe Objekte: 100% (54196/54196), Fertig. | |
| error: 1a61125992aed2e6d0434b233ab7318d7bdf5804: invalid sha1 pointer in cache-tree | |
| broken link from commit 464117b4725b853feb15c965732526448128a45a | |
| to tree 1a61125992aed2e6d0434b233ab7318d7bdf5804 | |
| dangling tree 0f00c68542c730c82449add7f054e71db03bb882 | |
| dangling commit 6006e6abd1e76e979850f433d8554bca815b188e | |
| dangling blob 840c10e02ca122f756dcc70e525ce053c692ba49 | |
| dangling commit ac1cc2f6801a31188ff15fc1840a3394184bad00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # step 1 - evil __new__, maybe unnecessary | |
| class partial_match(object): | |
| def __new__(cls, str_to_match): | |
| if str_to_match is None: | |
| return None | |
| return cls(str_to_match) | |
| # step2 constructor function, may need protection against regression | |
NewerOlder