message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Remove easy-thumbnail dependency following refactor
See | @@ -305,9 +305,6 @@ dockerflow==2022.1.0 \
drf-nested-routers==0.93.4 \
--hash=sha256:996b77f3f4dfaf64569e7b8f04e3919945f90f95366838ca5b8bed9dd709d6c5 \
--hash=sha256:01aa556b8c08608bb74fb34f6ca065a5183f2cda4dc0478192cc17a2581d71b0
-easy-thumbnails==2.8.1 \
- --hash=sha256:5f59f722508469d482d8d76b99c7b9e6c1abbce19aefd5... |
Update Pennsylvania.md
typos | @@ -123,7 +123,7 @@ id: pa-philadelphia-5
Police shove a group of protestors. A particularly aggressive police officer in a white shirt runs and shoves someone, then grabs another man. He is then approached by a young man with long hair whom he strikes with his baton, at full strength, in the head before jumping on him... |
fix: Fix export customisation
convert `sync_on_migrate` and `with_permissions` from string to Int | @@ -8,6 +8,7 @@ from __future__ import unicode_literals, print_function
import frappe, os, json
import frappe.utils
from frappe import _
+from frappe.utils import cint
def export_module_json(doc, is_standard, module):
"""Make a folder for the given doc and add its json file (make it a standard
@@ -39,11 +40,15 @@ def g... |
Removed removal from app:select:menus
This was causing clearing the selections when the user changes pages. | @@ -152,7 +152,6 @@ hqDefine("cloudcare/js/formplayer/menus/api", function () {
FormplayerFrontend.getChannel().reply("app:select:menus", function (options) {
if (sessionStorage.selectedValues !== undefined) {
options.selectedValues = sessionStorage.selectedValues.split(',');
- sessionStorage.removeItem('selectedValues... |
Avoid calling tensor.data.set_() in DDP
Summary: Pull Request resolved: | @@ -245,12 +245,8 @@ class DistributedDataParallel(Module):
else:
self._module_copies = [self.module]
- self.modules_params_data = [[] for _ in range(len(self.device_ids))]
- self.modules_buffers_data = [[] for _ in range(len(self.device_ids))]
-
- for dev_idx, module in enumerate(self._module_copies):
- self.modules_p... |
Fix typo (Feature*s*Dict)
was FeatureDict, should be FeaturesDict | @@ -105,7 +105,7 @@ class MyDataset(tfds.core.GeneratorBasedBuilder):
"""Dataset metadata (homepage, citation,...)."""
return tfds.core.DatasetInfo(
builder=self,
- features=tfds.features.FeatureDict({
+ features=tfds.features.FeaturesDict({
'image': tfds.features.Image(shape=(256, 256, 3)),
'label': tfds.features.Clas... |
remove volume term in Src
This makes sensitivity function smooth (need to double check why .. ) | @@ -23,7 +23,7 @@ class StreamingCurrents(Src.BaseSrc):
raise Exception("SP source requires mesh")
self.mesh.setCellGradBC("neumann")
# self.Div = -sdiag(self.mesh.vol)*self.mesh.cellGrad.T
- self.Div = -sdiag(self.mesh.vol)*self.mesh.cellGrad.T
+ self.Div = -self.mesh.cellGrad.T
def eval(self, prob):
"""
@@ -40,11 +40... |
Export with Always Sample Animations by default
Export more reliably correct animation playback for skinned meshes | @@ -247,7 +247,7 @@ class ExportGLTF2_Base:
export_force_sampling = BoolProperty(
name='Always Sample Animations',
description='Apply sampling to all animations',
- default=False
+ default=True
)
export_nla_strips = BoolProperty(
|
change "The NumPy community" to "NumPy Developers"
change "community" to "Developers" based on | @@ -108,7 +108,7 @@ class PyTypeObject(ctypes.Structure):
# General substitutions.
project = 'NumPy'
-copyright = '2008-2022, The NumPy community'
+copyright = '2008-2022, NumPy Developers'
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
|
fix: failing tutorial translations should be ignored
Exclude only the names, instead of full paths. This means it will
effectively exclude translated titles too. | @@ -29,7 +29,7 @@ translated_notebooks = [
# Exclude all translated basic tutorials that are also
# excluded in their original version.
excluded_translated_notebooks = [
- nb for part in ["10", "13b", "13c"] for nb in translated_notebooks if part in nb
+ Path(nb).name for part in ["10", "13b", "13c"] for nb in translat... |
[cleanup] Desupport Page.getVersionHistory() method
getVersionHistory has multiple breaking changes against compat
and is deprecated for 5 years. Throw a FutureWarning and announce
their removal.
Also desupport Revision.hist_entry method and Revision.HistEntry
class attribute which are only used for getVersionHistory. | @@ -1770,7 +1770,7 @@ class BasePage(UnicodeMixin, ComparableMixin):
# (revid, timestamp, user, comment, size, tags)
#
# timestamp is a pywikibot.Timestamp, not a MediaWiki timestamp string
- @deprecated('Page.revisions()', since='20150206')
+ @deprecated('Page.revisions()', since='20150206', future_warning=True)
@depr... |
ebuild.domain: _make_keywords_filter(): force usage of immutable type for default keys
To fix unhashable warning. | @@ -451,7 +451,7 @@ class domain(config_domain):
"""Generates a restrict that matches iff the keywords are allowed."""
if not accept_keywords and not self.profile.keywords:
return packages.PackageRestriction(
- "keywords", values.ContainmentMatch2(default_keys))
+ "keywords", values.ContainmentMatch2(frozenset(default_... |
Type-annotate resolve_composes result
To avoid confusion about the plugin result in the future, give it a
TypedDict annotation.
Note that this will not actually catch incorrect usage of the plugin
result, because the type info gets lost when saving the result in
workflow.data.plugin_results. It is mainly for "documenta... | @@ -8,6 +8,7 @@ of the BSD license. See the LICENSE file for details.
from collections import defaultdict
from copy import deepcopy
from datetime import datetime, timedelta
+from typing import TypedDict, List, Dict, Any, Optional
from osbs.repo_utils import ModuleSpec
@@ -28,6 +29,14 @@ UNPUBLISHED_REPOS = 'include_unp... |
Fix Travis-CI build button on GitHub
Fix build button status and link, which were broken after migration from travis-ci.org to travis-ci.com | @@ -223,10 +223,10 @@ Contributing
TODO
-.. |build-status| image:: https://travis-ci.org/pyccel/pyccel.svg?branch=master
+.. |build-status| image:: https://travis-ci.com/pyccel/pyccel.svg?branch=master
:alt: build status
:scale: 100%
- :target: https://travis-ci.org/pyccel/pyccel
+ :target: https://travis-ci.com/pyccel... |
[IMPR] parse global args before local args
detached from | @@ -446,11 +446,13 @@ def main(*args):
recentchanges = False
newpages = False
repeat = False
- gen_factory = pagegenerators.GeneratorFactory()
options = {}
# Parse command line arguments
- for arg in pywikibot.handle_args(args):
+ local_args = pywikibot.handle_args(args)
+ site = pywikibot.Site()
+ gen_factory = pagege... |
Update validation.rst
Making a wrong thing right. | @@ -88,7 +88,7 @@ This is especially powerful when combined with great_expectations's command line
.. code-block:: bash
- $ validate tests/examples/titanic.csv \
+ $ great_expectations validate tests/examples/titanic.csv \
tests/examples/titanic_expectations.json
{
"results" : [
|
refactor(routing): caches: change function definition order
This patch groups all caching functions together to make the code more
readable. | @@ -118,30 +118,33 @@ class Router:
)
# caches ##################################################################
+ # name
def resize_name_cache(self, max_size):
self._name_lru_cache = lru_cache(max_size)(self._get_route)
- def resize_resolve_cache(self, max_size):
- self._resolve_lru_cache = lru_cache(max_size)(self._... |
STY: fake operating system
Changed the fake operating system to something more interesting. | @@ -26,7 +26,7 @@ your test configuration
- Test B
**Test Configuration**:
-* Operating system: iOs
+* Operating system: Hal
* Version number: Python 3.X
* Any details about your local setup that are relevant
|
Fix typo
This commit fixes typo. | @@ -107,4 +107,4 @@ we use:
We have made this [dataset available along with the original raw data](https://github.com/allenai/genia-dependency-trees).
* **[word2vec word vectors](http://bio.nlplab.org/#word-vectors)** trained on the Pubmed Central Open Access Subset.
* **[The MedMentions Entity Linking dataset](https:/... |
BUG: Fix `_resolve_dtypes_and_context` refcounting error returns
Reusing `result` doesn't work with a single "finish" goto, since
result must be NULL on error then.
This copies the result over for continuation, which is maybe also a bit
awkward, but at least not buggy... | @@ -6370,6 +6370,7 @@ py_resolve_dtypes_generic(PyUFuncObject *ufunc, npy_bool return_context,
* state (or mind us messing with it).
*/
PyObject *result = NULL;
+ PyObject *result_dtype_tuple = NULL;
PyArrayObject *dummy_arrays[NPY_MAXARGS] = {NULL};
PyArray_DTypeMeta *DTypes[NPY_MAXARGS] = {NULL};
@@ -6527,6 +6528,9 @... |
Drop dead code in dup_root_upper_bound()
Should be removed in | @@ -82,9 +82,6 @@ def dup_root_upper_bound(f, K):
q = t[j] + a - K.log(f[j], 2)
QL.append([q // (j - i), j])
- if not QL:
- continue
-
q = min(QL)
t[q[1]] = t[q[1]] + 1
|
Update setup.py
Remove py2 references and add pycryptodome as a deps.
fixes | @@ -8,15 +8,10 @@ import svtplay_dl
deps = []
-if sys.version_info[0] == 2 and sys.version_info[1] <= 7 and sys.version_info[2] < 9:
+
deps.append("requests>=2.0.0")
deps.append("PySocks")
- deps.append("pyOpenSSL")
- deps.append("ndg-httpsclient")
- deps.append("pyasn1")
-else:
- deps.append(["requests>=2.0.0"])
- dep... |
Fixing typos in Coremltools specification website
radar: rdar://problem/53137702 | @@ -188,7 +188,7 @@ message ModelDescription {
*
* 3 : iOS 12, macOS 10.14, tvOS 12, watchOS 5 (Core ML 2)
* - Flexible shapes and image sizes
- * - Categorical squences
+ * - Categorical sequences
* - Core ML Vision Feature Print, Text Classifier, Word Tagger
* - Non Max Suppression
* - Crop and Resize Bilinear NN lay... |
css: Use more consistent visuals for edit bot form.
* Use more consistent font style, both within the form and with the
rest of the app.
* Use more consistent spacing.
Fixed | @@ -818,17 +818,19 @@ input[type="checkbox"] {
}
}
+.edit-bot-name {
+ margin-bottom: 20px;
+}
+
+.avatar-section {
+ margin-bottom: 20px;
+}
+
.edit_bot_form {
font-size: 100%;
margin: 0;
padding: 0;
- label {
- font-weight: 600;
- color: hsl(0, 0%, 67%);
- margin-top: 5px;
- }
-
.buttons {
margin: 10px 0 5px;
}
@@ -8... |
CHANGES.md doc of dagster_spark and dagster_aws updates
Test Plan: none
Reviewers: nate | **Breaking Changes**
-- `Path` is no longer as built-in dagster type.
+- `Path` is no longer a built-in dagster type.
- The CLI option `--celery-base-priority` is no longer available for the command:
`dagster pipeline backfill`. Use the tags option to specify the celery priority, (e.g.
`dagster pipeline backfill my_pip... |
Explicitly pass through environ to test run commands
Needed in this case to ensure that COLUMNS is provided in cases where
it's defined in the newly created shell. | @@ -898,6 +898,7 @@ def _run(cmd, quiet=False, ignore=None, timeout=60, cut=None):
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
preexec_fn=os.setsid,
+ env=os.environ,
)
with _kill_after(p, timeout):
out, err = p.communicate()
|
Normalization derivative should be real (not a bug, but just to clean
up) | @@ -541,7 +541,7 @@ def optimize_orthogonal(
normalization = np.zeros(nwf - 1)
total_energy = 0
#energy_derivative = np.zeros(len(parameters))
- N_derivative = np.zeros(len(parameters), dtype=dtype)
+ N_derivative = np.zeros(len(parameters))
condition = np.zeros((len(parameters), len(parameters)))
overlaps = np.zeros(n... |
Transfers: set 1.27 compatibility attribute on request
Otherwise the 1.27 submitters can pick the intermediate transfer
and start working on it. | @@ -391,6 +391,11 @@ def __create_missing_replicas_and_requests(
logger(logging.ERROR, '%s: Problem adding replicas on %s : %s', initial_request_id, rws.dest_rse, str(error))
rws.attributes['is_intermediate_hop'] = True
+ # next_hop_request_id and initial_request_id are not used anymore in rucio >=1.28, but are needed
... |
Workaround for variables binding on xs:assert statement
- A fix on variables of static context will be needed for the
next minor release of elementpath | @@ -62,6 +62,7 @@ class XsdAssert(XsdComponent, ElementPathMixin):
return self.token is not None and (self.base_type.parent is None or self.base_type.built)
def parse_xpath_test(self):
+ # FIXME: parser's variables filled with XSD type with next elementpath minor release
if not self.base_type.has_simple_content():
vari... |
Allow Mapping in the typing for response values
Whilst strictly only `dict`s are valid, Mapping is typically used to
mean the same and helps mypy understand that things like TypedDicts
are valid response values. | @@ -14,6 +14,7 @@ from typing import (
Dict,
Generator,
List,
+ Mapping,
Optional,
Tuple,
Type,
@@ -49,7 +50,7 @@ ResponseValue = Union[
"Response",
"WerkzeugResponse",
AnyStr,
- Dict[str, Any], # any jsonify-able dict
+ Mapping[str, Any], # any jsonify-able dict
List[Any], # any jsonify-able list
AsyncGenerator[AnyStr... |
Avoid strict aliasing warning in float/half conversions.
Verified that at least for GCC 4.47 this generates identical code. | @@ -77,15 +77,17 @@ float TH_half2float(THHalf h)
}
int temp = ((sign << 31) | (exponent << 23) | mantissa);
-
- return *((float*)((void*)&temp));
+ float x;
+ memcpy(&x,&temp,sizeof(float));
+ return x;
}
THHalf TH_float2half(float f)
{
THHalf ret;
- unsigned x = *((int*)(void*)(&f));
+ unsigned x;
+ memcpy(&x,&f,size... |
Update pua.txt
Minus dups. | @@ -1825,6 +1825,11 @@ non-block.net/wpad.dat
nonblock.net/wpad.dat
nonblocks.com/wpad.dat
none-stop.net/wpad.dat
+no-stop.net/wpad.dat
+notblocked.net/wpad.dat
+no-blocked.com/wpad.dat
+nonblock.net/wpad.dat
+none-stop.net/wpad.dat
noneblock.com/wpad.dat
nostopped.net/wpad.dat
stoppblock.biz/wpad.dat
@@ -1845,16 +1850... |
Prevent ST from locking up when a server doesn't respond to an initialize request
We wait for at most 3 seconds for a server to respond to an initialize request. | @@ -4,16 +4,20 @@ from .transports import start_tcp_transport, start_tcp_listener, TCPTransport, T
from .rpc import Client, attach_stdio_client, Response
from .process import start_server
from .logging import debug
+from contextlib import contextmanager
import os
import threading
from .protocol import completion_item_k... |
examples/pup/hubs/hub_primehub: fix button
Corrected Bluetooth button name (from BT to BLUETOOTH) | @@ -23,7 +23,7 @@ if Button.LEFT in pressed:
hub.display.image(Icon.ARROW_LEFT_DOWN)
elif Button.RIGHT in pressed:
hub.display.image(Icon.ARROW_RIGHT_DOWN)
-elif Button.BT in pressed:
+elif Button.BLUETOOTH in pressed:
hub.display.image(Icon.ARROW_RIGHT_UP)
wait(3000)
|
Update magentocore.txt
More domains from mentioned ```124.156.210.169``` | @@ -965,16 +965,30 @@ vamberlo.com
# Reference: https://www.rapidspike.com/blog/multiple-hacking-groups-attempt-to-skim-credit-cards-from-perricone-md/
# Reference: https://twitter.com/BreachMessenger/status/1057394505266151425
+# Reference: https://www.virustotal.com/gui/ip-address/124.156.210.169/relations
+a4c.cloud... |
Record queries for helpful failure msg in bounds test
This will let us actually see what extra queries are being
executed.
Related-Bug: | @@ -6536,10 +6536,10 @@ class DbOperationBoundMixin(object):
def setUp(self, *args, **kwargs):
super(DbOperationBoundMixin, self).setUp(*args, **kwargs)
- self._db_execute_count = 0
+ self._recorded_statements = []
- def _event_incrementer(*args, **kwargs):
- self._db_execute_count += 1
+ def _event_incrementer(conn, c... |
Add note about escape_markdown in Message.clean_content
Fix | @@ -406,6 +406,12 @@ class Message:
This will also transform @everyone and @here mentions into
non-mentions.
+
+ .. note::
+
+ This *does not* escape markdown. If you want to escape
+ markdown then use :func:`utils.escape_markdown` along
+ with this function.
"""
transformations = {
|
Updates QubitProcessorSpec serialization to be more backward compatible.
Allows loading (from json) older-version processor specs that don't have
SPAM & instrument members and adds a warning to update and resave them. | @@ -13,8 +13,10 @@ Defines the QubitProcessorSpec class and supporting functionality.
import numpy as _np
import itertools as _itertools
import collections as _collections
+import warnings as _warnings
from functools import lru_cache
+
from pygsti.tools import internalgates as _itgs
from pygsti.tools import symplectic ... |
Removed some unneeded skips for real FS after fix
documented the remaining issues
see | @@ -401,7 +401,7 @@ class FakeCopyFileTest(RealFsTestCase):
def testRaisesIfDestDirIsNotWritableUnderPosix(self):
self.checkPosixOnly()
- self.skipRealFsFailure(skipPython3=False)
+ self.skipRealFsFailure(skipLinux=False, skipPython3=False)
src_file = self.makePath('xyzzy')
dst_dir = self.makePath('tmp', 'foo')
dst_fil... |
Change bootstrap theme to lumen
This changes the bootstrap theme to lumen and the navbar style. | @@ -158,7 +158,7 @@ html_theme_options = {
"globaltoc_includehidden": "true",
# HTML navbar class (Default: "navbar") to attach to <div> element.
# For black navbar, do "navbar navbar-inverse"
- "navbar_class": "navbar navbar-inverse",
+ "navbar_class": "navbar",
# Fix navigation bar to top of page?
# Values: "true" (d... |
Remove unnecessary Worker param
* Remove unnecessary Worker param
when in test, it will throw warning log. like following
[2021-02-02 18:02:49,547] [WARNING] [args.py:239:parse_worker_args] Unknown arguments: ['--worker_id', '0']
* Update worker_ps_interaction_test.py | @@ -71,8 +71,6 @@ class WorkerPSInteractionTest(unittest.TestCase):
tf.keras.backend.clear_session()
tf.random.set_seed(22)
arguments = [
- "--worker_id",
- i,
"--job_type",
elasticai_api_pb2.TRAINING,
"--minibatch_size",
@@ -156,8 +154,6 @@ class WorkerPSInteractionTest(unittest.TestCase):
model_def = "mnist.mnist_fun... |
Typo and grammar corrections
Two minor edits:
* Corrected a typo: <``text_align`` value of ``center``> -> <``alignment`` value of ``center``>
* Changed all instances of <a ``alignment``> to <an ``alignment``> | @@ -356,14 +356,14 @@ specifying the allocated width and allocated height.
The extra height for a child is defined as the difference between the
parent elements final height and the child's full height.
- If the parent element has a ``alignment`` value of ``top``, the
+ If the parent element has an ``alignment`` value ... |
Add sys.breakpointhook() and sys.__breakpointhook__
Closes | @@ -188,6 +188,10 @@ def intern(string: str) -> str: ...
if sys.version_info >= (3, 5):
def is_finalizing() -> bool: ...
+if sys.version_info >= (3, 7):
+ __breakpointhook__: Any # contains the original value of breakpointhook
+ def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...
+
def setcheckinterval(interval: ... |
added a `clean` argument to piccolo migrations backwards
It will remove the migration files after the backwards migration completes. | from __future__ import annotations
+import os
import sys
from piccolo.apps.migrations.auto import MigrationManager
@@ -9,11 +10,16 @@ from piccolo.utils.sync import run_sync
class BackwardsMigrationManager(BaseMigrationManager):
def __init__(
- self, app_name: str, migration_id: str, auto_agree: bool = False
+ self,
+ ... |
Update mppcommand.py
encode self.response | @@ -70,7 +70,7 @@ class mppCommand(object):
def __str__(self):
# TODO: fix so print(class) provides the the decription and help etc??
- result = "{}\n{}\n{}\n{}\n{}".format(self.name, self.description, self.help, self.response.encode('utf-8'), self.response_dict)
+ result = "{}\n{}\n{}\n{}\n{}".format(self.name, self.d... |
Save distributions in class
Distributions are needed for estimation of higher statistical moments | @@ -15,7 +15,7 @@ class PolynomialBasis(metaclass=NoPublicConstructor):
def __init__(self, inputs_number: int,
polynomials_number,
multi_index_set,
- polynomials):
+ polynomials, distributions):
"""
Create polynomial basis for a given multi index set.
"""
@@ -23,6 +23,7 @@ class PolynomialBasis(metaclass=NoPublicConstr... |
Don't show full path in tests
Now that path display is coupled to hierarchical ordering, these tests
were breaking. The simplest fix is to keep the name ordering by turning
off show_full_path. | @@ -126,7 +126,7 @@ class LocationChoiceProviderTest(ChoiceProviderTestMixin, LocationHierarchyTestC
choice_tuples = [
(location.name, SearchableChoice(
location.location_id,
- location.get_path_display(),
+ location.display_name,
searchable_text=[location.site_code, location.name]
))
for location in six.itervalues(cls... |
[fix]: updated the sql output
Github Issue: | CASE WHEN last_referral_date BETWEEN %(start_date)s AND %(end_date)s
THEN 1 ELSE 0 END
) as cases_person_referred
- FROM "ucr_icds-cas_static-person_cases_v3_2ae0879a" ucr INNER JOIN
+ FROM "ucr_icds-cas_static-person_cases_v3_2ae0879a" ucr LEFT JOIN
"icds_dashboard_migration_forms" agg_migration ON (
ucr.doc_id = agg_... |
ignore examples for now
hopefully will get fixed once is merged | @@ -74,7 +74,7 @@ templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
-exclude_patterns = ["_build"]
+exclude_patterns = ["_build", "examples"]
# Ig... |
Update virustotal_apiv3.py
add subject of rule in tags | import logging
import re
-import json
from datetime import timedelta, datetime
from core import Feed
@@ -60,7 +59,7 @@ class VirusTotalPriv(Feed):
sha256 = Hash.get_or_create(value=sha2)
f_vt3.active_link_to(sha256, "sha256", self.name)
tags.append(tags2)
-
+ tags.append(subject)
context["date_added"] = date_string
con... |
Hotfix: Stroke color of inkscape colored nodes not kept
Fixes | @@ -794,8 +794,9 @@ class TexTextElement(inkex.Group):
def import_group_color_style(self, src_svg_ele):
"""
- Extracts the color relevant style attributes of src_svg_ele (of class SVGElement) and applies them to all items
- of self._node. Ensures that non color relevant style attributes are not overwritten.
+ Extracts ... |
Add region when creating a new version of an osfstorage file
Also add __unicode__ method to make it easier to identify regions in the shell | @@ -291,8 +291,9 @@ class OsfStorageFile(OsfStorageFileNode, File):
return latest_version
if metadata:
- version.update_metadata(metadata)
+ version.update_metadata(metadata, save=False)
+ version.region = self.target.osfstorage_region
version._find_matching_archive(save=False)
version.save()
@@ -449,6 +450,9 @@ class ... |
fix_segment_redundancy.py edited online with Bitbucket
HG--
branch : pnpwin/fix_segment_redundancypy-edited-online-w-1493278995873 | @@ -15,7 +15,7 @@ from noc.sa.models.managedobject import ManagedObject
def fix():
uplinks = dict(
- (d["_id"], d["uplinks"])
+ (d["_id"], d.get("uplinks", []))
for d in ObjectData._get_collection().find()
)
seg_status = defaultdict(lambda: False)
|
Swaps CSS loading order in init_notebook_mode(...).
Now pygsti_dataviz.css is loaded *after* jQuery's "smoothness" theme
CSS so that the former can override behavior (such as fixed-length
dropdown boxes) in the latter. | @@ -382,13 +382,13 @@ class Workspace(object):
script += _merge.insert_resource(connected, None, "pygsti_plotly_ex.js")
script += "<script type='text/javascript'> window.plotman = new PlotManager(); </script>"
- # Load style sheets for displaying tables
- script += _merge.insert_resource(connected, None, "pygsti_datavi... |
set boundary groups of demo mesh with withgroups
The demo mesh overrides the `boundary` attribute of the `UnstructuredTopology`
instance, essentially to set groups. Use `withgroups(boundary=...)` instead.
This is necessary for the pending change to make topologies immutable. | @@ -373,8 +373,7 @@ def demo(xmin=0, xmax=1, ymin=0, ymax=1):
topo = topology.UnstructuredTopology(2, elems)
belems = [elem.edge(0) for elem in elems[:12]]
- btopos = [topology.UnstructuredTopology(1, subbelems) for subbelems in (belems[0:3], belems[3:6], belems[6:9], belems[9:12])]
- topo.boundary = topology.UnionTopo... |
Replace deprecated 'nocapitalize' in interwiki.py
While processing pages in Wiktionaries, when langlinks differed
from page title only in capitalization, a DeprecationWarning was
issued regarding the use of obsolete property BaseSite.nocapitalize. | @@ -1125,8 +1125,8 @@ class Subject(interwiki_graph.Subject):
% (page, self.originPage))
return True
elif (page.title() != self.originPage.title() and
- self.originPage.site.nocapitalize and
- page.site.nocapitalize):
+ self.originPage.namespace().case == 'case-sensitive' and
+ page.namespace().case == 'case-sensitive'... |
Add browserstack logo
Closes | @@ -68,7 +68,8 @@ This will give a shell, at which you can start Django, specifying the ``0.0.0.0`
python manage.py runserver_plus 0.0.0.0:8000 --settings=openprescribing.settings.local
-The application should then be accessible at ``http://localhost:8000/`` from a web-browser on the host computer.
+The application sho... |
Documentation: clarify the state of multiple context managers
Clarify that the backslash & paren-wrapping formatting for multiple
context managers aren't yet implemented. | @@ -19,7 +19,7 @@ with make_context_manager1() as cm1, make_context_manager2() as cm2, make_contex
... # nothing to split on - line too long
```
-So _Black_ will eventually format it like this:
+So _Black_ will, when we implement this, format it like this:
```py3
with \
@@ -31,8 +31,8 @@ with \
... # backslashes and an... |
delete validation error cluster
story:
task: 42465 | @@ -127,9 +127,8 @@ def clusters_update(cluster_id, data):
def clusters_delete(cluster_id):
data = u.request_data()
force = data.get('force', False)
- stack_name = api.get_cluster(cluster_id).get(
- 'extra', {}).get(
- 'heat_stack_name', None)
+ extra = api.get_cluster(cluster_id).get('extra', {})
+ stack_name = extra.... |
Update url for the "Linehaul project" repository
The old one was archived and replaced with this one. | @@ -10,7 +10,7 @@ Download Statistics Table
The download statistics table allows you learn more about downloads patterns of
packages hosted on PyPI. This table is populated through the `Linehaul
-project <https://github.com/pypa/linehaul>`_ by streaming download logs from PyPI
+project <https://github.com/pypa/linehaul... |
Update black and jupyterbook version in pre-commit
* update black and jupyterbook version in pre-commit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see | @@ -24,7 +24,7 @@ repos:
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
- rev: 21.12b0
+ rev: 22.3.0
hooks:
- id: black
@@ -34,7 +34,7 @@ repos:
- id: flake8
- repo: https://github.com/executablebooks/jupyter-book
- rev: v0.12.1
+ rev: v0.12.3
hooks:
- id: jb-to-sphinx
args: ["docs/... |
Language settings not saved after session end
Fixes | @@ -607,6 +607,8 @@ if type(EXTRA_URL_SCHEMES) not in [list]: # pragma: no cover
# Internationalization
# https://docs.djangoproject.com/en/dev/topics/i18n/
LANGUAGE_CODE = get_setting('INVENTREE_LANGUAGE', 'language', 'en-us')
+# Store language settings for 30 days
+LANGUAGE_COOKIE_AGE = 2592000
# If a new language tr... |
fix serialization problem
thanks and for the .tolist() suggestion | @@ -122,16 +122,16 @@ def _fid_json(raw, unit, orient, manufacturer, fname):
FIFF.FIFFV_POINT_CARDINAL}
if fids:
if FIFF.FIFFV_POINT_NASION in fids:
- coords['NAS'] = list(fids[FIFF.FIFFV_POINT_NASION]['r'])
+ coords['NAS'] = fids[FIFF.FIFFV_POINT_NASION]['r'].tolist()
if FIFF.FIFFV_POINT_LPA in fids:
- coords['LPA'] =... |
Correct the StackUnderflowException
StackUnderflowException was being raised even though there were enough elements in the stack. | @@ -394,7 +394,7 @@ class MachineState:
def pop(self, amount=1) -> Union[BitVec, List[BitVec]]:
""" Pops amount elements from the stack"""
- if amount >= len(self.stack):
+ if amount > len(self.stack):
raise StackUnderflowException
values = self.stack[-amount:][::-1]
del self.stack[-amount:]
|
add extra info to report subcommand log
This commit also slightly restructures the call to write
tabular output | @@ -481,41 +481,50 @@ def subcmd_report(args, logger):
formats = list(set(formats)) # remove duplicates
logger.info("Creating output in formats: %s", formats)
+ # Declare which database is being used
+ logger.info("Using database: %s", args.dbpath)
+
# Report runs in the database
if args.show_runs:
+ outfname = os.path... |
Fix workstation __str__
Closes | @@ -90,7 +90,8 @@ class Workstation(UUIDModel, TitleSlugDescriptionModel):
)
def __str__(self):
- return f"Workstation {self.title}" + " (Public)" if self.public else ""
+ public = " (Public)" if self.public else ""
+ return f"Workstation {self.title}{public}"
def get_absolute_url(self):
return reverse("workstations:de... |
Update info.json
`[p]cleverbot` -> `[p]cleverbotset`
include `[p]cleverbotset ioapikey` | "description" : "Allows for interaction with cleverbot.com through mention/command",
"disabled" : false,
"hidden" : false,
- "install_msg" : "Needs to be setup with an API key first. See `[p]cleverbot apikey`\n[p]cleverbot <text>` to talk with cleverbot.\n`@Mention <text>` works too.\n`[p]cleverbot toggle` disables rep... |
ci: Run zulip backend test suite for Debian bullseye.
This also verifies the Zulip codebase's Python 3.9 support. | @@ -34,6 +34,15 @@ jobs:
is_focal: true
include_frontend_tests: false
+ # This docker image was created by a generated Dockerfile at:
+ # tools/ci/images/focal/Dockerfile
+ # Bullseye ships with Python 3.9.2.
+ - docker_image: zulip/ci:bullseye
+ name: Debian 11 Bullseye (Python 3.9, backend)
+ os: bullseye
+ is_bullse... |
[cli] added `revs` and `restore` commands
see
see | @@ -409,7 +409,7 @@ def excluded():
"""View and manage excluded folders."""
-@main.group(cls=SpecialHelpOrder, help_priority=17)
+@main.group(cls=SpecialHelpOrder, help_priority=18)
def notify():
"""Manage Desktop notifications."""
@@ -896,6 +896,48 @@ def rebuild_index(config_name: str):
@main.command(help_priority=16... |
TFM Package: Update to TFM pacakage URL
TFM package for LPC55S69 got first relase. | "site": [
{
"version": "v1.0-beta",
- "URL": "https://github.com/RT-Thread-packages/trusted-firmware-m/archive/lpc-v1.0.zip",
+ "URL": "https://github.com/RT-Thread-packages/trusted-firmware-m/archive/v1.0-beta.zip",
"filename": "trusted-firmware-m-1.0-beta.zip"
},
{
|
[easy] make dagster-example-tmpl pass isort out of the box
Summary: As title
Test Plan:
create example, run make isort, no changes
Reviewers: max, prha, sashank, nate | -from ..repo import my_pipeline
-
from dagster import execute_pipeline
+from ..repo import my_pipeline
+
def test_{{EXAMPLE_NAME}}():
assert execute_pipeline(my_pipeline).success
|
backward compatibility for old scope["surt"]
and make sure to store ssurt as string in rethinkdb | @@ -183,14 +183,24 @@ class Site(doublethink.Document, ElapsedMixIn):
self.last_claimed = brozzler.EPOCH_UTC
if not "scope" in self:
self.scope = {}
+
+ # backward compatibility
+ if "surt" in self.scope:
+ if not "accepts" in self.scope:
+ self.scope["accepts"] = []
+ self.scope["accepts"].append({"surt": self.scope["... |
Update noaa-gefs.yaml
Updating to include SNS Topic. | @@ -20,6 +20,10 @@ Resources:
ARN: arn:aws:s3:::noaa-gefs-pds
Region: us-east-1
Type: S3 Bucket
+ - Description: New data notifications for GFS, only Lambda and SQS protocols allowed
+ ARN: arn:aws:sns:us-east-1:123901341784:NewGEFSObject
+ Region: us-east-1
+ Type: SNS Topic
DataAtWork:
Tutorials:
Tools & Applications... |
Correct python-requests link
Updated with correct link | @@ -54,7 +54,7 @@ Alternative, this envrionmental variable can be set via the `os` module in-line
return vault_client
-.. _documented in the advanced usage section for requests: http://docs.python-requests.org/en/master/user/advanced/
+.. _documented in the advanced usage section for requests: https://2.python-requests... |
Add documentation for expected scores.
Also add links from the `model` field to the objective and the expected scores fields. | @@ -13,7 +13,7 @@ An identifier for the experiment that will be used to name the report and all :r
model
"""""
-The machine learner you want to use to build the scoring model. Possible values include :ref:`built-in linear regression models <builtin_models>` as well as all of the regressors available via `SKLL <http://s... |
Remove duplicative mkdir_p
Summary: This function exists in dagster.utils
Test Plan: Buildkite
Reviewers: natekupp, alangenfeld | -import errno
-import os
-
import sqlalchemy
-def mkdir_p(newdir, mode=0o777):
- """The missing mkdir -p functionality in os."""
- try:
- os.makedirs(newdir, mode)
- except OSError as err:
- # Reraise the error unless it's about an already existing directory
- if err.errno != errno.EEXIST or not os.path.isdir(newdir):
... |
Update note on PoET SGX support to include 1.2
Also removed statement about PoET-SGX availability in Sawtooth 1.1. | @@ -4,9 +4,8 @@ Using Sawtooth with PoET-SGX
.. note::
- PoET-SGX is currently not compatible with Sawtooth 1.1. Users looking to
- leverage PoET-SGX should remain on Sawtooth 1.0. PoET-SGX is being upgraded
- to be made compatible with 1.1 and will be released before the end of 2018.
+ PoET-SGX is currently not compat... |
Fixed symbols.Symbol.suggest function: suggest only name without
qualifier | @@ -577,7 +577,7 @@ class Symbol(SymbolId):
def suggest(self):
""" Returns suggestion for this declaration """
- return ('{0}\t{1}'.format(self.scope_name(), self.module.name), self.scope_name())
+ return ('{0}\t{1}'.format(self.scope_name(), self.module.name), self.name)
def brief(self, _short=False):
""" Brief inform... |
Fix up Travis-CI AWS credentials
Store them in Travis environment variables instead of the .travis.yml
configuration file.
They'll be easier to maintain and rotate there. | @@ -91,9 +91,6 @@ deploy:
# For tags, the object will be datacube/datacube-1.4.2.tar.gz
# For develop, the object will be datacube/datacube-1.4.1+91.g43bd4e12.tar.gz
- provider: s3
- access_key_id: "AKIAJMZN4F5L5KXPQKVQ"
- secret_access_key:
- secure: owxrrQc4i1jfAwvASFewdMzNdi93zpwnoEhsTJQS/f3SkD083XpefUr4H7Mg8cZiq5gr... |
Capture exception as close as possible to error
To get the line number. | @@ -287,7 +287,13 @@ class StructuredValue(FieldDefinition):
self.filename,
self.line_num,
)
+
+ try:
value = evaluate_function(func, self.args, self.kwargs, context)
+ except DataGenError:
+ raise
+ except Exception as e:
+ raise DataGenError(str(e), self.filename, self.line_num)
return value
|
tools/run_on_bots: Enable giving a hash instead of script.
This allows you to specify an isolated hash instead of giving a script.
This makes it easier to test an existing uploaded test.
(Also fix description for extra arguments.) | @@ -15,10 +15,11 @@ __version__ = '0.2'
import json
import os
-import tempfile
import shutil
+import string
import subprocess
import sys
+import tempfile
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(
__file__.decode(sys.getfilesystemencoding()))))
@@ -114,6 +115,8 @@ def run_serial(
cmd.extend(('-d', k, v... |
Remove "test" flag from tox environment names.
Astropy uses this, but it isn't necessary. Bad things happen if you
forget the tag when running tests manually, so it is better to just not
have it. | @@ -24,27 +24,27 @@ jobs:
- name: Python 3.9 with minimal dependencies
os: ubuntu-latest
python: 3.9
- toxenv: py39-test
+ toxenv: py39
- name: Python 3.9 with full coverage
os: ubuntu-latest
python: 3.9
- toxenv: py39-test-cov
+ toxenv: py39-cov
- name: Python 3.6 with oldest supported version of all dependencies
os: ... |
Update phishing.txt
Generaziling by entire ```4-16.icu``` domain detection. | @@ -2618,8 +2618,9 @@ mail-nepalarmy-milnp-owa.herokuapp.com
ppporous.co.kr
# Reference: https://twitter.com/rpsanch/status/1123060265975787521
+# Reference: https://twitter.com/PhishingAi/status/1123192408739647488
-ziraatbank.tr.4-16.icu
+4-16.icu
# Reference: https://twitter.com/PhishingAi/status/1123050989651521536... |
Adds quotation marks to escape the codeversion. Without the quotations, the codeversion may be interpreted as a number, which can yield errors.
Updates the comments to reflect the usage of the variables. | var uniqueId = "{{ uniqueId }}"; // a unique string identifying the worker/task
var condition = {{ condition }}; // the condition number
var counterbalance = {{ counterbalance }}; // a number indexing counterbalancing conditions
- var codeversion = {{ codeversion }}; // a number indexing counterbalancing conditions
- v... |
Make RogersEnvironment a Source.
Proportion is now a property of the RogersEnvironment. | @@ -142,16 +142,34 @@ class RogersAgent(Agent):
return self.infos(type=LearningGene)[0]
-class RogersEnvironment(Environment):
+class RogersEnvironment(Source):
"""The Rogers environment."""
__mapper_args__ = {"polymorphic_identity": "rogers_environment"}
- def create_state(self, proportion):
- """Create an environment... |
FetchInfo.re_fetch_result has no reason to be public
And when using the API interactively, having it show up as public is
confusing. | @@ -208,7 +208,7 @@ class FetchInfo(object):
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
- re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
+ _re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]... |
update html [skip ci]
remove inline styling
remove legends
remove redundant container and row classes | {% initial_page_data 'appsProfiles' apps_profiles %}
{% registerurl 'toggle_release_restriction_by_app_profile' domain '---'%}
{% registerurl "paginate_releases" domain '---' %}
-<div class="container">
- <div class="row">
- <ul class="nav nav-tabs sticky-tabs" style="margin-bottom: 10px;">
+ <ul class="nav nav-tabs st... |
Update playbook-URL_Enrichment_-_Generic.yml
Fixed typo | @@ -261,7 +261,7 @@ tasks:
task:
id: 551589fe-87f8-4b47-8865-304283d81363
version: -1
- name: Take Screenshits
+ name: Take Screenshots
description: ""
type: title
iscommand: false
|
Print warning about an issue with mapped network drives on Windows // Issue
Starting with Python 3.8 paths to mapped network drives are resolved
to their real path in the system, e.g.: "Z:\path" becomes "\\path" which
causes weird errors in the default terminal with a message that UNC
paths are not supported | @@ -28,7 +28,7 @@ from SCons.Script import DefaultEnvironment # pylint: disable=import-error
from SCons.Script import Import # pylint: disable=import-error
from SCons.Script import Variables # pylint: disable=import-error
-from platformio import fs
+from platformio import compat, fs
from platformio.compat import dump_j... |
ArrayLiteral: fix type names in error message
TN: | @@ -2475,9 +2475,9 @@ class ArrayLiteral(AbstractExpression):
else:
check_source_language(
self.element_type == el.static_type,
- "In Array literal, expected element of type {},"
- " got {}".format(self.element_type,
- el.static_type)
+ 'In Array literal, expected element of type {},'
+ ' got {}'.format(self.element_ty... |
docs: ext: consoletest: Prepend dffml runner to path
This ensures that we always run the correct venv of Python | @@ -14,6 +14,7 @@ import atexit
import shutil
import asyncio
import pathlib
+import inspect
import tempfile
import functools
import traceback
@@ -124,11 +125,12 @@ class ActivateVirtualEnvCommand(ConsoletestCommand):
)
async def run(self, ctx):
+ tempdir = ctx["stack"].enter_context(tempfile.TemporaryDirectory())
self.... |
DOC: Update for return value of np.ptp()
* Update documentation for return value of np.ptp()
* Update integer value to scalar to accomodate other numeric data types
* Add examples to np.char.isdigit()
* Remove extra space and example
Closes | @@ -2647,9 +2647,9 @@ def ptp(a, axis=None, out=None, keepdims=np._NoValue):
Returns
-------
- ptp : ndarray
- A new array holding the result, unless `out` was
- specified, in which case a reference to `out` is returned.
+ ptp : ndarray or scalar
+ The range of a given array - `scalar` if array is one-dimensional
+ or ... |
Changes.md : Add missing bugfixes
I forgot these when merging 0.61_maintenance after the release of 0.61.14.7. | @@ -8,6 +8,14 @@ Improvements
- Added `maintainReferencePosition` plug. This allows the constraint to maintain the original position of the object at a specifed reference time.
- Improved performance for UV constraints where the target has static geometry but an animated transform. One such benchmark shows a greater th... |
More accurate jerk limits
* More accurate jerk limits
* Min is not - max
For example max_curvature_rate can be negative.
* reduce diff | @@ -122,7 +122,7 @@ def get_lag_adjusted_curvature(CP, v_ego, psis, curvatures, curvature_rates):
# This is the "desired rate of the setpoint" not an actual desired rate
desired_curvature_rate = curvature_rates[0]
- max_curvature_rate = MAX_LATERAL_JERK / (v_ego**2)
+ max_curvature_rate = MAX_LATERAL_JERK / (v_ego**2) ... |
migrations: Deprecate migration 0064 into a noop.
This ancient migration imports boto, which interferes
with our upgrade to boto3.
> git name-rev
tags/1.6.0~1924
We can safely assume nobody is upgrading from a server on <1.6.0,
since we have no supported platforms in common with those releases. | # Generated by Django 1.10.5 on 2017-03-18 12:38
-import os
-from typing import Optional
-
-from boto.s3.connection import S3Connection
-from boto.s3.key import Key
-from django.conf import settings
from django.db import migrations
-from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
-from dj... |
Lower severity of some log messages during update handling
Some people were complaining that their logs were being spammed by it. | @@ -275,7 +275,7 @@ class UpdateMethods:
get_diff = self._message_box.get_difference()
if get_diff:
- self._log[__name__].info('Getting difference for account updates')
+ self._log[__name__].debug('Getting difference for account updates')
try:
diff = await self(get_diff)
except (errors.ServerError, ValueError) as e:
@@... |
[change] series CLI - Hide unseen episodes
Episodes which have never been seen by FlexGet are now hidden when
using the `series show <show_name>` subcommand. This includes the
`begin` episode if that episode was never seen by FlexGet. The `begin`
episode is still listed below the table, if it is set. | @@ -204,6 +204,8 @@ def display_details(options):
table_data = [header]
entities = get_all_entities(series, session=session)
for entity in entities:
+ if not entity.releases:
+ continue
if entity.identifier is None:
identifier = colorize(ERROR_COLOR, 'MISSING')
age = ''
|
consistent vertical spacing using p tags
fixes | </template>
<template v-slot:abovechannels>
+ <p>
<KButton
appearance="basic-link"
:text="multipleMode ? $tr('selectTopicsAndResources') : $tr('selectEntireChannels')"
@click="toggleMultipleMode"
/>
- <section
- v-if="showUnlistedChannels"
- class="unlisted-channels"
- >
+ </p>
+ <p v-if="showUnlistedChannels">
<KButto... |
flavors: Always use leverage multiqueue
VirtI/O multi-queue allows VMs to scale their network
throughput with vCPU count quite well; build all flavors
with this feature by default. | @@ -43,7 +43,8 @@ node['bcpc']['openstack']['flavors'].each do |flavor, spec|
openstack flavor create "#{flavor}" \
--vcpus #{spec['vcpus']} \
--ram #{spec['ram']} \
- --disk #{spec['disk']}
+ --disk #{spec['disk']} \
+ --property hw:vif_multiqueue_enabled=true
DOC
not_if { node.run_state['os_flavors'].include? flavor ... |
Remove some tests
CI complications | @@ -54,13 +54,6 @@ class ValidatorTest(TestCase):
class TestHelpers(TestCase):
""" Tests for InvenTree helper functions """
- def test_is_image(self):
- img = os.path.abspath(os.path.join(STATIC_ROOT, 'img/blank_image.png'))
- self.assertTrue(helpers.TestIfImage(img))
-
- css = os.path.abspath(os.path.join(STATIC_ROOT,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.