message
stringlengths
13
484
diff
stringlengths
38
4.63k
Code block: support the "pycon" language specifier It's used for code copied from the Python REPL.
@@ -12,7 +12,7 @@ from bot.utils import has_lines log = logging.getLogger(__name__) BACKTICK = "`" -PY_LANG_CODES = ("python", "py") # Order is important; "py" is second cause it's a subset. +PY_LANG_CODES = ("python", "pycon", "py") # Order is important; "py" is last cause it's a subset. _TICKS = { BACKTICK, "'",
Spin/sleep for a few times before raising exception on job not found. Helps with rare but persistent workflow failures with CWL on NFS jobStore
@@ -29,6 +29,7 @@ import stat import errno import time import traceback +import time try: import cPickle as pickle except ImportError: @@ -143,6 +144,31 @@ class FileJobStore(AbstractJobStore): self.update(jobGraph) self._batchedJobGraphs = None + def waitForExists(self, jobStoreID, maxTries=35, sleepTime=1): + """Spin...
Moderation: add creation date & duration to expired infraction log Closes
@@ -311,6 +311,11 @@ class InfractionScheduler(Scheduler): user_id = infraction["user"] type_ = infraction["type"] id_ = infraction["id"] + inserted_at = infraction["inserted_at"] + expiry = infraction["expires_at"] + + expiry = dateutil.parser.isoparse(expiry).replace(tzinfo=None) if expiry else None + created = time....
modify cache label in CircleCI config Original attempt to include Python version did not work. We need to use context information (https://circleci.com/docs/2.0/contexts/) and the {{ .Environment.variableName }} key template (https://circleci.com/docs/2.0/caching/)
@@ -11,11 +11,21 @@ workflows: version: 2.1 test: jobs: - - test-3_10 - - test-3_9 - - test-3_8 - - test-3_7 - - test-3_6 + - test-3_10: + context: + - pyani + - test-3_9: + context: + - pyani + - test-3_8: + context: + - pyani + - test-3_7: + context: + - pyani + - test-3_6: + context: + - pyani weekly: triggers: - sc...
Add Infraction converter This adds the Infraction converter to be used in infraction_edit and infraction_append.
@@ -549,6 +549,36 @@ def _snowflake_from_regex(pattern: t.Pattern, arg: str) -> int: return int(match.group(1)) +class Infraction(Converter): + """ + Attempts to convert a given infraction ID into an infraction. + + Alternatively, `l`, `last`, or `recent` can be passed in order to + obtain the most recent infraction by...
Update hpgp-data.yaml Add Shasta publication and tags
@@ -6,8 +6,12 @@ UpdateFrequency: Data will be added and updated as technologies improve or new d Tags: - aws-pds - genomic + - genetic - life sciences -License: Human PanGenomics Project data are licensed under the Creative Commons CC0 1.0 Universal license. + - fastq + - fast5 + - cram +License: "[Creative Commons CC...
Update I2cMux.py Cleanup for testing
-webgui = Runtime.createAndStart("WebGui","WebGui") +port="COM3" +# +if ('virtual' in globals() and virtual): + virtualArduino = Runtime.start("virtualArduino", "VirtualArduino") + virtualArduino.connect(port) ard = Runtime.createAndStart("Arduino","Arduino") -ard.connect("COM3") +ard.connect(port) # i2cmux = Runtime.c...
Update CUDA version on GPU tests PyTorch core is dropping support for 11.6.
@@ -17,7 +17,7 @@ jobs: strategy: matrix: python_version: ["3.8"] - cuda_arch_version: ["11.6"] + cuda_arch_version: ["11.7"] fail-fast: false uses: pytorch/test-infra/.github/workflows/linux_job.yml@main with:
Update metrics.rst Fixed grammar
@@ -167,7 +167,7 @@ Process Metrics: Search Metrics: - - ``mattermost_search_posts_searches_duration_seconds``: The total duration in seconds of search query requests. + - ``mattermost_search_posts_searches_duration_seconds``: The total duration, in seconds, of search query requests. - ``mattermost_search_posts_searche...
Events/logs: allow passing in timestamp `timestamp` is actually passed in normally by the client. `reported_timestamp` is the time of inserting into the db. Is it named the wrong way around? Perhaps.
@@ -42,7 +42,7 @@ class Events(v2_Events): raw_events = request_dict.get('events') or [] raw_logs = request_dict.get('logs') or [] if any( - item.get('timestamp') or item.get('reported_timestamp') + item.get('reported_timestamp') for item in itertools.chain(raw_events, raw_logs) ): check_user_action_allowed('set_timest...
Translate `<None>` in namespace view See
@@ -139,7 +139,7 @@ def _set_text(column, cell, model, iter, data): if element is RELATIONSHIPS: text = gettext("<Relationships>") else: - text = format(element) or "<None>" + text = format(element) or gettext("<None>") cell.set_property("text", text)
Add sos archive spec - lsblk_pairs Newly added "lsblk -O -P" command outupt in sosreport. (https://github.com/sosreport/sos/commit/a8dbdd2143f693758b4df76a615d06c85d8638fd)
@@ -120,6 +120,7 @@ class SosSpecs(Specs): libvirtd_qemu_log = glob_file(r"/var/log/libvirt/qemu/*.log") locale = simple_file("sos_commands/i18n/locale") lsblk = first_file(["sos_commands/block/lsblk", "sos_commands/filesys/lsblk"]) + lsblk_pairs = simple_file("sos_commands/block/lsblk_-O_-P") ls_boot = simple_file("so...
fix standard_field to shadow_root. fix screenshot in log_error.
@@ -1473,7 +1473,7 @@ class WebappInternal(Base): else: self.wait_element(term) # find element - element = self.get_field(term,name_attr).find_parent() + element = self.get_field(term,name_attr).find_parent() if not self.webapp_shadowroot() else self.get_field(term,name_attr) if not(element): raise Exception("Couldn't ...
[elasticsearch] Add instructions for how to enable snapshots Closes
@@ -190,6 +190,13 @@ There are a couple reasons we recommend this. subPath: elasticsearch.keystore ``` +#### How to enable snapshotting? + +1. Install your [snapshot plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository.html) into a custom docker image following the [how to install plugins gu...
make sure Response is pickleable Ref
+import pickle from datetime import date from pytest import raises, fixture @@ -9,6 +10,19 @@ from elasticsearch_dsl.response.aggs import AggData, BucketData, Bucket def agg_response(aggs_search, aggs_data): return response.Response(aggs_search, aggs_data) +def test_agg_response_is_pickleable(agg_response): + agg_respo...
1. Add is launched column 2. Default 0 to thr image
@@ -22,7 +22,8 @@ SELECT "awc_location_months"."aww_name" AS "aww_name", "awc_location_months"."contact_phone_number" AS "contact_phone_number", "awc_location_months"."aggregation_level" AS "aggregation_level", -agg_awc.thr_distribution_image_count, +COALESCE(agg_awc.thr_distribution_image_count,0) as thr_distribution_...
Remove catch check Summary: Pull Request resolved:
@@ -457,7 +457,6 @@ class build_deps(PytorchCommand): check_file(os.path.join(third_party_path, "gloo", "CMakeLists.txt")) check_file(os.path.join(third_party_path, "pybind11", "CMakeLists.txt")) check_file(os.path.join(third_party_path, 'cpuinfo', 'CMakeLists.txt')) - check_file(os.path.join(third_party_path, 'catch',...
Make test_env_bot.py compatible with python3 on windows. Change `tp` to be read in text mode and not binary mode to make f.read() str in both python3 and in python2.
@@ -43,7 +43,7 @@ def setup_test_env(): tp = os.path.join(BOT_DIR, 'third_party') if sys.platform == 'win32': # third_party is a symlink. - with open(tp, 'rb') as f: + with open(tp, 'r') as f: tp = os.path.join(BOT_DIR, f.read()) sys.path.insert(0, tp)
m1n1.hv: Do map low RAM Apparently this is still necessary
@@ -1267,7 +1267,7 @@ class HV(Reloadable): print(f"Mapping guest physical memory...") ram_base = self.u.ba.phys_base & ~0xffffffff - #self.map_hw(ram_base, ram_base, self.u.ba.phys_base - ram_base) + self.map_hw(ram_base, ram_base, self.u.ba.phys_base - ram_base) self.map_hw(phys_base, phys_base, self.u.ba.mem_size_ac...
Fix(ci) reduce the ci load by only installing lmdb in tests reduce the ci load by only installing lmdb in tests
@@ -10,17 +10,13 @@ class CustomBuildConfig(BuildConfig): class WorkWithCustomDeps(LightningWork): def __init__(self, cloud_compute: CloudCompute = CloudCompute(), **kwargs): - build_config = CustomBuildConfig(requirements=["numpy", "pandas", "py"]) + build_config = CustomBuildConfig(requirements=["py"]) super().__init...
Update important-upgrade-notes.rst Added reason & consequence
@@ -21,7 +21,8 @@ Important Upgrade Notes | | | | | This change was made because ``Update.Props == nil`` unintentionally cleared all ``Props``, such as the profile picture, instead of preserving them. | +----------------------------------------------------+---------------------------------------------------------------...
Add test about associate floating_ip to VM Only one floating IP address can be allocated to an instance which have one port.
# License for the specific language governing permissions and limitations # under the License. +import testtools + from tempest.api.compute.floating_ips import base from tempest.common.utils import data_utils from tempest import config @@ -99,3 +101,27 @@ class FloatingIPsNegativeTestJSON(base.BaseFloatingIPsTest): sel...
Check mode before going to OBJECT. For linked object, already in object mode, you can set mode
@@ -29,6 +29,7 @@ from io_scene_gltf2.io.exp import gltf2_io_draco_compression_extension def save(context, export_settings): """Start the glTF 2.0 export and saves to content either to a .gltf or .glb file.""" if bpy.context.active_object is not None: + if bpy.context.active_object.mode != "OBJECT": bpy.ops.object.mode...
tests: test_directories Fixed test_directories test in tests/func/test_diff.py
@@ -112,7 +112,7 @@ def test_directories(tmp_dir, scm, dvc): (tmp_dir / "dir" / "2").unlink() dvc.add("dir") - scm.add("dir.dvc") + scm.add(["dir.dvc"]) scm.commit("delete a file") # The ":/<text>" format is a way to specify revisions by commit message:
Strip newline when ingesting `version.txt` Summary: Pull Request resolved: Test Plan: Run cmake and observe there are no warning in stdout nor in `CMakeCache.txt`
@@ -364,6 +364,8 @@ include(cmake/public/utils.cmake) # ---[ Version numbers for generated libraries file(READ version.txt TORCH_DEFAULT_VERSION) +# Strip trailing newline +string(REGEX REPLACE "\n$" "" TORCH_DEFAULT_VERSION "${TORCH_DEFAULT_VERSION}") if("${TORCH_DEFAULT_VERSION} " STREQUAL " ") message(WARNING "Could...
budgets: also show budget for currencies not in balance Ref
</ol> {% endmacro %} -{% macro balance_with_budget(amount, budget) %} +{% macro render_budget(budget, currency, number=0) %} {% if budget %} - {% if amount.currency in budget %} - {% set diff = budget[amount.currency] - amount.number %} + {% if currency in budget %} + {% set diff = budget[currency] - number %} <span cl...
Simplify check for negotiated protocol negotiatedProtocol's type is Optional[bytes] See and Note that OpenSSL.SSL.Connection.get_next_proto_negotiated is deprecated:
@@ -233,13 +233,11 @@ class H2ClientProtocol(Protocol, TimeoutMixin): def handshakeCompleted(self) -> None: """We close the connection with InvalidNegotiatedProtocol exception when the connection was not made via h2 protocol""" - negotiated_protocol = self.transport.negotiatedProtocol - if isinstance(negotiated_protoco...
ci: add support for python 3.10 experimental builds Resolves:
@@ -19,10 +19,16 @@ jobs: tests: name: ${{ matrix.os }} / ${{ matrix.python-version }} runs-on: ${{ matrix.os }}-latest + continue-on-error: ${{ matrix.experimental }} strategy: matrix: os: [Ubuntu, MacOS, Windows] python-version: [3.6, 3.7, 3.8, 3.9] + experimental: [false] + include: + - os: Ubuntu + python-version: ...
Fix nogil status for error handling in line tracing code of with/try-finally statements. See
@@ -7539,12 +7539,14 @@ class TryFinallyStatNode(StatNode): code.funcstate.in_try_finally = was_in_try_finally code.putln("}") - code.set_all_labels(old_labels) temps_to_clean_up = code.funcstate.all_free_managed_temps() code.mark_pos(self.finally_clause.pos) code.putln("/*finally:*/ {") + # Reset labels only after wri...
fix typo in resnet50_trainer.py Summary: Pull Request resolved:
@@ -497,7 +497,7 @@ def Train(args): test_model = None if (args.test_data is not None): log.info("----- Create test net ----") - if use_ideep: + if args.use_ideep: test_arg_scope = { 'use_cudnn': False, 'cudnn_exhaustive_search': False,
Update changelog.md Included the improvement with channel name sorting that was brought up in this GitHub issue: The poster of the issue asked for this improvement to be noted in the changelog.
@@ -46,6 +46,7 @@ Also see [changelog in progress](http://bit.ly/2nK3cVf) for the next release. - Added focus on the text box after hitting "Edit" on Account Settings options. - Improved formatting of quotes in the channel header. - Added a date separator for search results. + - Channel names are now sorted correctly i...
analytics: Eliminate slider-focused text selection in Firefox. Fixes
@@ -43,6 +43,13 @@ hr { border-width: 2px; } +.rangeslider-container { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + .rangeselector text { font-weight: 400; }
Fix boring app test: `debug=True` when running on the cloud debug=True for boring_app (dynamic app also has debug=True)
@@ -13,7 +13,7 @@ def test_boring_app_example_cloud() -> None: with run_app_in_cloud( os.path.join(_PROJECT_ROOT, "examples/app_boring/"), app_name="app_dynamic.py", - debug=False, + debug=True, ) as ( _, view_page,
DOC: added release note for `isfinite` support for `datetime64` and `timedelta64`
@@ -197,6 +197,10 @@ The boolean and integer types are incapable of storing ``np.nan`` and ``np.inf`` which allows us to provide specialized ufuncs that are up to 250x faster than the current approach. +``np.isfinite`` ufunc supports ``datetime64`` and ``timedelta64`` types +--------------------------------------------...
Fix: role bluebanquise after repositories_client Except for the first management node where we install ansible interactively, we need to configure the repositories before installing BlueBanquise's dependencies.
hosts: "mg_managements" roles: - - role: bluebanquise - tags: bluebanquise - role: set_hostname tags: set_hostname - role: nic tags: repositories_server - role: repositories_client tags: repositories_client + - role: bluebanquise + tags: bluebanquise - role: hosts_file tags: hosts_file - role: ssh_master
Split extra chrome args on whitespace This is in case multiple args are used.
@@ -179,7 +179,7 @@ class Chrome: extra_chrome_args = os.environ.get('BROZZLER_EXTRA_CHROME_ARGS') if extra_chrome_args: - chrome_args.append(extra_chrome_args) + chrome_args.extend(extra_chrome_args.split()) if disk_cache_dir: chrome_args.append('--disk-cache-dir=%s' % disk_cache_dir) if disk_cache_size:
Unbreak original mpi implementation in dials.stills_process 1) Sync interface change to do_work method. 2) Add quick_parse to the OptionParser. On the node I tried at LCLS, reading from stdin seemed to break the MPI subsystem.
@@ -244,7 +244,7 @@ def run(self): import copy # Parse the command line - params, options, all_paths = self.parser.parse_args(show_diff_phil=False, return_unhandled=True) + params, options, all_paths = self.parser.parse_args(show_diff_phil=False, return_unhandled=True, quick_parse=True) # Check we have some filenames i...
Optimization: Avoid error check for operations that cannot raise. * This is not done a lot yet, and we miss a dedcicated query for the operation, but not the arguments to raise. * Added because it was noted missing as part of the conversion error check needed for Ctypes to work.
@@ -111,8 +111,6 @@ def getOperationCode(to_name, operator, arg_names, in_place, needs_check, # This needs to have one case per operation of Python, and there are many # of these, pylint: disable=too-many-branches,too-many-statements - # TODO: Use "needs_check" too. - prefix_args = () ref_count = 1 @@ -195,6 +193,7 @@ ...
Update message.py Second attempt to fix reply_markup
@@ -1569,7 +1569,7 @@ class Message(base.TelegramObject): chat_id: typing.Union[str, int], disable_notification: typing.Optional[bool] = None, reply_to_message_id: typing.Optional[int] = None, - reply_markup: typing.Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, None] = self.reply_markup, + reply_markup: typing.Union...
analytics: Remove unused CSS styling for `hr` tags. There are no `<hr>` HTML tags in the stats / analytics page, so removes the unused CSS rules for these elements.
@@ -3,10 +3,6 @@ body { background-color: hsl(0, 0%, 98%); } -hr { - border-width: 2px; -} - p { margin-bottom: 0; } @@ -72,10 +68,6 @@ p { top: -30px; } - &.pie-chart hr { - margin-bottom: 8px; - } - .button-container { position: relative; z-index: 1;
Add empty methods to screen class, for Gracefully ignores features that don't make sense in live coding mode.
@@ -99,8 +99,32 @@ class MockTurtle(RawTurtle): return super().tracer(n) # Leave tracing disabled. + def title(self, title): + pass + + def setup(self, width=None, height=None, startx=None, starty=None): + pass + + def textinput(self, title, prompt): + pass + + def numinput(self, title, prompt, default=None, minval=Non...
Update setup.py xgboost library needed.
@@ -39,7 +39,6 @@ setup( "flask", "pandas>=1.0.5", "numpy<1.19.0,>=1.16.0", - "matplotlib==3.3.1", "requests", "flask_cors", "flask_wtf", @@ -48,10 +47,12 @@ setup( "psutil", "gunicorn", "six>=1.14.0", + "matplotlib==3.3.1", "tensorflow", "keras==2.3.1", "sklearn", - "scikit-image" + "scikit-image", + "xgboost" ], extr...
GraphComponentBinding : Replace __nonzero__ with __bool__ for Python 3 See
@@ -213,7 +213,7 @@ int length( GraphComponent &g ) return g.children().size(); } -bool nonZero( GraphComponent &g ) +bool toBool( GraphComponent &g ) { return true; } @@ -303,7 +303,15 @@ void GafferModule::bindGraphComponent() .def( "__delitem__", (void (*)( GraphComponent &, long ))&delItem ) .def( "__contains__", c...
Correct JMC download link Mission Control is available as OpenJDK project now so we refer to that location for the download link.
@@ -35,7 +35,7 @@ jfr The ``jfr`` telemetry device enables the `Java Flight Recorder <http://docs.oracle.com/javacomponents/jmc-5-5/jfr-runtime-guide/index.html>`_ on the benchmark candidate. Up to JDK 11, Java flight recorder ships only with Oracle JDK, so Rally assumes that Oracle JDK is used for benchmarking. If you...
svtplay: this happen when a video have been unpublished the page is up but the video is gone
@@ -91,6 +91,9 @@ class Svtplay(Service, MetadataThumbMixin): except json.decoder.JSONDecodeError: yield ServiceError(f"Can't decode api request: {res.request.url}") return + if res.status_code >= 400: + yield ServiceError("Can't find any videos. its removed?") + return videos = self._get_video(janson) yield from video...
Update Readme steps to run examples This documentation updates is to address
@@ -114,7 +114,7 @@ Save the file as **.splunkrc** in the current user's home directory. #### Run the examples -Examples are located in the **/splunk-sdk-python/examples** directory. To run the examples at the command line, use the Python interpreter and include any arguments that are required by the example: +Examples...
Update for new version of plugin To be cross platform the nonce file has been changed to home dir Looking in tmp means we can support both versions
@@ -2,6 +2,7 @@ import os import os.path import requests import time +from pathlib import Path from talon import ctrl, ui, Module, Context, actions, clip # Courtesy of https://github.com/anonfunc/talon-user/blob/master/apps/jetbrains.py @@ -79,7 +80,16 @@ def _get_nonce(port): try: with open(os.path.join("/tmp", "vcide...
Bump source versions for v11.0-rc1 Problem: Tezos announced a new release. Revisions used have to be bumped. Solution: updated versions for Tezos sources.
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, "tezos": { - "ref": "refs/tags/v10.2", + "ref": "refs/tags/v11.0-rc1", "repo": "https://gitlab.com/tezos/tezos", - "rev": "5bfd311b701015381338e73a30c74415fa493c10", + "rev": "36055190bb560997f377ab7ee7bc6b66fe61835f", "type": "git" } }
STY: fixed PEP8 errors Removed whitespace and fixed indentation.
@@ -368,10 +368,10 @@ class TestConstellationBasics(object): 'kwargs': {'dkey': 'mlt'}, 'apply_inst': False}, {'function': mult_data, 'args': self.custom_args, 'apply_inst': False}] - testConst2 = pysat.Constellation(instruments=[ - pysat.Instrument('pysat', 'testing', num_samples=10, - clean_level='clean') for i in ra...
Use gevent for celery worker Increase concurrency to 100 (light threads)
@@ -11,4 +11,4 @@ fi sleep 10 # Wait for migrations echo "==> $(date +%H:%M:%S) ==> Running Celery worker <==" -exec celery -A safe_transaction_service.taskapp worker --loglevel $log_level -c 4 +exec celery -A safe_transaction_service.taskapp worker --loglevel $log_level --pool=gevent --concurrency=100
Bugfix Authorization header parsing Werkzeug expects None if header isn't present, rather than an empty string. Fixes
@@ -248,8 +248,7 @@ class BaseRequestWebsocket(_BaseRequestResponse): @property def authorization(self) -> Optional[Authorization]: - header = self.headers.get("Authorization", "") - return parse_authorization_header(header) + return parse_authorization_header(self.headers.get("Authorization")) @property def cache_cont...
add missing import missing `argparse` worked before because py3tester included it, but should have been explicitly included anyway
"""Unit tests for covidcast_meta_cache_updater.py.""" # standard library +import argparse import json import unittest from unittest.mock import MagicMock
GL Renderer : Reduce repetition This will be more useful when we add additional options using the same pattern.
@@ -182,6 +182,20 @@ T *reportedCast( const IECore::RunTimeTyped *v, const char *type, const IECore:: return nullptr; } +template<typename T> +T option( const IECore::Object *v, const IECore::InternedString &name, const T &defaultValue ) +{ + if( !v ) + { + return defaultValue; + } + if( auto d = reportedCast<const IEC...
increase build number Increases build number instead of a new version number.
{% set name = "geocat-comp" %} -{% set version = "2022.10.1" %} +{% set version = "2022.10.0" %} package: name: {{ name }} @@ -7,7 +7,7 @@ package: build: noarch: python - number: 0 + number: 1 script: {{ PYTHON }} -m pip install --no-deps --ignore-installed -vv . source:
Check and evaluate CURSOR FORWARD command after CSI in ANSI formatted text. Co-Author: Jonathan Slenders
@@ -55,7 +55,11 @@ class ANSI: formatted_text = self._formatted_text while True: + # NOTE: CSI is a special token within a stream of characters that + # introduces an ANSI control sequence used to set the + # style attributes of the following characters. csi = False + c = yield # Everything between \001 and \002 should...
Update institution ITB ITB has switched auth protocol from CAS to SAML. In addition, they requested to test login on their development server with our test server first before going to production. [skip ci]
@@ -327,18 +327,6 @@ def main(env): 'email_domains': [], 'delegation_protocol': 'saml-shib', }, - { - '_id': 'itb', - 'name': 'Institut Teknologi Bandung', - 'description': 'Institut Teknologi Bandung - OSF Repository', - 'banner_name': 'itb-banner.png', - 'logo_name': 'itb-shield.png', - 'login_url': None, - 'logout_u...
[Docs] Add `typing-extensions` dependency guide Although TVM does not, but `tvmc` depends on `typing-extensions`, which is not mentioned in the documentation.
@@ -331,6 +331,12 @@ like ``virtualenv``. pip3 install --user numpy decorator attrs + * If you want to use ``tvmc``: the TVM command line driver. + + .. code:: bash + + pip3 install --user typing-extensions + * If you want to use RPC Tracker .. code:: bash
Pass existing node collection from State. Also: remove unused collection argument.
@@ -22,7 +22,6 @@ var ChannelEditRouter = Backbone.Router.extend({ var ChannelManageView = require("edit_channel/new_channel/views"); var channel_manager_view = new ChannelManageView.ChannelListPage ({ el: $("#channel-container"), - collection: this.channelCollection }); }, @@ -61,7 +60,7 @@ var ChannelEditRouter = Bac...
skip setting occlusion settings just use the default stuff for now, until we can figure out a good setting (hard)
@@ -778,9 +778,9 @@ engine_no_focus_sleep 50 // Power savings while alt-tabbed out of TF2 //r_ForceWaterLeaf 1 // Optimization to visleafs //r_occlusion 1 // Use CPU to have the GPU skip rendering models/props you cannot see r_fastzreject 0 // Skip outdated render method -r_occludeemaxarea 40 // Skip occlusion of objec...
Added missing import to standalone.py Now importing ``Mapping`` for standalone parsers
@@ -30,7 +30,7 @@ from types import ModuleType from typing import ( TypeVar, Generic, Type, Tuple, List, Dict, Iterator, Collection, Callable, Optional, FrozenSet, Any, Union, Iterable, IO, TYPE_CHECKING, - Pattern as REPattern, ClassVar, Set, + Pattern as REPattern, ClassVar, Set, Mapping ) ###}
Simplify install-vault.sh a smidge Since all supported versions have published enterprise versions we no longer need to fallback to the old style S3 download URLS.
@@ -49,11 +49,6 @@ function install_vault_release() { if [[ "${HVAC_VAULT_LICENSE}" == "enterprise" ]]; then download_url="https://releases.hashicorp.com/vault/${HVAC_VAULT_VERSION}+ent/vault_${HVAC_VAULT_VERSION}+ent_${machine}_amd64.zip" - if ! curl --head "${download_url}" | head -1 | grep '\b200\b'; then - # Vault ...
propagate rename from check_lint SublimeHaskellHsDevChain was renamed ChainRunner. Propagate the rename to fly_check.
@@ -109,11 +109,11 @@ class FlyCheckViewEventListener(sublime_plugin.ViewEventListener): print('fly: executing {0}'.format(check_cmd)) if check_cmd: - CheckLint.SublimeHaskellHsDevChain.reset_chain_flag() + CheckLint.ChainRunner.reset_chain_flag() self.view.run_command(check_cmd, {'fly': True}) if Settings.COMPONENT_DE...
fixed _federation bugs for hetero-pearson scenario: same name has different dtype
@@ -157,7 +157,7 @@ class Federation(FederationABC): for i, info in enumerate(channel_infos): obj = self._receive_obj(info, name, tag=_SPLIT_.join([tag, NAME_DTYPE_TAG])) rtn_dtype.append(obj) - LOGGER.debug(f"[rabbitmq.get] _name_dtype_keys: {_name_dtype_keys[i]}, dtype: {obj}") + LOGGER.debug(f"[rabbitmq.get] _name_d...
Update Singularity Link Old link is expiring, replace the new link it suggests.
@@ -82,7 +82,7 @@ Rules describe how to create **output files** from **input files**. * Input and output files can contain multiple named wildcards. * Rules can either use shell commands, plain Python code or external Python or R scripts to create output files from input files. * Snakemake workflows can be easily execu...
Fix crashing on SIOCGIFADDR During scanning the list of interfaces, some of them can be configured invalidly: lack of ip, link down etc. This patch handles the error and inform about problem with concrete interface.
@@ -18,10 +18,21 @@ def local_ip4_addr_list(): for if_nidx in socket.if_nameindex(): name = if_nidx[1] sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) - ip_addr = socket.inet_ntoa(fcntl.ioctl( - sock.fileno(), + try: + ip_of_ni = fcntl.ioctl(sock.fileno(), 0x8915, # SIOCGIFADDR - struct.pack('256s', name[:15].e...
MAINT: special: Improve comments about Cephes p1evl function. Closes
* coef[0] = C , ..., coef[N] = C . * N 0 * - * The function p1evl() assumes that coef[N] = 1.0 and is - * omitted from the array. Its calling arguments are + * The function p1evl() assumes that c_N = 1.0 so that coefficent + * is omitted from the array. Its calling arguments are * otherwise the same as polevl(). * * * ...
awsbsub: fix file upload for absolute path The s3 key name must be the basename and not the absolute path
@@ -214,7 +214,7 @@ def _upload_and_get_command(boto3_factory, args, job_s3_folder, job_name, config # upload input files, if there if args.input_file: for file in args.input_file: - s3_uploader.put_file(file, file) + s3_uploader.put_file(file, os.path.basename(file)) # upload command, if needed if args.command_file or...
Deseasonify: reduce icon shuffle log verbosity It is not necessary to log all icon paths on each shuffle. Creates unnecessary visual clutter in the logfile.
@@ -332,8 +332,8 @@ class BrandingManager(commands.Cog): return False if not self.remaining_icons: + log.info("Reset & shuffle remaining icons") await self._reset_remaining_icons() - log.info(f"Set remaining icons: {await pretty_files(self.remaining_icons)}") next_up, *self.remaining_icons = self.remaining_icons succes...
production: Create stream in an atomic transaction. To avoid the window between stream creation and creation of the Recipient object, we create the stream in an atomic transaction. Fixes
from typing import Collection, List, Optional, Set, Tuple, Union +from django.db import transaction from django.db.models.query import QuerySet from django.utils.timezone import now as timezone_now from django.utils.translation import gettext as _ @@ -102,6 +103,7 @@ def create_stream_if_needed( realm, invite_only, his...
fix local redis url [nodeploy]
{ "datastore_mode": "local", - "redis_cache_url": "redis://localhost:6739", + "redis_cache_url": "redis://localhost:6379", "tasks_mode": "local", "log_level": "info", "tba_log_level": "debug",
Make DK-DK2->SE exchange available Fixes a misspelling in the parser, causing DK-DK2->SE exchange not to be shown on eMap DK-DK2->SE was written DK-DK2->SE-SE
@@ -123,7 +123,7 @@ def fetch_exchange(zone_key1='DK-DK1', zone_key2='DK-DK2', session=None, 'DK-DK1->NL':'"ExchangeNetherlands"', 'DK-DK1->SE':'"ExchangeSweden"', 'DK-DK1->SE-SE3':'"ExchangeSweden"', - 'DK-DK2->SE-SE':'("ExchangeSweden" - "BornholmSE4")',# Exchange from Bornholm to Sweden is included in "ExchangeSwede...
Ensure peer is still running before we call run_task() on them RegularChainBodySyncer._assign_body_download_to_peers and FastChainBodySyncer._assign_receipt_download_to_peers would make async calls after looking up a peer and before calling run_task() on them, causing a LifecycleError sometimes. They now perform the pe...
@@ -267,13 +267,15 @@ class BaseBodyChainSyncer(Service, PeerSubscriber): Loop indefinitely, assigning idle peers to download any block bodies needed for syncing. """ while self.manager.is_running: - # from all the peers that are not currently downloading block bodies, get the fastest - peer = await self._body_peers.ge...
update staging.yaml remove nh/dhis2/te [ci skip]
@@ -52,7 +52,7 @@ branches: - vellum-staging # DO NOT REMOVE this is similar to "autostaging", but for vellum #- fr/case-templates # FR May 15 - rn_only_select_app_type_when_no_advanced # Rohit June 27 - - nh/dhis2/te # Norman Oct 2 + #- nh/dhis2/te # Norman Oct 2 - sr-session-audit # Sravan Oct 15 - jls/kill-exchange ...
cherry-pick: tighten up output If stdout or stderr are empty, don't print empty lines. Also trim any trailing lines so we don't show excess ones. Tested-by: Mike Frysinger
@@ -60,8 +60,10 @@ change id will be added. capture_stderr=True) status = p.Wait() - print(p.stdout, file=sys.stdout) - print(p.stderr, file=sys.stderr) + if p.stdout: + print(p.stdout.strip(), file=sys.stdout) + if p.stderr: + print(p.stderr.strip(), file=sys.stderr) if status == 0: # The cherry-pick was applied corre...
Fix issue with bad encoding on windows By forcing the encoding to a unix varient, Emacs does not correctly handle windows style line endings. This prevents the code from being compiled.
@@ -354,7 +354,6 @@ With arg, turn mode on if and only if arg is positive. (provide 'live-py-mode) ;; Local Variables: -;; coding: us-ascii-unix ;; fill-column: 76 ;; indent-tabs-mode: nil ;; End:
Updated the formatting of the bullets We also need to update the screenshot so it matches the new description. Not sure how to do that.
@@ -10,11 +10,15 @@ The Promote tab The Promote tab is where you can configure a page's metadata, to help search engines find and index it. Below is a description of all the default fields under this tab. **For Search Engines** + * **Slug:** The section of the URL that appears after your website's domain e.g. ``http://...
atvscript: Add start log entry Add a line that is printed when the script is started to make it easier to separate different runs because of append mode.
@@ -302,6 +302,8 @@ async def appstart(loop): loop.set_exception_handler(_handle_exception) + _LOGGER.debug("Started atvscript") + try: print(args.output(await _handle_command(args, abort_sem, loop)), flush=True) except Exception as ex:
Updated Sanskrit.rst * Updated Sanskrit.rst Added wiki * Update sanskrit.rst
Sanskrit ******** +Sanskrit is the primary liturgical language of Hinduism, a philosophical language of Hinduism, Jainism, Buddhism and Sikhism, and a literary language of ancient and medieval South Asia that also served as a lingua franca. It is a standardised dialect of Old Indo-Aryan, originating as Vedic Sanskrit a...
Remove reference to the mailinglist. I don't look at the mailing list and there's been basically zero activity there for a while. Pointing to it does no favors to us or to those with questions, so I'm guding people to GH issues instead.
@@ -53,5 +53,5 @@ Tags will show up for you automatically in forms and the admin. For more info check out the `documentation <https://django-taggit.readthedocs.io/>`_. And for questions about usage or -development you can contact the `mailinglist -<https://groups.google.com/group/django-taggit>`_. +development you can ...
gaze_estimation_demo: zero-initialize FaceInferenceResults members This works around a static analysis warning.
namespace gaze_estimation { struct FaceInferenceResults { - float faceDetectionConfidence; + float faceDetectionConfidence{}; cv::Rect faceBoundingBox; std::vector<cv::Point2i> faceLandmarks; @@ -20,8 +20,8 @@ struct FaceInferenceResults { cv::Rect rightEyeBoundingBox; cv::Point2f leftEyeMidpoint; cv::Point2f rightEyeM...
Fixed add_host.sh script location Otherwise it gets downloaded to the /root folder
@@ -487,8 +487,8 @@ oc adm policy add-cluster-role-to-user cluster-admin ${AUSERNAME} # Workaround for BZ1469358 ansible master1 -b -m fetch -a "src=/etc/origin/master/ca.serial.txt dest=/tmp/ca.serial.txt flat=true" ansible masters -b -m copy -a "src=/tmp/ca.serial.txt dest=/etc/origin/master/ca.serial.txt mode=644 ow...
stream settings: Remove background click handler in "Manage Streams". This click handler reset the stream creation form; it's not clear why that behavior would be useful, or why we'd want anything to happen when clicking in these background areas, so the correct thing to do is just remove the handler. Fixes:
@@ -1127,14 +1127,4 @@ export function initialize() { $(".right").removeClass("show"); $(".subscriptions-header").removeClass("slide-left"); }); - - { - const sel = ".search-container, .streams-list, .subscriptions-header"; - - $("#manage_streams_container").on("click", sel, (e) => { - if ($(e.target).is(sel)) { - stre...
Improve the background task documentation This should hopefully indicate that `test_app` context blocks can be used to ensure that background tasks complete within the test.
Background tasks ================ -Some actions can often take a lot of time to complete, which may cause -the client to timeout before receiving a response. Equally some tasks -just don't need to be completed before the response is sent and -instead can be done in the background. Quart provides a way to create -and ru...
DeleteChannels : Default channels plug to "" This matches the behaviour of all our other Delete* nodes. Breaking change : Changed default value for DeleteChannels channels plug
@@ -55,7 +55,7 @@ DeleteChannels::DeleteChannels( const std::string &name ) storeIndexOfNextChild( g_firstPlugIndex ); addChild( new IntPlug( "mode", Plug::In, Delete, Delete, Keep ) ); - addChild( new StringPlug( "channels", Gaffer::Plug::In, "[RGB]" ) ); + addChild( new StringPlug( "channels" ) ); // Direct pass-thro...
Show newest votes on legislator page The "recent votes" section used default sorting, so it didn't guarantee that it would actually show the legislator's most recent votes.
@@ -144,9 +144,11 @@ def person(request, person_id): .order_by("-created_at", "id")[:SPONSORED_BILLS_TO_SHOW] ) - votes = person.votes.all().select_related("vote_event", "vote_event__bill")[ - :RECENT_VOTES_TO_SHOW - ] + votes = ( + person.votes.all() + .select_related("vote_event", "vote_event__bill") + .order_by("-vo...
Update README.rst README is pointing to a container that hasn't been released yet.
@@ -89,13 +89,13 @@ Use this installation mode if you are contributing to NeMo. Docker containers: ~~~~~~~~~~~~~~~~~~ The easiest way to start training with NeMo is by using `NeMo's container <https://ngc.nvidia.com/catalog/containers/nvidia:nemo>`_. -It has all requirements and NeMo 1.0.0rc1 already installed. +It has...
Don't copy color layer unnecessarily If the color layer uses the same UFO layer as the base one, then no need to copy the layer at all. For example: <key>com.github.googlei18n.ufo2ft.colorLayerMapping</key> <array> <array> <string>public.default</string> <integer>0</integer> </array> </array>
@@ -69,6 +69,9 @@ class ExplodeColorLayerGlyphsFilter(BaseFilter): for layerName, colorID in colorLayerMapping: layerGlyphSet = self._getLayer(font, layerName) if glyph.name in layerGlyphSet: + if glyph == layerGlyphSet[glyph.name]: + layerGlyphName = glyph.name + else: layerGlyphName = self._copyGlyph( layerGlyphSet, ...
subs: Properly focus on Stream name box while creating a new stream. Fixes
@@ -477,8 +477,8 @@ exports.change_state = (function () { if (hash.arguments.length > 0) { // if in #streams/new form. if (hash.arguments[0] === "new") { - exports.new_stream_clicked(); components.toggle.lookup("stream-filter-toggle").goto("all-streams"); + exports.new_stream_clicked(); } else if (hash.arguments[0] ===...
Update graphsage.py fix some bugs
@@ -141,7 +141,7 @@ class GraphSAGE(GNNBase): else: logits = logits - graph.node_features['node_emb']=logits #put the results into the NLPGraph + graph.node_features['node_emb']=logits.clone().detach() #put the results into the NLPGraph return graph
Delete mux and muy Unnecessary two lines of mux and muy was deleted.
@@ -155,8 +155,6 @@ def _forward(args, index, config, data, variables, output_image=True): if e.repeat_evaluation_type == "last": avg = sum elif e.repeat_evaluation_type == "std": - mux = np.array([s / e.num_evaluations for s in sum_mux]) - muy = np.array([(s / e.num_evaluations)**2 for s in sum]) std_result = [np.nan_...
docs: fix typo in parameter set docs Fix typo identified in Added emphasis on the need to install / reinstall the package
@@ -17,7 +17,7 @@ Adding Parameter Sets ********************* Parameter sets can be added to PyBaMM by creating a python package, and -registering a `entry point`_ to ``pybamm_parameter_sets``. At a minimum, the +registering a `entry point`_ to ``pybamm_parameter_set``. At a minimum, the package (``cell_parameters``) s...
Update running.rst minor type
@@ -219,7 +219,7 @@ significantly improving rendering performance. In production, you probably want to serve static files from a more optimized static file server like `nginx <http://nginx.net/>`_. You -can configure most any web server to recognize the version tags used +can configure almost any web server to recogniz...
Update deprecated-features.rst Fixed grammar
@@ -3,10 +3,10 @@ Deprecation Policy This document outlines the process for announcing deprecated features to the community. The guiding principle is `no surprises <https://docs.mattermost.com/developer/manifesto.html#no-surprises>`_ with guaranteed long-term stability, where admins or users should never run into anyth...
Remove publish docker from nightly build Summary: Fixes nightly build failure Test Plan: buildkite Reviewers: schrockn
import sys import yaml -from defines import SupportedPython, SupportedPythons -from step_builder import BuildkiteQueue, StepBuilder +from defines import SupportedPython +from step_builder import StepBuilder SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) sys.path.append(SCRIPT_PATH) - -def publish_docker_image...
Port 51998 to master modules/postgres.py: replace sort with sorted.
@@ -3234,9 +3234,9 @@ def has_privileges( else: perms = [_PRIVILEGES_MAP[perm] for perm in _perms] if "ALL" in _privs: - retval = perms.sort() == _privileges[name].keys().sort() + retval = sorted(perms) == sorted(_privileges[name]) else: - retval = set(_privs).issubset(set(_privileges[name].keys())) + retval = set(_pri...
Symbolic solver: introduce a counter for calls to Has_Contradiction This will make each call to Has_Contradiction unique in traces, and will provide a convenient way in debuggers to step in a particular call. TN:
@@ -142,6 +142,11 @@ package body Langkit_Support.Adalog.Symbolic_Solver is -- List of N_Predicates, to be applied at the end of solving. TODO??? we -- could apply this policy for all predicates, which would simplify the -- code a bit. + + Has_Contradiction_Counter : Natural; + -- During the Simplify optimization, numb...
Removed a FIXME that is no longer valid We sped the label: locator up considerably so this shouldn't be an issue.
@@ -1473,9 +1473,6 @@ class Salesforce(object): for label, value in list(zip(it, it)): # this uses our custom "label" locator strategy locator = f"label:{label}" - # FIXME: we should probably only wait for the first label; - # after that we can assume the fields have been rendered - # so that we fail quickly if we can'...
fix(bump): fix bump find_increment error in the previous design, MAJOR will be overwritten by other
@@ -34,11 +34,11 @@ def find_increment( continue found_keyword = result.group(0) new_increment = increments_map_default[found_keyword] - if new_increment == "MAJOR": - increment = new_increment - break - elif increment == "MINOR" and new_increment == "PATCH": + if increment == "MAJOR": continue + elif increment == "MIN...
rocketchat: Only set message content if it exists. Not sure where those come from since we discovered this with production data.
@@ -648,7 +648,15 @@ def process_messages( def message_to_dict(message: Dict[str, Any]) -> Dict[str, Any]: rc_sender_id = message["u"]["_id"] sender_id = user_id_mapper.get(rc_sender_id) + if "msg" in message: content = message["msg"] + else: # nocoverage + content = "This message imported from Rocket.Chat had no body ...
Tests: wait for FTS transfer to actually finish Otherwise, we can poll the status while it is still active, and the test fail
@@ -31,6 +31,8 @@ from rucio.client.rseclient import RSEClient from rucio.client.ruleclient import RuleClient from rucio.common.utils import run_cmd_process +MAX_POLL_WAIT_SECONDS = 60 + @pytest.fixture def did_factory(vo, test_scope): @@ -130,9 +132,14 @@ def test_tpc(containerized_rses, root_account, test_scope, did_...