hash
string
repo
string
date
string
license
string
message
string
mods
list
6c368f596a1654a4866ab75db76759cd1f0aeb00
appscale/gts
22.07.2019 19:32:56
Apache License 2.0
Support the service_account_name parameter This allows GetAccessTokenRequests to specify a custom service account for generating an authentication token.
[ { "change_type": "MODIFY", "old_path": "APIServer/appscale/api_server/app_identity.py", "new_path": "APIServer/appscale/api_server/app_identity.py", "diff": "@@ -1,6 +1,10 @@\n \"\"\" Implements the App Identity API. \"\"\"\n \n+import json\n import logging\n+import time\n+import urllib\n+import url...
9cc896202dc38d962c01aa2637dbc5bbc3e3dd9b
appscale/gts
16.08.2019 11:27:44
Apache License 2.0
Allow custom service accounts for restore ops This extends the datastore admin interface to allow custom service accounts for restore operations.
[ { "change_type": "MODIFY", "old_path": "AppServer/google/appengine/ext/datastore_admin/backup_handler.py", "new_path": "AppServer/google/appengine/ext/datastore_admin/backup_handler.py", "diff": "@@ -45,7 +45,6 @@ import copy\n import cStringIO\n import datetime\n import itertools\n-import json\n im...
1cce41180f3cf7c2fbae686f5585a03363e4e1b9
appscale/gts
15.10.2019 14:31:12
Apache License 2.0
Add support for property metadata queries This allows clients to request a list of property names and types for all kinds in a given namespace.
[ { "change_type": "MODIFY", "old_path": "AppDB/appscale/datastore/fdb/codecs.py", "new_path": "AppDB/appscale/datastore/fdb/codecs.py", "diff": "@@ -33,6 +33,10 @@ POINT_CODE = 0x21\n USER_CODE = 0x24\n REFERENCE_CODE = 0x27\n \n+# These are defined for clarity when selecting property type limits.\n+...
444e7026771cce4ece0feff9f5f3c76f57c61ed3
xaynetwork/xaynet
19.09.2019 17:41:41
Apache License 2.0
Add subdirectories for aggregates To enable multiple aggregates in a clean way in the output directory will now contain a sub-directory for each group for which the aggregate function is called
[ { "change_type": "MODIFY", "old_path": "xain/benchmark/aggregation/final_task_accuracies.py", "new_path": "xain/benchmark/aggregation/final_task_accuracies.py", "diff": "@@ -3,6 +3,7 @@ from typing import Dict, List, Optional, Tuple\n \n from absl import app, flags, logging\n \n+from xain.helpers im...
7c1a73370bd6ffb091dbc7cb811ee447f6e176aa
armmbed/mbed-crypto
05.03.2019 16:25:38
Apache License 2.0
Add RepoVersion class to make handling of many arguments easier There are a number of arguments being passed around, nearly all of which are duplicated between the old and new versions. Moving these into a separate class should hopefully make it simpler to follow what is being done.
[ { "change_type": "MODIFY", "old_path": "scripts/abi_check.py", "new_path": "scripts/abi_check.py", "diff": "@@ -28,23 +28,37 @@ import fnmatch\n import xml.etree.ElementTree as ET\n \n \n+class RepoVersion(object):\n+\n+ def __init__(self, version, repository, revision,\n+ crypto_...
a16d89f4b043ea07c6a936646924ac881e2b183b
nextstrain/ncov
19.02.2021 13:17:57
MIT License
Improve combine metadata script 1. More detailed help message 2. Helpful errors printed if assertions fail 3. Encoding of metadata origin now uses explicit "yes"/"no" values rather than using the empty string.
[ { "change_type": "MODIFY", "old_path": "scripts/combine_metadata.py", "new_path": "scripts/combine_metadata.py", "diff": "@@ -2,6 +2,7 @@ import argparse\n from augur.utils import read_metadata\n from Bio import SeqIO\n import csv\n+import sys\n \n EMPTY = ''\n \n@@ -18,25 +19,33 @@ EMPTY = ''\n \n ...
b1e5407c503fc067da452d6d65f503d018849252
nextstrain/ncov
20.09.2021 14:25:04
MIT License
Refactor sanitizer transform logic Move logic to parse mapping of old to new column names and strip prefixes into their own functions with tests. This refactoring simplifies the code in the main body of the sanitizer script.
[ { "change_type": "MODIFY", "old_path": "scripts/sanitize_metadata.py", "new_path": "scripts/sanitize_metadata.py", "diff": "@@ -16,6 +16,39 @@ LOCATION_FIELDS = (\n )\n \n \n+def parse_new_column_names(renaming_rules):\n+ \"\"\"Parse the mapping of current to new column names from the given list ...
dbffb035f72de8d43e5f04fc1ea0ce1b0da21e7a
teemtee/tmt
05.03.2020 14:21:24
MIT License
Support selecting objects under the current folder Add a special single dot notation for filtering stories, plans and tests under the current working directory. Update documentation and usage messages accordingly.
[ { "change_type": "MODIFY", "old_path": "docs/examples.rst", "new_path": "docs/examples.rst", "diff": "@@ -152,6 +152,12 @@ condition::\n $ tmt tests ls --condition 'tier > 0'\n /tests/ls\n \n+In order to select tests under the current working directory use\n+the single dot notation::\n+\n+ ...
e2acc7e1b8d14cc3c1f48d9a6609c99f2043c756
teemtee/tmt
11.05.2020 15:33:13
MIT License
Support short Fedora compose aliases in testcloud Adds support for 'fedora' as the latest released Fedora, 'rawhide' for the latest Rawhide plus 'fedora-X', 'f-X' and 'fX' shortcuts.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/provision/testcloud.py", "new_path": "tmt/steps/provision/testcloud.py", "diff": "@@ -120,9 +120,6 @@ DEFAULT_CONNECT_TIMEOUT = 10 # seconds\n \n # Image guessing related variables\n KOJI_URL = 'https://kojipkgs.fedoraproject.org/compose'\n-RAWHIDE...
8ec33c15a1586b5514b049600e960764a64a11dc
teemtee/tmt
13.07.2020 16:58:01
MIT License
Move the Guest class from base to steps.provision Here it makes more sense as it is related to provision classes.
[ { "change_type": "MODIFY", "old_path": "tmt/__init__.py", "new_path": "tmt/__init__.py", "diff": "@@ -1,5 +1,6 @@\n \"\"\" Test Management Tool \"\"\"\n \n-from tmt.base import Tree, Test, Plan, Story, Run, Guest, Result\n+from tmt.base import Tree, Test, Plan, Story, Run, Result\n+from tmt.steps.pr...
3791880e2acac8537f2b293bafa9e11b12d5d087
teemtee/tmt
21.09.2020 10:13:49
MIT License
Adjust the minute provision debug messages wording Just a couple of minor cosmetic adjustments to make the messages consistent with the rest.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/provision/minute.py", "new_path": "tmt/steps/provision/minute.py", "diff": "@@ -107,7 +107,7 @@ class ProvisionMinute(tmt.steps.provision.ProvisionPlugin):\n \n # Read API URL from 1minutetip script\n try:\n- self.debug(f\"...
c82819fb89809c4cc165b8a05dd54a47d6be0fb1
teemtee/tmt
15.02.2021 12:01:35
MIT License
Adjust the default branch handling for libraries Detect the default branch and store it after cloning the repo. This seems to make the implementation a bit more readable.
[ { "change_type": "MODIFY", "old_path": "tests/unit/test_beakerlib.py", "new_path": "tests/unit/test_beakerlib.py", "diff": "@@ -18,26 +18,26 @@ def test_library():\n assert library.format == 'rpm'\n assert library.repo == 'openssl'\n assert library.url == 'https://github.com/...
c9605aea40808f5b0bf00bbbd0ec679c09b760ac
teemtee/tmt
11.02.2022 15:10:31
MIT License
Implement a generic `requires` for all plugins Add support for gathering packages required on the guest to all supported plugins to allow easier future extension if needed.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/__init__.py", "new_path": "tmt/steps/__init__.py", "diff": "@@ -421,6 +421,10 @@ class Plugin(tmt.utils.Common, metaclass=PluginIndex):\n # Include order in verbose mode\n self.verbose('order', self.order, 'magenta', level=3)\n \n+ ...
4dc7a314bb39c63b2f0e822d248bb24bed129c1d
teemtee/tmt
12.04.2022 14:48:46
MIT License
Add a nice provisioning progress to Artemis plugin Artemis plugin now displays the sequence of of guest states as its provisioning progresses. This has been implemented as a reusable primitive context manager, coupled with a small refactoring of code taking care of indentation.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/execute/internal.py", "new_path": "tmt/steps/execute/internal.py", "diff": "@@ -106,6 +106,8 @@ class ExecuteInternal(tmt.steps.execute.ExecutePlugin):\n # Make sure that script is a list\n tmt.utils.listify(self.data, keys=['script']...
211b9e86f98414dcbf0f6a88608e9dd08cd79c1b
teemtee/tmt
18.06.2022 17:04:39
MIT License
Enhance tmt.utils.retry_session with timeout support `retry_session` is now usable as a context manager, and accepts a timeout to honor for each HTTP request. Current `retry_session` was overlapping with similar functionality in `artemis` plugin, so merged both together and threw context manager in too, because `retry_session` was used in that manner exclusively.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/discover/__init__.py", "new_path": "tmt/steps/discover/__init__.py", "diff": "@@ -273,8 +273,8 @@ class DiscoverPlugin(tmt.steps.Plugin):\n if handler.re_ignore_extensions.search(source_name):\n continue\n self...
e9b37078d9a877a4ad5de424e82ccfc67dae61ca
teemtee/tmt
10.06.2022 09:16:57
MIT License
Convert guest implementations to use serializable container for load/save Instead of custom load/save methods, use those based on dataclasses. We gain type annotations, automagic conversion from/to YAML, no need for explicit moves of fields between instances and serialized data.
[ { "change_type": "MODIFY", "old_path": "tests/multihost/provision/test.sh", "new_path": "tests/multihost/provision/test.sh", "diff": "@@ -25,7 +25,7 @@ rlJournalStart\n \n # 2 guests without role are saved\n guests=\"$run/noroles/provision/guests.yaml\"\n- rlAssertNotGrep \"ro...
ff19da28d197996c05d86eddcf5351376c5c27f6
teemtee/tmt
03.08.2022 18:07:03
MIT License
Reboot has to check for boot time Previous attempt with closing connection was not succesful as shown by /tests/execute/reboot/reuse_provision btime in /proc/stat is boot time in seconds since epoch and reboot() will make sure that it has changed Adds disk requirement for tests/full which is helps with testing
[ { "change_type": "MODIFY", "old_path": "tests/full/plan.fmf", "new_path": "tests/full/plan.fmf", "diff": "@@ -3,5 +3,6 @@ discover:\n provision:\n how: virtual\n memory: 4000\n+ disk: 40\n execute:\n how: tmt\n" }, { "change_type": "MODIFY", "old_path": "tmt/steps/provisio...
be1084624b4fb2c501a66dfcfd3cb9bde8108747
teemtee/tmt
14.08.2022 12:51:09
MIT License
Remove unused keys parameter from wake() methods This seems to be no longer used, and makes `wake()` more complicated than necessary.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/__init__.py", "new_path": "tmt/steps/__init__.py", "diff": "@@ -613,7 +613,7 @@ class BasePlugin(Phase, metaclass=PluginIndex):\n return True\n return where in (guest.name, guest.role)\n \n- def wake(self, keys: Optional[List[s...
20ed22e894d89810daaf9a3d979763f9a5d94d74
teemtee/tmt
26.08.2022 14:20:48
MIT License
Unify Polarion case searching Save and load ids to/from results.yaml. Add constant for extra identification keys. Raise ReportError on TC not found in Polarion.
[ { "change_type": "MODIFY", "old_path": "tmt/base.py", "new_path": "tmt/base.py", "diff": "@@ -70,6 +70,9 @@ SECTIONS_HEADINGS = {\n 'Cleanup': ['<h1>Cleanup</h1>']\n }\n \n+# Extra keys used for identification in Result class\n+EXTRA_RESULT_IDENTIFICATION_KEYS = ['extra-nitrate', 'extra-task...
c724839dae3bbde4cd102e5e174d1f4886a7abab
teemtee/tmt
17.08.2022 13:18:40
MIT License
Replace blank "type: ignore" with more specific waivers Using mypy's error codes, waivers can target the actual erorr, leaving space for other kind of violations to not be suppressed.
[ { "change_type": "MODIFY", "old_path": ".pre-commit-config.yaml", "new_path": ".pre-commit-config.yaml", "diff": "@@ -60,3 +60,22 @@ repos:\n hooks:\n - id: yamllint\n files: ^tmt/schemas/.*\\.yaml\n+\n+ # Yet another static analysis - these hooks use regular expressions to\n+ # ...
8c7efb43f4bb5ebeabf41bce7b87f31a95074a1d
teemtee/tmt
14.08.2022 16:39:48
MIT License
Add a helper for importing a member from a module This primitive appeared twice already, and follows the same scenario: import a module, then locate a member (a class, usually) in the module, and catch possible errors along the way.
[ { "change_type": "MODIFY", "old_path": "tests/unit/test_utils.py", "new_path": "tests/unit/test_utils.py", "diff": "@@ -12,6 +12,8 @@ import unittest.mock\n import pytest\n \n import tmt\n+import tmt.plugins\n+import tmt.steps.discover\n from tmt.utils import (Common, GeneralError, StructuredField,\...
c2eee2af912e34debfcfa8c575835c2f9d1812d2
teemtee/tmt
20.09.2022 14:31:28
MIT License
Document & correct use of class conversion methods Recently added `{to,from}_{serialized,raw,dict}` methods for various conversions were poorly documented, and sometimes even wrongly used. This patch adds a short summary on when to use them, and fixes some sub par bits around the code.
[ { "change_type": "MODIFY", "old_path": "docs/classes.rst", "new_path": "docs/classes.rst", "diff": "@@ -72,6 +72,113 @@ In a similar way, the ``tree`` property of the ``Tree`` instance\n points to the original ``fmf.Tree`` from which it was initialized.\n \n \n+Class Conversions\n+~~~~~~~~~~~~~~~~~~...
134b710615faa45529757fd23eee012b2e8398a1
teemtee/tmt
08.12.2022 13:25:16
MIT License
Drop various guest `wake()` methods in favor of parent class They all do the same things anyway: instantiate a guest class, with given data, pass parent and name down the stream. A base class can do all of this.
[ { "change_type": "MODIFY", "old_path": "tmt/steps/provision/__init__.py", "new_path": "tmt/steps/provision/__init__.py", "diff": "@@ -1037,6 +1037,9 @@ class ProvisionPlugin(tmt.steps.GuestlessPlugin):\n # List of all supported methods aggregated from all plugins of the same step.\n _support...
7b18ddcc6dd7f3f708e0681411033839abc0a203
uma-pi1/kge
14.08.2019 17:33:08
MIT License
Fix resuming of SOBOL generator during ax search This is done by fixing the seed and regenerating trials already performed.
[ { "change_type": "MODIFY", "old_path": "kge/job/auto_search.py", "new_path": "kge/job/auto_search.py", "diff": "@@ -113,10 +113,18 @@ class AutoSearchJob(SearchJob):\n self.trial_ids.append(trial_id)\n self.parameters.append(parameters)\n s...
70e2d9a7f62bfc56ea2469cc25384ced00e5741e
uma-pi1/kge
11.12.2019 16:28:21
MIT License
Support for dataset-specific configurations and metadata preprocess now creates a dataset.yaml file with information about the dataset.
[ { "change_type": "MODIFY", "old_path": "data/download_all.sh", "new_path": "data/download_all.sh", "diff": "@@ -13,7 +13,7 @@ if [ ! -d \"$BASEDIR/toy\" ]; then\n cd $BASEDIR\n curl -O https://www.uni-mannheim.de/media/Einrichtungen/dws/pi1/kge_datasets/toy.tar.gz\n tar xvf toy.tar.gz\n-...
bd4553f1952b25ceaf82e62eb525a142b83714dc
uma-pi1/kge
18.12.2019 19:35:57
MIT License
Add support for relation prediction Added a score_so method to KgeModel for this purpose and a default implementation in RelationalScorer (which is currently used by all models).
[ { "change_type": "MODIFY", "old_path": "kge/model/complex.py", "new_path": "kge/model/complex.py", "diff": "@@ -39,7 +39,7 @@ class ComplExScorer(RelationalScorer):\n elif combine == \"*po\":\n out = (r_all * o_all).mm(s_all.transpose(0, 1))\n else:\n- raise Va...
056ad38583782f9315eed3d6aa607d5d7be2e438
uma-pi1/kge
26.03.2020 11:10:12
MIT License
Rename queries sp*/s*o/*po to sp_/s_o/_po This makes them valid identifiers, which allows to use query types as configuration keys (for example).
[ { "change_type": "MODIFY", "old_path": "kge/job/train.py", "new_path": "kge/job/train.py", "diff": "@@ -935,7 +935,7 @@ class TrainingJobNegativeSampling(TrainingJob):\n \n \n class TrainingJob1vsAll(TrainingJob):\n- \"\"\"Samples SPO pairs and queries sp* and *po, treating all other entities as ...
846a842a6dbd6c7f989bff5232c697be94ffb7b1
altair-viz/altair
07.01.2022 17:33:18
BSD 3-Clause New or Revised License
Define SelectionPredicateComposition Made a new class SelectionPredicateComposition to allow use of ~,&,| with certain PredicateCompositions. Rewrote test_filter_transform_selection_predicates to match the new syntax.
[ { "change_type": "MODIFY", "old_path": "altair/vegalite/v5/api.py", "new_path": "altair/vegalite/v5/api.py", "diff": "@@ -184,7 +184,7 @@ class Parameter(expr.core.OperatorMixin, object):\n \n def __invert__(self):\n if self.param_type == \"selection\":\n- return core.Predicat...
e5f40d2eb3e6b1fcf7773a13c53e903a7124b090
choderalab/yank
18.07.2017 20:13:20
MIT License
Add MPI parallelization on different MPI communicators. This is necessary to parallelize functions that are also parallelized.
[ { "change_type": "MODIFY", "old_path": "Yank/mpi.py", "new_path": "Yank/mpi.py", "diff": "@@ -44,6 +44,7 @@ import signal\n import logging\n from contextlib import contextmanager\n \n+import numpy as np\n # TODO drop this when we drop Python 2 support\n from openmoltools.utils import wraps_py2\n \n@...
a4565ef863c2bdf5acbcb216681b3f2ee9ca9918
choderalab/yank
24.07.2017 13:57:08
MIT License
Add jobid and njobs argument to script command. This allows to run multiple experiments from the same script in several parallel executions of YANK.
[ { "change_type": "MODIFY", "old_path": "Yank/commands/script.py", "new_path": "Yank/commands/script.py", "diff": "@@ -25,7 +25,7 @@ usage = \"\"\"\n YANK script\n \n Usage:\n- yank script (-y FILEPATH | --yaml=FILEPATH) [-o OVERRIDE]...\n+ yank script (-y FILEPATH | --yaml=FILEPATH) [--jobid=INTEG...
926d3e6dbe16c21403a5f4fa83f066ecdff40c67
choderalab/yank
07.08.2018 11:51:41
MIT License
Move CLI imports into functions for speed In order to prevent the CLI from taking long times due to importing everything, especially when the user mis-types a command for docopt to handle, import statements for the CLI functions have been moved to the actual functions instead of the module header
[ { "change_type": "MODIFY", "old_path": "Yank/commands/analyze.py", "new_path": "Yank/commands/analyze.py", "diff": "@@ -13,15 +13,7 @@ Analyze YANK output file.\n # MODULE IMPORTS\n # =============================================================================================\n \n-import io\n-impor...
b0a8c1dc01bd027cc4b1efd12a7cba9a2b7416a9
lagolunatic/wwrando
17.12.2022 20:00:12
MIT License
Improve performance of path hint generation Avoid instantiating tons of different logic instances and just reuse the same instance by resetting its state every time it's needed.
[ { "change_type": "MODIFY", "old_path": "hints.py", "new_path": "hints.py", "diff": "@@ -64,6 +64,9 @@ class Hints:\n self.logic = rando.logic\n self.options = rando.options\n \n+ self.path_logic = Logic(self.rando)\n+ self.path_logic_initial_state = self.path_logic.save_simulated_p...
cf0d18e6334193e198d9eb105eb775635198129b
genericmappingtools/pygmt
05.07.2017 10:44:59
BSD 3-Clause New or Revised License
Create and destroy C sessions inside call_module Removes the need to always do this when using the C API. It's what the command line app does anyway so it's not wasteful.
[ { "change_type": "MODIFY", "old_path": "gmt/clib/functions.py", "new_path": "gmt/clib/functions.py", "diff": "@@ -63,20 +63,21 @@ def destroy_session(session):\n assert status == 0, 'Failed with status code {}.'.format(status)\n \n \n-def call_module(session, module, args):\n+def call_module(mod...
15eeaa5a0080ca063d421feb0d64e94947c478b6
genericmappingtools/pygmt
05.07.2017 17:08:25
BSD 3-Clause New or Revised License
Hide away session management Implement a GMTSession class to handle calling begin and end. Use it as a global (package level) session. This way, each script/notebook uses a single session. begin and end are no longer public API functions.
[ { "change_type": "MODIFY", "old_path": "doc/api.rst", "new_path": "doc/api.rst", "diff": "@@ -6,15 +6,13 @@ API Reference\n High-level functions for GMT modules\n ------------------------------------\n \n-Each GMT module (``gmt pscoas``, ``gmt grdgradient``, etc.) is wrapped by a\n+Each GMT module (...
710501ab0ac79a8fb5d6798936de652d1a4e3d3d
genericmappingtools/pygmt
07.07.2017 00:17:57
BSD 3-Clause New or Revised License
Replace the global GMTSession with 'atexit' No need for the class or the global instance. Register 'end' with 'atexit' to make sure end is called when exiting Python.
[ { "change_type": "MODIFY", "old_path": "gmt/__init__.py", "new_path": "gmt/__init__.py", "diff": "@@ -1,23 +1,22 @@\n \"\"\"\n GMT Python interface\n \"\"\"\n-from ._version import get_versions\n+import atexit as _atexit\n+\n+from ._version import get_versions as _get_versions\n \n # Import modules ...
9a581830e4fa02eed501b4e1f546a2e2ea358e13
bitcoinunlimited/bitcoinunlimited
11.07.2017 09:49:39
MIT License
Add 4 block attack scenarios to PV python testing Also add the needed option -pvtest which slows down the checking of inputs by putting a sleep time of 1 second for each input to check. This allows up to simulate very long to validate blocks used in the attack scenarios.
[ { "change_type": "MODIFY", "old_path": "qa/pull-tester/rpc-tests.py", "new_path": "qa/pull-tester/rpc-tests.py", "diff": "@@ -209,6 +209,7 @@ testScripts = [ RpcTest(t) for t in [\n testScriptsExt = [ RpcTest(t) for t in [\n 'txPerf',\n 'excessive --extensive',\n+ 'parallel --extensive',\...
01975338cdb2444471df8371766f8a64815c1ad6
bitcoinunlimited/bitcoinunlimited
04.04.2019 14:37:51
MIT License
Improve reliablility of p2p-acceptblock.py Numerous timing issues do with the the multi-threading and also the requestmanager. Better to no rely on sync_with_ping() and also we have to handle getheaders requests and subsequent multi hash getdata requests.
[ { "change_type": "MODIFY", "old_path": "qa/rpc-tests/p2p-acceptblock.py", "new_path": "qa/rpc-tests/p2p-acceptblock.py", "diff": "@@ -64,13 +64,31 @@ class TestNode(NodeConnCB):\n self.connection = None\n self.ping_counter = 1\n self.last_pong = msg_pong()\n+ self.last...
05859b201594e87ff4d4472dd3914ef041314558
graphite-project/graphite-web
01.11.2018 15:42:56
Apache License 2.0
Add a minValue option to nonNegativeDerivative and perSecond It works in a way similar to maxValue: when the counter wraps, instead of producing a null value, it computes the difference assuming the counter wrapped to minValue.
[ { "change_type": "MODIFY", "old_path": "webapp/graphite/render/functions.py", "new_path": "webapp/graphite/render/functions.py", "diff": "@@ -1973,12 +1973,15 @@ derivative.params = [\n ]\n \n \n-def perSecond(requestContext, seriesList, maxValue=None):\n+def perSecond(requestContext, seriesList, ma...
c3f6817a03d60af66b4cabb47d7ecbc642bf6376
sabeechen/hassio-google-drive-backup
22.08.2022 08:08:06
MIT License
Use alternate headers for HA auth requests When sending a "Authorization: Bearer" header to the supervisor's /auth endpoint, the header gets used to authorize the addon and then _also_ authorize against HA which fails. This changes requests made to the /auth enpoint so they use the "X-Supervisor-Token" header to avoid the conflict.
[ { "change_type": "MODIFY", "old_path": "hassio-google-drive-backup/backup/ha/harequests.py", "new_path": "hassio-google-drive-backup/backup/ha/harequests.py", "diff": "@@ -18,6 +18,8 @@ from yarl import URL\n \r\n logger = getLogger(__name__)\r\n \r\n+HEADER_TOKEN = \"X-Supervisor-Token\"\r\n+\r\n N...
e3d28a803cdcd1f050dcbf8ea4ee4fa21954caba
miurahr/aqtinstall
23.07.2021 13:11:43
MIT License
Use library instead of ad-hoc code This replaces `pretty_print_combos` with `json.dumps`, and `compare_combos` with `jsoncomparison.Compare`.
[ { "change_type": "MODIFY", "old_path": "ci/generate_combinations.py", "new_path": "ci/generate_combinations.py", "diff": "@@ -3,9 +3,10 @@\n import argparse\n import json\n import logging\n-import re\n from pathlib import Path\n-from typing import Dict, Generator, Iterator, List, Optional, Set, Tupl...
b62db9ee2ab82514ab217a950dfe35829b20950a
miurahr/aqtinstall
06.03.2022 18:16:37
MIT License
Allow `MetadataFactory.fetch_http` to skip sha256 `MetadataFactory.fetch_http` must often download HTML pages, not Updates.xml files. download.qt.io does not store checksums for these files, so this particular function must be allowed to download these pages without using a checksum.
[ { "change_type": "MODIFY", "old_path": "aqt/metadata.py", "new_path": "aqt/metadata.py", "diff": "@@ -452,7 +452,7 @@ class MetadataFactory:\n \n def fetch_extensions(self, version: Version) -> List[str]:\n versions_extensions = MetadataFactory.get_versions_extensions(\n- self...
dc45839df46282db68817df7c991b91ab48e9d11
miurahr/aqtinstall
20.03.2022 14:03:10
MIT License
Fix implementation of `helper.get_hash` Causes `get_hash` to verify the hash length, and check that the hash can be unhexlified properly. Fixes the interface for `get_hash` so that the caller does not have to run `binascii.unhexlify` or verify its output.
[ { "change_type": "MODIFY", "old_path": "aqt/archives.py", "new_path": "aqt/archives.py", "diff": "@@ -19,7 +19,6 @@\n # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n # CONNECTION WITH THE S...
ed6cf7696871e01685c1c96d6d13deb6439ae490
miurahr/aqtinstall
24.07.2022 00:30:16
MIT License
Add CLI option to install desktop qt automatically This change also causes aqt to emit a warning when the option is not turned on and the expected desktop Qt is not found.
[ { "change_type": "MODIFY", "old_path": "aqt/installer.py", "new_path": "aqt/installer.py", "diff": "@@ -299,6 +299,7 @@ class Cli:\n if modules is not None and archives is not None:\n archives.append(modules)\n nopatch = args.noarchives or (archives is not None an...
75a13309377844662d8be00fe1fbf9b6112e9db9
projectcalico/calicoctl
28.03.2017 15:43:20
Apache License 2.0
Add test to simulate GCE instance setup This change adds a test that sets up hosts' addressing and routing as it is on a GCE instance, and checks that we still get connectivity between workloads on different hosts.
[ { "change_type": "MODIFY", "old_path": "tests/st/policy/test_profile.py", "new_path": "tests/st/policy/test_profile.py", "diff": "@@ -30,7 +30,8 @@ POST_DOCKER_COMMANDS = [\"docker load -i /code/calico-node.tar\",\n class MultiHostMainline(TestBase):\n @parameterized.expand([\n #\"tags\"...
0f210ba5b311e2c25b02b8123c0805a0bc872c17
openshift/openshift-tools
13.01.2017 15:36:51
Apache License 2.0
Allow tests to be run on demand With this change, a string "[test]" can be added as a comment to a pull request by a whitelisted user to initiate testing on a pull request
[ { "change_type": "MODIFY", "old_path": "jenkins/Jenkinsfile", "new_path": "jenkins/Jenkinsfile", "diff": "@@ -2,22 +2,49 @@\n \n node {\n stage \"Check PR Action\"\n+ // Parse json payload\n+ def test_key = \"[test]\"\n def slurper = new groovy.json.JsonSlurper()\n ...
a72eda6c40cf000f172d7e11dd5a4b67fac855a0
openshift/openshift-tools
14.02.2017 17:49:29
Apache License 2.0
Refactor to update pull requests with pending status This commit refactors code to update the pull request with a pending status at the earliest possible time. Additionally, this refactor includes fixes an issue where unexpected characters in the pull request title or body caused issues parsing github webhook payload json
[ { "change_type": "MODIFY", "old_path": "jenkins/Jenkinsfile", "new_path": "jenkins/Jenkinsfile", "diff": "@@ -5,8 +5,10 @@ node {\n // Parse json payload\n def test_key = \"[test]\"\n def slurper = new groovy.json.JsonSlurper()\n+ def jout = new groovy.json.JsonOutput(...
b9cb055cfabd29cd65b44800c8e85a3fb157b846
python-lz4/python-lz4
31.03.2020 14:13:13
BSD 3-Clause New or Revised License
Check for available memory instead of its total amount in tests This change prevents the python interpreter from triggering the OOM-killer while trying to use/allocate more memory than available on the system.
[ { "change_type": "MODIFY", "old_path": "tests/block/test_block_2.py", "new_path": "tests/block/test_block_2.py", "diff": "@@ -28,7 +28,7 @@ _4GB = 0x100000000 # 4GB\n reason='Py_ssize_t too small for this test'\n )\n @pytest.mark.skipif(\n- psutil.virtual_memory().total < _4GB,\n+ psutil....
84b110bc95d6a100081821c0daab9bbca4ad9794
python-lz4/python-lz4
02.04.2020 15:30:40
BSD 3-Clause New or Revised License
Reduce pressure on memory in stream tests This change runs the python garbage collector before and after each stream test. The garbage collector is disabled in the CI since it has a significant impact on the duration of the jobs (which are time constrained in the CI).
[ { "change_type": "MODIFY", "old_path": "tests/stream/test_stream_0.py", "new_path": "tests/stream/test_stream_0.py", "diff": "@@ -1,10 +1,29 @@\n import lz4.stream\n import sys\n import pytest\n+import gc\n+import os\n if sys.version_info <= (3, 2):\n import struct\n \n \n+def run_gc(func):\n+ ...
eede0e1505faec4218a95b5b27702d68f3aa4f88
siliconcompiler/siliconcompiler
09.06.2021 15:57:10
Apache License 2.0
Fix multiline strings in schema examples Using '\' or multiline strings results in extra whitespace, so it seems best to use Python's automatic concatenation of adjacent strings.
[ { "change_type": "MODIFY", "old_path": "siliconcompiler/schema.py", "new_path": "siliconcompiler/schema.py", "diff": "@@ -638,8 +638,8 @@ def schema_pdk(cfg):\n 'short_help' : 'Primitive Libraries',\n 'param_help' : \"pdk plib stackvar toolvar formatvar <file>\",\n 'example':...
263bb8018dd186fa5b4fc580fca869be35c4dcf5
siliconcompiler/siliconcompiler
15.02.2022 16:50:13
Apache License 2.0
Remove PDK-specific var defaults from openroad.py We shouldn't be hardcoding tech-specific values in tool setup scripts, so we should use the new ['pdk', 'variable'] parameter to drive these. In order to support user overrides, we'll still drive them through the ['eda', ... 'variable'] keypath in the TCL script.
[ { "change_type": "MODIFY", "old_path": "siliconcompiler/pdks/asap7.py", "new_path": "siliconcompiler/pdks/asap7.py", "diff": "@@ -135,6 +135,13 @@ def setup(chip):\n chip.set('pdk','grid', stackup, layer, 'ypitch', 0.08)\n chip.set('pdk','grid', stackup, layer, 'adj', 0.4)\n \n+...
2aa226f7dba49d10d7175e151903f65282212ba0
siliconcompiler/siliconcompiler
15.03.2022 11:43:40
Apache License 2.0
Fix RST parsing in schemagen - Use Python standardized docstring "trim" function to preserve newlines and indentation in schelp strings. - Fix schemagen parse_rst() to handle multiline text
[ { "change_type": "MODIFY", "old_path": "docs/_ext/dynamicgen.py", "new_path": "docs/_ext/dynamicgen.py", "diff": "@@ -19,7 +19,7 @@ import subprocess\n \n from common import *\n \n-import siliconcompiler\n+from siliconcompiler import utils\n \n #############\n # Helpers\n@@ -98,37 +98,6 @@ def build...
7c63859ebda3a519db318f3105862d46621e36cd
siliconcompiler/siliconcompiler
26.05.2022 17:08:29
Apache License 2.0
Make _print_tcl() more robust - Use {} to escape strings, so that we can have spaces and newlines - Dump tuples as lists to avoid parsing - Make sure envvar syntax gets subbed in anywhere in string
[ { "change_type": "MODIFY", "old_path": "siliconcompiler/core.py", "new_path": "siliconcompiler/core.py", "diff": "@@ -1472,6 +1472,38 @@ class Chip:\n else:\n fout.write(f\"{keypath},{value}\")\n \n+ #####################################################################...
01ebf8a093f06eaee4bccd58943c1d8f072f2418
siliconcompiler/siliconcompiler
31.05.2022 15:29:30
Apache License 2.0
Tweak string escape approach Use "" instead of {} to remove persistent backslashes in front of curly braces in string.
[ { "change_type": "MODIFY", "old_path": "siliconcompiler/core.py", "new_path": "siliconcompiler/core.py", "diff": "@@ -1479,27 +1479,37 @@ class Chip:\n if val is None:\n return ''\n elif typestr.startswith('('):\n+ # Recurse into each item of tuple\n ...
579c9d4deca09dbb7a615bfb98c7678723b2aefd
siliconcompiler/siliconcompiler
21.06.2022 13:48:24
Apache License 2.0
Make tool regex set errors/warnings metrics - "errors" and "warnings" suffix is special case - Also update docs for relevant schema param and check_logfile()
[ { "change_type": "MODIFY", "old_path": "siliconcompiler/core.py", "new_path": "siliconcompiler/core.py", "diff": "@@ -2909,17 +2909,22 @@ class Chip:\n '''\n Checks logfile for patterns found in the 'regex' parameter.\n \n- Reads the content of the step's log file and compares...
400e0b0e4fcb661888b8498ea3ff310c386aa75a
siliconcompiler/siliconcompiler
21.06.2022 18:40:01
Apache License 2.0
Make regex errors/warnings additive, add reports - Enables tools to extract additional errors/warnings from other logs - Add logfiles under reports to reduce boilerplate, the logfiles always belong if regex is used
[ { "change_type": "MODIFY", "old_path": "siliconcompiler/client.py", "new_path": "siliconcompiler/client.py", "diff": "@@ -54,11 +54,8 @@ def remote_preprocess(chip):\n for index in indexlist:\n tool = chip.get('flowgraph', flow, local_step, index, 'tool')\n # Setting up tool is o...
d635433ebc9648a09beb499488c077fa87032efd
astropy/astroquery
22.04.2022 17:23:32
BSD 3-Clause New or Revised License
Add a spectral cutout example Also include support for numpy arrays for band and channel, and autocorrect the band and channel values to be in ascending order
[ { "change_type": "MODIFY", "old_path": "astroquery/casda/core.py", "new_path": "astroquery/casda/core.py", "diff": "@@ -14,6 +14,7 @@ import astropy.coordinates as coord\n from astropy.table import Table\n from astropy.io.votable import parse\n from astroquery import log\n+import numpy as np\n \n # ...
31cedeada50149581f117e425c3191af8b6f0b97
astropy/astroquery
20.06.2022 19:30:54
BSD 3-Clause New or Revised License
Validate `svo_fps` query parameter names locally `SvoFpsClass.data_from_svo()` now checks the names of the query parameters and only connects with the server if all names are valid.
[ { "change_type": "MODIFY", "old_path": "astroquery/svo_fps/core.py", "new_path": "astroquery/svo_fps/core.py", "diff": "@@ -9,11 +9,23 @@ from astropy.io.votable import parse_single_table\n from . import conf\n \n from ..query import BaseQuery\n+from astroquery.exceptions import InvalidQueryError\n+...
040f67665e7dbe682d07e8e1872cd782c263f951
astropy/astroquery
12.09.2022 15:01:41
BSD 3-Clause New or Revised License
Simplify setting DummyResponse data in TAP+ tests `DummyResponse` is used in `esa/jwst` and `gaia` tests for mimicking server responses. Now the response data can be specified by only setting the parameters that have non-default values.
[ { "change_type": "MODIFY", "old_path": "astroquery/esa/jwst/tests/test_jwsttap.py", "new_path": "astroquery/esa/jwst/tests/test_jwsttap.py", "diff": "@@ -236,10 +236,7 @@ class TestTap:\n responseLaunchJob = DummyResponse(200)\n jobDataFile = data_path('job_1.vot')\n jobData ...
a2215fa0604f86cb1a4f006c5cb706375aa0d511
astropy/astroquery
10.10.2022 23:40:08
BSD 3-Clause New or Revised License
Simplify column attribute checking in `gaia` tests The function `__check_results_column()` tested if the attributes (e.g. description) of the columns of the query results match the expectation. This function is now replaced with `astropy.table.BaseColumn.attrs_equal()`, and the comparison data is now provided by a `pytest` fixture.
[ { "change_type": "MODIFY", "old_path": "astroquery/gaia/tests/test_gaiatap.py", "new_path": "astroquery/gaia/tests/test_gaiatap.py", "diff": "@@ -18,6 +18,7 @@ import os\n from unittest.mock import patch\n \n import pytest\n+from astropy.table import Column\n from requests import HTTPError\n \n from...
897aed03b17583152118d44f7a3b78f22a8a08b6
astropy/astroquery
12.10.2022 16:57:42
BSD 3-Clause New or Revised License
Reduce duplication in setting up `gaia` tests The new module level fixtures allowed removing setup code from many tests.
[ { "change_type": "MODIFY", "old_path": "astroquery/gaia/tests/test_gaiatap.py", "new_path": "astroquery/gaia/tests/test_gaiatap.py", "diff": "@@ -15,6 +15,7 @@ Created on 30 jun. 2016\n \n \"\"\"\n import os\n+from pathlib import Path\n from unittest.mock import patch\n \n import pytest\n@@ -35,9 +3...
f1805854fe98984268a8693e0e970b37b14cb50e
astropy/astroquery
12.10.2022 16:58:48
BSD 3-Clause New or Revised License
Remove `TestTap` class from `gaia` tests Grouping the tests together in a test class served no purpose and eliminating the class removed a level of indentation.
[ { "change_type": "MODIFY", "old_path": "astroquery/gaia/tests/test_gaiatap.py", "new_path": "astroquery/gaia/tests/test_gaiatap.py", "diff": "@@ -100,251 +100,249 @@ def mock_querier_async():\n return GaiaClass(conn_handler, tapplus, show_server_messages=False)\n \n \n-class TestTap:\n-\n- de...
766b512c71e32d908bb84ba1b7b60b2b2f205437
astropy/astroquery
09.01.2023 18:59:41
BSD 3-Clause New or Revised License
Remove `utils.tap.conn.TapConn.url_encode()` The removed method simply called the standard library `urllib.parse.urlencode()`.
[ { "change_type": "MODIFY", "old_path": "astroquery/esa/hubble/core.py", "new_path": "astroquery/esa/hubble/core.py", "diff": "@@ -8,6 +8,7 @@ European Space Astronomy Centre (ESAC)\n European Space Agency (ESA)\n \n \"\"\"\n+from urllib.parse import urlencode\n \n from astropy import units\n from as...
90c5652a04ed8108b6b16ab9d2be54165bb4e37f
astropy/astroquery
09.01.2023 19:01:34
BSD 3-Clause New or Revised License
Remove an utility function for reading test data `astroquery.utils.tap.xmlparser.utils.read_file_content()` has been replaced with the standard library `pathlib.Path.read_text()`. Furthermore, in the modules where multiple test functions previously used `read_file_content()` to read the data files, they are now read once at the module level instead.
[ { "change_type": "MODIFY", "old_path": "astroquery/esa/jwst/tests/test_jwsttap.py", "new_path": "astroquery/esa/jwst/tests/test_jwsttap.py", "diff": "@@ -10,6 +10,7 @@ European Space Agency (ESA)\n \"\"\"\n import os\n import shutil\n+from pathlib import Path\n from unittest.mock import MagicMock\n ...