message
stringlengths
13
484
diff
stringlengths
38
4.63k
Ignore all lines of subsequent hunks until last one is found Git version 2.11.1+ introduced extra lines into the subsequent hunk sections for incremental blame output. The documentation notes that parsers of this output should ignore all lines between the start and end for robust parsing.
@@ -713,11 +713,14 @@ class Repo(object): committed_date=int(props[b'committer-time'])) commits[hexsha] = c else: - # Discard the next line (it's a filename end tag) + # Discard all lines until we find "filename" which is + # guaranteed to be the last line + while True: line = next(stream) tag, value = line.split(b' ',...
Fix alerter test with correct format Removes the hostname of the monitor if it's local; this was always the intended behaviour (although the test didn't properly reflect that), and the behaviour was fixed in an earlier commit, caught by linting.
@@ -495,13 +495,12 @@ class TestMessageBuilding(unittest.TestCase): ), textwrap.dedent( """ - Monitor test on {hostname} failed! + Monitor test failed! Failed at: {expected_time} (down 0+00:00:00) Virtual failure count: 1 Additional info: This monitor always fails. Description: A monitor which always fails. """.format(...
Lexical envs: comment Get_Internal.Get_Elements TN:
@@ -492,6 +492,12 @@ package body Langkit_Support.Lexical_Env is use Internal_Envs; function Get_Elements (Env : Lexical_Env) return Boolean; + -- Lookup for matching elements in Env's internal map and append them to + -- Local_Results. Return whether we found some. + + ------------------ + -- Get_Elements -- + -------...
Fix owner signing is own removal Closes
@@ -103,11 +103,13 @@ class SafeMultisigTransactionListView(ListAPIView): ethereum_client = EthereumClientProvider() safe = Safe(address, ethereum_client=ethereum_client) - # Check operation type matches condition (hash_approved -> confirmation, nonce -> execution) - if not safe.retrieve_is_owner(sender): + # Check own...
Update how-to-run-CEA-optimization.rst change to the right graph
@@ -22,11 +22,11 @@ The results from the optimization is a collection of pareto-optimum solutions. Optimization Variables ---------------------- Beside the objectives, the main outputs from the optimization is the energy supply system configurations. -Each perato-optimum solution implies a unique energy supply system c...
Extract generic onChanged invocation logic to _callOnChanged and call it from both PropertyStorage and alias property code Fixes
@@ -522,10 +522,8 @@ PropertyStoragePrototype.set = function(object, name, newValue, defaultValue, ca this.callOnChanged(object, name, newValue, oldValue) } -PropertyStoragePrototype.callOnChanged = function(object, name, value) { +var _callOnChanged = function(object, name, value, handlers) { var protoCallbacks = obje...
updated filter_profiles to handle arrays in values key_values might now contain arrays. Useful for filtering on 'families'
@@ -79,11 +79,11 @@ def fullmatch(regex, string, flags=0): return None -def validate_value_by_regexes(value, in_list): +def validate_value_by_regexes(values, in_list): """Validates in any regex from list match entered value. Args: - value (str): String where regexes is checked. + values (str|list): String where regexes...
docs(customization): update cookicutter template url commitizen_cz_template is moved from Lee-W to commitizen-tools
@@ -14,10 +14,10 @@ Check an [example](convcomms) on how to configure `BaseCommitizen`. You can also automate the steps above through [cookiecutter](https://cookiecutter.readthedocs.io/en/1.7.0/). ```sh -cookiecutter gh:Lee-W/commitizen_cz_template +cookiecutter gh:commitizen-tools/commitizen_cz_template ``` -See [Lee-...
TEST: include test_granger_fails_on_zero_lag issue Include test that the appropriate exception is raised whe the wrong list of arguments is passed
@@ -481,6 +481,13 @@ class TestGrangerCausality(object): with pytest.raises(ValueError, match="x contains NaN"): grangercausalitytests(x, 2) + def test_granger_fails_on_zero_lag(self, reset_randomstate): + x = np.random.rand(1000, 2) + with pytest.raises( + ValueError, + match="maxlag must be a non-empty list containin...
Add base class & test launcher for web file upload Throw web.webcore:upload:test on your commandline, and you get an /upload_test URL where you can upload a file. The base class just logs the filename, size, and MD5 hash, but you can easily subclass it to do something more interesting.
@@ -660,6 +660,71 @@ class InternalContentHandler (SplitRequestHandler): self.wfile.write(r) +class FileUploadHandler (SplitRequestHandler): + """ + A default page to say hi from POX. + """ + def do_GET (self): + """Serve a GET request.""" + self.send_form(True) + + def do_HEAD (self): + """Serve a HEAD request.""" + s...
Remove dashboard_frontend_vip from the ceph mgr template The purpose of this change is to just remove the dashboard frontend vip parameter that is now computed on tripleo-ansible according to the haproxy frontend network defined for the ceph dashboard service. Depends-On:
@@ -83,7 +83,6 @@ resources: dashboard_rgw_api_scheme: {get_param: [EndpointMap, CephRgwInternal, protocol]} dashboard_rgw_api_no_ssl_verify: false dashboard_port: {get_param: CephDashboardPort} - dashboard_frontend_vip: {get_param: [EndpointMap, CephDashboardInternal, host]} dashboard_admin_user_ro: {get_param: CephDa...
Make the ScopeExtractorProcessor usable for the Primary Identifier This patch adds support to use the ScopeExtractorProcessor on the Primary Identifiert which is, in contrast to the other values, a string. Closes
@@ -31,6 +31,8 @@ class ScopeExtractorProcessor(BaseProcessor): values = attributes.get(attribute, []) if not values: raise AttributeProcessorWarning("Cannot apply scope_extractor to {}, it has no values".format(attribute)) + if not isinstance(values, list): + values = [values] if not any('@' in val for val in values):...
improve unit tests for lru_cache This patch restructures and adds unit tests for types.lru_cache.
from nutils.testing import * import nutils.types import inspect, pickle, itertools, ctypes, stringly, tempfile, io, os -import numpy, weakref +import numpy, weakref, contextlib class apply_annotations(TestCase): @@ -1028,46 +1028,82 @@ class lru_cache(TestCase): super().setUp() self.func.cache.clear() + class obj(nutil...
add note about need to install ffmpeg/libav Was messing for hours with error messages, and trying to figure out what was wrong just because I didn't notice the warning about ffmpeg/libav.
@@ -12,6 +12,7 @@ If you have OS X and `Homebrew`_ you can install with: :: brew install svtplay-dl + Make sure you notice that you need to run `brew install ffmpeg` or `brew install libav` afterwards, if you don't already have one of these packages. Debian and Ubuntu ~~~~~~~~~~~~~~~~~
Pin dependencies Use "compatible release" version specifiers for the dnaio and xopen dependencies. Not using the ">=" operator should avoid suprises when dependencies are updated. See Close
@@ -102,7 +102,7 @@ setup( package_dir={'': 'src'}, packages=find_packages('src'), entry_points={'console_scripts': ['cutadapt = cutadapt.__main__:main']}, - install_requires=['dnaio>=0.3', 'xopen>=0.7.3'], + install_requires=['dnaio~=0.3.0', 'xopen~=0.8.1'], extras_require={ 'dev': ['Cython', 'pytest', 'pytest-timeout...
revert: change to pip caching let's revisit this optimization in a different PR, since there is no explicit requirements.txt in the project as such. We will need a slighly different approach with this. Authored-by: Vinit Kumar
@@ -99,7 +99,6 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} - cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -147,7 +146,6 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} - cache: 'pip' - name: Install depend...
Update bpim2zero.py Support for pins PL2 and PL4
@@ -17,6 +17,49 @@ UART2_TX = pin.PA0 PA3 = pin.PA3 UART2_CTS = pin.PA3 PA10 = pin.PA10 +PA12 = pin.PA12 +SDA = pin.PA12 +PA11 = pin.PA11 +SCL = pin.PA11 +PA6 = pin.PA6 +PWM1 = pin.PA6 +PA1 = pin.PA1 +UART2_RX = pin.PA1 +PA0 = pin.PA0 +UART2_TX = pin.PA0 +PA3 = pin.PA3 +UART2_CTS = pin.PA3 +PA7 = pin.PA7 +PA8 = pin.PA8...
Updated Docs fixed broken link
@@ -207,7 +207,7 @@ For libraries it is not necessary to commit the lock file. ### Installing dependencies only -The current project is installed in [editable](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs) mode by default. +The current project is installed in [editable](https://pip.pypa.io/en/...
Trivial follow up to addition of last modified in container listings Trivial fixes in follow up to [1] give container unique timestamps in listing test remove accidental line duplication add missing last modified time assertion [1] Related-Change:
@@ -1106,8 +1106,8 @@ class TestAccountController(unittest.TestCase): req = Request.blank('/sda1/p/a', environ={'REQUEST_METHOD': 'PUT', 'HTTP_X_TIMESTAMP': '0'}) req.get_response(self.controller) - put_timestamp = normalize_timestamp(0) for c in range(5): + put_timestamp = normalize_timestamp(c + 1) req = Request.blan...
Add explicit links to definition terms This is useful if we want to explain e.g. what a "sample" is. I haven't looked to see if it messes up formatting, but I hope not.
@@ -28,12 +28,16 @@ Definitions To begin, here are definitions of some key ideas encountered later. +.. _sec_data_model_definitions_tree: + tree A "gene tree", i.e., the genealogical tree describing how a collection of genomes (usually at the tips of the tree) are related to each other at some chromosomal location. See...
gaussian_blur_function realized the gaussian blur line "if len(img_gblur)==3" still wasn't covered, and it was probably supposed to read as "if len(np.shapce(img_gblur)) == 3" to check whether the blurred image in grayscale or color
import cv2 import os +import numpy as np from plantcv.plantcv import print_image from plantcv.plantcv import plot_image from plantcv.plantcv import params @@ -32,7 +33,7 @@ def gaussian_blur(img, ksize, sigmax=0, sigmay=None): if params.debug == 'print': print_image(img_gblur, os.path.join(params.debug_outdir, str(para...
Make release work with new black settings Summary: quotes Test Plan: none Reviewers: nate, dgibson
@@ -106,7 +106,7 @@ def set_version_info(self, new_version, dry_run=True): """ assert isinstance(new_version, six.string_types) - output = "__version__ = '{}'\n".format(new_version) + output = 'version = "{}"\n'.format(new_version) version_file = self.version_file_path
expressions: make tautological assignments shedding actually work TN:
@@ -818,21 +818,20 @@ class ResolvedExpression(object): ' not).'.format(self) ) - result = self._render_pre() + pre = self._render_pre() + expr = str(self._render_expr()) # Some expressions build their result directly inside the result # variable, and thus their _render_pre() method will only return the # name of the r...
Syntax: Update constant.numeric completions This commit updates the constant completions for sublime-syntax developement according to the new scope naming guidelines. see:
@@ -14,10 +14,20 @@ DATA = """ constant numeric integer + binary + octal + decimal + hexadecimal + other float - hex + binary octal + decimal + hexadecimal + other complex + real + imaginary character escape language
Do not raise ValueError on invalid time range If an invalid time range is provided when requesting entities, ignore it instead of raising ValueError. That is to unify the behaviour with other filters, e.g. invalid translation statuses.
@@ -2182,8 +2182,6 @@ class Entity(DirtyFieldsMixin, models.Model): if re.match('^[0-9]{12}-[0-9]{12}$', time): start, end = utils.parse_time_interval(time) pre_filters.append(Entity.objects.between_time_interval(locale, start, end)) - else: - raise ValueError(time) if author: pre_filters.append(Entity.objects.authored...
Add NameError to exception in avahi_announce beacon Fixes If you have dbus installed, but not avahi, you will get a NameError in the dbus.Interface call. We need to catch this situation and not stacktrace when the beacon gets loaded.
@@ -32,7 +32,7 @@ try: GROUP = dbus.Interface(BUS.get_object(avahi.DBUS_NAME, SERVER.EntryGroupNew()), avahi.DBUS_INTERFACE_ENTRY_GROUP) HAS_DBUS = True -except ImportError: +except (ImportError, NameError): HAS_DBUS = False except DBusException: HAS_DBUS = False
[bugfix][TEST] Fix broken solve_disambiguation.py test Travis still failing, because the new function is (as written in its description) supposed to return list of str, not list of Link
@@ -27,9 +27,7 @@ class TestGettingDisambigLinks(TestCase): minimum=0) page.text = '* [[Link1]]\n* [[Link2]]' newlinks = bot.get_disambiguation_links(page) - links = [ - pywikibot.Link('Link1', self.site), - pywikibot.Link('Link2', self.site)] + links = ['Link1', 'Link2'] self.assertEqual(newlinks, links) def test_get_...
Fix for ceph_status function name Fixes:
@@ -508,7 +508,7 @@ class HealthMonitorThread(threading.Thread): health_status = self.ceph_cluster.get_ceph_health(detail=True) if "HEALTH_ERROR" in health_status: self.ceph_cluster.health_error_status = ( - self.ceph_cluster.ceph_status() + self.ceph_cluster.get_ceph_status() )
Updated feature flag category and docs link While this might be useful for other projects it's currently being developed around ICDS's needs.
@@ -1089,9 +1089,10 @@ MESSAGE_LOG_METADATA = StaticToggle( BULK_CONDITIONAL_ALERTS = StaticToggle( 'bulk_conditional_alerts', - 'Allow bulk download and upload of conditional alerts.', - TAG_PRODUCT, + 'Allow bulk download and upload of conditional alerts', + TAG_CUSTOM, [NAMESPACE_DOMAIN], + help_link='https://conflu...
perf(graphene): replace json with orjson Accelerates legacy leaves call. JSON parsing +5% improved most likely.
from collections import defaultdict from datetime import datetime import math -import json +import orjson import os import pickle import posixpath @@ -387,7 +387,7 @@ class CloudVolumeGraphene(CloudVolumePrecomputed): else: url = posixpath.join(self.meta.base_path, path, "roots") args['node_ids'] = segids - data = json...
fix: createLocalStoragePersistor to createWebStoragePersistor Due to breaking change in the offline cache API in React Query 3.17.0
@@ -5,7 +5,7 @@ import { UseQueryOptions, UseQueryResult, } from "react-query"; -import { createLocalStoragePersistor } from "react-query/createLocalStoragePersistor-experimental"; +import { createWebStoragePersistor } from "react-query/createWebStoragePersistor-experimental"; import { ReactQueryDevtools } from "react-...
Add info to user scoreboard csv * Add info to user scoreboard csv Added user id and user email fields to the user mode scoreboard csv export as per issue * Run formatter
@@ -111,7 +111,13 @@ def dump_scoreboard_csv(): ) writer.writerow(user_row) elif is_users_mode(): - header = ["place", "user", "score"] + user_field_names + header = [ + "place", + "user name", + "user id", + "user email", + "score", + ] + user_field_names writer.writerow(header) for i, standing in enumerate(standings)...
server_events: Fix the updation code for `add_emoji_by_admins_only`. `add_emoji_by_admins_only` backend setting is represented by page_param's `realm_add_emoji_by_admins_only` attribute. When this setting was changed we were wrongly updating the `add_emoji_by_admins_only` attribute which doesn't exist.
@@ -74,7 +74,7 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) { page_params.realm_email_changes_disabled = event.value; settings_org.toggle_email_change_display(); } else if (event.op === 'update' && event.property === 'add_emoji_by_admins_only') { - page_params.add_emoji_by_admins_only = even...
FIXME: Update 029-render_widget_host_view_mac.patch TODO: Restore support of transparent windows, see
@@ -2,14 +2,6 @@ diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/cont index faedde495761..c9d2beabd798 100644 --- a/content/browser/renderer_host/render_widget_host_view_mac.mm +++ b/content/browser/renderer_host/render_widget_host_view_mac.mm -@@ -88,6 +88,7 @@ - #include "ui/gfx/geometry/s...
MacOS: homebrew arm-none-eabi-gcc works again Revert "Fix gcc-arm-embedded for m1 mac (#24515)" This reverts commit
@@ -52,14 +52,9 @@ brew "zeromq" brew "protobuf" brew "protobuf-c" brew "swig" +cask "gcc-arm-embedded" EOS -# Install gcc-arm-embedded 10.3-2021.10. 11.x is broken on M1 Macs with Xcode 13.3~ -brew uninstall gcc-arm-embedded || true -curl -L https://github.com/Homebrew/homebrew-cask/raw/d407663b8017a0a062c7fc0b929faf2...
Changes node_modules to default to the same args for generate_sha1sum. Since we can use both perfer_offline=True and False in a since build prefer_offline shouldn't be used as a cache key or it will confuse the cleanup script. Since yarn install (if successful) should be idempotent. This will probably be ok.
@@ -20,28 +20,35 @@ if 'TRAVIS' in os.environ: NODE_MODULES_CACHE_PATH = os.path.join(ZULIP_SRV_PATH, 'zulip-npm-cache') YARN_BIN = os.path.join(ZULIP_SRV_PATH, 'zulip-yarn/bin/yarn') -def generate_sha1sum_node_modules(yarn_args=None): - # type: (Optional[List[str]]) -> str +DEFAULT_PRODUCTION = False + +def get_yarn_a...
MAINT: previous patch not complete [CHANGED] need to specify the identifier as a keyword argument
@@ -266,15 +266,16 @@ class Composable(ComposableType): def __call__(self, val, *args, **kwargs): # initial invocation always transfers call() to first composable # element to get input for self + refobj = kwargs.get("identifier", val) if not val: return val if self.checkpointable: - job_done = self.job_done(val) + job...
Caffe2: fix error C2398 and syntax error with Visual Studio 2015 Summary: Similar fix to [pull #7024](https://github.com/pytorch/pytorch/pull/7024). Pull Request resolved:
@@ -249,13 +249,13 @@ ImageInputOp<Context>::ImageInputOp( // hard-coded PCA eigenvectors and eigenvalues, based on RBG channel order color_lighting_eigvecs_.push_back( - std::vector<float>{-144.7125, 183.396, 102.2295}); + std::vector<float>{-144.7125f, 183.396f, 102.2295f}); color_lighting_eigvecs_.push_back( - std::...
llvm, component: Do not memoize binary function. There already is a cache that preserves initialized instances based on function name.
@@ -924,7 +924,6 @@ class Component(object, metaclass=ComponentsMeta): _deepcopy_shared_keys = frozenset([ 'init_args', '_Component__llvm_function', - '_Component__llvm_bin_function', ]) class _CompilationData(ParametersBase): @@ -1167,21 +1166,17 @@ class Component(object, metaclass=ComponentsMeta): # MODIFIED 12/4/18...
refactor(rez-pip): use dist info metadata attributes Use metadata attributes to retrieve core data such as the name, version and summary of the requested package. Relates
@@ -303,13 +303,12 @@ def pip_install_package(source_name, pip_version=None, python_version=None, variant_reqs.append("python-%s" % py_ver) - name, _ = parse_name_and_version(distribution.name_and_version) - name = distribution.name[0:len(name)].replace("-", "_") + name = metadata.name with make_package(name, packages_...
asc: Add retries and a timeout to asc_send Fixes:
@@ -109,8 +109,10 @@ bool asc_can_send(asc_dev_t *asc) bool asc_send(asc_dev_t *asc, const struct asc_message *msg) { - if (!asc_can_send(asc)) + if (poll32(asc->base + ASC_MBOX_A2I_CONTROL, ASC_MBOX_CONTROL_FULL, 0, 200000)) { + printf("asc: A2I mailbox full for 200ms. Is the ASC stuck?"); return false; + } dma_wmb();...
ci: Install and run specific version of PostgreSQL ref:
@@ -8,6 +8,15 @@ addons: mariadb: 10.3 postgresql: 12.4 firefox: latest + apt: + packages: + - postgresql-12 + - postgresql-client-12 + +env: + global: + - PGPORT=5433 + - PGUSER=travis services: - xvfb @@ -25,7 +34,6 @@ cache: # https://docs.cypress.io/guides/guides/continuous-integration.html#Caching - ~/.cache - mat...
Release version 4.0.0.dev0 Breaking changes: dimod 0.10.x dwave-cloud-client 0.9.x
# See the License for the specific language governing permissions and # limitations under the License. -__version__ = '3.5.0' +__version__ = '4.0.0.dev0' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'tools@dwavesys.com' __description__ = 'Software development kit for open source D-Wave tools'
fix warnings from baybikes pipeline Test Plan: bk Reviewers: alangenfeld
mode_defs=MODES, preset_defs=WEATHER_INGEST_PRESETS + TRIP_INGEST_PRESETS + TRAINING_PRESETS, ) def generate_training_set_and_train_model(): - return train_daily_bike_supply_model(weather_etl(), trip_etl()) + train_daily_bike_supply_model(weather_etl(), trip_etl()) @pipeline( mode_defs=MODES, preset_defs=WEATHER_INGEST...
start putting debug_prints to use in the trace output $ PYPYLOG=loading-linklet,jit-log-opt,jit-summary:output-file pycket
@@ -7,6 +7,8 @@ from pycket.expand import JsonLoader from pycket.util import console_log, LinkletPerf, linklet_perf, PerfRegion from pycket.prims.correlated import syntax_primitives +from rpython.rlib.debug import debug_start, debug_stop, debug_print + def locate_linklet(file_name): import os from pycket.error import S...
DOC: Example for scipy.sparse.linalg.inv Added a small example to the docstring of scipy.sparse.linalg.inv
@@ -51,6 +51,22 @@ def inv(A): to be non-sparse, it will likely be faster to convert `A` to dense and use scipy.linalg.inv. + Examples + -------- + >>> from scipy.sparse import csc_matrix + >>> from scipy.sparse.linalg import inv + >>> A = csc_matrix([[1., 0.], [1., 2.]]) + >>> Ainv = inv(A) + >>> Ainv + <2x2 sparse ma...
Fix 1 line and 3 lines between functions Fixes pylint complaints from jenkins: 17:29:08 salt/cloud/clouds/ec2.py:3740: [E8302(expected-2-blank-lines-found-0), ] PEP8 E302: expected 2 blank lines, found 0 17:29:08 salt/cloud/clouds/ec2.py:3768: [E8303(too-many-blank-lines-3), ] PEP8 E303: too many blank lines (3)
@@ -3716,7 +3716,6 @@ def disable_detailed_monitoring(name, call=None): Enable/disable detailed monitoring on a node CLI Example: - ''' if call != 'action': raise SaltCloudSystemExit( @@ -3737,6 +3736,7 @@ def disable_detailed_monitoring(name, call=None): return show_detailed_monitoring(name=name, instance_id=instance_...
fix epo playbook substr
@@ -211,7 +211,7 @@ tasks: - "10" scriptarguments: left: ${mcafee.latestDAT} - right: ${mcafee.epoDAT=val.substr(1,val.indexOf('.'))} + right: ${mcafee.epoDAT=val.substr(0,val.indexOf('.'))} results: - AreValuesEqual view: |-
setup.py: update the list of packages to install For (no-tn-check)
@@ -22,7 +22,11 @@ setup( url='https://www.adacore.com', description='A Python framework to generate language parsers', requires=['Mako', 'coverage', 'PyYAML', 'enum', 'enum34', 'funcy'], - packages=['langkit', 'langkit.utils', 'langkit.expressions'], + packages=['langkit', + 'langkit.expressions', + 'langkit.gdb', + '...
Fix broken references in docs The ExtractionPipelineRunsAPI class was moved, but the references to it in the docs were not.
@@ -1076,11 +1076,11 @@ Extraction pipeline runs ^^^^^^^^^^^^^^^^^^^^^^^^ List runs for an extraction pipeline ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. automethod:: cognite.client._api.extractionpipelineruns.ExtractionPipelineRunsAPI.list +.. automethod:: cognite.client._api.extractionpipelines.ExtractionPipelineRunsAP...
Alpine: Also exclude "libstdc++" from on Alpine * Similar was done for Anaconda already. They bring their own stuff, and the goal is apparently only to run on Alpine if compiled there.
@@ -27,7 +27,7 @@ from nuitka.PythonFlavors import isAnacondaPython from nuitka.Tracing import inclusion_logger from nuitka.utils.Execution import executeProcess, withEnvironmentPathAdded from nuitka.utils.SharedLibraries import getSharedLibraryRPATH -from nuitka.utils.Utils import isPosixWindows +from nuitka.utils.Uti...
[doc] Show pagegenerators options with -help also remove unused NL constant
@@ -19,6 +19,8 @@ write him in German and English. Command line options: +&params; + -always Skip the GUI validation -setcat: Set the category of the copied image @@ -51,9 +53,7 @@ deletion):: python pwb.py imagecopy.py -page:Image:<imagename> -delete -See pagegenerators.py for more ways to get a list of images. By def...
Fix MediaBlock SVG icon size in the rich text editor Fixes
line-height: 1; padding: $controls-spacing * 2 $controls-spacing * 3; pointer-events: none; + + .icon { + @include svg-icon(); + } } &__icon {
Switch to Pecan by default Use the pecan framework by default. Implements: blueprint wsgi-pecan-switch
@@ -117,11 +117,11 @@ core_opts = [ cfg.BoolOpt('vlan_transparent', default=False, help=_('If True, then allow plugins that support it to ' 'create VLAN transparent networks.')), - cfg.StrOpt('web_framework', default='legacy', + cfg.StrOpt('web_framework', default='pecan', choices=('legacy', 'pecan'), help=_("This will...
Add command to run `recreate_pdf_for_precompiled_or_uploaded_letter` We already had the `replay-create-pdf-for-templated-letter` command. This adds a new command, `recreate-pdf-for-precompiled-or-uploaded-letter` which does the same thing but for non-templated letters.
@@ -19,7 +19,10 @@ from sqlalchemy.orm.exc import NoResultFound from app import db from app.aws import s3 -from app.celery.letters_pdf_tasks import get_pdf_for_templated_letter +from app.celery.letters_pdf_tasks import ( + get_pdf_for_templated_letter, + resanitise_pdf, +) from app.celery.reporting_tasks import ( creat...
Create the artifacts directory in case any test utilities wish to use it, harmless if they do not
@@ -31,6 +31,11 @@ function setup { rm *.log || true + if [ -n "$GITHUB_ACTIONS" ]; then + # create the artifacts dir with container-write ownership + install -dm0755 -o cchq -g cchq ./artifacts + fi + pip-sync requirements/test-requirements.txt pip check # make sure there are no incompatibilities in test-requirements....
Fix non-removed interior axis labels and diagonal legends in PairGrid These were oversights from
@@ -1278,6 +1278,22 @@ class PairGrid(Grid): self._legend_data = {} # Make the plot look nice + for ax in axes[:-1, :].flat: + if ax is None: + continue + for label in ax.get_xticklabels(): + label.set_visible(False) + ax.xaxis.offsetText.set_visible(False) + ax.xaxis.label.set_visible(False) + + for ax in axes[:, 1:]....
Missing Double Quotes in the Creating a Sawtooth Network Instructions Double Quotes are missing in the "Creating a Sawtooth Network", step 1, This line: `sawtooth.poet.report_public_key_pem=$(cat /etc/sawtooth/simulator_rk_pub.pem`) Should be: `sawtooth.poet.report_public_key_pem="$(cat /etc/sawtooth/simulator_rk_pub.p...
@@ -320,7 +320,7 @@ in :doc:`ubuntu`. $ sawset proposal create -k /etc/sawtooth/keys/validator.priv \ -o config.batch \ sawtooth.consensus.algorithm=poet \ - sawtooth.poet.report_public_key_pem=$(cat /etc/sawtooth/simulator_rk_pub.pem) \ + sawtooth.poet.report_public_key_pem="$(cat /etc/sawtooth/simulator_rk_pub.pem)" ...
TEMPFIX autoscaler provision issue in china region [issue](https://github.com/kubernetes/autoscaler/issues/3276) [tempory fix](https://github.com/kubernetes/autoscaler/issues/3076) is set aws-use-static-instance-list = true
@@ -23,6 +23,8 @@ Conditions: NeedsStaticList: !Or - !Equals [!Ref 'AWS::Region', 'af-south-1'] - !Equals [!Ref 'AWS::Region', 'eu-south-1'] + - !Equals [!Ref 'AWS::Region', 'cn-north-1'] + - !Equals [!Ref 'AWS::Region', 'cn-northwest-1'] Mappings: Config: Prefix: { Value: 'eks-quickstart' }
[Keyvault] Fix deprecated/removed method in keyvault certificate download `base64.encodestring()` has been a deprecated alias for `base64.encodebytes()` since Python 3.1, and have has now been removed in Python 3.9. This replaces the removed/deprecated method with the one it was aliased to. Fixes
@@ -1570,7 +1570,7 @@ def download_certificate(client, file_path, vault_base_url=None, certificate_nam f.write(cert) else: import base64 - encoded = base64.encodestring(cert) # pylint:disable=deprecated-method + encoded = base64.encodebytes(cert) if isinstance(encoded, bytes): encoded = encoded.decode("utf-8") encoded ...
Remove repetitive command and simplify code Remove command line running calculate_pressure_matrix_numerical() method without checking the argument first. In calculate_pressure_matrix_numerical(), replace loop by numpy command to help efficiency.
@@ -278,7 +278,6 @@ class FluidFlow: self.geometry_description() self.analytical_pressure_matrix_available = False self.numerical_pressure_matrix_available = False - self.calculate_pressure_matrix_numerical() if immediately_calculate_pressure_matrix_numerically: self.calculate_pressure_matrix_numerical() @@ -592,13 +59...
Adding _run_command_interactive For commands that waiting for user input
@@ -67,6 +67,16 @@ class Recipe(abc.ABC): output, error = process.communicate() return output, error + @staticmethod + def _run_command_interactive(command): + """Runs the given interactive command that waits for user input and returns any output and error""" + process = subprocess.Popen( + command.split(), shell=True,...
[GDPR] Fix omission RE code jam system info Full text: Rectified an omission in the old privacy policy, where the system information you provide as part of a code jam signup wasn't mentioned.
<td>A factor in code jam team match-ups</td> <td>Administrative staff</td> </tr> + + <tr class="thick-bottom-border"> + <td>System Information</td> + <td class="uk-table-shrink">Code jam signup</td> + <td>Used to verify that you have a working environment</td> + <td>Administrative staff</td> + </tr> </tbody> </table> <...
Update installing.rst I would default to installing vaex as user, not as root. Modified docs accordingly.
@@ -14,7 +14,7 @@ The vaex program (with this you cannot do any Python programming) is available f See the next section how to get it. For using vaex as a library, install vaex using pip or conda. * **Standalone version**: download ( `osx <//vaex.astro.rug.nl/program/vaex-1.0.0-beta.4-osx.zip>`_ | `linux <//vaex.astro....
Update GB Source is ENTSO-E like before
] ], "capacity": { - "biomass": 4237, - "coal": 6780, - "gas": 38274, + "biomass": 4528, + "coal": 5241, + "gas": 39822, "geothermal": 0, - "hydro": 1882, - "hydro storage": 4052, - "nuclear": 8209, + "hydro": 1919, + "hydro storage": 4309, + "nuclear": 8256, "oil": 0, - "solar": 13276, - "unknown": 6155, - "wind": 232...
Update zotero.py This change enables compatibility with python3 (which is broken because dict.keys() returns an iterable and not a list in python3). Also using sets instead of lists ensures that the order of the keys does not matter.
@@ -902,7 +902,7 @@ class Zotero(object): 'filename']) template = template | set(self.temp_keys) for pos, item in enumerate(items): - if item.keys() == [u'links', u'library', u'version', u'meta', u'key', u'data']: + if set(item) == set([u'links', u'library', u'version', u'meta', u'key', u'data']): # we have an item tha...
Adjust pop-up docs position Shift pop-up docs to the right position according to responsiveness
@@ -106,10 +106,18 @@ header { .filter-input .popover { top: 27px; + left: 43px; display: block; max-width: none; opacity: 0.9; + @media (max-width: @screen-xs-max) { + + top: 16px; + left: 29px; + right: 2px; + } + .popover-content { max-height: 500px; overflow-y: auto;
fix: Whitelist bootup log for SGI XFS verify_boot_error_fail_warnings test fails on Mariner due to SGI XFS log message displayed on bootup. Add log to whitelist as the log does not indicate any failures.
@@ -203,6 +203,7 @@ class AzureImageStandard(TestSuite): re.compile(r"(.*was skipped because of a failed condition check.*)$", re.M), re.compile(r"^(.*GRUB failed boot detection.*)$", re.M), re.compile(r"^(.*nofail.*)$", re.M), + re.compile(r"^(.*SGI XFS with ACLs, security attributes, realtime, verbose warnings, quota...
gear-menu: Inherit body color. Instead of overriding the default link color with grey, just inherit the body color.
@@ -1745,6 +1745,10 @@ blockquote p { box-shadow: 0px 0px 5px hsla(0, 0%, 0%, 0.2); } +.nav .dropdown-menu a { + color: inherit; +} + .nav .dropdown-menu:after { position: absolute; width: 0px;
Update coproxamol.json added comment in SQL
], "numerator_from": "{hscic}.normalised_prescribing_standard ", "numerator_where": [ - "(bnf_code LIKE '0407010Q0%') " + "(", + "bnf_code LIKE '0407010Q0%' -- Co-Proxamol (Dextroprop HCl/Paracet) (brand and generic) \n", + ")" ], "denominator_columns": [ "SUM(total_list_size / 1000.0) AS denominator, "
Fix Makefile: install frontend dependencies from locked file Previously it was overwriting lockfile, and installing newest versions.
@@ -54,7 +54,7 @@ schema : ## node_modules : install front-end dependencies using Yarn node_modules : package.json - yarn install + yarn install --frozen-lockfile touch node_modules ## git_version : store details about the current commit and tree state.
[AIR] Fix `TensorflowTrainer` docstring example You can't run the code, because we don't provide an argument to train_loop_per_worker.
@@ -85,25 +85,23 @@ class TensorflowTrainer(DataParallelTrainer): Example: - .. code-block:: python + .. testcode:: import tensorflow as tf import ray from ray.air import session, Checkpoint - from ray.train.tensorflow import TensorflowTrainer from ray.air.config import ScalingConfig - - input_size = 1 + from ray.train...
`!user` command says if user is "Verified" Previously, `!user` said if the user is "Pending", whereas "Verified" is the boolean opposite.
@@ -229,9 +229,9 @@ class Information(Cog): if on_server: joined = time_since(user.joined_at, max_units=3) roles = ", ".join(role.mention for role in user.roles[1:]) - membership = {"Joined": joined, "Pending": user.pending, "Roles": roles or None} + membership = {"Joined": joined, "Verified": not user.pending, "Roles"...
settings: Change heading of modal used to edit user info. This commit changes the heading of modal used by admins to edit user info to "Manage user".
@@ -586,7 +586,7 @@ function handle_human_form(tbody, status_field) { } dialog_widget.launch({ - html_heading: $t_html({defaultMessage: "Change user info and roles"}), + html_heading: $t_html({defaultMessage: "Manage user"}), html_body, on_click: submit_user_details, post_render: set_role_dropdown_and_fields_user_pills...
Retry on 500 in HTTPClient.request Discord official client retries on 500, so worst case scenario, we're not any worse than the official client which seriously outnumbers us.
@@ -193,8 +193,8 @@ class HTTPClient: continue - # we've received a 502, unconditional retry - if r.status == 502 and tries <= 5: + # we've received a 500 or 502, unconditional retry + if r.status in {500, 502} and tries <= 5: yield from asyncio.sleep(1 + tries * 2, loop=self.loop) continue
Remove unnecessary constraints The sets `NON_FIXED_INVESTFLOWS` and `FIXED_INVESTFLOWS` and their corresponding constraints are removed because they seem to be unnecessary in the `NonConvexInvestFlow` and removing them would increase the computation time.
@@ -466,16 +466,6 @@ class NonConvexInvestFlowBlock(SimpleBlock): ] ) - # Investment-related sets similar to the - # <class 'oemof.solph.flows.InvestmentFlow'> class. - self.FIXED_INVESTFLOWS = Set( - initialize=[(g[0], g[1]) for g in group if g[2].fix[0] is not None] - ) - - self.NON_FIXED_INVESTFLOWS = Set( - initial...
Update coords.py Updated failures to be more informative, allowing more intellegent error catches.
@@ -191,6 +191,10 @@ def scale_units(out_unit, in_unit): if in_unit.lower() in accepted_units[kk]: in_key = kk + if out_key is None and in_key is None: + raise ValueError(''.join(['Cannot scale {:s} and '.format(in_unit) + '{:s}, unknown units'.format(out_unit)])) + if out_key is None: raise ValueError('Unknown output ...
Inject scheme into compared urls This injects a scheme into some compared urls as urlsplit will fail to properly split if the scheme is absent in some versions.
@@ -909,6 +909,8 @@ class TestGeneratePresignedPost(unittest.TestCase): class TestGenerateDBAuthToken(BaseSignerTest): + maxDiff = None + def setUp(self): self.session = botocore.session.get_session() self.client = self.session.create_client( @@ -935,7 +937,11 @@ class TestGenerateDBAuthToken(BaseSignerTest): 'us-east-...
Cleanup holiday.py Guess who didn't run tox again
@@ -19,10 +19,9 @@ class Holiday: Returns true if the holiday is celebrated today ''' now = datetime.now() - return self.date.month == now.month and \ - self.date.day == now.day + return self.date.month == now.month and self.date.day == now.day -@bot.on_schedule('cron', hour=14, minute=45, timezone='Australia/Brisbane'...
ASTNodeType, StructType, _EnumType: remove nullexpr() override TN:
@@ -1453,6 +1453,7 @@ class StructType(BaseStructType): name, location, doc, is_ptr=False, null_allowed=True, + nullexpr=(names.Name('No') + name).camel_with_underscores, is_ada_record=True, # A compile pass will tag all StructType subclasses that are @@ -1487,13 +1488,6 @@ class StructType(BaseStructType): CompiledTyp...
PR to fix test_pods_are_not_oomkilled_while_running_ios CI run Updated fio runtime less than 2min of get_fio_result() timeout value.
@@ -66,7 +66,7 @@ class TestPodAreNotOomkilledWhileRunningIO(E2ETest): log.info(f"Running FIO to fill PVC size: {io_size_mb}") self.pod_obj.run_io( - 'fs', size=io_size_mb, io_direction='write', runtime=600 + 'fs', size=io_size_mb, io_direction='write', runtime=480 ) log.info("Waiting for IO results")
Randomize xla port Summary: fixes Pull Request resolved:
@@ -213,7 +213,9 @@ test_custom_script_ops() { test_xla() { export XLA_USE_XRT=1 XRT_DEVICE_MAP="CPU:0;/job:localservice/replica:0/task:0/device:XLA_CPU:0" - export XRT_WORKERS="localservice:0;grpc://localhost:40934" + # Issue #30717: randomize the port of XLA/gRPC workers is listening on to reduce flaky tests. + XLA_P...
Reduce size of search filter calendar image Current image feels a little over-sized
@@ -37,7 +37,7 @@ Use ``before:`` to find posts before a specified date and ``after:`` to find pos - Searching ``website on: 2018-09-01`` will return messages that contain the keyword ``website`` that were posted on September 1, 2018. .. image:: ../../images/calendar2.png - + :width: 300 px Quotation Marks ^^^^^^^^^^^^...
Remove invalid assumption from FITS test case... It was incorrect to assume that the HDU data field would always be padded to 2880 bytes, so this check has been removed from the tests.
@@ -90,7 +90,6 @@ def test_embed_asdf_in_fits_file(tmpdir, backwards_compat): assert asdf_hdu.data.tostring().strip().endswith(b'...') else: assert isinstance(asdf_hdu, fits_embed._AsdfHDU) - assert len(asdf_hdu.data) % 2880 == 0 with fits_embed.AsdfInFits.open(hdulist2) as ff2: assert_tree_match(tree, ff2.tree) @@ -11...
Allow one extra 5s period in scale in test Sometimes the scale happens one 5-second period longer than usual (because the idle time is 5 seconds minus tiny amount) and so the workers have not timed out by the time the final assert fires.
@@ -72,7 +72,7 @@ def test_scale_out(): assert dfk.executors['htex_local'].outstanding == 0, "Expected 0 outstanding tasks after future completion" logger.info("waiting a while for scale down") - time.sleep(20) + time.sleep(25) logger.info("asserting 2 managers remain") assert len(dfk.executors['htex_local'].connected_...
docs: Add links towards GitHub guide in installation instructions. This adds two extra links to in the overall requirements, and once before Step 2: Get Zulip Code. Fixes
@@ -11,6 +11,7 @@ all related services will run. Contents: * [Requirements](#requirements) +* [Step 0: Set up Git & GitHub](#step-0-set-up-git-github) * [Step 1: Install Prerequisites](#step-1-install-prerequisites) * [Step 2: Get Zulip code](#step-2-get-zulip-code) * [Step 3: Start the development environment](#step-3...
Add stack descendants to status stream Mark stacks with M for master M for nested
@@ -28,7 +28,14 @@ class TerminalPrinter: def _print_stack_tree(stack, buffer): padding_1 = " " buffer.append( - "{}{}stack {} {}".format(padding_1, "\u250f ", "\u24c5", stack.name) + "{}{}stack {} {}".format(padding_1, "\u250f ", "\u24c2", stack.name) + ) + if stack.descendants(): + for nested_stack in stack.descendan...
tox: Fix container purge jobs On containerized CI jobs the playbook executed is purge-cluster.yml but it should be set to purge-docker-cluster.yml
@@ -239,10 +239,10 @@ setenv= INVENTORY = {env:_INVENTORY:hosts} container: CONTAINER_DIR = /container container: PLAYBOOK = site-docker.yml.sample + container: PURGE_PLAYBOOK = purge-docker-cluster.yml storage_inventory: COPY_ADMIN_KEY = True podman: PLAYBOOK = site-docker.yml.sample non_container: PLAYBOOK = site.yml...
`maestral set-dir` now takes the new path as argument ... instead of an option
@@ -460,7 +460,7 @@ def notify(config_name: str, yes: bool, running: bool): @main.command() @with_config_opt -@click.option("--new-path", "-p", type=click.Path(writable=True), default=None) +@click.argument("new_path", required=False, type=click.Path(writable=True)) def set_dir(config_name: str, new_path: str, running:...
Don't be verbose when testing ansible An experiment to see if this alleviates
@@ -12,7 +12,7 @@ curl https://bootstrap.pypa.io/get-pip.py | python sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen # Run the playbook -/usr/local/bin/ansible-playbook -v travis.yml +/usr/local/bin/ansible-playbook travis.yml # Do minimal database-connection test su -c 'SKIP_NPM_BUILD=1 /openprescribi...
Update common/chromium/disable_user_gesture_requirement_for_beforeunload_dialogs.patc The Great Blink mv for source files, part 2
-diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp +diff --git a/third_party/blink/renderer/core/dom/document.cc b/third_party/blink/renderer/core/dom/document.cc index a39067db8c52..4a0d69dc3fb5 100644 ---- a/third_party/WebKit/Source/core/dom/Document.cpp -...
Fix qualitative file creation name Fix qualitative file name so that it does not contain : This allows the file to be exported under this filename without errors
@@ -288,7 +288,7 @@ class DialogImportSurvey(QtWidgets.QDialog): case_text_list = [] if self.fields_type[field] == "qualitative": self.fields[field] - # create one text file combining each row, prefix [case identfier] to each row. + # create one text file combining each row, prefix [case identifier] to each row. pos0 =...
fix escalator lock HG-- branch : feature/dcs
@@ -17,11 +17,11 @@ from noc.core.scheduler.scheduler import Scheduler class EscalatorService(Service): name = "escalator" + leader_lock_name = "escalator" def __init__(self): super(EscalatorService, self).__init__() self.scheduler = None - leader_lock_name = "escalator" @tornado.gen.coroutine def on_activate(self):
INSTALL.md: break the big blocks of code, and remove the space Remove the first space in the block of code as it is not necessary. This ``` $ python --version ``` Becomes this ``` $ python --version ``` Also break the big block of code into individual blocks.
@@ -26,11 +26,12 @@ Could not connect to daemon. Are you sure it's running? macOS users will need to install [xcode command line tools](https://developer.xamarin.com/guides/testcloud/calabash/configuring/osx/install-xcode-command-line-tools/) and [homebrew](http://brew.sh/). These environment variables also need to be ...
Explicitly set HardwareParams in test_auto_scheduler_sketch_generation. * This test depended on the number of CPU cores available, and failed when cores < 4.
""" Test sketch generation. """ +import sys import tvm import tvm.testing + +import pytest + from tvm import te, auto_scheduler from tvm.auto_scheduler import _ffi_api from tvm.auto_scheduler.loop_state import Stage @@ -39,7 +43,14 @@ from test_auto_scheduler_common import ( def generate_sketches( workload_func, args, ...
ENH Added point_size option for voronoi_plot_2d * ENH Added point_size option for voronoi_plot_2d * ENH Added point_size option for voronoi_plot_2d changed default point_size to None * ENH default point_size changed to None
@@ -136,6 +136,9 @@ def voronoi_plot_2d(vor, ax=None, **kw): Specifies the line width for polygon boundaries line_alpha: float, optional Specifies the line alpha for polygon boundaries + point_size: float, optional + Specifies the size of points + Returns ------- @@ -157,7 +160,8 @@ def voronoi_plot_2d(vor, ax=None, **...
Fix NameError for typing context manager. Fixes
@@ -51,7 +51,7 @@ class Typing: await asyncio.sleep(5) def __enter__(self): - self.task = create_task(self.do_typing(), loop=self.loop) + self.task = asyncio.ensure_future(self.do_typing(), loop=self.loop) self.task.add_done_callback(_typing_done_callback) return self
Fixed tests fixed name of SARSALambda (was SARSALambdaDiscrete)
@@ -114,7 +114,7 @@ def test_sarsa(): def test_sarsa_lambda_discrete(): - alg = SARSALambdaDiscrete(pi, mdp.info, Parameter(.1), .9) + alg = SARSALambda(pi, mdp.info, Parameter(.1), .9) alg.Q.table = np.arange(np.prod(mdp.info.size)).reshape( mdp.info.size).astype(np.float)
[commands] update sys.modules in load_extension again introduced a regression: loading a module that is not in a package does not add it to sys.modules. Updating sys.modules is required after all.
@@ -590,19 +590,23 @@ class BotBase(GroupMixin): def _load_from_module_spec(self, spec, key): # precondition: key not in self.__extensions lib = importlib.util.module_from_spec(spec) + sys.modules[key] = lib try: spec.loader.exec_module(lib) except Exception as e: + del sys.modules[key] raise errors.ExtensionFailed(key...
Turn uidl() into an overload. The previous change was still right. Unique among `poplib` functions, `uidl()` returns a long response when called without arguments, but just a bytes string when called with a `which` argument.
@@ -4,7 +4,7 @@ from mypy_extensions import NoReturn import socket import ssl import sys -from typing import Any, BinaryIO, Dict, List, Optional, Pattern, Text, Tuple +from typing import Any, BinaryIO, Dict, List, Optional, overload, Pattern, Text, Tuple _LongResp = Tuple[bytes, List[bytes], int] @@ -49,7 +49,12 @@ cla...