message
stringlengths
13
484
diff
stringlengths
38
4.63k
Change default MacOS path to user extensions directory Compatible with inkscape>=1.0beta2
@@ -67,6 +67,10 @@ class MacDefaults(LinuxDefaults): path += os.environ["PATH"].split(os.path.pathsep) return path + @property + def inkscape_extensions_path(self): + return os.path.expanduser("~/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions") + class WindowsDefaults(Defaults):
Update DIB doc bin/disk-image-create was moved in a patch last year, this moves disk-image-create to a regular python entry-point[1].Resulting in our current document will be some problems. It seems that an effective solution is to install DIB. Updated the relevant information. [1]:https://review.openstack.org/#/c/3671...
@@ -135,7 +135,9 @@ operating systems are not yet fully supported. Receiving objects: 100% (8881/8881), 1.92 MiB | 0 bytes/s, done. Resolving deltas: 100% (4668/4668), done. Checking connectivity... done. - user@machine:/opt/stack$ + user@machine:/opt/stack$ cd diskimage-builder + user@machine:/opt/stack/diskimage-buil...
remove note about GitHub Actions ignore "ci skip" since it's no longer true we auto-cancel builds for PRs if they've been replaced with a newer commit, so I don't think we have to be as nudgy about this [skip ci]
@@ -177,10 +177,6 @@ Other Tips $ git commit --amend -- Unfortunately, GitHub Actions ignores ``[ci skip]`` for a PR, so we recommend - you only push your commits to GitHub when you are ready for the CI to run. - Please do not push a lot of commits for every small WIP changes. - - If your commit makes substantial chang...
Handle None return fro call GAPI I now can't remember the situation where callGAPI returned None, but Pyton throwing a trap didn't help
@@ -4569,6 +4569,7 @@ def showDriveFileInfo(users): if not drive: continue feed = callGAPI(drive.files(), u'get', fileId=fileId, fields=fields, supportsTeamDrives=True) + if feed: print_json(None, feed) def showDriveFileRevisions(users): @@ -4578,6 +4579,7 @@ def showDriveFileRevisions(users): if not drive: continue fe...
mac_system: return False for non-root user Fixes Previously an exception was raised and salt repeatedly tried to load the module. This spammed the console with error messages.
@@ -13,6 +13,8 @@ try: # python 3 except ImportError: # python 2 from pipes import quote as _cmd_quote +import getpass + # Import salt libs import salt.utils from salt.exceptions import CommandExecutionError, SaltInvocationError @@ -28,6 +30,10 @@ def __virtual__(): return (False, 'The mac_system module could not be lo...
[Darts]: Restore Nested Bullets Per issue (_which has been resolved in the linked website issue_), nested bullets were not working in `hints` files. They are now, so this PR restores `hints` for the `Darts` exercise to the nested-bullet state.
## General - This challenge is all about calculating if a point falls _on, in, or outside_ a given circle. -- There are two different ways of calculating if a point falls on, in, or outside a circle: _Stack Overflow_ - [Equation for Testing if a Point is Inside a Circle][point-circle-equation] outlines one method. -_Do...
Add a test helper function to patch multiple attributes with autospecs This helper reduces redundancy/boilerplate by setting default values. It also has the consequence of shortening the length of the invocation, which makes it faster to use and easier to read.
@@ -23,6 +23,15 @@ for logger in logging.Logger.manager.loggerDict.values(): logger.setLevel(logging.CRITICAL) +def autospec(target, *attributes: str, **kwargs) -> unittest.mock._patch: + """Patch multiple `attributes` of a `target` with autospecced mocks and `spec_set` as True.""" + # Caller's kwargs should take prior...
Updates player variables instantly Updates all player variables in the text ui instantly. Consolidates the calls to update player, ball, and score to be included in the aggregate player_vars handler.
@@ -117,9 +117,6 @@ class TextUi(MpfController): self._bcp_connected) self.machine.events.add_handler('shutdown', self.stop) self.machine.add_crash_handler(self.stop) - self.machine.events.add_handler('player_number', self._update_player) - self.machine.events.add_handler('player_ball', self._update_player) - self.mach...
Cannot serialize dictionaries with `Element` keys [...] This is not an ideal fix, since it does a round-trip Element->str->Element, but works for now.
@@ -366,7 +366,7 @@ class PhaseDiagram(MSONable): self.all_entries = computed_data["all_entries"] self.qhull_data = computed_data["qhull_data"] self.dim = computed_data["dim"] - self.el_refs = computed_data["el_refs"] + self.el_refs = {Element(el): ref for el, ref in computed_data["el_refs"].items()} self.qhull_entries...
[Isolate] Serve discovery document over webapp2 routes endpoints_webapp2.api_routes installs just the service's handlers. endpoints_webapp2.api_server also installs discovery handlers.
@@ -551,4 +551,7 @@ class IsolateService(remote.Service): def get_routes(): - return endpoints_webapp2.api_routes(IsolateService) + return endpoints_webapp2.api_server([ + config.ConfigApi, + IsolateService, + ])
Update mkvtomp4.py improve .original renaming scheme adjust filter if renaming original
@@ -960,11 +960,19 @@ class MkvtoMp4: og = inputfile + ".original" i = 2 while os.path.isfile(og): - og = og + "2" + og = "%s.%d.original" % (inputfile, i) i += 1 os.rename(inputfile, og) + if self.settings.burn_subtitles: + try: + if os.path.basename(inputfile) in options['video'].get('filter', ""): + self.log.debug("...
Sync tests: test Sync cog's on_guild_role_delete listener A DELETE request should be sent.
@@ -168,3 +168,10 @@ class SyncCogListenerTests(SyncCogTestCase): asyncio.run(self.cog.on_guild_role_create(role)) self.bot.api_client.post.assert_called_once_with("bot/roles", json=role_data) + + def test_sync_cog_on_guild_role_delete(self): + """A DELETE request should be sent.""" + role = helpers.MockRole(id=99) + a...
added the dates support for top machine names route. what : added the support for dates in top machinenames for honeypot/network events and also removed the todos from the file as it is implemented
@@ -891,6 +891,10 @@ def top_network_machine_names(): Returns: JSON/Dict top network machine names in network events """ + date = fix_date( + get_value_from_request("date") + ) + top_machinenames_query = [ top_machine_names_groupby, sort_by_count_and_id, @@ -905,6 +909,16 @@ def top_network_machine_names(): ) } ] + if ...
[tests] generic modules tests don't work on Travis Maybe this fixes it...
@@ -12,10 +12,6 @@ from bumblebee.config import Config class TestGenericModules(unittest.TestCase): def setUp(self): - self.popen = mocks.MockPopen() - self.popen.mock.communicate.return_value = (str.encode("1"), "error") - self.popen.mock.returncode = 0 - engine = mock.Mock() engine.input = mock.Mock() config = Config...
REPO Table Update Header and inline Comments. Added note about the changes updating the REPO table as well as the REPO_INFO table.
@@ -8,6 +8,14 @@ from sqlalchemy import MetaData from sqlalchemy.ext.automap import automap_base from workers.worker_base import Worker +# NOTE: This worker primarily inserts rows into the REPO_INFO table, which serves the primary purposes of +# 1. Displaying discrete metadata like "number of forks" and how they change...
Downscale stroke limit by the sqrt(abs(det))) Fixes hogwarts error.
-from math import ceil, floor +from math import ceil, floor, sqrt import wx from PIL import Image @@ -16,7 +16,7 @@ from ..svgelements import ( QuadraticBezier, CubicBezier, Arc, - Matrix, + Matrix, Length, ) from .zmatrix import ZMatrix @@ -155,12 +155,15 @@ class LaserRender: else: gc.SetBrush(wx.TRANSPARENT_BRUSH) -...
Update fuel_tariff.py missing copyright
+# ********************************************************************************* +# REopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following condit...
Optimization: Do not merge conditional statements with only one exiting branch * When a conditional statement has a branch that does not exit, and one that does, a useless branch merge was conducted. * This should also help scalability by avoiding useless branch merges.
@@ -644,6 +644,9 @@ branches.""", self.clearChild("no_branch") no_branch = None + # Do we need to merge branches + needs_merge = True + # Continue to execute for yes branch unless we know it's not going to be # relevant. if yes_branch is not None: @@ -654,8 +657,11 @@ branches.""", yes_branch = branch_yes_collection.co...
Fix a typo in docker_puppet_apply.sh In change we did a refactoring of the puppet apply commmands into a single script. A typo slipped in where we set FACTOR_uuid instead of FACTER_uuid Closes-Bug:
@@ -65,7 +65,7 @@ outputs: cp -a /tmp/puppet-etc/* /etc/puppet || true fi echo "{\"step\": ${STEP}}" > /etc/puppet/hieradata/docker.json - export FACTOR_uuid=docker + export FACTER_uuid=docker set +e puppet apply $EXTRA_ARGS \ --verbose \
Add new entrypoint 'experimental' for capsules According to the comment in introduce the new api endpoint for capsules will reduce the API burden when changing.
@@ -147,6 +147,7 @@ function upload_sandbox_image { function create_zun_accounts { create_service_user "zun" "admin" + create_service_user "zun-experimental" "admin" if is_service_enabled zun-api; then @@ -159,11 +160,18 @@ function create_zun_accounts { local zun_service=$(get_or_create_service "zun" \ "container" "Co...
DOC: fixed docstring bug Added attributed that was removed by mistake.
@@ -2424,7 +2424,7 @@ class Instrument(object): # Case is retained within inst.meta, though data access to meta is # case insensitive - print('True meta variable name is ', inst.meta['pysat_uts'].) + print('True meta variable name is ', inst.meta['pysat_uts'].name) # Note that the labels in meta may be used when creati...
Update TESTS.md Just a stray parenthesis in there. nbd.
@@ -14,7 +14,8 @@ Continue reading below for plugin installation. We also recommend [pylint](https://pylint.pycqa.org/en/latest/user_guide/), as it is part of our automated feedback on the website, and can be a very useful (if noisy!) code analysis tool. Pylint can be a bit much, so this [tutorial](https://pylint.pycqa...
qt tx dialog: use WaitingDialog for network requests in __init__ follow
@@ -233,7 +233,11 @@ class BaseTxDialog(QDialog, MessageBoxMixin): # As a result, e.g. we might learn an imported address tx is segwit, # or that a beyond-gap-limit address is is_mine. # note: this might fetch prev txs over the network. - tx.add_info_from_wallet(self.wallet) + BlockingWaitingDialog( + self, + _("Adding...
Updating broken tutorial links fixed broken tutorial link added NASA-NEX data plotting example
@@ -40,7 +40,11 @@ Resources: DataAtWork: Tutorials: - Title: Accessing and plotting NASA-NEX data, from GEOSChem-on-cloud tutorial. - URL: http://cloud-gc.readthedocs.io/en/stable/chapter02_beginner-tutorial/use-s3.html#access-nasa-nex-data-in-s3-optional-but-recommended + URL: https://cloud-gc.readthedocs.io/en/lates...
Pagination migrations - Data Structure Modified Changed the pagination emoji collection from list to tuple This change was suggested since this collection is constant
@@ -12,7 +12,7 @@ RIGHT_EMOJI = "\u27A1" # [:arrow_right:] LAST_EMOJI = "\u23ED" # [:track_next:] DELETE_EMOJI = "<:trashcan:637136429717389331>" # [:trashcan:] -PAGINATION_EMOJI = [FIRST_EMOJI, LEFT_EMOJI, RIGHT_EMOJI, LAST_EMOJI, DELETE_EMOJI] +PAGINATION_EMOJI = (FIRST_EMOJI, LEFT_EMOJI, RIGHT_EMOJI, LAST_EMOJI, DEL...
Re-adding newline Adding newline back with proper format. Requires a backslash in front.
@@ -7,7 +7,8 @@ type: Anomaly datamodel: [] description: The following hunting analytic leverages Kerberos Event 4769, A Kerberos service ticket was requested, to identify a potential kerberoasting attack against Active Directory networks. Kerberoasting allows an adversary to request kerberos tickets for domain account...
[fix] ChIP-seq runs only in single-end mode argparse argument --single-end was set to always produce "paired=False", such that ChIP-seq only runs in single-end mode.
@@ -106,7 +106,7 @@ def parse_args(defaults={"verbose":None,"configfile":None,"max_jobs":None,"snake dest="paired", action="store_false", help="input data is single-end, not paired-end (default: '%(default)s')", - default=not(defaults["paired"])) + default=defaults["paired"]) optional.add_argument("--bw-binsize", dest=...
Raise a Property_Error for all predicate alls on null nodes The semantics for calling a property on a node is to raise a Property_Error when the node is null, whether or not the property is dispatching or not. TN:
Node : constant ${formal_node_types[0].name} := ${formal_node_types[0].name} (Node_0.El); begin - ## If prop is dispatching, check that Node, on which the property call - ## below can dispatch, is ## null first so we have a chance to raise a - ## proper Property_Error. - % if prop.dispatching and not ctx.no_property_ch...
Add are_conjugate function in OperationAnalyzer to compare two operations... Differs from is_conjugate in that an OperationAnalyzer object need not be created
@@ -197,11 +197,23 @@ class OperationAnalyzer(SymmOp): ''' if type(op2) != OperationAnalyzer: opa2 = OperationAnalyzer(op2) - else: opa2 = deepcopy(op2) if opa2.type == self.type and opa2.order == self.order: return True else: return False + else: + if opa2.type == self.type and opa2.order == self.order: + return True ...
client: use %s in logging error_code can be None
@@ -738,7 +738,7 @@ def _get_luci_context_access_token(local_auth): if error_code or not access_token: logging.error( - 'local_auth: Error %d in retrieving access token: %s', + 'local_auth: Error %s in retrieving access token: %s', error_code, error_message) return None
Update README.md Change broken virtualenv link (dead).
@@ -57,7 +57,7 @@ Clone the [source code repository](https://github.com/Sage-Bionetworks/synapsePy #### Install develop branch -Installing the [develop](https://github.com/Sage-Bionetworks/synapsePythonClient/tree/develop) branch can be useful for testing or for access to the latest features, with the acceptance of an ...
Catch error in case of non successfull API call for new ot-names This allows to keep the task running even if the call fail.
@@ -49,9 +49,12 @@ async def update_names(bot: Bot) -> None: seconds_to_sleep = (next_midnight - datetime.utcnow()).seconds + 1 await asyncio.sleep(seconds_to_sleep) + try: channel_0_name, channel_1_name, channel_2_name = await bot.api_client.get( 'bot/off-topic-channel-names', params={'random_items': 3} ) + except bot...
Don't error if the STP name is None As a later comment says, the name only appears in the first row for each set of STP members
@@ -35,12 +35,12 @@ class Command(BaseCommand): stp_code = row[1] stp_ons_code = row[3] - stp_name = row[4].strip() + stp_name = row[4] stp, _ = STP.objects.get_or_create(ons_code=stp_ons_code) stp.code = stp_code if stp_name: # The stp_name is only present in the first row that an STP appears! - stp.name = stp_name + ...
Change installation instructions for macOS to use pyenv-virtualenv to better isolate from changes to homebrew's python
@@ -25,11 +25,18 @@ Use Homebrew to install OpenSSL: $ brew install openssl -Use Homebrew to install Python 2 (make note of the installed path that is printed after successful installation): +Use Homebrew to install pyenv-virtualenv: .. code-block:: console - $ brew install python + $ brew install pyenv-virtualenv + +A...
Fixes spam fields Prevent forward addon from being checked for spam if it's not present.
@@ -1140,7 +1140,10 @@ class AbstractNode(DirtyFieldsMixin, TypedModel, AddonModelMixin, IdentifierMixi def get_spam_fields(self, saved_fields): # Override for SpamOverrideMixin - return self.SPAM_CHECK_FIELDS if self.is_public and 'is_public' in saved_fields else self.SPAM_CHECK_FIELDS.intersection( + check_fields = s...
multi_file_day bug in Files Fixed a bug in files that didn't consider whether or not instrument has multiple files per day before removing 'duplicates'
@@ -78,8 +78,34 @@ class Files(object): """ def __init__(self, sat, manual_org=False, directory_format=None, - update_files=False, file_format=None, - write_to_disk=True): + update_files=False, file_format=None, write_to_disk=True): + """ Initialization for Files class object + + Parameters + ----------- + sat : pysat....
describe rosenstein method though not convinced yet about the delay finding method and `min_tsep` :neutral_face:
@@ -23,6 +23,16 @@ def complexity_lyapunov( of the dimensionality of the phase space, and the largest LE value, `L1` is often used to determine the overall predictability of the dynamical system. + Different algorithms: + + - Rosenstein et al.'s (1993) algorithm was designed for calculating LLEs from small datasets. + ...
swarming: show timestamp in log of local_smoke_test This is to investigate slowness of local_smoke_test.
@@ -1421,7 +1421,10 @@ def main(): # kept. Only the last test case will leak these two directories. sys.argv.remove('--leak') if verbose: - logging.basicConfig(level=logging.INFO) + logging.basicConfig( + format='%(asctime)s %(filename)s:%(lineno)d %(levelname)s %(message)s', + level=logging.INFO) + Test.maxDiff = None...
DOC: Fix docstrings for expressions module. * DOC: Fix docstrings for expressions module. Fix the reference to `projection` function, which was a documentation build error. Also, change docstring for `Coalesce` to clean up warnings on indentation and lines between examples. Discovered while building docs via `make info...
@@ -857,6 +857,8 @@ def binop_inputs(expr): class Coalesce(Expr): """SQL like coalesce. + .. code-block python + coalesce(a, b) = { a if a is not NULL b otherwise @@ -866,10 +868,13 @@ class Coalesce(Expr): -------- >>> coalesce(1, 2) 1 + >>> coalesce(1, None) 1 + >>> coalesce(None, 2) 2 + >>> coalesce(None, None) is N...
MAINT: Remove unneeded call to PyUnicode_READY Both PyUnicode_GetLength and PyUnicode_AsUCS4Copy call PyUnicode_READY internally.
@@ -385,9 +385,7 @@ unicodetype_@form@(PyObject *self) PyObject *new; PyObject *ret; - if (PyUnicode_READY(self) < 0) { - return NULL; - } + /* PyUnicode_READY is called by PyUnicode_GetLength */ len = PyUnicode_GetLength(self); ip = PyUnicode_AsUCS4Copy(self); if (ip == NULL) {
add outputs to threatconnect add outputs to threatconnect
@@ -409,6 +409,25 @@ script: - name: confidenceThreshold description: filter on indicators confidence grater then given value(value between 0 to 100) + outputs: + - contextPath: IP.Address + description: Bad IP Address found + - contextPath: IP.Malicious.Vendor + description: For malicious IPs, the vendor that made the...
m1n1.hv: Handle MMIO/PMGR hooks dynamically This makes m1n1 boot all the way on t6000
@@ -983,8 +983,10 @@ class HV(Reloadable): self.iface.set_event_handler(EVENT.MMIOTRACE, self.handle_mmiotrace) self.iface.set_event_handler(EVENT.IRQTRACE, self.handle_irqtrace) - # Map MMIO range as HW by default) - self.add_tracer(range(0x2_00000000, 0x7_00000000), "HW", TraceMode.OFF) + # Map MMIO ranges as HW by d...
GDB helpers: record the line number associated to the State instances TN:
@@ -21,7 +21,7 @@ class State(object): Holder for the execution state of a property. """ - def __init__(self, prop): + def __init__(self, line_no, prop): self.property = prop """ :type: langkit.gdb.debug_info.Property @@ -43,6 +43,13 @@ class State(object): Stack of expressions that are being evaluated. """ + self.line...
implement match_local_id Implement MongoDB version of function to look for an existing persistent NameId for a user.
@@ -5,6 +5,8 @@ from pymongo import MongoClient from pymongo.mongo_replica_set_client import MongoReplicaSetClient import pymongo.uri_parser import pymongo.errors +from saml2.saml import NAMEID_FORMAT_PERSISTENT + from saml2.eptid import Eptid from saml2.mdstore import InMemoryMetaData from saml2.mdstore import metadat...
Fix compact bug where bools with fid 0 are written incorrectly. See original Java source:
@@ -399,18 +399,12 @@ class TCompactProtocol(object): self.trans.write(pack('!b', byte)) def write_bool(self, bool): - if self._bool_fid and self._bool_fid > self._last_fid \ - and self._bool_fid - self._last_fid <= 15: - if bool: - ctype = CompactType.TRUE - else: - ctype = CompactType.FALSE + ctype = CompactType.TRUE...
Use delete utility This was failing because SQL delete does a trickle-down delete instead of the couch's one-by-one delete
@@ -5,6 +5,7 @@ from django.test import TestCase from corehq.apps.commtrack.tests.util import make_loc from corehq.apps.domain.shortcuts import create_domain +from corehq.apps.locations.tests.util import delete_all_locations from corehq.apps.users.models import CommCareUser, WebUser from corehq.apps.users.management.co...
setup-certbot: Use set -x. When there's a failure, this can make it much less confusing to figure out.
@@ -44,6 +44,8 @@ if [ -n "$show_help" ]; then usage fi +set -x + CERTBOT_PATH="/usr/local/sbin/certbot-auto" # For reference https://certbot.eff.org/all-instructions/#debian-other-nginx wget -q https://dl.eff.org/certbot-auto -O "$CERTBOT_PATH"
fixed python compatibility for song.from_dict func format with black
@@ -175,7 +175,8 @@ def from_dict(cls, data: Dict[str, Any]) -> "Song": ( list_class for list_class in SongList.__subclasses__() - if list(list_class.__match_args__) == list(data["song_list"].keys()) + if list(list_class.__dataclass_fields__.keys()) + == list(data["song_list"].keys()) ) )
Update connecting.rst My suggest is append the parameter in authentication_source in authentication example, because was included in
@@ -18,10 +18,10 @@ provide the :attr:`host` and :attr:`port` arguments to connect('project1', host='192.168.1.35', port=12345) -If the database requires authentication, :attr:`username` and :attr:`password` -arguments should be provided:: +If the database requires authentication, :attr:`username`, :attr:`password` +an...
Fixes determining subdomain parameter. This provider automatically appends the domain name to the subdomain. Therefore, it needs to be removed from the parameter in case the name argument contains it.
@@ -102,13 +102,13 @@ class Provider(BaseProvider): } if name: - data['subdomain'] = name + data['subdomain'] = self._subdomain_name(name) self._add_ttl(data) self._add_priority(data) response = self._get('kc2_domain_dns_set', data) - LOGGER.debug('create_record: %s', response) + LOGGER.debug('create_record response: %...
Remove BibTeX from README For a couple of reasons: It was incorrectly formatted, and so GitHub's rendering of it was garbled. But pointing to the documentation, we only need keep information on what to cite in one place and make updates easier and inconsistencies impossible.
@@ -48,31 +48,8 @@ either via a `pull request`_ or via an `issue`_. Citing Stingray --------------- -Please cite `Huppenkothen et al. (2019) -<https://ui.adsabs.harvard.edu/abs/2019ApJ...881...39H/abstract>`_ if you find this package useful in your -research. - -The BibTeX entry for the paper is:: - - @ARTICLE{2019ApJ....
Minor updates to Workspace objects. Fixes a bug in display(); adds switch names to rendered HTML of a Switchboard; allows .value access to swichboard values (instead of just ["value"] dictionary-type access.
@@ -219,7 +219,7 @@ class Workspace(object): "templates","css") with open(_os.path.join(cssPath,"dataTable.css")) as f: script = '<style>\n' + str(f.read()) + '</style>' - _display(_HTML(script1 + script)) + _display(_HTML(script)) # Update Mathjax config -- jupyter notebooks already have this so not needed #script = '...
Better virtualenv setup, correct path for checked out repo
@@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v2 with: repository: splunk/security-content #check out https://github.com/mitre/cti.git, defaults to HEAD - path: "security-content-TEST" + path: "security-content" - uses: actions/setup-python@v2 @@ -60,10 +60,11 @@ jobs: pwd echo "Current directory listing" cd security-...
[IMPR] Delegate undefined method calls to requests.Response object Enable the following properties and methods: history, reason. cookies, elapsed, request, ok, is_redirect, is_permanent_redirect, apparent_encoding, links, raise_for_status
@@ -57,6 +57,12 @@ class HttpRequest: self._parsed_uri = None self._data = None + def __getattr__(self, name): + """Delegate undefined method calls to request.Response object.""" + if self.exception and name in ('content', 'status_code'): + return None + return getattr(self.data, name) + @property @deprecated('the `url...
Stop ignoring Flake8 `First argument of a method should be named 'self'` Already no breakages of this rule in the whole of Wagtail!
@@ -16,9 +16,8 @@ python-tag = py3 # D401: First line should be in imperative mood # E501: Line too long # W503: line break before binary operator (superseded by W504 line break after binary operator) -# N805: First argument of a method should be named 'self' # N806: Variable in function should be lowercase -ignore = D...
utils/minions: fix localhost logic in CkMinions.connected_ids We don't need loopback addresses in the address list to find any localhost minion.
@@ -627,7 +627,7 @@ class CkMinions(object): if '127.0.0.1' in addrs: # Add in the address of a possible locally-connected minion. addrs.discard('127.0.0.1') - addrs.update(set(salt.utils.network.ip_addrs(include_loopback=include_localhost))) + addrs.update(set(salt.utils.network.ip_addrs(include_loopback=False))) if s...
Update ext_colorlog.py Use self.Meta.config_section instead of concatenating 'log' with label.
@@ -32,6 +32,9 @@ class ColorLogHandler(LoggingLogHandler): #: The string identifier of the handler. label = "colorlog" + #: The config_section identifiying the config key. + config_section = 'log.colorlog' + #: Color mapping for each log level colors = { 'DEBUG': 'cyan', @@ -64,7 +67,7 @@ class ColorLogHandler(Logging...
always check from Monday if holiday in week
@@ -484,16 +484,18 @@ class GarbageCollection(RestoreEntity): first_day = day1 # Check if there are holidays within holiday offset that would fall into day1 if len(self._holidays) > 0 and self._holiday_move_offset > 0: + offset = self._holiday_move_offset + if self._holiday_in_week_move: # If holiday in week, check fro...
Changelog for 0.11.3 Test Plan: None Reviewers: alangenfeld, dgibson
# Changelog +# 0.11.3 + +### Breaking Change + +- Schedules and sensors that target a `pipeline_name` that is not present in the current repository will now error out when the repository is created. + +### New + +- Assets are now included in Dagit global search. The search bar has also been moved to the top of the app....
split _stack into _iter_stack, _format_stack This patch splits Evaluable._stack, which formats an evaluable's stack with intermediate results, into Evaluable._iter_stack which is an iterator over the serialized dependencies formatted with back references, and _format_stack which adds the intermediate results for error ...
@@ -422,12 +422,9 @@ class Evaluable(types.Singleton): log.info('total time: {:.0f}ms\n'.format(tottime/1e6) + '\n'.join('{:4.0f} {} ({} calls, avg {:.3f} per call)'.format(t / 1e6, k, n, t / (1e6*n)) for k, t, n in sorted(aggstats, reverse=True, key=lambda item: item[1]) if n)) - def _stack(self, values): - lines = ['...
Travis: Update to exercise wa commands Add tests for additional wa commands.
@@ -33,11 +33,16 @@ env: - PEP8="cd $TRAVIS_BUILD_DIR && ./dev_scripts/pep8 wa" - NOSETESTS="nose2 -s $TRAVIS_BUILD_DIR/tests" - WORKLOAD="cd /tmp && wa run $TRAVIS_BUILD_DIR/tests/travis/idle_agenda.yaml -v -d idle_workload" + - PROCESS_CMD="$WORKLOAD && wa process -f -p csv idle_workload" + - SHOW_CMD="wa show dhryst...
Update test_global_search.py added 2 test cases
@@ -51,6 +51,10 @@ class TestGlobalSearch(unittest.TestCase): results = global_search.search('extraterrestrial') self.assertTrue('Carter explored themes of extraterrestrial involvement in ancient mass extinctions in this episode, the third in a trilogy.' in results[0].content) + results = global_search.search('awakens ...
Add validator to prevent using same shared storage id in multiple shared storage An existing EFS, EBS, FSx can not be mounted to multiple mount dirs
@@ -1096,6 +1096,11 @@ class BaseClusterConfig(Resource): name_list=[storage.name for storage in self.shared_storage], resource_name="Shared Storage", ) + self._register_validator( + DuplicateNameValidator, + name_list=self.existing_fs_id_list, + resource_name="Shared Storage IDs", + ) for storage in self.shared_storag...
some print statements during validation to help with debugging
@@ -21,8 +21,10 @@ def validate_schema(REPO_PATH, detection_type, objects, verbose): #Default regex does NOT match ssa___*.yml files: "^(?!ssa___).*\.yml$" #The following search will match ssa___*.yml files: "^ssa___.*\.yml$" if detection_type.startswith("ba_"): + print("***SSA_REGEX_SET***") filename_regex = "^ssa___....
Turn a print into a logger.warning and fix some small things... * "execution" spelling. * Tweak error message a little Note though, there still are further bugs in the code. Possibly there should be a return after this?
@@ -73,8 +73,8 @@ class LaserEVM: created_account = execute_contract_creation(self, creation_code) logging.info("Finished contract creation, found {} open states".format(len(self.open_states))) if len(self.open_states) == 0: - print("No contract was created during the execution of contract creation " - "Try to increase...
chore(dcos-ui): update package Update the DC/OS UI package to include the latest fixes, improvements and features. DCOS-19404 #close
"single_source" : { "kind": "git", "git": "https://github.com/dcos/dcos-ui.git", - "ref": "00168dea379a43ec873e05373b129fce322bc7d6", - "ref_origin": "v1.11.0-rc.9" + "ref": "7756d5cdc3277103b159c3318823fba268eccdb0", + "ref_origin": "v1.11.0-rc.10" } }
Bugfix: Correct regex for will.plugins.friendly.mornin plugin I couldn't get them to work without removing the `\b` tokens at the end.
@@ -5,11 +5,11 @@ from will.decorators import respond_to, periodic, hear, randomly, route, rendere class MorninEveninPlugin(WillPlugin): - @hear("^(good )?(morning?)\b") + @hear("^(good )?(morning?)") def morning(self, message): self.say("mornin', %s" % message.sender.nick, message=message) - @hear("^(good ?|g')?('?nig...
Stopgap solution for test_training_determinism * Added eq to fix training determinism failure * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see * Update num samples so no nans
@@ -73,7 +73,7 @@ def train_twice(backend, csv_filename, tmpdir): config = {"input_features": input_features, "output_features": output_features, TRAINER: {"epochs": 2}} # Generate training data - training_data_csv_path = generate_data(input_features, output_features, csv_filename) + training_data_csv_path = generate_d...
Updated readme for vae Added colab badge for compare results
# Pyprobml VAE +<a href="https://colab.research.google.com/github/probml/pyprobml/blob/master/scripts/vae/compare_results.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> + A collection of Variational AutoEncoders (VAEs) implemented in pytorch with fo...
added features to get index of files in `CdsHeader.write` [skip ci]
@@ -41,7 +41,8 @@ cdsdicts = {'title': 'Title ?', 'abstract': 'Abstract ?', 'authors': 'Authors ?', 'bibcode': 'ref ?', - 'keywords': '' + 'keywords': '', + 'tableDescription': '' } ByteByByteTemplate = ["Byte-by-byte Description of file: $file", @@ -51,6 +52,8 @@ ByteByByteTemplate = ["Byte-by-byte Description of file...
bump lower bound of typer version by 2 releases typer <0.4.1 is incompatible with click >=8.1 fixes
@@ -55,7 +55,7 @@ typing-extensions = {version = ">=3.7.4, <5.0", python = "<3.8"} docutils = ">=0.7, <0.19" types-docutils = ">=0.18, <0.19" pydantic = ">=1.2, <2.0" -typer = {extras = ["all"], version = ">=0.3.2,<0.7"} +typer = {extras = ["all"], version = ">=0.4.1,<0.7"} [tool.poetry.dev-dependencies] pre-commit = "...
Fixes typos Addresses
@@ -182,7 +182,7 @@ factorizes into a product of two amplitudes. In Ref. :cite:`quesada2019franck` i Gaussian states and threshold detection *************************************** -In the last section we sketched how to obtain the probability that a certain photon-number outcome is obtained when a Gaussian state is me...
pywikibot: Add support for chunked uploading in imagetransfer.py Support for -asynchronous and -chunk_size flags were added to upload.py in This patch adds the same options to imagetransfer.py and just maps them to the corresponding UploadBot parameters.
@@ -22,6 +22,10 @@ The following parameters are supported: -force_if_shared Upload the file to the target, even if it exists on that wiki's shared repo + -asynchronous Upload to stash. + + -chunk_size:n Upload in chunks of n bytes. + -file:z Upload many files from textfile: [[Image:x]] [[Image:y]] @@ -144,6 +148,8 @@ c...
remove early layout termination in ListView As we go to the end anyway (because we need to update visibleInView for tail delegates), remove early termination. Remove relative size correction, use ref size for that. Make scrolling very accurate (no annoying jumps when scrolling over invisible/non-uniformly sized delegat...
@@ -192,6 +192,12 @@ BaseView { var prerender = noPrerender? 0: this.prerender * size var leftMargin = -prerender var rightMargin = size + prerender + + if (sizes.length > items.length) { + ///fixme: override model update api to make sizes stable + sizes = sizes.slice(0, items.length) + } + if (this._scrollDelta != 0) ...
Temporarily pin Pythran version at 0.9.7 to resolve test failures. Mostly with the hope that the tests pass. Ideally we should support the most recent version.
@@ -150,7 +150,7 @@ script: else STYLE_ARGS=--no-code-style; if $PYTHON_DBG -V >&2; then CFLAGS="-O0 -ggdb" $PYTHON_DBG runtests.py -vv --no-code-style Debugger --backends=$BACKEND; fi; - if [ -z "${BACKEND##*cpp*}" -a -n "${TRAVIS_PYTHON_VERSION##*-dev}" ]; then pip install pythran; fi; + if [ -z "${BACKEND##*cpp*}" -...
test_installation: Updated to most recent Inkscape releases Covers Inkscape 1.0, 1.1 and 1.2, added some comments
@@ -76,12 +76,18 @@ REQUIREMENT_CHECK_ERROR = 65 good_configurations = [] +# Definition of working combinations of Inkscape and LaTeX for latex in [("pdflatex",), ("lualatex",), ("xelatex",)]: - good_configurations.append([("inkscape", "Inkscape 1.0alpha2 (883c7bc, 2019-06-02)"), latex]) + good_configurations.append([(...
Rollback screenshot:true hack This feature will have to wait until I'm storing screenshots in a single field with sub fields.
@@ -30,8 +30,6 @@ class Elastic: return 0,[] if query == '': query = 'nmap' - if query == 'screenshot:true': - query = "httpheadshot:* OR httpsheadshot:* OR vncsheadshot:*" try: result = self.es.search(index="nmap", doc_type="_doc", body={"size": limit, "from": offset, "query": {"query_string": { 'query': query, "field...
Fixed Twilio test function * Fixed Teilio test function Fixes * CR fixes
@@ -45,11 +45,11 @@ configuration: required: false script: script: |+ - var sendRequest = function(body) { + var sendRequest = function(method, url, body) { var res = http( params.server.replace(/[\/]+$/, '')+'/'+params.sid+'/Messages.json', { - Method: 'POST', + Method: method, Body: body, Headers: {'Content-Type': ['...
test_dbcl002_cluster_by_row_or_col passes More specifically, values for col_dendro_traces_{min,max} are specified even if there are no dendrograms to plot (no traces).
@@ -493,12 +493,13 @@ Methods: cluster_curve_numbers[len(fig.data)] = ["row", i] fig.append_trace(rdt, 2, 1) - col_dendro_traces_min_y = np.concatenate( - [r["y"] for r in col_dendro_traces] - ).min() - col_dendro_traces_max_y = np.concatenate( - [r["y"] for r in col_dendro_traces] - ).max() + col_dendro_traces_y = [r[...
Fix typo introduced in CR:
@@ -33,7 +33,7 @@ Usage: e.g., to test this project against Python 2.7 and Python 3.6, you would: - ../scripts/jenkins/runner.sh /usr/local/bin/python2.7 + ./scripts/jenkins/runner.sh /usr/local/bin/python2.7 and
Cycles ShaderNetworkAlgo : Simplify shader predicates Remove the variables that are only used in one place. Move declaration to the point where the variable is actually needed, so the "reuse previously created node" section is doing one thing only.
@@ -153,11 +153,6 @@ ccl::ShaderNode *convertWalk( const ShaderNetwork::Parameter &outputParameter, c { // Reuse previously created node if we can. const IECoreScene::Shader *shader = shaderNetwork->getShader( outputParameter.shader ); - const bool isOSLShader = boost::starts_with( shader->getType(), "osl:" ); - const ...
vivisect: don't configure logging within library code this stomps on the configuration provided by applications
@@ -51,12 +51,6 @@ import vivisect.analysis.generic.emucode as v_emucode logger = logging.getLogger(__name__) -e_common.setLogging(logger, 'WARNING') - -# FIXME: UGH. Due to our package structure, we have no centralized logging leve -# so we have to force it here and a few other places -elog = logging.getLogger(envi.__...
When building relayout/restyle strings don't use brackets 'foo[0].bar' -> 'foo.0.bar' For unknown reasons, this caused a jitter in the datashader example
@@ -2733,7 +2733,7 @@ class BasePlotlyType: child_prop_val = getattr(self, child.plotly_name) if isinstance(child_prop_val, (list, tuple)): child_ind = BaseFigure._index_is(child_prop_val, child) - obj_path = '{child_name}[{child_ind}].{prop}'.format( + obj_path = '{child_name}.{child_ind}.{prop}'.format( child_name=ch...
disable non-deterministic cudnn ctcloss Summary: Associated issue: Pull Request resolved:
@@ -364,7 +364,9 @@ Tensor ctc_loss(const Tensor& log_probs, const Tensor& targets, IntArrayRef inpu Tensor res; if (use_cudnn) { - res = std::get<0>(at::_cudnn_ctc_loss(log_probs, targets, input_lengths, target_lengths, BLANK, ctx.deterministicCuDNN(), zero_infinity)); + // non-deterministic ctc loss on cudnn disabled...
Update process_results.py Update to allow for scenario with zero PV
@@ -339,9 +339,9 @@ def process_results(self, dfm_list, data, meta, saveToDB=True): self.inputs["Storage"]["installed_cost_us_dollars_per_kwh"], self.inputs["Storage"]["replace_cost_us_dollars_per_kwh"], self.inputs["Storage"]["battery_replacement_year"]) - pv_om = 0 + pv_om = 0.0 for i in range(len(self.nested_outputs...
refactor/Composition/input_parsing Modularized input parsing by transferring processing steps from monolithic to targeted methods Vis a vis the above, fully replaced _adjust_stimulus_dict and _adjust_execution_stimuli methods
@@ -59,7 +59,7 @@ class CompositionRunner(): # 3) Resize inputs to be of the form [[[]]], # where each level corresponds to: <TRIALS <PORTS <INPUTS> > > - inputs,_ = self._composition._standardize_input_dict(inputs) + inputs,_ = self._composition._parse_dict(inputs) return inputs def _infer_target_nodes(self, targets: ...
Update indy_node/test/nym_txn/test_nym_auth_rules.py clarify comment
@@ -334,7 +334,7 @@ def test_nym_edit( if editor.verkey is None: # skip that as well since it doesn't make sense return - if not ROLE in edit_op: # skip if the update operation doesn't changes neither role nor verkey + if not ROLE in edit_op: # skip if the update operation changes neither role nor verkey if not VERKEY ...
Update generic.txt Moving from ```domain.txt```
@@ -3655,3 +3655,19 @@ wagenstead.xyz # Reference: https://twitter.com/eComscan/status/1136181192796061697 dns-forwarding.com + +# Reference: # Reference: https://speakerdeck.com/ashley920/into-the-fog-the-return-of-icefog-apt?slide=35 + +dnsedc.com + +# Reference: # Reference: https://speakerdeck.com/ashley920/into-th...
bug fix in TotalCHPStandbyCharges calculation rm extra ")"
@@ -87,7 +87,6 @@ function add_cost_expressions(m, p) if !isempty(p.CHPTechs) m[:TotalCHPStandbyCharges] = @expression(m, p.CHPStandbyCharge * 12 * sum( m[:dvSize][t] for t in p.CHPTechs) * p.pwf_e) - ) else m[:TotalCHPStandbyCharges] = @expression(m, 0.0) end
Minor fix in segway example using mean instead of sum and division
@@ -50,7 +50,7 @@ def experiment(alg, params, n_epochs, n_episodes, n_ep_per_fit): print('mu: ', p[:n_weights]) print('sigma: ', p[n_weights:]) print('Reward at iteration ' + str(i) + ': ' + - str(np.sum(J)/n_episodes)) + str(np.mean(J))) print('Press a button to visualize the segway...') input()
optimize firewalld.present open port handling only call firewalld ports functions if necessary Fixes
@@ -498,6 +498,7 @@ def _present(name, 'new': 'Masquerading successfully ' 'disabled.'}}) + if ports or prune_ports: ports = ports or [] try: _current_ports = __salt__['firewalld.list_ports'](name, permanent=True)
workloads/gfxbench: Do not clear package data on launch By clearing the application data each time the workload is run this forces the required assets to be re-installed each time. As the workload is not affected by persistent state do not perform the clearing.
@@ -21,6 +21,7 @@ class Gfxbench(ApkUiautoWorkload): name = 'gfxbench-corporate' package_names = ['net.kishonti.gfxbench.gl.v50000.corporate'] + clear_data_on_reset = False regex_matches = [re.compile(r'Car Chase score (.+)'), re.compile(r'Car Chase Offscreen score (.+)'), re.compile(r'Manhattan 3.1 score (.+)'),
Minor fix in documentation Changed name to serializable tutorial
-How to use the Serializable interface -====================================== +How to Save and Load (Serializable interface) +============================================= -In this tutorial, we explain in detail the ``Serializable`` interface. We first explain how to use classes -implementing the ``Serializable`` inte...
Add ability to filter ratings by score in the ratings admin Add ability to filter ratings by score in the ratings admin Also fix querysets to make fewer queries making the whole thing less painful for the database.
from django.contrib import admin +from django.db.models import Prefetch from django.utils.html import format_html from django.utils.translation import ugettext_lazy as _ from django.urls import reverse +from olympia.addons.models import Addon from olympia.translations.utils import truncate_text from olympia.zadmin.admi...
Fixed missing format for the Cat# in the distributors. Only for URLs Fixes
@@ -984,9 +984,9 @@ def add_dist_to_worksheet(ss, logger, columns_global, start_row, start_col, unit dist_url = part.url.get(dist) if dist_url: if ss.SUPPRESS_CAT_URL: - ss.write_url(row, col_part_num, dist_url, string=dist_part_num) + ss.write_url(row, col_part_num, dist_url, 'part_format', dist_part_num) else: - ss.w...
add function.polyfunc convenience function The `function.polyfunc` function takes a list of polynomial coefficients and dofs per transform and creates an inflated `function.Polyval`.
@@ -3154,6 +3154,34 @@ def function(fmap, nmap, ndofs): func = Function(stds=[fmap[trans] for trans in transforms], depth=depth, trans=promote, index=index) return Inflate(func, dofmap, ndofs, axis=0) +def polyfunc(coeffs, dofs, ndofs, transforms, *, issorted=True): + ''' + Create an inflated :class:`Polyval` with coef...
readme: update git install instructions to use pip wrapper Which will force install from snakeoil git as required by the build/install deps in the repo. [skip ci]
@@ -46,7 +46,8 @@ Installing latest pypi release in a virtualenv:: Installing from git in a virtualenv:: - pip install https://github.com/pkgcore/pkgcore/archive/master.tar.gz + git clone https://github.com/pkgcore/pkgcore.git + ./pkgcore/requirements/pip.sh ./pkgcore Installing from a tarball or git repo::
Update PULL_REQUEST_TEMPLATE.md Remove extra ] in markdown link
## Description Thanks for contributing to tskit! :heart: -A guide to the PR process is [here]](https://tskit.readthedocs.io/en/latest/development.html#development_workflow_git) +A guide to the PR process is [here](https://tskit.readthedocs.io/en/latest/development.html#development_workflow_git) Please replace this text...
Build and run OCaml programs separately TN:
@@ -264,9 +264,13 @@ def build_and_run(grammar, py_script=None, ada_main=None, lexer=None, with open('dune-project', 'w') as f: f.write('(lang dune 1.6)') - run('dune', 'exec', '--display', 'quiet', '--root', '.', + # Build the ocaml executable + run('dune', 'build', '--display', 'quiet', '--root', '.', './{}.exe'.form...
Modify the url of OVN tutorial Original url leads user to a markdown file, I think it's better to use official html document rather than a markdown file.
@@ -7,4 +7,4 @@ OpenStack and OVN Tutorial The OVN project documentation includes an in depth tutorial of using OVN with OpenStack. -`OpenStack and OVN Tutorial <https://github.com/ovn-org/ovn/blob/master/Documentation/tutorials/ovn-openstack.rst>`_ +`OpenStack and OVN Tutorial <https://docs.ovn.org/en/latest/tutorials...