message
stringlengths
13
484
diff
stringlengths
38
4.63k
Help channels: add a function to get in use time Future code will also need to get this time, so moving it out to a separate function reduces redundancy.
@@ -5,7 +5,7 @@ import logging import random import typing as t from collections import deque -from datetime import datetime, timezone +from datetime import datetime, timedelta, timezone from pathlib import Path import discord @@ -286,6 +286,15 @@ class HelpChannels(Scheduler, commands.Cog): if channel.category_id == c...
Implemented .env and .quartenv loading in cli module cli.ScriptInfo loads the env files if: python-dotenv is installed, the files exists and QUART_SKIP_DOTENV env var is not set to '1'
@@ -7,6 +7,12 @@ from typing import Any, Callable, Iterable, List, Optional, TYPE_CHECKING import click +try: + from dotenv import load_dotenv +except ImportError: + pass + + from .__about__ import __version__ from .helpers import get_debug_flag @@ -32,6 +38,7 @@ class ScriptInfo: app_import_path: Optional[str]=None, c...
Make nunique in DataFrame to return a Koalas DataFrame instead of pandas' The approach is basically similar with `DataFrame._reduce_for_stat_function`.
@@ -3504,7 +3504,7 @@ defaultdict(<class 'list'>, {'col..., 'col...})] dropna: bool = True, approx: bool = False, rsd: float = 0.05, - ) -> pd.Series: + ) -> "ks.Series": """ Return number of unique elements in the object. @@ -3527,7 +3527,7 @@ defaultdict(<class 'list'>, {'col..., 'col...})] Returns ------- - The numb...
Cleaned up outdated information in VEP docs. Fixes
@@ -4916,9 +4916,6 @@ class VariantDataset(object): the `LOFTEE plugin <https://github.com/konradjk/loftee>`__ on the current variant dataset and adds the result as a variant annotation. - If the variant annotation path defined by ``root`` already exists and its schema matches the VEP schema, then - Hail only runs VEP ...
fix(plugins): changing the way ftrack is querying entity_type this will remove the server entity duplicity error on mysql
@@ -44,7 +44,15 @@ class IntegrateHierarchyToFtrack(pyblish.api.ContextPlugin): input_data = context.data["hierarchyContext"] + # self.import_to_ftrack(input_data) + + try: self.import_to_ftrack(input_data) + except Exception as exc: + import sys + import traceback + self.log.info(traceback.format_exc(sys.exc_info())) ...
Update model_utils.py previous documentations are not 100% right.
@@ -293,32 +293,7 @@ def depth_weighting(mesh, indActive=None, v=2, z0=None): Notes: - Currently, z0 equal to the average clearance (flight hight), - so z0 must be either a scalar or 2d array. - Specifically, without the topo, the clearance (z0) is constant parameter, - with the topography, the clearance (z0) should be...
Update tryit.ipynb Update with new features !
"cell_type": "markdown", "metadata": {}, "source": [ - "<img src=\"https://raw.githubusercontent.com/euroargodev/argopy/master/docs/_static/argopy_logo_long.png\" alt=\"argopy logo\" width=\"200\"/> " + "<img src=\"https://raw.githubusercontent.com/euroargodev/argopy/master/docs/_static/argopy_logo_long.png\" alt=\"arg...
refactor: helper: Separate setting counts for model & UI. Helper.set_counts is separated into setting counts for model first and then using the model data to set the counts in UI.
@@ -84,14 +84,14 @@ def asynch(func: Any) -> Any: return wrapper -def set_count(id_list: List[int], controller: Any, new_count: int) -> None: - # This method applies new_count for 'new message' (1) or 'read' (-1) - # (we could ensure this in a different way by a different type) - assert new_count == 1 or new_count == -...
displays preferred IP if you have DS-Lite conncetion for example
@@ -104,7 +104,7 @@ fi # get IP address & port local_ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') -public_ip=$(curl -s ipinfo.io/ip) +public_ip=$(curl -s http://v4v6.ipv6-test.com/api/myip.php) public_port=$(cat ${bitcoin_dir}/bitcoin.conf 2>/dev/null | grep port= | awk -F"=" '{prin...
[issue Add support for AWS Organizations fix travis build error
@@ -181,7 +181,7 @@ class OrganizationsBackend(BaseBackend): def validate_parent_id(self, parent_id): try: self.get_organizational_unit_by_id(parent_id) - except RESTError as e: + except RESTError: raise RESTError( 'ParentNotFoundException', "You specified parent that doesn't exist."
Fix permission. uses: john-shaffer/cache@sudo-tar
@@ -48,7 +48,7 @@ jobs: ${{ runner.os }}-pip-new- - name: Cache talib if: ${{ runner.os == 'Linux' }} - uses: actions/cache@v2 + uses: john-shaffer/cache@sudo-tar id: talib-cache with: path: |
Stop submit button for MultipleChoiceInput from firing ng-click twice Stop submit button for MultipleChoiceInput from firing ng-click twice
@@ -39,6 +39,9 @@ oppia.directive('oppiaInteractiveMultipleChoiceInput', [ $scope.answer = null; $scope.submitAnswer = function(answer) { + if (answer === null) { + return; + } answer = parseInt(answer, 10); $scope.onSubmit({ answer: answer,
client: isolated unicode fix for Windows While tarfile documentation says that encoding defaults to 'utf-8' on Windows, this is a lie. So force it and it seems to have magically fixed the problem.
@@ -1699,8 +1699,8 @@ def fetch_isolated(isolated_hash, storage, cache, outdir, use_symlinks): elif filetype == 'tar': basedir = os.path.dirname(fullpath) - with tarfile.TarFile(fileobj=srcfileobj) as extractor: - for ti in extractor: + with tarfile.TarFile(fileobj=srcfileobj, encoding='utf-8') as t: + for ti in t: if ...
Update es-words.yml A user pointed out that "This field is required" wasn't being translated, and provided a translation.
@@ -23,4 +23,5 @@ es: "Back": "Atras" "Loading. Please wait . . . ": "Cargando. Espere, por favor." "You must sign your name to continue.": "Tiene que firmar antes de continuar." - "None of the above": "Ninguno" + "None of the above": "Ninguno", + "This field is required.": "Esta pregunta es requerida."
Update scanner-util.js Add modality to the output csv
@@ -16,7 +16,7 @@ var yesterday = getYesterday(); var mongoarray = db.feature_set.aggregate([{ $match : {"Modality":"MR", "AcquisitionTime": { "$exists" : true }, "StudyDate":{$in:[param1]}, "ImageType":/ORIGINAL/i, "AcquisitionTime" : { "$exists" : true },"AcquisitionDate" : { "$exists" : true } }}, { "$group":{ - "_i...
min_epochs is broken in ptl right now set to 0 for now
@@ -56,8 +56,8 @@ RECOGNITION_HYPER_PARAMS = {'pad': 16, 'batch_size': 1, 'quit': 'early', 'epochs': -1, - 'min_epochs': 5, - 'lag': 5, + 'min_epochs': 0, + 'lag': 10, 'min_delta': None, 'optimizer': 'Adam', 'lrate': 1e-3, @@ -86,7 +86,7 @@ SEGMENTATION_HYPER_PARAMS = {'line_width': 8, 'freq': 1.0, 'quit': 'dumb', 'epo...
BUG: fixed kwarg spelling Fixed spelling of `decode_timedelta` kwarg.
@@ -591,7 +591,7 @@ def load_netcdf_pandas(fnames, strict_meta=False, file_format='NETCDF4', def load_netcdf_xarray(fnames, strict_meta=False, file_format='NETCDF4', - epoch_name='Epoch', decode_deltatime=False, + epoch_name='Epoch', decode_timedelta=False, labels={'units': ('units', str), 'name': ('long_name', str), '...
settings: Replace user groups delete button with fa-trash-o. This makes this settings page a bit more consistent with the rest of the site.
{{t 'Saved' }} </button> <button class="button save-status btn-danger small"> - {{t 'Discard changes' }} + <i class="fa fa-undo" aria-label="{{t 'Delete' }}" title="{{t 'Delete' }}"></i> </button> <button class="button rounded small delete btn-danger"> - {{t 'Delete' }} + <i class="fa fa-trash-o" aria-label="{{t 'Delet...
Fix AttributeError in mitogen.core.Context.send_await() As of Receiver objects do not have a get_data() method and Receiver.get() does not unpickle the message.
@@ -769,9 +769,10 @@ class Context(object): def send_await(self, msg, deadline=None): """Send `msg` and wait for a response with an optional timeout.""" receiver = self.send_async(msg) - response = receiver.get_data(deadline) - IOLOG.debug('%r._send_await() -> %r', self, response) - return response + response = receive...
polish to test_read_<spec/map>_files changed assert construction fixed variable name bug
@@ -31,8 +31,7 @@ def test_read_map_files(): # how many map files we expect to see n_map_files = 28 - if len(hdr_map_file_list) != n_map_files: - assert False, ( + assert len(hdr_map_file_list) == n_map_files, ( "test_read_map_files has wrong number data files: found {}, expected " " {}".format(len(hdr_map_file_list), ...
Make loss function configurable in trax. Was thinking of using trax in PPO so did it, but will probably integrate it later on.
@@ -288,6 +288,7 @@ def reshape_by_device(train_data, num_devices): @gin.configurable(blacklist=["output_dir"]) def train(output_dir, model=gin.REQUIRED, + loss_fun=loss, inputs=trax_inputs.inputs, optimizer=trax_opt.adam, lr_schedule=lr.MultifactorSchedule, @@ -303,6 +304,8 @@ def train(output_dir, output_dir: Directo...
add range to sensor table for clarification when using expose attribute
@@ -8,7 +8,7 @@ except ModuleNotFoundError: # Defines the column order of the printed table. # ["dpt_number", "value_type", "dpt_size", "unit", "dpt_range"] -COLUMN_ORDER = ["dpt_number", "value_type", "dpt_size", "unit"] +COLUMN_ORDER = ["dpt_number", "value_type", "dpt_size", "dpt_range", "unit"] # Defines the column...
Factor out deployment getting logic fixed bug in execute where `run` is not awaited
@@ -73,12 +73,27 @@ def exception_traceback(exc: Exception) -> str: return "".join(list(tb.format())) -def check_if_deprecated_deployment(deployment): +async def get_deployment(client, name, deployment_id): + if name is None and deployment_id is not None: + try: + deployment = await client.read_deployment(deployment_id...
Reformat src/conf.py to conform to latest python black rules Python black removed Python 2 support so it now flags the `u` prefixed strings. We picked up python black 22.1: ``` Collecting black Downloading black-22.1.0-py3-none-any.whl (160 kB) ``` It removed python 2 support: * *
@@ -36,12 +36,12 @@ nitpicky = True version = "3.2" release = "3.2.0" -project = u"Apache CouchDB\u00ae" +project = "Apache CouchDB\u00ae" -copyright = u"%d, %s" % ( +copyright = "%d, %s" % ( datetime.datetime.now().year, - u"Apache Software Foundation. CouchDB\u00ae is a registered trademark of the " - + u"Apache Soft...
Increase repeater post timeout to 75 seconds 99DOTS responses sometimes take ~60s to process, which leads us to mark those records as failed
@@ -6,7 +6,7 @@ MIN_RETRY_WAIT = timedelta(minutes=60) CHECK_REPEATERS_INTERVAL = timedelta(minutes=5) CHECK_REPEATERS_KEY = 'check-repeaters-key' -POST_TIMEOUT = 45 # seconds +POST_TIMEOUT = 75 # seconds RECORD_PENDING_STATE = 'PENDING' RECORD_SUCCESS_STATE = 'SUCCESS'
Update to repair when choose 1 as start url return error Update to repair when choose 1 as start url return error
@@ -88,7 +88,7 @@ class WebNovelCrawler: if chapter.isdigit(): chapter = int(chapter) if 1 <= chapter <= len(self.chapters): - return chapter - 1 + return chapter # end if # end if for i, ch_id in enumerate(self.chapters): @@ -106,7 +106,7 @@ class WebNovelCrawler: end = self.get_chapter_index(self.end_chapter) or len(...
framework/pluginloader: Make sure to also clear aliases When 'clearing' the pluginloader previously any aliases already discovered were not removed, now ensure all discovered items are removed.
@@ -455,6 +455,8 @@ class PluginLoader(object): """ Clear all discovered items. """ self.plugins = {} self.kind_map.clear() + self.aliases.clear() + self.global_param_aliases.clear() def reload(self): """ Clear all discovered items and re-run the discovery. """
Update installation.md Mounting the configuration file with the ":ro" flag will prevent users from editing config in new v12.0 UI.
@@ -38,7 +38,7 @@ services: frigate: ... volumes: - - /path/to/your/config.yml:/config/config.yml:ro + - /path/to/your/config.yml:/config/config.yml - /path/to/your/storage:/media/frigate - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear target: /tmp/cache @@ -55,7 +55,7 @@ services: frigate: ... volume...
Change data-stream-name referencess to data-stream-id. This changes all references of the data-stream-name to more predictable data-stream-id references in the subscriptions overlay. This prevents unescaped characters from breaking selectors and stream renames from breaking selectors.
@@ -69,15 +69,20 @@ exports.set_all_stream_audible_notifications_to = function (new_setting) { set_notification_setting_for_all_streams("audible_notifications", new_setting); }; +function get_stream_id(target) { + if (target.constructor !== jQuery) { + target = $(target); + } + return target.closest(".stream-row, .subs...
Change CHP incentives defaults to non-zero for MACRS and ITC 5 year MACRS with 100% bonus and 50% ITC reduction 10% ITC
@@ -1352,28 +1352,28 @@ nested_input_definitions = { "macrs_option_years": { "type": "int", "restrict_to": macrs_schedules, - "default": 0, + "default": 5, "description": "MACRS schedule for financial analysis. Set to zero to disable" }, "macrs_bonus_pct": { "type": "float", "min": 0.0, "max": 1.0, - "default": 0.0, + ...
docs: Fix H2O_WAVE_APP_ADDRESS in configuration docs. Thanks
@@ -54,7 +54,7 @@ For production deployments, you'll want to configure which port your app listens You can use the following environment variables to configure your app's server's behavior: -### H2O_APP_ADDRESS +### H2O_WAVE_APP_ADDRESS The public host/port of the app server. Defaults to `http://127.0.0.1:8000`. Set th...
Make IPython work with OpenSSL in FIPS mode `md5` is not supported with OpenSSL in FIPS mode, hence moving `md5` to `sha1`
@@ -55,7 +55,7 @@ def code_name(code, number=0): This now expects code to be unicode. """ - hash_digest = hashlib.md5(code.encode("utf-8")).hexdigest() + hash_digest = hashlib.sha1(code.encode("utf-8")).hexdigest() # Include the number and 12 characters of the hash in the name. It's # pretty much impossible that in a s...
Correct inertia creation The inertia creation did not take the orientation of its parent joint into account, corrected this via similarity transform
@@ -123,6 +123,10 @@ def calculateInertia(obj, mass, geometry_dict=None, errors=None, adjust=False, l if not geometry_dict: geometry = deriveGeometry(obj) + # Get the rotation of the object + object_rotation = obj.rotation_euler.to_matrix() + + if geometry['type'] == 'box': inertia = calculateBoxInertia(mass, geometry[...
Remove MailTest fixes issue
@@ -194,7 +194,6 @@ API | Description | Auth | HTTPS | CORS | Link | | languagelayer | Language detection | No | Yes | Unknown | [Go!](https://languagelayer.com) | | Lob.com | US Address Verification | `apiKey` | Yes | Unknown | [Go!](https://lob.com/) | | mailboxlayer | Email address validation | No | Yes | Unknown | ...
Update build.sh Disable build of tutorial as the mnist download fails right now.
@@ -48,6 +48,9 @@ if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then # Step 1: Remove runnable code from tutorials that are not supposed to be run python $DIR/remove_runnable_code.py beginner_source/aws_distributed_training_tutorial.py beginner_source/aws_distributed_training_tutorial.py || true python $DIR/remove_runnable...
Fix OneAccess.TDRE.get_metrics to new interface HG-- branch : feature/microservices
# Python modules import re -from collections import defaultdict # NOC modules from noc.sa.profiles.Generic.get_metrics import Script as GetMetricsScript -from noc.core.script.metrics import percent_usage class Script(GetMetricsScript): @@ -47,57 +45,32 @@ class Script(GetMetricsScript): def collect_profile_metrics(self...
Allow config overrides from environment variables Keys are of the format: "INSIGHTS_%s" % key.upper() In English, that's the uppercase version of the config key with "INSIGHTS_" prepended to the key.
@@ -352,7 +352,25 @@ def apply_legacy_config(): CONFIG['gpg'] = False +def boolify(v): + if v.lower() == "true": + return True + elif v.lower() == "false": + return False + else: + return v + + def compile_config(): + # Options can be set as environment variables + # The formula for the key is `"INSIGHTS_%s" % key.uppe...
Fix test on py3 compress_whitespace on py3 replaces nbsp with normal space
@@ -105,12 +105,12 @@ class MiscTests(TestCase): factory.set_response(response) return factory.title - html = ("""\ + html = (b"""\ <html><head> - <title>T&nbsp;itle</title> + <title>T&gt;itle</title> </head><body><p>Blah.<p></body></html> """) - self.assertEqual(get_title(html), u'T\xa0itle') + self.assertEqual(get_ti...
Update azorult.txt ```lakeshoreintegrated.com``` looks as compromised site. So, full path only.
@@ -656,3 +656,23 @@ testaztest.xyz # Reference: https://twitter.com/James_inthe_box/status/1164898833500798976 losjardinesdejavier.com/admin/32/index.php + +# Reference: https://twitter.com/DynamicAnalysis/status/1165720711219929088 +# Reference: https://pastebin.com/wHV90Sc2 + +http://151.80.8.23/panel/index.php +htt...
Skip gather and reduce scatter grad tests on GPU Recent changes in XLA:GPU seem to be causing deadlocks.
@@ -974,6 +974,8 @@ class PythonPmapTest(jtu.JaxTestCase): )) @ignore_slow_all_to_all_warning() def testGradOf(self, prim, tiled, use_axis_index_groups): + if jtu.device_under_test() == "gpu": + raise SkipTest("XLA:GPU with ReduceScatter deadlocks") # b/264516146 axis_index_groups = None devices = jax.devices()
Increase limit to 50 items/per page in IndividualLearnerSelector Fixes
import commonCoachStrings from '../../common'; const DEFAULT_ITEMS_PER_PAGE = 50; - const SHORT_ITEMS_PER_PAGE = 5; export default { name: 'IndividualLearnerSelector', }; }, itemsPerPage() { - return this.targetClassId ? SHORT_ITEMS_PER_PAGE : DEFAULT_ITEMS_PER_PAGE; + return DEFAULT_ITEMS_PER_PAGE; }, }, methods: {
Added information of QWeather in README.md QWeather, also named HeWeather, provides free weather api for developers.
@@ -927,6 +927,7 @@ API | Description | Auth | HTTPS | CORS | | [ODWeather](http://api.oceandrivers.com/static/docs.html) | Weather and weather webcams | No | No | Unknown | | [OpenUV](https://www.openuv.io) | Real-time UV Index Forecast | `apiKey` | Yes | Unknown | | [OpenWeatherMap](https://openweathermap.org/api) | ...
Update bs4_filters.js Adding event listener on bs4_filters.js to catch adminForm creation
@@ -185,6 +185,7 @@ var AdminFilters = function(element, filtersElement, filterGroups, activeFilters html: true, placement: 'bottom' }); + $(document).on('adminFormReady', function(evt){ if ($('#filter-groups-data').length == 1) { var filter = new AdminFilters( '#filter_form', '.field-filters', @@ -192,4 +193,5 @@ var ...
refactor: helper: Merge parameters passed into _set_count_[model/view]. Since the functions only need to iterate through each message, we pass in a list of messages by merging id_list and message dict.
@@ -84,17 +84,14 @@ def asynch(func: Any) -> Any: return wrapper -def _set_count_in_model(id_list: List[int], new_count: int, - messages: Dict[int, Message], +def _set_count_in_model(new_count: int, changed_messages: List[Message], unread_counts: UnreadCounts) -> None: """ This function doesn't explicitly set counts in...
Updated LICENSE [ci skip] Bad merge in overwrote
BSD 3-Clause License -Copyright (c) 2009-2019, Dimagi Inc., and individual contributors. +Copyright (c) 2009-2020, Dimagi Inc., and individual contributors. All rights reserved. Redistribution and use in source and binary forms, with or without
Fix bug in Langkit_Support.Token_Data_Handlers.Previous_Token This piece of code was comparing vector indices with the content of these vectors (which also are indices), whereas it should compare indices with themselves instead. As a result, lookup operations built on top of that were not behaving properly in some case...
@@ -385,6 +385,7 @@ package body Langkit_Support.Token_Data_Handlers is Element_Index : Positive; Element : Integer) return Relative_Position is + Triv_Index : constant Natural := Natural (Key_Trivia); begin -- Index can be zero if the corresponding token is not followed by -- any trivia. In this case, rely on the sloc...
In QCS getting started, only install cirq-google This significantly speeds up the startup experience because we don't have to install all the other packages in the cirq metapackage. In testing just now installing `cirq-google` took about 7 seconds in colab, whereas installing `cirq` took about 30 seconds.
}, "source": [ "## Setup\n", - "Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install cirq --pre`." + "Note: this notebook relies on unreleased Cirq features. If you want to try these features, make sure you install cirq via `pip install c...
ImageReaderTest : Convert `IECore.FileSequence` Ideally `IECore.FileSequence` would return a `pathlib.Path`. This works around that for now to avoid the `StringPlug` from stripping out the backslashes.
@@ -164,10 +164,11 @@ class ImageReaderTest( GafferImageTest.ImageTestCase ) : shutil.copyfile( self.offsetDataWindowFileName, testSequence.fileNameForFrame( 3 ) ) reader = GafferImage.ImageReader() - reader["fileName"].setValue( testSequence.fileName ) + # todo : Change IECore.FileSequence to return a `pathlib.Path` o...
ignore if TableauUser already exists because add_domain_membership is called multiple times upon user creation
@@ -453,6 +453,11 @@ def add_tableau_user(domain, username): these details to the Tableau instance. ''' session = TableauAPISession.create_session_for_domain(domain) + if TableauUser.objects.filter( + server=session.tableau_connected_app.server, + username=username + ).exists(): + return True user = TableauUser.objects...
Change AT_CHECK to TORCH_CHECK in python_arg_parser.h Summary: Pull Request resolved:
@@ -439,7 +439,7 @@ inline at::MemoryFormat PythonArgs::toMemoryFormat(int i) { inline at::QScheme PythonArgs::toQScheme(int i) { if (!args[i]) return at::kPerTensorAffine; - AT_CHECK(THPQScheme_Check(args[i]), "qscheme arg must be an instance of the torch.qscheme"); + TORCH_CHECK(THPQScheme_Check(args[i]), "qscheme ar...
git # This is a combination of 2 commits. Add channel ID to message deletion logs
<div class="discord-message"> <div class="discord-message-header"> <span class="discord-username" - style="color: {{ message.author.top_role.colour | hex_colour }}">{{ message.author }}</span><span - class="discord-message-metadata has-text-grey">{{ message.timestamp }} | User ID: {{ message.author.id }}</span> + style...
Adservice: Add libc6-compat runtime dependency Fixes
@@ -11,6 +11,8 @@ RUN ./gradlew installDist FROM openjdk:8-alpine +RUN apk add --no-cache libc6-compat + RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ chmod +x...
fix a slight misconfig of syndic in salt.config was causing a failing unit test
@@ -942,8 +942,9 @@ class TestDaemon(object): syndic_opts.update( salt.config._read_conf_file(os.path.join(RUNTIME_VARS.CONF_DIR, "syndic")) ) - syndic_opts["cachedir"] = os.path.join(TMP, "rootdir", "cache") syndic_opts["config_dir"] = RUNTIME_VARS.TMP_SYNDIC_MINION_CONF_DIR + syndic_opts["cachedir"] = os.path.join(TM...
fix: rationalize platform constraints for 'pyarrow' extra Release-As: 1.27.2
@@ -47,13 +47,10 @@ extras = { ], "pandas": ["pandas>=0.17.1"], # Exclude PyArrow dependency from Windows Python 2.7. - 'pyarrow: platform_system == "Windows"': [ - "pyarrow>=1.0.0, <2.0dev; python_version>='3.5'", - ], - 'pyarrow: platform_system != "Windows"': [ + "pyarrow": [ "pyarrow >= 1.0.0, < 2.0dev; python_vers...
Support the config_save command. This adds the save_config, this is based on the Cisco save command.
@@ -13,9 +13,19 @@ class RadETXBase(BaseConnection): time.sleep(.3 * self.global_delay_factor) self.clear_buffer() - def save_config(self, cmd='admin save', confirm=False): + def save_config(self, cmd='admin save', confirm=False, confirm_response=''): """Saves Config Using admin save""" - return super(RadETXBase, self)...
Have easily accessible default configs This will help add next_tables for acl tables
@@ -133,3 +133,15 @@ FAUCET_PIPELINE = ( ETH_DST_DEFAULT_CONFIG, FLOOD_DEFAULT_CONFIG, ) + +DEFAULT_CONFIGS = { + 'port_acl': PORT_ACL_DEFAULT_CONFIG, + 'vlan': VLAN_DEFAULT_CONFIG, + 'vlan_acl': VLAN_ACL_DEFAULT_CONFIG, + 'eth_src': ETH_SRC_DEFAULT_CONFIG, + 'ipv4_fib': IPV4_FIB_DEFAULT_CONFIG, + 'ipv6_fib': IPV6_FIB_...
Update script-ExtractDomain.yml add inv id
@@ -113,9 +113,9 @@ script: |- domainScore = scores[i]; } } - executeCommand("createNewIndicator", {type:'Domain',value:domain, source:'DBot', reputation: scoreToReputation(domainScore)}); + executeCommand("createNewIndicator", {type:'Domain',value:domain, source:'DBot', reputation: scoreToReputation(domainScore), rela...
ShaderNodeDisplacement error. Fixed. An error could be happen if Normal not connected:
@@ -106,33 +106,21 @@ class ShaderNodeAmbientOcclusion(NodeParser): return ao_map * color -class ShaderNodeDisplacement(RuleNodeParser): +class ShaderNodeDisplacement(NodeParser): # inputs: Height, Midlevel, Scale, Normal - nodes = { + def export(self): + height = self.get_input_value('Height') + midlevel = self.get_in...
Update .travis.yml made pysat directory more specific. Looks like pyglow is working in python 2.7 now. The build is failing because of server side CDAWeb issues.
@@ -50,6 +50,7 @@ install: - ls - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then + cd ..; echo 'cloning pyglow'; travis_wait 50 git clone https://github.com/timduly4/pyglow.git; echo 'installing pyglow'; @@ -59,7 +60,7 @@ install: cd ..; fi # install pysat - - cd pysat + - cd /home/travis/build/rstoneback/pysat - "py...
Clarify that extension types which implement "__cinit__" do not require their base types to implement it. Closes
@@ -43,9 +43,11 @@ There are two methods concerned with initialising the object. The :meth:`__cinit__` method is where you should perform basic C-level initialisation of the object, including allocation of any C data structures that your object will own. You need to be careful what you do in the -:meth:`__cinit__` meth...
Remove non-existing parameter from doc Remove non-existing TradeExchange parameter from generate_target_weight_position doc
@@ -148,7 +148,6 @@ class WeightStrategyBase(BaseStrategy, AdjustTimer): pred score for this trade date, index is stock_id, contain 'score' column. current : Position() current position. - trade_exchange : Exchange() trade_date : pd.Timestamp trade date. """
Docker overhaul for upload_artifact script. Removing all venv-specific code.
set -euo pipefail -SCRIPTPATH=$(pwd) -PIP_PATH="$SCRIPTPATH/env/bin/pip" -PYTHON_PATH="$SCRIPTPATH/env/bin/python" - -echo "Now creating virtualenv..." -virtualenv -p python3.5 env -if [ $? -ne 0 ]; then - echo ".. Abort! Can't create virtualenv." - exit 1 -fi - -pip install --upgrade "pip < 21.0" -PIP_CMD="$PIP_PATH i...
Lkt lowering: add support for call expressions TN:
@@ -1273,6 +1273,24 @@ class LktTypesLoader: }[type(expr.f_op)] return E.Arithmetic(left, right, operator) + elif isinstance(expr, L.CallExpr): + # For now, the only legal call expression is the method + # invocation. + callee = helper(expr.f_name) + assert isinstance(callee, E.FieldAccess) + + # Collect positional and...
Erichlf torrentday [fix] Fix torrentday plugin. fix * Fix torrentday Search Plugin to Reflect New TD * Add Some Error Checks to torrentday * Address PR#2263 Comments * Streamline Code Some
@@ -123,30 +123,40 @@ class UrlRewriteTorrentday(object): categories = [categories] # If there are any text categories, turn them into their id number categories = [c if isinstance(c, int) else CATEGORIES[c] for c in categories] - params = { 'cata': 'yes', 'c%s' % ','.join(str(c) for c in categories): 1, 'clear-new': 1...
docs: Add Apache2 reverse proxy instructions and example. Tweaked by tabbott to disable older SSL and remove websockets logic, which isn't relevant in master.
@@ -257,6 +257,65 @@ your installation. [zulipchat-puppet]: https://github.com/zulip/zulip/tree/master/puppet/zulip_ops/manifests [nginx-loadbalancer]: https://github.com/zulip/zulip/blob/master/puppet/zulip_ops/files/nginx/sites-available/loadbalancer +### Apache2 configuration + +Below is a working example of a full ...
Rapid7 FDNS - correct typo in URL. This PR corrects a typo that I made in
Deprecated: True Name: Rapid7 FDNS ANY Dataset Description: | - This dataset has been deprecated. Please see this [Rapid7 blog post](https://www.rapid7.com/blog/post/2022/02/10/evolving-how-we-share-rapid7-research-data-2/m) for details. + This dataset has been deprecated. Please see this [Rapid7 blog post](https://www...
Remove FitWindow's parent This addresses (FitWindow always on top of PlotWindow issue)
@@ -1038,7 +1038,7 @@ class FitAction(PlotAction): # open a window with a FitWidget if self.fit_window is None: - self.fit_window = qt.QMainWindow(self.plot) + self.fit_window = qt.QMainWindow() # import done here rather than at module level to avoid circular import # FitWidget -> BackgroundWidget -> PlotWindow -> Plot...
Refactor irregular companies classifier Fix
-import datetime +from collections import namedtuple +from datetime import date +from itertools import chain from unittest import TestCase import pandas as pd -from rosie.chamber_of_deputies.classifiers.irregular_companies_classifier import IrregularCompaniesClassifier +from rosie.chamber_of_deputies.classifiers import...
Add daily summary statistics calculation Frame stats command Remove "stats" adjacent aliases for existing commands to avoid confusion
@@ -207,7 +207,7 @@ class AdventOfCode: @adventofcode_group.command( name="leaderboard", - aliases=("board", "stats", "lb"), + aliases=("board", "lb"), brief="Get a snapshot of the PyDis private AoC leaderboard", ) async def aoc_leaderboard(self, ctx: commands.Context, number_of_people_to_display: int = 10): @@ -247,9 ...
fix: missing line in Disaggregator.clear_model_checkpoints. Fixes: NameError: name 'entry' is not defined
@@ -78,6 +78,7 @@ class Disaggregator(object): return with os.scandir() as path_list: - if not entry.is_file() and entry.name.startswith(self.file_prefix) and entry.name.endswith(".h5"): + for entry in path_list: + if entry.is_file() and entry.name.startswith(self.file_prefix) and entry.name.endswith(".h5"): print("{}:...
Update README.rst Add new badges and conda instructions
-|AzurePipelines| |PyPIdownloads| |PyPI| |Conda| |CondaForge| |LatestRelease| |Binder| +|AzureDevops| |PyPIdownloads| |PyPI| |CondaSURG| |CondaPlatforms| |GithubRelease| |Binder| +.. |CondaSURG| image:: https://img.shields.io/conda/vn/SURG_JHU/uqpy?style=plastic :alt: Conda (channel only) +.. |CondaPlatforms| image:: h...
Added link to mbed CLI for Windows Installer Added a reference to the mbed CLI for Windows Installer in the Installation section.
@@ -80,6 +80,8 @@ $ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 ### Installing Mbed CLI +Windows users can use the [mbed CLI for Windows installer](https://docs.mbed.com/docs/mbed-os-handbook/en/latest/dev_tools/cli_install/) which will install mbed CLI and all necessary requirements with one insta...
MtProtoSender: Fix crash on receiving unknown RPC results Such RPC results may arrive after reconnection, for example.
@@ -294,6 +294,8 @@ class MtProtoSender: inner_length = reader.read_int() begin_position = reader.tell_position() + # note: this code is IMPORTANT for skipping RPC results of lost + # requests (for example, ones from the previous connection session) if not self.process_msg(inner_msg_id, sequence, reader, request): read...
allocations.consumer_id is not used in query. PostGreSQL required consumer_id in group by clause, but consumer_id is not being used in the query and is superfluous. Closes-Bug:
@@ -975,7 +975,6 @@ def _check_capacity_exceeded(conn, allocs): provider_uuids = set([a.resource_provider.uuid for a in allocs]) usage = sa.select([_ALLOC_TBL.c.resource_provider_id, - _ALLOC_TBL.c.consumer_id, _ALLOC_TBL.c.resource_class_id, sql.func.sum(_ALLOC_TBL.c.used).label('used')]) usage = usage.where(_ALLOC_TB...
ENH: added new test function Added a test function to evaluate input arg or kwarg failure in a desired function or method.
import numpy as np - def assert_list_contains(small_list, big_list, test_nan=False, test_case=True): """Assert all elements of one list exist within the other list. @@ -149,3 +148,47 @@ def eval_warnings(warns, check_msgs, warn_type=DeprecationWarning): len(found_msgs) - np.sum(found_msgs), repr(warn_type)) return + + ...
Adding a note for test case test_volume_boot_pattern(). Added a comment as a NOTE for test case test_volume_boot_pattern() to describe its dependency on public network. Closes-Bug:
@@ -68,6 +68,9 @@ class TestVolumeBootPattern(manager.EncryptionScenarioTest): waiters.wait_for_server_termination(self.servers_client, server['id']) @decorators.idempotent_id('557cd2c2-4eb8-4dce-98be-f86765ff311b') + # Note: This test is being skipped based on 'public_network_id'. + # It is being used in create_floati...
Update __init__.py chore: bugfix, darwin also contains a "win" :), so ...
@@ -94,7 +94,7 @@ def _mount_nfs_uri(provider_uri, mount_path, auto_mount: bool = False): else: # Judging system type sys_type = platform.system() - if "win" in sys_type.lower(): + if "windows" in sys_type.lower(): # system: window exec_result = os.popen(f"mount -o anon {provider_uri} {mount_path}") result = exec_resul...
Makefile cleanup Remove ansible-container related parameter.
@@ -9,13 +9,6 @@ DATE := $(shell date -u +%Y%m%d%H%M) VERSION=$(shell $(PYTHON) -c "from galaxy import __version__; print(__version__.split('-')[0])") RELEASE=$(shell $(PYTHON) -c "from galaxy import __version__; print(__version__.split('-')[1])") -#ansible-container options -ifeq ($(DETACHED),yes) - detach_option="-d"...
stm32h7: add or fix interrupts for b3 Ended up changing some peripherals too: * DAC -> DAC1 * Add DAC2 * USART9 -> UART9
@@ -10,6 +10,8 @@ _modify: name: FDCAN1 FDCAN: name: FDCAN2 + DAC: + name: DAC1 # The SVD is just quite different to the RM for all these registers. # We'll go with the RM convention even though it is inconsistent too. @@ -265,6 +267,13 @@ _modify: AWDCH1CH: name: AWD1CH +# The ADC3 interrupt doesn't exist (no ADC3 per...
chore: fix internal strings This commit fixes some internal CI links and content.
@@ -20,6 +20,12 @@ chmod -R 755 ./$PIPELINE_ID # mv logo_white.svg ./$PIPELINE_ID/static/images/logo.svg # mv favicon.ico ./$PIPELINE_ID/static/images/favicon.ico +find ./$PIPELINE_ID -type f -name '*.html' -exec sed -i -e '#ara is a free and open source project under#d' {} \; +find ./$PIPELINE_ID -type f -name '*.html...
fix flake8 lint Summary: Pull Request resolved: ghimport-source-id: Stack from [ghstack](https://github.com/ezyang/ghstack): * **#18835 fix flake8 lint** * [jit] run cpp tests for non-cuda builds in test_jit.py ...again
@@ -343,6 +343,7 @@ def has_sparse_dispatches(dispatches): return True return False + def parse_native_yaml(path): with open(path, 'r') as f: return yaml.load(f, Loader=Loader)
On errors inside the thread, set a `raise_next_tick` flag Threads that raise exceptions bypass the callback, which makes dbt hang. Now threads don't raise during the callback, instead they set a flag. The RunManager will check the flag during queue processing and raise if set. Fix compilation failures so they raise pro...
@@ -54,6 +54,7 @@ class RunManager(object): ]) self.node_results = [] self._skipped_children = {} + self._raise_next_tick = None def get_runner(self, node): adapter = get_adapter(self.config) @@ -82,7 +83,11 @@ class RunManager(object): runner.after_execute(result) if result.errored and runner.raise_on_first_error(): -...
fix missing add debug logging as well
@@ -244,10 +244,12 @@ def addtoProcessedArchive(inputfile, processedList, processedArchive): processedList.add(inputfile) with open(processedArchive, 'w') as pa: json.dump(processedList, pa) + log.debug("Adding %s to processed archive %s" % (inputfile, processedArchive)) def processFile(inputfile, mp, info=None, relati...
Update notes for /_dbs_info Update the Notes section for /_dbs_info to include advise on keeping the db limit to 100.
.. note:: The supported number of the specified databases in the list can be limited by modifying the `max_db_number_for_dbs_info_req` entry in configuration - file. The default limit is 100. + file. The default limit is 100. Increasing the limit, while possible, creates + load on the server so it is advisable to have ...
check that num is valid in scan() always convert num to int
@@ -805,6 +805,12 @@ def scan(detectors, *args, num=None, per_step=None, md=None): "argument 'num'.") num = args[-1] args = args[:-1] + + if not (float(num).is_integer() and num > 0.0): + raise ValueError(f"The parameter `num` is expected to be a number of steps (not step size!) " + f"It must therefore be a whole numbe...
scripts: Fix pylint issue W0613 in scripts/templates/2.0/adjust.py scripts/templates/2.0/adjust.py:4:19: W0613: Unused argument 'mapping' (unused-argument)
import ast -def adjust(config, mapping): +def adjust(config, mapping): # pylint: disable=unused-argument """ Process the configuration intermediary representation adjusting some of the values following changes to the configuration files semantics.
Add new CLI commands `cci project connect_saucelabs` and `cci project show_saucelabs`
@@ -285,6 +285,32 @@ def project_show_github(config): except ServiceNotConfigured: click.echo('Github is not configured for this project. Use project connect_github to configure.') +@click.command(name='connect_saucelabs', help="Configure this project for Saucelabs tasks") +@click.option('--username', help="The Saucela...
BUG: Add missing DECREF in new path Pretty, harmless reference count leak (the method is a singleton)
@@ -476,6 +476,7 @@ PyArray_CheckCastSafety(NPY_CASTING casting, if (PyArray_MinCastSafety(castingimpl->casting, casting) == casting) { /* No need to check using `castingimpl.resolve_descriptors()` */ + Py_DECREF(meth); return 1; }
Clarify the pair-filter exception rule See
@@ -1426,7 +1426,7 @@ The ``--pair-filter`` option determines how to combine the filters for R1 and R2 into a single decision about the read pair. The default is ``--pair-filter=any``, which means that a read pair is discarded -(or redirected) if *one of* the reads (R1 or R2) fulfills the filtering criterion. +(or redi...
MAINT: Tidy exception handling in _datasource.py Remove unnecessary try/except from DataSource.
import os import shutil import io -from contextlib import closing from numpy.core.overrides import set_module @@ -333,12 +332,9 @@ def _cache(self, path): # TODO: Doesn't handle compressed files! if self._isurl(path): - try: - with closing(urlopen(path)) as openedurl: + with urlopen(path) as openedurl: with _open(upath...
Don't generate wrappers for private properties that return arrays Such wrappers are useful only as part of the public API. TN:
@@ -15,7 +15,9 @@ ${ada_doc(property, 0)} ## Wrapper to return convenient Ada arrays -% if not property.overriding and is_array_type(property.type): +% if property.is_public \ + and not property.overriding \ + and is_array_type(property.type): function ${property.name} ${helpers.argument_list(property, False)} return $...
Made resumable upload test use bigger file Sometimes the resumable upload test would fail because it couldn't artifically halt the test before finishing uploading the entire test file. Made the test file much larger with more entropy to help avoid this race condition.
@@ -3807,7 +3807,10 @@ class TestCp(testcase.GsUtilIntegrationTestCase): def start_over_error_test_helper(self, http_error_num): bucket_uri = self.CreateBucket() - fpath = self.CreateTempFile(contents=b'a' * 2 * ONE_KIB) + # The object contents need to be fairly large to avoid the race condition + # where the contents ...
actions.py: Removed unnecessary logging in notify_subscription_added/removed. We already record RealmAuditLog in bulk_add/remove_subscription so there is no need to log while notifying.
@@ -2716,14 +2716,7 @@ def get_subscriber_emails(stream: Stream, def notify_subscriptions_added(user_profile: UserProfile, sub_pairs: Iterable[Tuple[Subscription, Stream]], stream_user_ids: Callable[[Stream], List[int]], - recent_traffic: Dict[int, int], - no_log: bool=False) -> None: - if not no_log: - log_event({'typ...
fix: forgot a list check in raise_for_missing_imports
@@ -3,4 +3,5 @@ import sys def raise_for_missing_imports(*args): missing = [pkg for pkg in args if pkg not in sys.modules] + if missing: raise ImportError(f"Missing packages: {missing}") \ No newline at end of file
[Test] Fix the lint from Lint failed after it is merged due to some conflict. This should fix the issue
@@ -32,7 +32,6 @@ from ray.dashboard.modules.event.event_utils import ( monitor_events, ) from ray.job_submission import JobSubmissionClient -from pprint import pprint logger = logging.getLogger(__name__)
Fix callframe for exporting notebook. Also expose check_ipython() method for use in notebook.
@@ -44,20 +44,24 @@ from tfx.orchestration.interactive import notebook_formatters from tfx.orchestration.launcher import in_process_component_launcher +def check_ipython(): + # __IPYTHON__ variable is set by IPython, see + # https://ipython.org/ipython-doc/rel-0.10.2/html/interactive/reference.html#embedding-ipython. +...
docs: Document ADD_TOKENS_TO_NOREPLY_ADDRESS in email.md. Rewritten and moved by tabbott.
@@ -115,7 +115,22 @@ If it doesn't work, check these common failure causes: your hosting provider's firewall. * Your SMTP server's permissions might not allow the email account - you're using to send email from the `noreply` email address. + you're using to send email from the `noreply` email addresses used + by Zulip ...
fix SkillConfig.package_dependencies' both contracts and skills were missing.
@@ -1116,10 +1116,21 @@ class SkillConfig(ComponentConfiguration): @property def package_dependencies(self) -> Set[ComponentId]: """Get the connection dependencies.""" - return { + return ( + { ComponentId(ComponentType.PROTOCOL, protocol_id) for protocol_id in self.protocols } + .union( + { + ComponentId(ComponentType...
[ReTrigger] Mitigate bad regular expressions Thanks Sinbad on Discord for pointing out the flaws in implimentation and providing suggestions to mitigate the issue.
@@ -15,6 +15,7 @@ import functools import asyncio import random import string +from multiprocessing import Pool, TimeoutError from .converters import * @@ -383,7 +384,20 @@ class TriggerHandler: continue if allowed_trigger and (is_auto_mod and is_mod): continue - search = re.findall(trigger.regex, message.content) + + ...
Adding a simple restart endpoint command A restart endpoint command was requested (usually for cases when a reconfiguration needs to be recognized). Simply calls the stop and then the start commands on the designated endpoint.
@@ -373,6 +373,13 @@ def stop_endpoint(name: str = typer.Argument("default", autocompletion=complete_ logger.info("Endpoint <{}> is not active.".format(name)) +@app.command(name="restart") +def restart_endpoint(name: str = typer.Argument("default", autocompletion=complete_endpoint_name)): + """Restarts an endpoint""" +...