message
stringlengths
13
484
diff
stringlengths
38
4.63k
small update on readme.md Should clone the scripts before bash
@@ -43,9 +43,9 @@ Installation from source is the only currently supported format. ```deepchem``` You can install deepchem in a new conda environment using the conda commands in scripts/install_deepchem_conda.sh ```bash +git clone https://github.com/deepchem/deepchem.git # Clone deepchem source code from GitHub bash sc...
qt: follow-up changing light/dark theme at runtime follow-up
@@ -963,8 +963,7 @@ class ColorScheme: @staticmethod def update_from_widget(widget, force_dark=False): - if force_dark or ColorScheme.has_dark_background(widget): - ColorScheme.dark_scheme = True + ColorScheme.dark_scheme = bool(force_dark or ColorScheme.has_dark_background(widget)) class AcceptFileDragDrop:
ci(pre-commit): Correct end-of-file-fixer exclude The existing regex had numerous bugs and boiled down to a very complex way of matching any file whatsoever in the tests directory. Correct the syntax issues, and make a best guess at the original intent.
@@ -5,7 +5,7 @@ repos: hooks: - id: check-vcs-permalinks - id: end-of-file-fixer - exclude: "tests/[test_*|data|commands/tests_*]/*" + exclude: "tests/((commands|data)/|test_).+" - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - id: debug-statements
specified a version for pypiwin32 and moved it to install_requires removed white spaces
@@ -26,6 +26,7 @@ setup( "eth-hash[pycryptodome]", "requests>=2.16.0,<3.0.0", "websockets>=4.0.1", + "pypiwin32>=223;platform_system=='Windows'", ], setup_requires=['setuptools-markdown'], python_requires='>=3.5, <4', @@ -39,9 +40,6 @@ setup( "flake8==3.4.1", "isort>=4.2.15,<5", ], - 'platform_system=="Windows"': [ - '...
adt: use ADT_FOREACH macros internally This fixes some bugs too.
@@ -78,12 +78,7 @@ const struct adt_property *adt_get_property_namelen(const void *adt, int offset, { dprintf("adt_get_property_namelen(%p, %d, \"%s\", %u)\n", adt, offset, name, namelen); - for (offset = adt_first_property_offset(adt, offset); (offset >= 0); - (offset = adt_next_property_offset(adt, offset))) { - cons...
Update detection-testing.yml Updated to use pip cache
@@ -59,6 +59,7 @@ jobs: with: python-version: '3.9' #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified + cache: 'pip' - name: Install Python Dependencies run: | @@ -152,6 +153,7 ...
fix(docs): make it official to pass a domain during sign-up The functionality is used by Nextcloud VM and we're now officially advertising it.
@@ -103,9 +103,6 @@ human-readable error message that may look like:: Zone Creation during Account Registration ***************************************** -**Note:** The following functionality is intended for internal deSEC use only. -Availability of this functionality may change without notice. - Along with your accou...
Update setup.py unrelease and change author
@@ -111,9 +111,9 @@ def generate_long_description() -> str: setup( name="pyjanitor", - version="0.20.11", + version="0.20.10", description="Tools for cleaning pandas DataFrames", - author="Eric J. Ma", + author="pyjanitor devs", author_email="ericmajinglong@gmail.com", url="https://github.com/ericmjl/pyjanitor", licens...
Update whitelist.txt 1 -- IPv6 localhost added. 1.1.1.1 is Cloudflare public DNS. Added in PR Remove Bogus group. symcd.com -- added to "triggering suspicious http request" group.
localhost 127.0.0.1 +::1 local localdomain @@ -287,6 +288,7 @@ sanasecurity.com sim-unlock.net sqlzoo.net symcb.com +symcd.com victronenergy.com # found as false positive in otx.alienvault.com @@ -686,10 +688,6 @@ scorecardresearch.com 216.58.192.0/19 -# Bogus (though, valid DNS server) - -1.1.1.1 - # Teamviewer 37.252...
test exposing bug that we don't send warcprox-meta when pushing stitched-up video with WARCPROX_WRITE_RECORD
@@ -801,7 +801,10 @@ def test_ydl_stitching(httpd): rr = doublethink.Rethinker('localhost', db='brozzler') frontier = brozzler.RethinkDbFrontier(rr) site = brozzler.Site(rr, { - 'seed': 'http://localhost:%s/site10/' % httpd.server_port}) + 'seed': 'http://localhost:%s/site10/' % httpd.server_port, + 'warcprox_meta': { ...
Bumped `mesos-dns`. Added capability in `mesos-dns` of providing DC/OS version it was validated against.
"single_source" : { "kind": "git", "git": "https://github.com/mesosphere/mesos-dns.git", - "ref": "be539256550ae317c5f3ba440256f04c44d68320", - "ref_origin": "master" + "ref": "114915e5ce05376be2b237b5016d6832d273ea6f", + "ref_origin": "dcos/1.11" }, "username": "dcos_mesos_dns" }
Make changes to readability Add `\displaystyle` directive to fractions to make them more readable esp. on smaller screens. Indent some formulae in true score section. Move the textual descriptions early on in `evaluation.rst` to make it clear that they aren't part of the formula but rather what's being computed.
@@ -744,7 +744,7 @@ def quadratic_weighted_kappa(y_true_observed, y_pred, ddof=0): The formula is as follows: - :math:`QWK=\\frac{2*Cov(M,H)}{Var(H)+Var(M)+(\\bar{M}-\\bar{H})^2}`, where + :math:`QWK=\\displaystyle\\frac{2*Cov(M,H)}{Var(H)+Var(M)+(\\bar{M}-\\bar{H})^2}`, where - :math:`Cov` - covariance with normalizat...
Change ordering of lock acquisition in `put` The three locks, references_by_block_id lock,, block_by_block_id, block_store_by_name -- if they ever overlap -- must overlap in that order, or there can be a deadlock.
@@ -179,6 +179,10 @@ impl BlockManagerState { .references_by_block_id .write() .expect("Acquiring reference write lock; lock poisoned"); + let mut block_by_block_id = self + .block_by_block_id + .write() + .expect("Acquiring block pool write lock; lock poisoned"); let blockstore_by_name = self .blockstore_by_name .read...
Change decoder to deal with cuts and confidences Codecs have to be aware of cuts and confidences on the decoder side.
@@ -20,6 +20,7 @@ graphemes. """ import regex +import numpy as np from torch import IntTensor @@ -79,23 +80,37 @@ class PytorchCodec(object): l.extend(self.c2l[c]) return IntTensor(l) - def decode(self, l): + def decode(self, labels): """ - Decodes a labelling into a string. + Decodes a labelling. + + Given a labelling...
Set default_auto_field in wagtail.contrib.postgres_search AppConfig Add default_auto_field = 'django.db.models.AutoField'
@@ -6,6 +6,7 @@ from .utils import get_postgresql_connections, set_weights class PostgresSearchConfig(AppConfig): name = 'wagtail.contrib.postgres_search' + default_auto_field = 'django.db.models.AutoField' def ready(self): @register(Tags.compatibility, Tags.database)
Fix installation with setup.py Installing using setup.py was failing due to a couple of files having been moved in the repository.
@@ -86,7 +86,7 @@ the moment it can generate Python, C++, Perl, Lisp and XRC (wxWidgets' XML resources) code.""" text_files = ['CHANGES.txt', 'CONTRIBUTING.txt', 'CREDITS.txt', - 'LICENSE.txt', 'NEWS.txt', 'README.txt', 'TODO.txt', ] + 'LICENSE.txt', 'NEWS.txt', 'README.txt', 'docs/Todo.txt',] data_files = [ ['share/wx...
fix ocs_operator_storage_cluster_cr url the file ocs_v1alpha1_storagecluster_cr.yaml was renamed to ocs_v1_storagecluster_cr.yaml fixes
@@ -41,7 +41,7 @@ DEPLOYMENT: # opened issue here about the version in the name of OLM # https://github.com/openshift/ocs-operator/issues/50 ocs_csv_version: "v0.0.1" - ocs_operator_storage_cluster_cr: "https://raw.githubusercontent.com/openshift/ocs-operator/master/deploy/crds/ocs_v1alpha1_storagecluster_cr.yaml" + oc...
Fixed reconfigure compute message in audit Fixed reconfigure compute message in audit
@@ -21,7 +21,7 @@ package com.epam.dlab.rest.contracts; public interface ComputationalAPI { String AUDIT_MESSAGE = "Notebook name %s"; - String AUDIT_COMPUTATIONAL_RECONFIGURE_MESSAGE = "Reconfigure compute <%s>, requested for notebook <%s>"; + String AUDIT_COMPUTATIONAL_RECONFIGURE_MESSAGE = "Reconfigure compute %s, r...
Remove exception catcher in PresentationConnector Connections should succeed, or the transaction should be reverted.
@@ -37,7 +37,6 @@ class PresentationConnector(ItemConnector): item = self.item cinfo = self.connections.get_connection(handle) - try: if cinfo and cinfo.connected is sink.item: # reconnect only constraint - leave model intact log.debug("performing reconnect constraint") @@ -73,8 +72,6 @@ class PresentationConnector(Ite...
Updated install docs with supported django versions Updated docs to reflect that django'cms supports django 1.9 and 1.10 in addition to django 1.8
@@ -8,7 +8,7 @@ We'll get started by setting up our environment. Requirements ************ -django CMS requires Django 1.8, and Python 2.7, 3.3 or 3.4. +django CMS requires Django 1.8, 1.9 or 1.10 and Python 2.7, 3.3 or 3.4. ************************ Your working environment
Drop mention of long-removed 'policy' object. Closes
@@ -5,9 +5,7 @@ Subscribing to messages is handled through the :class:`~.pubsub_v1.subscriber.client.Client` class (aliased as ``google.cloud.pubsub.SubscriberClient``). This class provides a :meth:`~.pubsub_v1.subscriber.client.Client.subscribe` method to -attach to subscriptions on existing topics, and (most importan...
check if hasAttr before access it Summary: Related to Just need to check hasAttr before access the _console field.
@@ -624,7 +624,8 @@ class SSHCommandSession(CliCommandSession): # TODO: We need to resolve the console hostnames to ip addresses. # Ignoring consoles for now. - if not self._console and self._devinfo.connect_using_proxy(host): + if (not getattr(self, '_console', False) and + self._devinfo.connect_using_proxy(host)): ho...
Update density fitting mcscf example. mf._cderi requires the h5py file object ("file1"), not the dataset object ("file1['j3c']"). Obsolete API?
@@ -41,7 +41,7 @@ with h5py.File(ftmp.name, 'r') as file1: # Note, here the integral object file1['j3c'] are not loaded in memory. # It is still the HDF5 array object held on disk. The HDF5 array can be used # the same way as the regular numpy ndarray stored in memory. - mf.with_df._cderi = file1['j3c'] + mf.with_df._c...
Actually fill in string template in many events pipeline Summary: Missed this one Test Plan: Look at event log Reviewers: #ft, natekupp
def create_raw_file_solid(name): def do_expectation(_context, _value): return ExpectationResult( - success=True, label='output_table_exists', description='Checked {name} exists' + success=True, + label='output_table_exists', + description='Checked {name} exists'.format(name=name), ) @solid(
Issue : pbar persists due to specific rule in tqdm (notebook) when n < total * Issue pbar persists in notebook due to specific rules when n < total * close pbar doesn't rise danger bar * fix when pbar.total is None
@@ -199,6 +199,11 @@ class ProgressBar(BaseLogger): def _close(self, engine): if self.pbar is not None: + # https://github.com/tqdm/notebook.py#L240-L250 + # issue #1115 : notebook backend of tqdm checks if n < total (error or KeyboardInterrupt) + # and the bar persists in 'danger' mode + if self.pbar.total is not None...
minor changes requested changes are addressed
@@ -55,6 +55,7 @@ def logistic_reg(alpha,X,y,max_iterations=70000): if iterations== max_iterations: print("Maximum iterations exceeded!") + print("Minimal cost function J=",J) converged=True return theta
auth: log details in case of user auth issue When a local SaltClient sends a job as "root" while the Master runs as a non-root user, make it more clear why the message `Authentication failure of type "user" occurred.` is logged.
@@ -347,6 +347,7 @@ class LoadAuth(object): load["user"] == self.opts.get("user", "root") or load["user"] == "root" ): if auth_key != key[self.opts.get("user", "root")]: + log.warning('Master runs as "{}", but user in payload is "{}"'.format(self.opts.get('user', 'root'), load['user'])) log.warning(error_msg) return Fa...
[docs] Add instructions for uploading CI resources to S3 These were missing the final step to use the uploaded resources
@@ -148,12 +148,14 @@ server can go down or be slow), so try to avoid using the network at all during this isn't a reasonable proposition (e.g. the docs tutorials which need to download models). In these cases you can re-host files in S3 for fast access in CI. A committer can upload a file, -specified by a name, hash, ...
Bump setuptools & setuptools_scm Just for precaution, lower version were causing some weirdness for scikit-misc.
# Reference https://github.com/pydata/xarray/blob/main/pyproject.toml [build-system] requires = [ - "setuptools>=45", - "setuptools_scm[toml]>=6.2", + "setuptools>=59", + "setuptools_scm[toml]>=6.4", "wheel", ] build-backend = "setuptools.build_meta"
Update Jenkinsfile - To use full GIT SHA in img - To use latest jenkins pipeline lib.
-@Library('github.com/mozmeao/jenkins-pipeline@20170315.1') +@Library('github.com/mozmeao/jenkins-pipeline@20171123.1') def config def docker_image def dc_name @@ -26,7 +26,7 @@ conduit { stage("Build") { if (!dockerImageExists(docker_image)) { - sh "GIT_SHA=${GIT_COMMIT_SHORT} LOCALE_ENV=production ./docker/bin/build-...
poll_widget: Use e.key instead of deprecated e.keyCode. Tested by making sure Enter and Escape work for editing poll title and adding new poll options.
@@ -125,12 +125,12 @@ export function activate({ elem.find("input.poll-question").on("keydown", (e) => { e.stopPropagation(); - if (e.keyCode === 13) { + if (e.key === "Enter") { submit_question(); return; } - if (e.keyCode === 27) { + if (e.key === "Escape") { abort_edit(); return; } @@ -159,12 +159,12 @@ export funct...
Update pythonpackage.yml Try to fix CI with mongo install
@@ -11,8 +11,6 @@ jobs: matrix: python-version: [3.7] os: [ubuntu-latest, macOS-latest] - mongodb-version: ["4.2"] - steps: - uses: actions/checkout@v1 @@ -28,16 +26,17 @@ jobs: eval "$(ssh-agent -s)" ssh-add - <<< "${CHIA_MACHINE_SSH_KEY}" git submodule update --init --recursive - brew update && brew install gmp docke...
Update config.yml Moved another to the broken category
@@ -49,8 +49,8 @@ jobs: make DESIGN_NAME=switched_capacitor_filter ALIGN_docker make DESIGN_NAME=cascode_current_mirror_ota ALIGN_docker make DESIGN_NAME=current_mirror_ota ALIGN_docker - make DESIGN_NAME=five_transistor_ota ALIGN_docker # Currently failing +# make DESIGN_NAME=five_transistor_ota ALIGN_docker # make DE...
remove object/init boilerplate This is unused -- it would affect how __init__ is called in the presence of subclasses, but this class is not designed for subclassing/multiple inheritence
@@ -5,10 +5,7 @@ from parsl.executors.base import ParslExecutor from parsl.providers.provider_base import JobStatus, JobState -class JobErrorHandler(object): - def __init__(self): - pass - +class JobErrorHandler: def run(self, status: List[ExecutorStatus]): for es in status: self._check_irrecoverable_executor(es)
Add support for Vault KV API v2 This adds the ability to target KV API v1 or v2.
@@ -37,6 +37,17 @@ class VaultDestinationPlugin(DestinationPlugin): 'validation': '^https?://[a-zA-Z0-9.:-]+$', 'helpMessage': 'Valid URL to Hashi Vault instance' }, + { + 'name': 'vaultKvApiVersion', + 'type': 'select', + 'value': '2', + 'available': [ + '1', + '2' + ], + 'required': True, + 'helpMessage': 'Version of...
docker_mock: fix remember_tags functionality Previously tagging an image without an explicit tag would trick this stub into thinking the image was not present, as inspection always uses an explicit tag.
@@ -193,6 +193,7 @@ mock_inspect_container = { def _find_image(img, ignore_registry=False): global mock_images + img = ImageName.parse(img).to_str(explicit_tag=True) for im in mock_images: im_name = im['RepoTags'][0] if im_name == img:
Fix whitespace errors reduces diff against devel
@@ -230,6 +230,7 @@ class IntegratorMechanism(ProcessingMechanism_Base): name=name, prefs=prefs, context=self) + # IMPLEMENT: INITIALIZE LOG ENTRIES, NOW THAT ALL PARTS OF THE MECHANISM HAVE BEEN INSTANTIATED # MODIFIED 6/2/17 NEW:
[util/cli] make sure language is set to "C" to make parsing of CLI output reliable (i.e. always in english), set LC_ALL accordingly. see
@@ -30,6 +30,11 @@ def execute( """ args = cmd if shell else shlex.split(cmd) logging.debug(cmd) + + if not env: + env = os.environ.copy() + env["LC_ALL"] = "C" + try: proc = subprocess.Popen( args,
Update Nintendo - Super Nintendo Entertainment System.dat The CRC32 is right, but the MD5 and SHA1 hashes for Hyper Metroid by RealRed version (1.0) are wrong.
@@ -179,7 +179,7 @@ game ( name "Hyper Metroid [Hack by RealRed]" description "Hyper Metroid by RealRed version (1.0)" homepage "http://metroidconstruction.com/hack.php?id=294" - rom ( name "Super Metroid (Japan, USA) (En,Ja).sfc" size 4194304 crc d4d38230 md5 6b3c722165b3c566eda465386b585b51 sha1 727f8763983753e014e70...
SceneView : Draw overscan region Crop window and Overscan are generally mutually exclusive. We don't reflect this in `StandardOptions` though. As such, this implementation simply draws the overscan region when set, regardless of the crop window configuration. Improvements - Viewer : Added overscan display when looking ...
@@ -674,8 +674,6 @@ class SceneView::Gnomon : public boost::signals::trackable namespace { -/// \todo If we made CropWindowTool::Rectangle public, we -/// could ditch this class. class CameraOverlay : public GafferUI::Gadget { @@ -740,6 +738,22 @@ class CameraOverlay : public GafferUI::Gadget return m_cropWindow; } + /...
[cleanup] update site_detect_tests not look like a mw site is no longer a wiki but redirects to instead is no longer a wiki but redirects to is no longer available is no longer reachable
@@ -114,29 +114,15 @@ class Pre114SiteTestCase(SiteDetectionTestCase): """Test pre 1.14 sites which should be detected as unsupported.""" - def test_livepedia(self): - """Test detection of MediaWiki sites for www.livepedia.gr.""" - self.assertNoSite( - 'http://www.livepedia.gr/index.php?title=$1') # v1.12 - def test_wi...
Remove unicode from notifiler Implements: blueprint remove-unicode
@@ -84,18 +84,18 @@ def _alarm_request(data, state): severity = severity_translation.get(data.get(VProps.SEVERITY), 'low') return dict( name=aodh_alarm_name, - description=u'Vitrage deduced alarm', + description='Vitrage deduced alarm', event_rule=dict(query=[ dict( - field=u'resource_id', + field='resource_id', type='...
Update ray.md The title for the images appears in the view/preview and we do not need it so I removed it.
@@ -25,7 +25,7 @@ TTC = Instrument("TTC", 8, "TensorTrade Coin") Now let us look at the curve we will be using to define our price. -![png](charts/sine_curve.png) +![](charts/sine_curve.png) Ideally, what we will be expecting from our agent is that it will be able to sell at the peaks and buy at the troughs. We will mo...
Terminate gpg-agent after each test. This is actual for gnupg 2.1 that requires the agent and starts it automatically. But since each test creates a new keystore tests become fail after the first one starts gpg-agent.
@@ -237,6 +237,19 @@ class DecryptGPGPillarTest(ModuleCase): @classmethod def tearDownClass(cls): + cmd = ['gpg-connect-agent', '--homedir', GPG_HOMEDIR] + try: + log.debug('Killing gpg-agent using: %s', cmd) + output = subprocess.Popen(cmd, + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT,...
Don't wrap small number of node changes in delay mptt updates improves performance roughly 5x
@@ -333,7 +333,7 @@ def move_nodes(channel_id, target_parent_id, nodes, min_order, max_order, task_o percent_per_node = math.ceil(total_percent / len(nodes)) percent_done = 0.0 - with ContentNode.objects.delay_mptt_updates(): + with transaction.atomic(): for n in nodes: min_order = min_order + float(max_order - min_ord...
Update About page updated citation and where we get Rx data from
<h3>Citation</h3> -<p>You are welcome to use data or graphs from this site in your academic output with attribution. Our methods paper will be published shortly, until then please cite "OpenPrescribing.net, EBM DataLab, University of Oxford, 2017" as the source for academic attribution.</p> +<p>You are welcome to use d...
bumps version + incorporates IUPAC to N, to uppercase + adds tmpdir to bbnorm
-__version__ = "1.0.30" +__version__ = "1.0.31" TAX_LEVELS = ["superkingdom", "phylum", "class", "order", "family", "genus", "species"] BLAST6 = ["qseqid", "sseqid", "pident", "length", "mismatch", "gapopen", "qstart", "qend", "sstart", "send", "evalue", "bitscore"]
Project Description : Update readme and copyrights Readme: minor copy and formatting edits Readme: update/add links Readme: add Gaffer logo Readme: update copyrights License: update copyrights
-Copyright (c) 2011-2016, John Haddon. All rights reserved. -Copyright (c) 2011-2016 Image Engine Design Inc. +Copyright (c) 2011-2018 John Haddon. All rights reserved. +Copyright (c) 2011-2018 Image Engine Design Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification,...
Fix an error on pypy3 Fix
@@ -75,10 +75,16 @@ def md5_digest(data): if platform.python_implementation() == 'PyPy': def create_readline_wrapper(fh): fh.recv = fh.read + if is_py2: if not hasattr(fh, '_drop'): fh._drop = lambda: None fh._reuse = lambda: None - return socket._fileobject(fh, close=True) + ans = socket._fileobject(fh, close=True) + ...
dart: Only allocate a max of 2 L2 tables This is what iBoot normally does, and >2 will panic macOS
@@ -188,8 +188,8 @@ int dart_setup_pt_region(dart_dev_t *dart, const char *path, int device) printf("dart: dart %s ignoring large pt-region-0, %lu L2 tables\n", path, tbl_count); return -1; } - /* first index is the l1 table */ - tbl_count -= 1; + /* first index is the l1 table, cap at 2 or else macOS hates it */ + tbl...
Fix for 'on_order' calculation Handle null results
@@ -237,6 +237,9 @@ class SupplierPart(models.Model): @property def manufacturer_string(self): + """ Format a MPN string for this SupplierPart. + Concatenates manufacture name and part number + """ items = [] @@ -315,7 +318,16 @@ class SupplierPart(models.Model): totals = self.open_orders().aggregate(Sum('quantity'), S...
Fixed grouping Now is groping, but the function needs improvement. To finish the implementation I have to modify `spreadsheep.py`
@@ -278,6 +278,7 @@ def group_parts(components, fields_merge): value = SGROUP_SEPRTR.join( [collapse_refs(r) + SEPRTR + ' ' + t for t,r in ocurrences.items()] ) for r in grp.refs: components[r][f] = value + #print('++++++++++++++',len(new_component_groups)) #for grp in new_component_groups: # print(grp.refs) # for r in...
[ENH] better error message on transform output check fail This PR improves the error message if the transform output check fails, by pointing to the estimator type and printing the output.
@@ -1021,11 +1021,18 @@ class BaseTransformer(BaseEstimator): # we cannot convert back to pd.Series, do pd.DataFrame instead then # this happens only for Series, not Panel if X_input_scitype == "Series": - _, _, metadata = check_is_mtype( + valid, msg, metadata = check_is_mtype( Xt, ["pd.DataFrame", "pd.Series", "np.nd...
prioritise bundled LCB include path Tested-by: Build Bot
@@ -303,7 +303,10 @@ class CBuildCommon(build_ext): ext.extra_compile_args += lcb_api_flags compiler = self.compiler # type: CCompiler lcb_include = os.path.join(self.build_temp, "install", "include") - compiler.add_include_dir(lcb_include) + try: + compiler.set_include_dirs([lcb_include]+compiler.include_dirs) + excep...
Qt5 migration script : Tidy up Use argparse to add argument and help text Remove commented code Fix bug that caused the QtWidget substitutions to be omitted Default to running in ./, since not all projects have a root ./python directory
+#! /usr/bin/env python + import os import re +import inspect +import argparse import functools import Qt +parser = argparse.ArgumentParser( + description = inspect.cleandoc( + """ + Attempts to modify Python source files to assist + in the migration from Qt4 to Qt5, via Qt.py : + + - Replaces QtGui with QtWidgets wher...
build: use `$CIRRUS_CPU` to determine cpu count on CI related
@@ -129,7 +129,13 @@ if [ -n "$GCC_TRIPLET_BUILD" ] ; then fi export GCC_STRIP_BINARIES="${GCC_STRIP_BINARIES:-0}" + +if [ -n "$CIRRUS_CPU" ] ; then + # special-case for CI. see https://github.com/cirruslabs/cirrus-ci-docs/issues/1115 + export CPU_COUNT="$CIRRUS_CPU" +else export CPU_COUNT="$(nproc 2> /dev/null || sysc...
Moves break Ref
<div id=pageContainer>{{ currentpage.raw_html }}</div> - <br/> {% get_obj_perms user for site as "site_perms" %} {% if not currentpage.is_error_page %} {% block editlink %} {% if currentpage.pk %} {% if "change_challenge" in site_perms %} + <br> <a class="editPageLink" href="{% url 'pages:update' currentpage.challenge....
Update appshell_extensions.js Fixing the comment
@@ -871,12 +871,12 @@ if (!appshell.app) { }; /** - * Get hash of the machine based on various + * Get hash of the machine based on various parameters like + * network interfaces, CPU ID, volume serial number e.t.c * + * @param {none} * - * @param {number} - * - * @return none. + * @return None. This is an asynchronous...
Setting header if auto_change is true. This is overall not a great solution, but the better solution requires some real rework. This is meant as a temporary fix until we get time to do a real fix for this.
@@ -244,6 +244,15 @@ class TokenListAPI(BaseHandler): if verified: tokens = generate_tokens(principal, self.REFRESH_COOKIE_EXP) + + # This is a semi-done solution. To really do this, we cannot give them + # a token, instead we should return an error, indicating they need to + # update their password, and then login aga...
remove unused environment variables both of these were changed to default to false in flask-sqlalchemy 3.0 anyway
@@ -138,8 +138,6 @@ class Config(object): AWS_REGION = "eu-west-1" INVITATION_EXPIRATION_DAYS = 2 NOTIFY_APP_NAME = "api" - SQLALCHEMY_RECORD_QUERIES = False - SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_POOL_SIZE = int(os.environ.get("SQLALCHEMY_POOL_SIZE", 5)) SQLALCHEMY_POOL_TIMEOUT = 30 SQLALCHEMY_POOL_RECYCL...
Fix outdated package notice When I install this package I get a notice that: `us 1.0.0 has requirement jellyfish==0.5.6, but you'll have jellyfish 0.5.1 which is incompatible.` Let's fix it :-)
@@ -58,7 +58,7 @@ setup(name='docassemble.base', url='https://docassemble.org', download_url='https://download.docassemble.org/docassemble-base.tar.gz', namespace_packages = ['docassemble'], - install_requires = ['docassemble==0.2.78', '3to2', 'astunparse', 'babel', 'bcrypt', 'blinker', 'cffi', 'fdfgen', 'guess-languag...
clean up 'setup test' in 'test_registries' Some tests in 'test_registries' were not cleaned up correctly. In particular, the current working directory was not restored, causing the HTML report of pytest-cov to be saved into a temporary folder.
@@ -45,10 +45,10 @@ class TestProtocolRegistry: cls.patch = unittest.mock.patch.object(aea.registries.base.logger, 'exception') cls.mocked_logger = cls.patch.__enter__() + cls.oldcwd = os.getcwd() cls.agent_name = "agent_dir_test" cls.t = tempfile.mkdtemp() cls.agent_folder = os.path.join(cls.t, cls.agent_name) - cls.o...
Update homophones.py Correct comment on capture.
@@ -139,8 +139,8 @@ def canonical(m) -> str: "Returns a single string" @mod.capture -def selection(m) -> int: - "Returns a single integer (1-based)" +def selection(m) -> str: + "Returns the selected homophone" @mod.action_class class Actions:
Make permutations not join sublists when given list of strings Closes
@@ -4098,7 +4098,7 @@ def permutations(lhs, ctx): lhs = iterable(lhs, ctx=ctx) return LazyList( map( - lambda x: "".join(x) if all(isinstance(y, str) for y in x) else x, + lambda x: "".join(x) if all(isinstance(y, str) for y in x) and isinstance(lhs, str) else x, itertools.permutations( iterable(lhs, number_type=range,...
Avoid convert forth and back from pixel to data Remove reuse of x|yClosest for pixel values, so they can be used straightaway.
@@ -172,17 +172,15 @@ class PositionInfo(qt.QWidget): closestInPixels = self.plot.dataToPixel( xClosest, yClosest, axis=activeCurve.getYAxis()) if closestInPixels is not None: - xClosest, yClosest = closestInPixels xPixel, yPixel = event['xpixel'], event['ypixel'] - if (abs(xClosest - xPixel) < 5 and - abs(yClosest - y...
sql: add 8003 error code description Via:
@@ -16,6 +16,7 @@ TiDB is compatible with the error codes in MySQL, and in most cases returns the | ---- | ------- | --------- | | 8001 | The memory used by the request exceeds the threshold limit for the TiDB memory usage. | Increase the value of the system variable with the `tidb_mem_quota` prefix. | | 8002 | To guar...
Oklahoma - new entry Reviewed info (OK) and fixed a type-o
@@ -12,7 +12,7 @@ id: ok-oklahomacity-1 ### Law enforcement uses tear-gas several times | May 30th -Four different video, in what is believed to be chronological order, show law enforcement using tear-gas on protestors that are standing. +Four different videos, in what is believed to be chronological order, show law en...
Update README.md include in a table to center
@@ -3,7 +3,9 @@ SMA Conversion/Tagging Automation Script. **Automatically converts media files downloaded by various programs to a standardized format, and tags them with the appropriate metadata from TMDB if the container supports tagging.** -![Header](https://user-images.githubusercontent.com/3608298/75617396-8ff3590...
Update mock_oauth_provider Blueprint for flask 2.0.1 changes: > Show an error when a blueprint name contains a dot. The . has special > meaning, it is used to separate (nested) blueprint names and the > endpoint name. Ref:
@@ -12,7 +12,7 @@ from tests.utils.mock_oauth_provider.models import OAuth2Client, User, db from tests.utils.mock_oauth_provider.oauth2 import authorization, require_oauth logger = logging.getLogger(__name__) -bp = Blueprint(__name__, "home") +bp = Blueprint("mock-oauth-provider", "home") def current_user():
[IMPR] Simplify code and use subTest Setup data in setUp and use subTest to reduce similar codes
# -*- coding: utf-8 -*- """Test Interwiki Graph functionality.""" # -# (C) Pywikibot team, 2015-2018 +# (C) Pywikibot team, 2015-2020 # # Distributed under the terms of the MIT license. # @@ -47,45 +47,36 @@ class TestWiktionaryGraph(SiteAttributeTestCase): 'pl': DryPage(cls.plwikt, 'origin'), } - def test_simple_graph...
rolling_update.yml: force ceph-volume scan on osds The rolling_update.yml playbook fails when scanning ceph-disk osds while deploying nautilus. The --force flag is required to scan existing osds and rewrite their json metadata.
when: containerized_deployment | bool - name: scan ceph-disk osds with ceph-volume if deploying nautilus - command: "ceph-volume --cluster={{ cluster }} simple scan" + command: "ceph-volume --cluster={{ cluster }} simple scan --force" environment: CEPH_VOLUME_DEBUG: 1 when:
Consolidate links in JAX documentation Move notes down
@@ -15,7 +15,7 @@ parallelize, Just-In-Time compile to GPU/TPU, and more. notebooks/Common_Gotchas_in_JAX .. toctree:: - :maxdepth: 2 + :maxdepth: 1 jax-101/index @@ -54,20 +54,9 @@ parallelize, Just-In-Time compile to GPU/TPU, and more. notebooks/xmap_tutorial multi_process -.. toctree:: - :maxdepth: 1 - :caption: Not...
OOB access in GLM SoftMax closes Authors: - Divye Gala (@divyegala) Approvers: - William Hicks (@wphicks) - John Zedlewski (@JohnZed) URL:
/* - * Copyright (c) 2018-2020, NVIDIA CORPORATION. + * Copyright (c) 2018-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,7 +59,11 @@ __global__ void logSoftmaxKernel(T *out, T *dZ, const T *in, cons...
Fix outdated link to guide for contributors 'dev' branch was deleted. Link to ReadTheDocs version, as done elsewhere in the file.
# PlantCV: Plant phenotyping using computer vision -Please use, cite, and [contribute to](https://github.com/danforthcenter/plantcv/blob/dev/CONTRIBUTING.md) PlantCV! +Please use, cite, and [contribute to](http://plantcv.readthedocs.io/en/latest/CONTRIBUTING/) PlantCV! If you have questions, please submit them via the ...
Bugfix correct mimetype result It should always return a value (to match Werkzeug) rather than returning None if there is no Content-Type in the headers.
@@ -182,12 +182,9 @@ class _BaseRequestResponse: self.headers = CIMultiDict(headers) @property - def mimetype(self) -> Optional[str]: + def mimetype(self) -> str: """Returns the mimetype parsed from the Content-Type header.""" - if 'Content-Type' in self.headers: - return parse_header(self.headers.get('Content-Type'))[...
Disable printing of the histogram when dump Summary: Pull Request resolved: Disable printing of the histogram when dump to make the log cleaner. Test Plan: CI
@@ -142,7 +142,7 @@ class HistogramNetObserver final : public NetObserver { string delimiter = " "); ~HistogramNetObserver(); void DumpHistogramFile() { - DumpAndReset_(out_file_name_, true); + DumpAndReset_(out_file_name_, false); } private:
Fixed bug with 'Host name' input on git credential Fixed bug with 'Host name' input on git credential
@@ -37,7 +37,7 @@ export class ManageUngitComponent implements OnInit { currentEditableItem: AccountCredentials = null; mail_validity_pattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,63})$/; - hostname_validity_pattern = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][...
Updated API key documentation. The documentation for requesting an API key was updated to reference HTML5 API and the default of a 100k requests per day limit.
@@ -10,6 +10,24 @@ well as reporting a location based on IP addresses, cell or WiFi networks. New client developments should use the :ref:`api_region_latest`, :ref:`api_geolocate_latest` or :ref:`api_geosubmit_latest` APIs. +Requesting an API Key +===================== + +The key has a daily usage limit of about 100,00...
api/builtins/DCMotor: drop settings These settings are control properties, so they cannot be altered on DC Motors.
@@ -72,9 +72,6 @@ DC Motor .. automethod:: pybricks.builtins.DCMotor.dc :noindex: - .. automethod:: pybricks.builtins.DCMotor.set_dc_settings - :noindex: - Other ev3dev sensors ^^^^^^^^^^^^^^^^^^^^^
Commander: fix elf being passed to commander. Fix for submitted by
from __future__ import print_function import logging +import os import traceback from ..core.helpers import ConnectHelper @@ -215,7 +216,7 @@ class PyOCDCommander(object): # Set elf file if provided. if self.args.elf: - self.target.elf = os.path.expanduser(self.args.elf) + self.session.target.elf = os.path.expanduser(s...
Deletion of a trailing '#'. Please note that I have added that '#' by mistake.
@@ -1177,7 +1177,7 @@ def domain_to_idna(line): else: splited_line[1] = splited_line[1] \ .encode("IDNA") \ - .decode("UTF-8") + '#' + .decode("UTF-8") else: splited_line[1] = splited_line[1] \ .encode("IDNA") \
Added missing pytest decorator Message-Id: Message-Id:
@@ -27,18 +27,6 @@ class ClassesTest(unittest.TestCase): self.assertEqual(3, alien.health, msg=error) - # Test class variables are identical across instances - def test_alien_class_variable(self): - alien_one = Alien(0, 2) - alien_two = Alien(-6, -1) - Alien.total_aliens_created = -2 - - error_one = "Expected the total...
Transformer_ABC_Meta was confused class name/transformer name confusion metaclass initialization/class initialization confusion
@@ -260,14 +260,16 @@ class Transformer_ABC_Meta(abc.ABCMeta): metaclass for the backend objects takes care of registering all the backend subclasses """ - def __init__(self, name, bases, dict_): - if not hasattr(self, 'transformers'): - self.transformers = {} - else: - name = getattr(self, 'transformer_name', None) - ...
Updates and fixes SpamTable: figures have box labels & evals are not repeated. Eigenvalue columns could be repeated b/c of same confidence region view. This is fixed now. Also, the matrix plots look nicer.
@@ -113,6 +113,7 @@ class SpamTable(WorkspaceTable): rhoMx_real = rhoMx.hermitian_to_real() v = rhoMx_real.get_value() fig = _wp.GateMatrixPlot(self.ws, v, colorbar=False, + boxLabels=True, prec='compacthp', mxBasis=None) #no basis labels rowData.append( fig ) rowFormatters.append('Figure') @@ -121,8 +122,10 @@ class S...
utilities: handle nonuniform objects better when converting to numpy arrays previously, it would flatten some arrays - e.g. [0, [0]] -> [0, 0]
@@ -1109,7 +1109,7 @@ def convert_all_elements_to_np_array(arr, cast_from=None, cast_to=None): return np.asarray(arr, dtype=cast_to) if not isinstance(arr, collections.Iterable) or isinstance(arr, str): - return np.asarray(arr) + return np.array(arr) if isinstance(arr, np.matrix): if arr.dtype == object: @@ -1118,9 +11...
[DOC] Fix broken fbprophet hyperlink in README.md fixes broken fbprophet hyperlink in features section or README.md
@@ -70,7 +70,7 @@ For **deep learning**, see our companion package: [sktime-dl](https://github.com [statsmodels]: https://www.statsmodels.org/stable/index.html [tsfresh]: https://tsfresh.readthedocs.io/en/latest/ [pyod]: https://pyod.readthedocs.io/en/latest/ -[prophet]: https://facebook.github.io/prophet/ +[fbprophet]...
bi, hierarchy query HG-- branch : feature/microservices
@@ -222,6 +222,28 @@ class BIAPI(API): :param params: :return: """ + def search_parent(node, p_id): + if p_id is None: + return node + if node and node["id"] == p_id: + return node + else: + if node and "nodes" in node.keys(): + for child in node["nodes"]: + _searched = search_parent(child, p_id) + if _searched: + retu...
fix: Comment to docstring and minor changes added description for args with example 'yield' might not be the best idea, barely any improvement, so changed back to 'return'
@@ -31,9 +31,12 @@ def make_mapped_doc(method, source_name, selected_children=None, args=None): @frappe.whitelist() def map_docs(method, source_names, target_doc, args: str = None): - # args => "{ 'supplier': 100 }" ''' Returns the mapped document calling the given mapper method - with each of the given source docs on ...
fixing a bug in MigrationManager._run_add_columns The Table metaclass wasn't being called on columns, so the ForeignKeyMeta wasn't being setup correctly on ForeignKey columns.
@@ -511,8 +511,15 @@ class MigrationManager: AddColumnClass ] = self.add_columns.for_table_class_name(table_class_name) + # Define the table, with the columns, so the metaclass + # sets up the columns correctly. _Table: t.Type[Table] = type( - add_columns[0].table_class_name, (Table,), {} + add_columns[0].table_class_n...
langkit_support-adalog-solver.adb: remove obsolete pragma Now that the solver no longer uses 'Update attributes, disabling the corresponding warning is useless. TN:
@@ -31,14 +31,6 @@ with GNATCOLL.Strings; use GNATCOLL.Strings; with Langkit_Support.Images; -pragma Warnings (Off, "attribute Update"); --- Attribute update is obsolescent in Ada 2022, but we don't yet want to use --- delta aggregates because they won't be supported on old compilers, so just --- silence the warning. -...
Add `**kwargs` to `optimize_acqf_mixed` and `optimize_acqf_discrete` Summary: Add `**kwargs` to `optimize_acqf_mixed` and `optimize_acqf_discrete` to avoid errors when `Acquisition` passes default arguments
@@ -417,6 +417,7 @@ def optimize_acqf_mixed( equality_constraints: Optional[List[Tuple[Tensor, Tensor, float]]] = None, post_processing_func: Optional[Callable[[Tensor], Tensor]] = None, batch_initial_conditions: Optional[Tensor] = None, + **kwargs: Any, ) -> Tuple[Tensor, Tensor]: r"""Optimize over a list of fixed_fea...
Correct background tasks documentation run_in_exector is available on the loop, not the asyncio module.
@@ -29,7 +29,7 @@ a separate thread via the ``run_in_executor`` function. asyncio.ensure_future(io_background_task()) # Runs on another thread - asyncio.run_in_executor(None, cpu_background_task()) + asyncio.get_running_loop().run_in_executor(None, cpu_background_task()) return 'Success' These background tasks will not...
Bump required python version. Also improved error description
@@ -3,8 +3,8 @@ The synapse distributed key-value hypergraph analysis framework. ''' import sys -if (sys.version_info.major, sys.version_info.minor) < (3, 6): # pragma: no cover - raise Exception('synapse is not supported on Python versions < 3.6') +if (sys.version_info.major, sys.version_info.minor) < (3, 7): # pragma...
Support coercing pandas Series into numpy arrays TODO: add support for datetime arrays in validation and in widget serialization
@@ -8,6 +8,7 @@ import io from copy import deepcopy import numpy as np +import pandas as pd import re # Utility functions @@ -19,6 +20,7 @@ def copy_to_contiguous_readonly_numpy_array(v, dtype=None, force_numeric=False): # If dtype was not specified then it will be passed to the numpy array constructor as None and the ...
Fix Now Chromevox can read close button for x icon after uploading a picture Update edit-profile-picture-modal.component.html
<div *ngIf="uploadedImage"> <span>{{ 'I18N_PREFERENCES_PROFILE_PICTURE_DRAG' | translate }}</span> <div class="oppia-profile-picture-crop-area e2e-test-photo-crop"> - <button class="btn btn-secondary oppia-profile-picture-reset-button" (click)="reset()"> + <button class="btn btn-secondary oppia-profile-picture-reset-bu...
settings_display: Refactor settings_display. This commit refactors settings_display in order to make code more precise and clear.
@@ -45,10 +45,9 @@ exports.set_up = function () { e.stopPropagation(); overlays.close_modal('default_language_modal'); - var data = {}; var $link = $(e.target).closest("a[data-code]"); var setting_value = $link.attr('data-code'); - data.default_language = JSON.stringify(setting_value); + var data = {default_language: J...
Update mkvtomp4.py fix error if swl is none
@@ -795,6 +795,7 @@ class MkvtoMp4: else: self.log.debug("Ignoring %s external subtitle stream due to language %s." % (fname, lang)) self.log.info("Scanned for external subtitles and found %d results in your approved languages." % (len(valid_external_subs))) + if swl: valid_external_subs.sort(key=lambda x: swl.index(x....
better handling of data It should take task from instance anatomyData, then from context and handle non dict items.
@@ -112,7 +112,13 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin): if review_path: fill_pairs.append(("review_filepath", review_path)) - task_data = fill_data.get("task") + task_data = ( + copy.deepcopy(instance.data.get("anatomyData", [])).get("task") + or fill_data.get("task") + ) + if not isinstance(task_data...
Update docs with clean Summary: Add tip about cleaning if installing ninja after a build. Pull Request resolved:
@@ -182,6 +182,8 @@ information for the code in `torch/csrc`. More information at: Python `setuptools` is pretty dumb, and always rebuilds every C file in a project. If you install the ninja build system with `pip install ninja`, then PyTorch will use it to track dependencies correctly. +If pytorch was already built, y...
aclnet.md -- add fullstop Add a fullstop after the license statement.
@@ -65,4 +65,4 @@ Sound classifier according to DES-53 classes, name - `203`, shape - `1,53`, outp ## Legal Information -The original model is distributed under [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.html) +The original model is distributed under [Apache License, Version 2.0](https://...