message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
increased version to 0.2
enabled Python 3.5 | @@ -3,10 +3,11 @@ from setuptools import setup, find_packages
setup(name='pyroSAR',
packages=find_packages(),
include_package_data=True,
- version='0.1',
+ version='0.2',
description='a framework for large-scale SAR satellite data processing',
classifiers=[
'Programming Language :: Python :: 2.7',
+ 'Programming Langua... |
undo react-snap workaround
we just have to make sure to serve 200.html to authenticated users | @@ -56,10 +56,6 @@ export default function AppRoute({
}
});
- //react-snap hydration workaround
- const [, setRerender] = useState(false);
- useEffect(() => setRerender(true), []);
-
const classes = useAppRouteStyles();
return isPrivate ? (
|
Temporary disable Python 3.12 tests
pathlib implementation has changed, fake pathlib
has to be adapted first
(see | @@ -10,7 +10,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
- python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12-dev"]
+ python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
+# python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12-dev"]
include:
- python-version: "pypy-3.7"
os: ubun... |
Ignore trailing whitespace
You can't see trailing whitespace, it has no bearing on code execution, the warning is unnecessary. | @@ -3,7 +3,7 @@ addopts = --durations=30 --quiet
[pycodestyle]
count = True
-ignore = E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505,E741,W605,W293
+ignore = E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505,E741,W605,W293,W291
max-line-length = 120
statistics = True
exclude=pymatgen/__init__.py,docs_rst/*... |
Typo
Just a small typo fix | @@ -3,7 +3,7 @@ r"""
Advanced: Making Dynamic Decisions and the Bi-LSTM CRF
======================================================
-Dyanmic versus Static Deep Learning Toolkits
+Dynamic versus Static Deep Learning Toolkits
--------------------------------------------
Pytorch is a *dynamic* neural network kit. Another e... |
DOC: special: fix docstring of diric(x, n)
Docstring showing usage of diric(x, n) was missing the n argument. | @@ -59,7 +59,7 @@ def diric(x, n):
The Dirichlet function is defined as::
- diric(x) = sin(x * n/2) / (n * sin(x / 2)),
+ diric(x, n) = sin(x * n/2) / (n * sin(x / 2)),
where `n` is a positive integer.
|
Use the CA cert in the SSL test instead of the external cert
This is because we're now using the CA cert to sign the external now, which makes it so that only the CA cert can be used for validation. | @@ -29,7 +29,7 @@ class TestSsl(AgentlessTestCase):
def test_ssl(self):
local_cert_path = join(self.workdir, 'cert.pem')
docl.copy_file_from_manager(
- '/etc/cloudify/ssl/cloudify_external_cert.pem', local_cert_path)
+ '/etc/cloudify/ssl/cloudify_internal_ca_cert.pem', local_cert_path)
ssl_client = create_rest_client(
... |
Update integration-ArcSightESM.yml
make proxy of type boolean. | @@ -50,7 +50,7 @@ configuration:
- display: Use system proxy settings
name: proxy
defaultvalue: ""
- type: 0
+ type: 8
required: false
- display: Fetch incidents
name: isFetch
@@ -325,7 +325,7 @@ script:
Body: body
},
params.insecure,
- params.useproxy
+ params.proxy
);
if (res.StatusCode < 200 || res.StatusCode >= 300... |
Removed error from VCC-model
Remove error, where PLF was added as a factor to calculate the COP of the VCC. Also added documentation. | @@ -54,7 +54,7 @@ def calc_VCC(peak_cooling_load, q_chw_load_Wh, T_chw_sup_K, T_chw_re_K, T_cw_in_
q_cw_W = 0.0
elif q_chw_load_Wh > 0.0:
- COP = calc_COP_with_carnot_efficiency(peak_cooling_load, q_chw_load_Wh, T_chw_sup_K, T_cw_in_K, VC_chiller)
+ COP = calc_COP_with_carnot_efficiency(T_chw_sup_K, T_cw_in_K, VC_chill... |
Fix installation instructions to use bash
Fix | @@ -13,10 +13,10 @@ Simply make sure you have [GDB 7.7 or higher](https://www.gnu.org/s/gdb) compile
```bash
# via the install script
## using curl
-$ sh -c "$(curl -fsSL http://gef.blah.cat/sh)"
+$ bash -c "$(curl -fsSL http://gef.blah.cat/sh)"
## using wget
-$ sh -c "$(wget http://gef.blah.cat/sh -O -)"
+$ bash -c "$... |
Actually show "redefined" warnings, but only for "cdef extern" blocks, i.e. the exact case described in
Closes | @@ -451,8 +451,9 @@ class Scope(object):
# Likewise ignore inherited classes.
pass
elif visibility == 'extern':
- # Silenced, until we have a safer way to prevent pxd-defined cpdef functions from ending up here.
- warning(pos, "'%s' redeclared " % name, 0)
+ # Silenced outside of "cdef extern" blocks, until we have a s... |
fix Python 2 compatibility
Actually cgi.escape is still available in Python3.7, but is deprecated.
So going forward, it's safer to import escape from html.
I disabled escaping quotes (quote=False) for consistency and because
it's not needed for this purpose. | @@ -7,7 +7,13 @@ import os.path
from collections import defaultdict
from itertools import chain
from time import time
-import html
+
+try:
+ # >= Py3.2
+ from html import escape
+except ImportError:
+ # < Py3.2
+ from cgi import escape
import six
from flask import Flask, make_response, jsonify, render_template, request... |
tests: drop shrink_osd from tox.ini
shrink_osd has its own tox config file (tox-shrink_osd.ini) | @@ -322,7 +322,6 @@ setenv=
shrink_mds: MDS_TO_KILL = mds0
shrink_mgr: MGR_TO_KILL = mgr1
shrink_mon: MON_TO_KILL = mon2
- shrink_osd: OSD_TO_KILL = 0
shrink_rbdmirror: RBDMIRROR_TO_KILL = rbd-mirror0
shrink_rgw: RGW_TO_KILL = rgw0.rgw0
@@ -338,7 +337,6 @@ changedir=
cluster: {toxinidir}/tests/functional/all_daemons{en... |
bugfix in tell_many_at_point()
The new value of the data at point adopted the value of the mean of the new data samples, instead of the mean over all samples (new and old). Fixed! | @@ -370,7 +370,6 @@ class AverageLearner1D(Learner1D):
)
ys = list(ys) # cast to list *and* make a copy
- y_avg = np.mean(ys)
# If x is a new point:
if x not in self.data:
y = ys.pop(0)
@@ -379,21 +378,23 @@ class AverageLearner1D(Learner1D):
# If x is not a new point or if there were more than 1 sample in ys:
if len(y... |
DOC: Fixed README formatting
[ci-skip] | <div align="center">
<img src="http://www.numpy.org/_static/numpy_logo.png"><br>
</div>
+
-----------------
| **`Travis CI Status`** |
|-------------------|
-|[](https://travis-ci.org/numpy/numpy)|
+[:
super(BotInfo, self)._pre_put_hook()
if not self.task_id:
self.task_name = None
+ logging.info('Pre-put BotInfo: %s', self)
class BotEvent(_BotCommon):
|
Resolve after checking reachability
github issue: AdaCore/libadalang#45 | @@ -33,13 +33,6 @@ package body Langkit_Support.Lexical_Env is
with Inline;
-- Shed env rebindings that are not in the parent chain for From_Env
- function Decorate
- (El : Internal_Map_Element;
- MD : Element_Metadata;
- Rebindings : Env_Rebindings) return Entity;
- -- From an array of entities, decorate every element... |
Updated index.rst
Added 'support' to index | @@ -59,7 +59,6 @@ You can see an independent benchmark comparing Rasa NLU to closed source alterna
evaluation
fallback
faq
- support
.. toctree::
:maxdepth: 1
@@ -83,3 +82,4 @@ You can see an independent benchmark comparing Rasa NLU to closed source alterna
migrations
license
changelog
+ support
|
Moved error messages above download button.
Alerts are usually displayed above the related content, not below. | {% load i18n %}
+
+{% if multimedia_state.has_form_errors %}
+ <div class="alert alert-danger"><i class="fa fa-exclamation-triangle"></i> {% blocktrans %}<strong>Warning:</strong>
+ This application contains forms with errors—we cannot pull any multimedia references from those forms.
+ {% endblocktrans %}</div>
+... |
Fix breakage from
Summary: (https://github.com/pytorch/fairseq/commit/995c204337d16a6146a433cee360e5a5bfbc9a6f)?src_version_fbid=1030479880843010&dst_version_fbid=247617347518523&transaction_fbid=1601081576900014 | @@ -18,8 +18,6 @@ from typing import Any, Dict, Optional, Union
import numpy as np
import torch
-from omegaconf import DictConfig, OmegaConf, open_dict
-
from fairseq.data import data_utils
from fairseq.dataclass.configs import CheckpointConfig
from fairseq.dataclass.utils import (
@@ -29,6 +27,7 @@ from fairseq.datacl... |
fix mkdocs issue
1. | @@ -22,10 +22,12 @@ from ruamel import yaml
PROJECT_BASE = os.getenv("FATE_PROJECT_BASE") or os.getenv("FATE_DEPLOY_BASE")
FATE_BASE = os.getenv("FATE_BASE")
+READTHEDOC = os.getenv("READTHEDOC")
def get_project_base_directory(*args):
global PROJECT_BASE
+ global READTHEDOC
if PROJECT_BASE is None:
PROJECT_BASE = os.pa... |
Update upgrading.md
include the local_requirements.txt file to keep ldap from breaking during upgrades. | @@ -30,6 +30,12 @@ Copy the 'configuration.py' you created when first installing to the new version
# cp netbox-X.Y.Z/netbox/netbox/configuration.py netbox/netbox/netbox/configuration.py
```
+Copy your local requirements file if used:
+
+```no-highlight
+# cp netbox-X.Y.Z/local_requirements.txt netbox/local_requirement... |
Upgrade Requests from 2.18.4 to 2.20.0 - CVE-2018-18074
Upgrade psutil from 5.6.3 to 5.6.6 - CVE-2019-18874 | @@ -23,7 +23,7 @@ itsdangerous==1.1.0
Jinja2==2.10.1
Mako==1.0.13
passlib==1.7.1
-psutil==5.6.3
+psutil==5.6.6
PyMySQL==0.9.3
python-dateutil==2.8.0
python-editor==1.0.4
@@ -35,7 +35,7 @@ speaklater==1.3
SQLAlchemy==1.3.5
Werkzeug==0.16.0
WTForms==2.2.1
-requests==2.18.4
+requests==2.20.0
flask-markdown==0.3
xmltodict=... |
Store orientations before generating crystal; allow passing orientations from...
previously generated crystals of the same stoichiometry and sg | @@ -45,7 +45,7 @@ class molecular_crystal():
a volume factor, generates a molecular crystal consistent with the given
constraints. This crystal is stored as a pymatgen struct via self.struct
'''
- def __init__(self, sg, molecules, numMols, factor):
+ def __init__(self, sg, molecules, numMols, factor, allow_inversion=Fa... |
make control flow abstract eval to shaped level
fixes | @@ -211,7 +211,7 @@ def while_loop(cond_fun, body_fun, init_val):
return tree_unflatten(body_tree, outs)
def _while_loop_abstract_eval(*args, **kwargs):
- return kwargs["body_jaxpr"].out_avals
+ return _map(raise_to_shaped, kwargs["body_jaxpr"].out_avals)
def _while_loop_translation_rule(c, axis_env, *args, **kwargs):
... |
DOC: Adding examples to scipy.stats.mstat
Added examples for tmax and tmean. | @@ -1698,6 +1698,22 @@ def tmax(a, upperlimit=None, axis=0, inclusive=True):
-----
For more details on `tmax`, see `stats.tmax`.
+ Examples
+ --------
+ >>> import numpy as np
+ >>> from scipy.stats import mstats
+ >>> a = np.array([[6, 8, 3, 0],
+ ... [3, 9, 1, 2],
+ ... [8, 7, 8, 2],
+ ... [5, 6, 0, 2],
+ ... [4, 5, ... |
Alarms: Add device serial number field
Added insertion, via adapter_alarms.py, of onu_serial_number field to context for all onu related alarms | import structlog
import arrow
from voltha.protos.events_pb2 import AlarmEventType, AlarmEventSeverity,\
- AlarmEventState
+ AlarmEventState, AlarmEventCategory
+log = structlog.get_logger()
+
# TODO: In the device adapter, the following alarms are still TBD
# (Taken from openolt_alarms)
@@ -86,11 +88,20 @@ class Adapte... |
Disable ST3 hovers once it is open in an LSP client.
Should fix | @@ -598,6 +598,7 @@ def notify_did_open(view: sublime.View):
config = config_for_scope(view)
client = client_for_view(view)
if client and config:
+ view.settings().set("show_definitions", False)
if view.file_name() not in document_states:
get_document_state(view.file_name())
if show_view_status:
|
Add missing 'node_modules' segment in path (--no-bin-links)
Thanks for the catch | @@ -165,8 +165,8 @@ def resolve_prettier_cli_path(view, plugin_path, st_project_path):
#
# check locally installed prettier using the '--no-bin-links' opion...
# and when symlinks aren't avail. see issue #146.
- project_prettier_path_nbl = os.path.join(st_project_path, 'prettier', 'prettier-bin.js')
- plugin_prettier_p... |
Work around single stepping bug in GDB
Synchronous stepping runs in the background due to a bug introduced in
GDB. This patch removes stepping from this test until GDB has been
fixed. | @@ -245,10 +245,16 @@ def run_test():
print("Error - could not set pc to function")
breakpoint.delete()
- # Test the speed of the different step types
- test_result["step_time_si"] = test_step_type("si")
- test_result["step_time_s"] = test_step_type("s")
- test_result["step_time_n"] = test_step_type("n")
+## Stepping r... |
langkit.utils.types.TypeSet: add an "update" method
TN: | @@ -120,6 +120,15 @@ class TypeSet(object):
"""
return t in self.matched_types
+ def update(self, type_set):
+ """
+ Extend self to contain all types in ``type_set``.
+
+ :param TypeSet type_set: Types to include.
+ """
+ assert isinstance(type_set, TypeSet)
+ self.matched_types.update(type_set.matched_types)
+
def inc... |
improved exception handling
catch unexpected exceptions in sync threads
don't crash thread on missing Dropbox folder | @@ -6,7 +6,6 @@ Created on Wed Oct 31 16:23:13 2018
@author: samschott
"""
# system imports
-import sys
import os
import os.path as osp
import platform
@@ -443,22 +442,15 @@ class UpDownSync(object):
# Helper functions
# ====================================================================================
- def ensure_d... |
Update celery-deployment.yaml
comment out probes | @@ -46,16 +46,16 @@ spec:
readOnly: true
mountPath: /opt/reopt/keys.py
subPath: {{ .Values.appEnv }}-keys.py
- readinessProbe:
- exec:
- command: ["pgrep", "-f", "bin/celery"]
- periodSeconds: 5
- timeoutSeconds: 3
- failureThreshold: 3
- livenessProbe:
- exec:
- command: ["pgrep", "-f", "bin/celery"]
- initialDelaySec... |
[microTVM][Zephyr] Add recommended heap size for NRF and qemu_x86
This PR sets recommended heap size for qemu_x86 and NRF board to fix memory size with models like VWW using AoT host driven executor. | "is_qemu": false,
"fpu": true,
"vid_hex": "1366",
- "pid_hex": "1055"
+ "pid_hex": "1055",
+ "recommended_heap_size_bytes": 368640
},
"nucleo_f746zg": {
"board": "nucleo_f746zg",
"fpu": true,
"vid_hex": "0483",
"pid_hex": "374b",
- "recommended_heap_size_bytes": 512000
+ "recommended_heap_size_bytes": 524288
},
"qemu_c... |
Add the `add_header` job to the CI/CD
The `add_header` job checks the file headers for errors. This is helpfull when a
new file is introduced, since the Lincence information can easily be forgotten. | @@ -7,6 +7,18 @@ on:
- cron: '0 3 * * *'
jobs:
+ add_header:
+ name: Add header lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ # We need the history to determine the file creation date.
+ fetch-depth: 0
+ - name: Check headers
+ shell: bash
+ run: |
+ python3 tools/add_header --dry-run -... |
The BaseStream class now implements __anext__()
When reading chuncks, the write() method of AsyncIterablePayload in
aiohttp3 calls: chunk = await self._iter.__anext__(). WB's BaseStream
class must implement __anext__(), where the read() method is called. | @@ -17,6 +17,20 @@ class BaseStream(asyncio.StreamReader, metaclass=abc.ABCMeta):
self.readers = {}
self.writers = {}
+ def __aiter__(self):
+ return self
+
+ # TODO: Add more note on `AsyncIterablePayload` and its `write()` method in aiohttp3
+ # TODO: Improve the BaseStream with `aiohttp.streams.AsyncStreamReaderMixi... |
integrations: Remove link underline from back arrow icon.
Fixes | <div id="integration-instructions-group">
<div id="integration-instruction-block" class="integration-instruction-block">
- <a href="/integrations" id="integration-list-link"><i class="icon-vector-circle-arrow-left"></i><span>Back to list</span></a>
+ <a href="/integrations" id="integration-list-link" class="no-underlin... |
Update api.rst
Corrected typo in "tojson" example, `const names = {{ names|tojson }};` was `const names = {{ names|tosjon }};` | @@ -248,7 +248,7 @@ HTML ``<script>`` tags.
.. sourcecode:: html+jinja
<script>
- const names = {{ names|tosjon }};
+ const names = {{ names|tojson }};
renderChart(names, {{ axis_data|tojson }});
</script>
|
[ci] Fix mac pipeline (use python 2 in CI scripts)
determine_tests_to_run.py uses python2 on mac, so we need to keep compatibility there | @@ -234,7 +234,12 @@ if __name__ == "__main__":
RAY_CI_DASHBOARD_AFFECTED = 1
RAY_CI_DOC_AFFECTED = 1
else:
- print(f"Unhandled source code change: {changed_file}", file=sys.stderr)
+ print(
+ "Unhandled source code change: {changed_file}".format(
+ changed_file=changed_file
+ ),
+ file=sys.stderr,
+ )
RAY_CI_ML_AFFECT... |
Improve get-ami-list.py script to support oldest tags
In pre-release public version of cfncluster, the amis.txt file doesn't contain
the distro comment on the top, because centos6 only was supported.
Now the script works also with tags like v0.0.7, v1.0.0-beta, etc. | @@ -47,7 +47,14 @@ def build_release_ami_list(scratch_dir, tag):
active_distro = m.groups()[0]
amis[active_distro] = []
else:
- m = re.match('.*:\s*(ami-[a-zA-Z0-9]*)', line)
+ m = re.match('.*:?\s*(ami-[a-zA-Z0-9]*)', line)
+ if active_distro != None:
+ amis[active_distro].append(m.groups()[0])
+ else:
+ # In old tags... |
Update conf.json
Removed QRadar playbook from skipped | "MaxMind GeoIP2": "Issue 18932.",
"Exabeam": "Issue 19371",
"McAfee ESM-v10": "Issue 20225",
- "QRadar Indicator Hunting Test": "Issue 21150",
"_comment": "~~~ UNSTABLE ~~~",
"ServiceNow": "Instance goes to hibernate every few hours",
|
[query] Fix flushing on HadoopFS.toPositionedOutputStream
fixes | @@ -32,7 +32,7 @@ object HadoopFS {
override def write(bytes: Array[Byte], off: Int, len: Int): Unit = os.write(bytes, off, len)
- override def flush(): Unit = os.flush()
+ override def flush(): Unit = if (!closed) os.flush()
override def close(): Unit = {
if (!closed) {
|
Update quickstart.rst
A miss letter | @@ -30,7 +30,7 @@ Compare Graphene's *code-first* approach to building a GraphQL API with *schema-
.. _Ariadne: https://ariadne.readthedocs.io
-Graphene is fully featured with integrations for the most popular web frameworks and ORMs. Graphene produces schemas tha are fully compliant with the GraphQL spec and provides ... |
OverlandFlow component TypeError fix
Fixing TypeError that pops up when generate_overland_flow_deAlmeida.py
is run. | @@ -690,7 +690,7 @@ class OverlandFlow(Component):
discharge_vals = discharge_vals.reshape(self.grid.number_of_nodes, 4)
- discharge_vals = discharge_vals.sum(axis=1.0)
+ discharge_vals = discharge_vals.sum(axis=1)
return discharge_vals
|
MessageWidget : Fix Python 3.8 DeprecationWarning
```
/Users/john/dev/build/gaffer/python/GafferUI/MessageWidget.py:1350: DeprecationWarning: an integer is required (got type Enum). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
``` | @@ -1347,7 +1347,7 @@ class _MessageTableFilterModel( QtCore.QSortFilterProxyModel ) :
def filterAcceptsRow( self, sourceRow, sourceParent ) :
- levelIndex = self.sourceModel().index( sourceRow, _MessageTableModel.Column.Level, sourceParent )
+ levelIndex = self.sourceModel().index( sourceRow, int( _MessageTableModel.C... |
Fix reading from length-delimited input
`protobuff::parse_from_reader` no longer correctly handles
length-delimited protobuf streams correctly. The proper way to read
these streams is via `CodedInputStream::read_message`. | @@ -457,8 +457,32 @@ fn restore_block(source: &mut protobuf::CodedInputStream) -> Result<Option<Block
return Ok(None);
}
- let block = protobuf::parse_from_reader(source)
- .map_err(|err| CliError::EnvironmentError(format!("Failed to parse block: {}", err)))?;
+ source
+ .read_message()
+ .map(Some)
+ .map_err(|err| Cl... |
Issue with Multimaterial on Hybrid render.
PURPOSE
This is regression after Multimaterial doesn't assign any material to shape in hybrid.
EFFECT OF CHANGE
Fixed assigning material first to shape in hybrid if multimaterial is used. | @@ -184,6 +184,10 @@ class Shape(pyrpr.Shape):
super().set_material(material)
+ def set_material_faces(self, material, face_indices: np.array):
+ if not self.materials:
+ self.set_material(material)
+
@class_ignore_unsupported
class Mesh(pyrpr.Mesh, Shape):
|
Update release instructions to include cheatsheet
* Update release instructions to include cheatsheet
Update release instructions to include cheatsheet
* minor update
* edit release cheatsheet pdf link example | * Click 'Publish release' and the release will go live.
* Wait ~10 minutes and then locally test that the PyPi package is available and working with the latest release version, ask team members to also independently verify.
+### Release Cheatsheet
+
+* If intending to create a new cheatsheet for the release, refer to [... |
Fix definition of ssl_protocol
The syntax for TLS 1.0 is incorrect for Apache servers
which appear to be the only users of this variable.
Depends-On: | ## SSL
# These do not need to be configured unless you're creating certificates for
# services running behind Apache (currently, Horizon and Keystone).
-ssl_protocol: "ALL -SSLv2 -SSLv3 -TLSv1.0 -TLSv1.1"
+ssl_protocol: "ALL -SSLv2 -SSLv3 -TLSv1 -TLSv1.1"
# Cipher suite string from https://hynek.me/articles/hardening-y... |
Use the highest bitrate stream regardless of codec
The get_audio_only function defaults to filtering for mp4 streams.
This seems arbitrary as ffmpeg has the capabilities for other codecs
too and higher quality may be achieved this way. | @@ -180,7 +180,13 @@ async def download_song(self, songObj: SongObj) -> None:
else:
youtubeHandler = YouTube(songObj.get_youtube_link())
- trackAudioStream = youtubeHandler.streams.get_audio_only()
+ trackAudioStream = youtubeHandler.streams.filter(only_audio=True).order_by('bitrate').last()
+
+ if not trackAudioStream... |
Update signals doc - clarification on EmbeddedDocument
Since there is a .save() method on EmbeddedDocument, you could be tempted to attach a pre_save event to an EmbeddedDocument This update is an attempt to make this clearer. | @@ -113,6 +113,10 @@ handlers within your subclass::
signals.pre_save.connect(Author.pre_save, sender=Author)
signals.post_save.connect(Author.post_save, sender=Author)
+.. warning::
+
+ Note that EmbeddedDocument only supports pre/post_init signals. pre/post_save, etc should be attached to Document's class only. Attac... |
digest: Remove comments from get_hot_topics.
The code is self explanatory. | @@ -187,11 +187,8 @@ def get_hot_topics(
if topic.stream_id() in stream_ids
]
- # Start with the two most diverse topics.
hot_topics = heapq.nlargest(2, topics, key=DigestTopic.diversity)
- # Pad out our list up to MAX_HOT_TOPICS_TO_BE_INCLUDED_IN_DIGEST items,
- # using the topics' length (aka message count) as the se... |
[cleanup] return value of addCommonscat is never used
remove returning True in addCommonscat
unpack add_text to variables | @@ -285,7 +285,7 @@ class CommonscatBot(SingleSiteBot):
pywikibot.output('Commonscat link at {} to Category:{} is ok'
.format(page.title(),
currentCommonscatTarget))
- return True
+ return
if checkedCommonscatTarget:
# We have a new Commonscat link, replace the old one
@@ -293,7 +293,7 @@ class CommonscatBot(SingleSite... |
Reset the mark counter on clear all marks
also, add next mark and prev mark key shortcuts | @@ -83,6 +83,8 @@ In "Move" mode the following keys are active:
- "n" will place a new mark at the site of the cursor
- "m" will move the current mark (if any) to the site of the cursor
- "d" will delete the current mark (if any)
+- "j" will select the previous mark (if any)
+- "k" will select the next mark (if any)
**... |
Bump data_functional_testing
Fixes | @@ -51,7 +51,7 @@ DICT_URL = {
"url": ["https://github.com/ivadomed/model_find_disc_t2/archive/r20200928.zip"],
"description": "Intervertebral disc detection model trained on T2-weighted images."},
"data_functional_testing": {
- "url": ["https://github.com/ivadomed/data_functional_testing/archive/r20210617.zip"],
+ "ur... |
Remove command to set step-mode on
Fix issue which shows that gdb's skip functionality is broken.
This occurs when setting step-mode to be on. | @@ -9974,7 +9974,6 @@ if __name__ == "__main__":
gdb.execute("set confirm off")
gdb.execute("set verbose off")
gdb.execute("set pagination off")
- gdb.execute("set step-mode on")
gdb.execute("set print elements 0")
# gdb history
|
chore: mirror to GitLab
This commit after every merge, will push the latest version to GitLab. | @@ -157,3 +157,12 @@ jobs:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Mirror to GitLab
+ run: |
+ git clone https://github.com/Kubeinit/kubeinit.git kubeinit_mirror
+ cd kubeinit_mirror
+ git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#ori... |
Update service.py
I created some sub menu items for Standard and Feature audits. Very simple, just creates events for entering and exiting these two sub menus so a user can configure slides to show. | @@ -48,7 +48,7 @@ software_update_script: single|str|None
self.machine.events.wait_for_any_event(self.config['mode_settings']['enter_events']): "ENTER",
self.machine.events.wait_for_any_event(self.config['mode_settings']['up_events']): "UP",
self.machine.events.wait_for_any_event(self.config['mode_settings']['down_even... |
Undercloud needs both collectd-disk and collectd-python
Unclear what has changed in OSP13, however I amd having an issue
getting collectd to start without ensuring these packages are now
installed | - collectd
- collectd-apache
- collectd-ceph
+ - collectd-disk
- collectd-mysql
- - collectd-turbostat
- collectd-ping
+ - collectd-python
+ - collectd-turbostat
# (sai) Since we moved to containers we don't have java installed on the host
# anymore but it is needed for collectd-java
|
Update setup-remote.md
Fixes | @@ -64,9 +64,17 @@ One option is to get an Infura account.
A simpler option is to bypass the need for an account! Just change to RPCs that don't need Infura. The command below replaces Infura RPCs with public ones in `network-config.yaml`:
-`console
+* Linux users:
+```console
sed -i 's#https://polygon-mainnet.infura.i... |
[msgpack] look for `datetime.datetime` in keys also while packing
and `del` the old if the encoded key is different form the original one. | @@ -224,6 +224,10 @@ class Serial(object):
def datetime_encoder(obj):
if isinstance(obj, dict):
for key, value in six.iteritems(obj.copy()):
+ encodedkey = datetime_encoder(key)
+ if key != encodedkey:
+ del obj[key]
+ key = encodedkey
obj[key] = datetime_encoder(value)
return dict(obj)
elif isinstance(obj, (list, tupl... |
facts: fix deployments with different net interface names
Deployments when radosgws don't have the same names for
network interface.
Closes: | block:
- name: set_fact _interface
set_fact:
- _interface: "{{ (radosgw_interface | replace('-', '_')) }}"
+ _interface: "{{ (hostvars[item]['radosgw_interface'] | replace('-', '_')) }}"
+ loop: "{{ groups.get(rgw_group_name, []) }}"
+ delegate_to: "{{ item }}"
+ delegate_facts: true
+ run_once: true
- name: set_fact _... |
Avoid log warning when closing is underway (on purpose)
Related-Bug: | @@ -317,6 +317,7 @@ class ZookeeperJobBoard(base.NotifyingJobBoard):
self._emit_notifications = bool(emit_notifications)
self._connected = False
self._suspended = False
+ self._closing = False
self._last_states = collections.deque(maxlen=self.STATE_HISTORY_LENGTH)
def _try_emit(self, state, details):
@@ -748,6 +749,10 ... |
Fix mocking time
When running on Centos the side_effect was returning a MagicMock
object instead of the intended int. | @@ -717,7 +717,7 @@ class TestS3ApiMultiUpload(S3ApiTestCase):
'Response Status': '201 Created',
'Errors': [],
})])
- mock_time.return_value.time.side_effect = (
+ mock_time.time.side_effect = (
1, # start_time
12, # first whitespace
13, # second...
@@ -769,7 +769,7 @@ class TestS3ApiMultiUpload(S3ApiTestCase):
'Respon... |
Rename methods
I renamed from basic variables / sets to pyomo-logic-names
as basic variables is a term in solving LP (simplex algorithm) | @@ -29,8 +29,8 @@ class BaseModel(po.ConcreteModel):
If this value is true, the set, variables, constraints, etc. are added,
automatically when instantiating the model. For sequential model
building process set this value to False
- and use methods `_add_basic_sets`, `_add_basic_variables`,
- `_add_blocks`, `_add_objec... |
Update filtersets.md
corrected typos on the page,
an issue report has also been submitted at
regards, | @@ -34,12 +34,12 @@ To utilize a filter set in a subclass of one of NetBox's generic views (such as
```python
# views.py
from netbox.views.generic import ObjectListView
-from .filtersets import MyModelFitlerSet
+from .filtersets import MyModelFilterSet
from .models import MyModel
class MyModelListView(ObjectListView):
... |
Update unit-matrixwrapper.cc
Remove constraint on total number of bosons in test, to solve At the moment Matrix Wrapper does not support symmetries, thus we should not use symmetries in the tests (such as total number conservation). | @@ -46,7 +46,7 @@ std::vector<netket::json> GetHamiltonianInputs() {
{"Graph",
{{"Name", "Hypercube"}, {"L", 2}, {"Dimension", 2}, {"Pbc", false}}},
{"Hamiltonian",
- {{"Name", "BoseHubbard"}, {"U", 4.0}, {"Nmax", 2}, {"Nbosons", 2}}}};
+ {{"Name", "BoseHubbard"}, {"U", 4.0}, {"Nmax", 2}}}};
input_tests.push_back(pars)... |
fix_inv_root.py edited online with Bitbucket
HG--
branch : fixes.fix_root.20170511 | @@ -38,7 +38,6 @@ def fix():
logging.info("Checking Loste&Found object")
lostfound_model = ObjectModel.objects.get(uuid="b0fae773-b214-4edf-be35-3468b53b03f2")
lf = Object.objects.filter(model=lostfound_model.id).count()
- print lf
if lf == 0:
# Create missed "Lost&Found"
logging.info(" ... creating missed Lost&Found")... |
ebuild.ebd: force verbose error output for all die() failures
And avoid irrelevant tracebacks for internal IPC errors. | @@ -473,12 +473,21 @@ def run_generic_phase(pkg, phase, env, userpriv, sandbox, fd_pipes=None,
if isinstance(e, ebd_ipc.IpcError):
# notify bash side of IPC error
ebd.write(e.ret)
- ebd.shutdown_processor()
- release_ebuild_processor(ebd)
if isinstance(e, ebd_ipc.IpcInternalError):
# show main exception cause for inter... |
fix(futures_roll_yield.py): fix get_roll_yield_bar interface
fix get_roll_yield_bar interface | @@ -118,7 +118,7 @@ def get_roll_yield_bar(
if type_method == "var":
df = pd.DataFrame()
- for market in ["dce", "cffex", "shfe", "czce"]:
+ for market in ["dce", "cffex", "shfe", "czce", "gfex"]:
df = pd.concat(
[
df,
@@ -173,9 +173,9 @@ def get_roll_yield_bar(
if __name__ == "__main__":
get_roll_yield_bar_range_df = ... |
new ExpressionBuilder.make_psg(), update .add_virtual_arg(), .add_state_arg()
ELinearElasticTerm works also in residual mode (but still WIP) | @@ -3,6 +3,7 @@ import opt_einsum as oe
from sfepy.base.base import output, Struct
from sfepy.base.timing import Timer
+from sfepy.mechanics.tensors import dim2sym
from sfepy.terms.terms import Term
from sfepy.terms import register_term
@@ -50,6 +51,21 @@ class ExpressionBuilder(Struct):
self.dofs_cache = dofs_cache
se... |
[TIR] Update ir_comparator message to be more clear about what is being compared
Update ir_comparator message to be more clear about what is being compared. This would be more useful when debugging tensorize mismatches. | @@ -41,7 +41,9 @@ class TensorIntrinMismatchError : public ScheduleError {
String DetailRenderTemplate() const final {
std::ostringstream os;
- os << "The stmt {0} doesn't match the tensor intrin\n " << rhs_stmt_;
+ os << "The stmt {0} doesn't match the tensor intrin\nThe pattern attempting to be matched:\n"
+ << lhs_s... |
Fixing a typo in prediction_heads docs
This PR fixes a small typo in the prediction heads docs, replacing 'flexivle' with 'flexible'. | @@ -12,7 +12,7 @@ We will take a look at our own new **model classes with flexible heads** (e.g. `
```eval_rst
.. important::
Although the two prediction head implementations serve the same use case, their weights are *not* directly compatible, i.e. you cannot load a head created with ``AutoModelWithHeds`` into a model... |
Fix error in Saltstack's rest auth "Authentication module threw 'status' "
Fixes
updated rest.auth method to get 'status' and 'dict' in the
http.query result | @@ -58,7 +58,8 @@ def auth(username, password):
# Post to the API endpoint. If 200 is returned then the result will be the ACLs
# for this user
- result = salt.utils.http.query(url, method='POST', data=data)
+ result = salt.utils.http.query(url, method='POST', data=data, status=True,
+ decode=True)
if result['status'] ... |
compose: Fix color of preview icon.
Fixes the color of preview iocn to match other message-control-button icons. | @@ -468,14 +468,12 @@ a.message-control-button {
a#markdown_preview {
margin-left: 2px;
- color: hsl(0, 0%, 47%);
}
a#undo_markdown_preview {
text-decoration: none;
position: relative;
font-size: 15px;
- color: hsl(0, 0%, 47%);
margin-left: 2px;
}
|
Fix CircleCI imports
Summary: Pull Request resolved: | @@ -4,10 +4,9 @@ import abc
import logging
from typing import List
-import torch
from reagent.core.observers import CompositeObserver
from reagent.core.tracker import Observer
-from reagent.oss_workflow.result_registries import TrainingReport
+from reagent.workflow.result_registries import TrainingReport
logger = loggi... |
Assume yes if prompted to attempt to fix
* Assume yes if prompted to attempt to fix
References
* Be more verbose on input error | @@ -449,7 +449,7 @@ def fix(force, paths, bench=False, fixed_suffix="", logger=None, **kwargs):
)
c = click.getchar().lower()
click.echo("...")
- if c == "y":
+ if c in ("y", "\r", "\n"):
click.echo("Attempting fixes...")
# TODO: Remove verbose
success = do_fixes(
@@ -464,7 +464,7 @@ def fix(force, paths, bench=False, ... |
Change SOA detail
Change ptype for time interval props to int from time | @@ -182,10 +182,10 @@ class DnsMod(CoreModule):
('soa:ns', {'ptype': 'inet:fqdn', 'doc': 'The domain (MNAME) returned in the SOA record', 'ro': 1}),
('soa:email', {'ptype': 'inet:email', 'doc': 'The normalized email address (RNAME) returned in the SOA record', 'ro': 1}),
('soa:serial', {'ptype': 'int', 'doc': 'The SERI... |
zulip_tools.py: Add `get_environment()` function.
This function can be used to determine the environment in which a
script is being executed. | @@ -147,3 +147,11 @@ def log_management_command(cmd, log_path):
logger.setLevel(logging.INFO)
logger.info("Ran '%s'" % (cmd,))
+
+def get_environment():
+ # type: () -> Text
+ if os.path.exists(DEPLOYMENTS_DIR):
+ return "prod"
+ if os.environ.get("TRAVIS"):
+ return "travis"
+ return "dev"
|
treat SystemExit as normal exit
fixes | @@ -215,9 +215,9 @@ class StdoutLog(ContextLog):
super().__init__()
def _write_post_mortem(self, etype, value, tb):
- if etype is None:
+ if etype in (None, SystemExit):
return
- elif etype in (KeyboardInterrupt, SystemExit, bdb.BdbQuit):
+ elif etype in (KeyboardInterrupt, bdb.BdbQuit):
self.write('error', 'killed by ... |
Update lfsr stuff slightly
Better commenting for how the LFSR works, and also just make the function generate values (no need to pass them in) | @@ -288,21 +288,34 @@ void StartRX(void const * argument){
// x^6 + x^5 + 1 with period 63
-static const uint8_t POLY_MASK = 0b0110000;
+static const uint8_t POLY_MASK = 0b00110000;
/**
- * @brief Updates the contents of the linear feedback shift register passed in.
- * At any given time, its contents will contain a ps... |
Fix typo of intro document
change from adress to address | @@ -34,7 +34,7 @@ What is DNS?
-----------------------------
The Domain Name System (DNS) is a system for naming resources connected to a
-network, and works by storing various types of *record*, such as an IP adress
+network, and works by storing various types of *record*, such as an IP address
associated with a domai... |
Missed another ci->.ci
Should have been more systematic with my grepping. | @@ -20,22 +20,22 @@ pip install -e .
echo "--- Generate the signing key"
# Generate the server's signing key.
-python -m synapse.app.homeserver --generate-keys -c ci/sqlite-config.yaml
+python -m synapse.app.homeserver --generate-keys -c .ci/sqlite-config.yaml
echo "--- Prepare test database"
# Make sure the SQLite3 da... |
Added community tutorials to docs
With a Kafka starter | @@ -12,6 +12,13 @@ These projects from the community are developed on top of Channels:
* DjangoChannelsJsonRpc_, a wrapper for the JSON-RPC protocol.
* channels-demultiplexer_, a (de)multiplexer for ``AsyncJsonWebsocketConsumer`` consumers.
+Community Tutorials
+===================
+
+Here are some Channels tutorials f... |
Avoid echoing 'Environment Variables:' string, when no envvars exist
SIM: | @@ -130,7 +130,9 @@ def create_environment_variables_list(environment_variables, as_option_settings=
def print_environment_vars(environment_variables):
+ if environment_variables:
io.echo(' Environment Variables:')
+
for environment_variable, value in iteritems(environment_variables):
environment_variable, value = util... |
Update QRL setup instructions for raspberry pi.txt
added lines for installing blessings and statistics dependencies | @@ -47,6 +47,12 @@ sudo pip install leveldb
4.
sudo pip install Twisted==16.0.0 (you need version 16.0.0 or it won't work)
+5.
+sudo pip install blessings
+
+6.
+sudo pip install statistics
+
|
Update apt_unclassified.txt
> ```apt_bisonal``` by reason: | @@ -1564,13 +1564,3 @@ gridnetworking.net
# Reference: https://twitter.com/__0XYC__/status/1535107137441251328
t7g5c.app.link
-
-# Reference: https://twitter.com/h2jazi/status/1537536029250490382
-# Reference: https://www.virustotal.com/gui/ip-address/137.220.176.165/relations
-# Reference: https://www.virustotal.com/g... |
[4.0] remove Python 2 related code
also show a FutureWarning for depecated classes | #
# Distributed under the terms of the MIT license.
#
-from __future__ import absolute_import, division, unicode_literals
+import ctypes
from pywikibot.tools import ModuleDeprecationWrapper
-
-from pywikibot.userinterfaces import (
- terminal_interface_base,
- win32_unicode,
-)
-
-import ctypes
+from pywikibot.userinte... |
Windows: Fix, could crash while scanning loaded mdoules during dependency scan
* It's not really clear what kind of module this was, but we should
not care, this is for finding DLLs that were not found only, and
not found DLLs won't help there. | @@ -715,7 +715,10 @@ def getWindowsRunningProcessDLLPaths():
result = OrderedDict()
for handle in _getWindowsRunningProcessModuleHandles():
+ try:
filename = getWindowsRunningProcessModuleFilename(handle)
+ except WindowsError:
+ continue
result[os.path.basename(filename)] = filename
|
langkit.lexer: minor refactoring
TN: | @@ -468,14 +468,12 @@ class Lexer(object):
literal, self.tokens.__name__
)
)
- if literal in self.literals_map:
- return self.literals_map[literal]
- else:
check_source_language(
- False,
- "{} token literal is not part of the valid tokens for "
- "this grammar".format(literal)
+ literal in self.literals_map,
+ '{} tok... |
Updates Silence Lock
Modifies the lock on the silence command, in order to choose between ctx
and channel arg based on input. | @@ -2,7 +2,6 @@ import json
import logging
from contextlib import suppress
from datetime import datetime, timedelta, timezone
-from operator import attrgetter
from typing import Optional, Union
from async_rediscache import RedisCache
@@ -13,7 +12,7 @@ from discord.ext.commands import Context
from bot.bot import Bot
fro... |
Update for JupyterLab 1.x
For JupyterLab version 1.0.0 and higher we no longer need to copy vpython_data files to appropriate directory. It is now handled in the Jupyter labextension for vpython. | @@ -55,7 +55,7 @@ except ImportError:
pass
else:
# We have jupyterlab, is it the right version?
- if jupyterlab.__version__ >= '0.35.0':
+ if (jupyterlab.__version__ >= '0.35.0') and (jupyterlab.__version__ < '1.0.0'):
from os.path import join
labextensions_dir = join(jupyterlab.commands.get_app_dir(), u'static')
try:
|
change default sample_pro
change default sample_pro to ensure correctively running | @@ -57,7 +57,7 @@ def parse_args():
parser.add_argument(
'--learning_rate', type=float, default=0.001, help='Learning rate')
parser.add_argument(
- '--sample_pro', type=float, default=0.1, help='Sample probability for training data')
+ '--sample_pro', type=float, default=1, help='Sample probability for training data')
... |
Update README.md
Deleted Gitter-Batch | <a href="https://microbadger.com/#/images/opsdroid/opsdroid"><img src="https://img.shields.io/microbadger/layers/opsdroid/opsdroid.svg" alt="Docker Layers" /></a>
<a href="http://opsdroid.readthedocs.io/en/stable/?badge=stable"><img src="https://img.shields.io/readthedocs/opsdroid/latest.svg" alt="Documentation Status"... |
Fix invalid link
Fix invalid link in get_started.md | @@ -15,7 +15,7 @@ The following tutorials demonstrates how to run ElasticDL on different environme
[Minikube](https://kubernetes.io/docs/setup/learning-environment/minikube/) is a tool that makes it easy to run Kubernetes locally.
It runs a single-node Kubernetes cluster inside a Virtual Machine (VM) on the laptop so d... |
Update README.md
Corrected syntax mistake - unneeded 'the'. | @@ -136,7 +136,7 @@ Please check out our [Troubleshooting guide](https://plotly.com/python/troublesh
### Static Image Export
plotly.py supports [static image export](https://plotly.com/python/static-image-export/),
-using the either the [`kaleido`](https://github.com/plotly/Kaleido)
+using either the [`kaleido`](https:... |
docs: Add Markdown inline code marker around inline XML example.
Presently, this tag is not rendered --- by Gitiles, at least --- which
makes the example very confusing indeed.
Tested-by: Jashank Jeremy | @@ -267,7 +267,7 @@ Attribute `groups`: List of groups to which this project belongs,
whitespace or comma separated. All projects belong to the group
"all", and each project automatically belongs to a group of
its name:`name` and path:`path`. E.g. for
-<project name="monkeys" path="barrel-of"/>, that project
+`<project... |
Document amplicon trimming better
See | @@ -462,3 +462,32 @@ a match of the 3' adapter, the string ``;2`` is added. If there are two rows, th
.. versionadded:: 3.4
Column 12 (revcomp flag) added
+
+
+.. _properly-paired-reads:
+
+Properly paired reads
+---------------------
+
+When reading paired-end files, Cutadapt checks whether the read names match.
+Only... |
[MNT] update wheels to 3.10
Updates wheels to 3.10, adds version 3.10 to wheels matrix | @@ -14,7 +14,7 @@ jobs:
- uses: actions/setup-python@v2
with:
- python-version: '3.9'
+ python-version: '3.10'
- name: Build wheel
run: |
@@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macOS-10.15]
- python-version: [3.7, 3.8, 3.9]
+ python-version: [3.7, 3.8, 3.9, 3.10]
steps:
- uses: actions/checkout@v2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.