message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Add Train version to adjustment-nova-scheduler.yml playbook
This patch modifies the adjustment-nova-scheduler.yml playbook
to support the Openstack Train version | # Playbook to adjust Nova Scheduler settings to avoid over-scheduling hosts
# with greater memory in uneven memory environments.
#
-# Versions tested: Newton, Ocata, Pike
+# Versions tested: Newton, Ocata, Pike, Train
#
# Examples:
# ansible-playbook -i hosts browbeat/adjustment-nova-scheduler.yml -e 'max_instances_per... |
Update nir_tutorial.md
make it a little closer to the interactive tutorial | @@ -108,17 +108,17 @@ We start by [subtracting](image_subtract.md) the background.
# Inputs:
# gray_img1 - Grayscale image data from which gray_img2 will be subtracted
# gray_img2 - Grayscale image data which will be subtracted from gray_img1
- bkg_sub_img = pcv.image_subtract(gray_img1=img, img_bkgrd)
+ bkg_sub_img = ... |
circle-docker: Simplify a bit for clarity and efficiency.
Install `jq` with APT -- that's a lot simpler to read than this
explicit download.
And coalesce several commands, following Docker upstream's
recommendation and avoiding unnecessary overhead. | @@ -31,20 +31,12 @@ RUN apt-get update \
&& apt-get install -y \
git mercurial xvfb \
locales sudo openssh-client ca-certificates tar gzip parallel \
- net-tools netcat unzip zip bzip2 \
- python3 python3-pip
-
-RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
-
-RUN locale-gen C.UTF-8 || true
+ net-tools netcat u... |
Use optimized kernel instead of naive kernel
Currently, the last `tune_kernel` was passing `kernel_source` (the naive kernel) instead of `convolution_kernel_string` (the optimized kernel). This raised an error since params like `filter_height` etc. weren't defined in the former. This commit fixes that. | },
"outputs": [],
"source": [
- "results, env = tune_kernel(kernel_name, kernel_source, problem_size, arguments, tune_params,\n",
+ "results, env = tune_kernel(kernel_name, convolution_kernel_string, problem_size, arguments, tune_params,\n",
" grid_div_x=grid_div_x, grid_div_y=grid_div_y)"
]
},
|
fix build's project selection list
Tuple should have been a list. Build now correctly prompts for a project
if multiple projects are detected by hsdev. | @@ -267,8 +267,8 @@ class Builder(object):
if idx != -1:
run_selected(projs[idx])
- modlist = [(m[0], m[1].get('path', '??')) for m in projs]
- self.view.window().show_quick_panel(modlist, on_done, 0, current_project_idx)
+ self.view.window().show_quick_panel([[m[0], m[1].get('path', '??')] for m in projs], on_done, 0,... |
Update updates-october-2020.md
ATT&CK consumers have requested a list of the techniques and sub-techniques added in the v8 ATT&CK release that were not a part of the PRE merger or the new Network platform. Adding a list of the 1 Technique and 7 sub-techniques. | @@ -140,7 +140,18 @@ We will continue to build out additional Network techniques and sub-techniques a
**Enterprise**
-We also added 1 additional new technique and 7 sub-techniques to Enterprise in this ATT&CK release beyond the scope of the above updates. All Enterprise technique changes, including this new technique a... |
(from AES) HACK per Don't regenerate OPENSOURCE.md when doing `make generate`.
The Golang part of OPENSOURCE.md isn't properly running in the builder container, which makes it effectively impossible to get it right from a Mac. :( | @@ -9,7 +9,7 @@ generate/files += $(OSS_HOME)/pkg/api/envoy
generate/files += $(OSS_HOME)/pkg/api/pb
generate/files += $(OSS_HOME)/pkg/envoy-control-plane
generate/files += $(OSS_HOME)/docker/test-ratelimit/ratelimit.proto
-generate/files += $(OSS_HOME)/OPENSOURCE.md
+# generate/files += $(OSS_HOME)/OPENSOURCE.md # Per... |
Update user_manual.md
MPI description added | @@ -548,7 +548,8 @@ needed for this is a compliant C compiler and a local MPI installation such as O
In what follows we describe the steps to execute openQCD using udocker in a HPC system with a batch system /eg. SLURM).
An analogous procedure can be followed for generic MPI applications
-A container version can be dow... |
[gradle] update shadow plugin
The changelog for [6.0.0](https://github.com/johnrengelman/shadow/releases/tag/6.0.0) claims performance improvements. In practice,
I save maybe a few second on the `shadowJar` step. | @@ -9,7 +9,7 @@ plugins {
id 'java'
id 'scala'
id 'idea'
- id 'com.github.johnrengelman.shadow' version '5.0.0'
+ id 'com.github.johnrengelman.shadow' version '6.1.0'
id "de.undercouch.download" version "3.2.0"
id 'eclipse'
}
|
Add a mising import
`path` needs to be imported. | @@ -43,7 +43,8 @@ URLconf
Add the Debug Toolbar's URLs to your project's URLconf as follows::
from django.conf import settings
- from django.conf.urls import include, url
+ from django.conf.urls import include, url # For django versions before 2.0
+ from django.urls import include, path # For django versions from 2.0 a... |
fix: Update modified to pick up field change
Default Print Language is not picked up in some migrations | "issingle": 0,
"istable": 0,
"max_attachments": 0,
- "modified": "2017-09-05 14:01:05.658719",
+ "modified": "2017-09-05 14:02:05.658719",
"modified_by": "Administrator",
"module": "Printing",
"name": "Print Format",
|
[ci] Add branch protections to .asf.yaml
Moving these into the repo means we will be able to change them at-will.
`tvm-ci/pr-merge` will change soon into `tvm-ci/pr-head` to fix an
unrelated bug, but codifying it here means we can more easily coordinate
the change. | @@ -49,3 +49,14 @@ github:
- denise-k
- driazati
- tvm-bot # For automated feedback in PR review.
+
+ # See https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-Branchprotection
+ protected_branches:
+ main:
+ required_status_checks:
+ contexts:
+ # Require a passing run from ... |
kotlin: the `plugin_id` field on `kotlinc_plugin` target is optional
The `plugin_id` field on the `kotlinc_plugin` target has a default and should not have been marked as required.
[ci skip-rust] | @@ -172,7 +172,6 @@ class KotlincPluginArtifactField(StringField):
class KotlincPluginIdField(StringField):
alias = "plugin_id"
- required = True
help = softwrap(
"""
The ID for `kotlinc` to use when setting options for the plugin.
|
Tests: Cleanup ".pdb" files on Windows too.
* In debug mode these were created, but never removed, polluting the
checkout. | @@ -555,6 +555,8 @@ Taking coverage of '{filename}' using '{python}' with flags {args} ...""".
os.path.join(output_dir, exe_filename)
]
+ pdb_filename = exe_filename[:-4] + ".pdb"
+
if trace_command:
my_print("CPython command:", *cpython_cmd)
@@ -746,6 +748,8 @@ Exit codes {exit_cpython:d} (CPython) != {exit_nuitka:d} ... |
Update intro to product overview
Messaging adjustments. Please feel free to edit typos and grammar. | Product Overview
============================
-**Mattermost** empowers organizations to achieve their highest priorities through modern, enterprise-grade communication. Enjoy all the productivity benefits of workplace messaging across web, mobile and PC, with unlimited archiving, search and integrations in a single-ten... |
refactor test
simplifies the devce checking test | @@ -215,23 +215,8 @@ class MixedInt8TestMultiGpu(BaseMixedInt8Test):
self.model_name, load_in_8bit=True, max_memory=memory_mapping, device_map="auto"
)
- def get_list_devices(model):
- list_devices = []
- for _, module in model.named_children():
- if len(list(module.children())) > 0:
- list_devices.extend(get_list_devi... |
Update dynamic_step_driver.py
fixed lint errors | @@ -193,7 +193,8 @@ class DynamicStepDriver(driver.Driver):
self.env.time_step_spec())
counter = tf.zeros(batch_dims, tf.int32)
- [_, time_step, policy_state] = tf.nest.map_structure(tf.stop_gradient,tf.while_loop(
+ [_, time_step, policy_state] = tf.nest.map_structure(tf.stop_gradient,
+ tf.while_loop(
cond=self._loop... |
Subclass checks
Move type checking in the facade back to checking subclass checks. | @@ -224,7 +224,7 @@ def strcast(kind, keep_builtins=False):
return str(kind)[1:]
if kind is typing.Any:
return 'Any'
- if kind is typing.GenericMeta:
+ if issubclass(kind, typing.GenericMeta):
return str(kind)[1:]
return kind
|
Fix model name not including user
The model names in models.yaml include the username prefix.
Also fixed a lint error. | @@ -267,6 +267,7 @@ class Connection:
username = accounts['user']
password = accounts.get('password')
models = jujudata.models()[controller_name]
+ model_name = '{}/{}'.format(username, model_name)
model_uuid = models['models'][model_name]['uuid']
macaroons = get_macaroons() if not password else None
@@ -349,7 +350,7 @... |
custom_profile_fields: Control-group to input-group class correction.
There is no control-group class to hide/show in custom profile fields
list instead there is input-group class, kind of little typo I guess
from this commit. | @@ -295,11 +295,11 @@ function set_up_external_account_field_edit_form(field_elem, url_pattern_val) {
if (field_elem.$form.find("select[name=external_acc_field_type]").val() === "custom") {
field_elem.$form.find("input[name=url_pattern]").val(url_pattern_val);
field_elem.$form.find(".custom_external_account_detail").sh... |
Override finalize in pure_nccl_communicator
Override finalize to destroy nccl communicator | @@ -47,6 +47,12 @@ class PureNcclCommunicator(mpi_communicator_base.MpiCommunicatorBase):
self.allreduce_dtype_to_grad_dtype_kernel = None
self.params_data = None
+ def finalize(self):
+ super(PureNcclCommunicator, self).finalize()
+ if self.nccl_comm is not None:
+ self.nccl_comm.destroy()
+ self.nccl_comm = None
+
de... |
Fix calling to_timedelta twice
to_timedelta is called in schedule_relative already | @@ -79,7 +79,6 @@ class EventLoopScheduler(SchedulerBase, Disposable):
def schedule_periodic(self, period, action, state=None):
"""Schedule a periodic piece of work."""
- dt = self.to_timedelta(period)
disposed = []
s = [state]
@@ -88,12 +87,12 @@ class EventLoopScheduler(SchedulerBase, Disposable):
if disposed:
return... |
audio bitrate 0 fix
Adjust the 0 of audio bitrate settings
Improved the 'guess' based no source material
Also fixed a bug where iOS audio would fail to guess | @@ -422,6 +422,16 @@ class MkvtoMp4:
# Create iOS friendly audio stream if the default audio stream has too many channels (iOS only likes AAC stereo)
if self.iOS and a.audio_channels > 2:
iOSbitrate = 256 if (self.audio_bitrate * 2) > 256 else (self.audio_bitrate * 2)
+
+ # Bitrate calculations/overrides
+ if self.audi... |
suggestion for:
more friendly/less personal suggestion. | @@ -3,14 +3,14 @@ When creating a new JSON file you might run into the following error.
`JSONDecodeError: Expecting value: line 1 column 1 (char 0)`
In short, this means that your JSON is invalid in its current state. This could very well happen because the file is just new and completely empty.
-Whilst the JSON data, ... |
Adding two cryptocurrencies APIs
CoinMarketCap and CryptoCompare both are equally good but CryptoCompare supports logos for each currency. Thought this might be a good addition. | @@ -224,7 +224,9 @@ API | Description | Auth | HTTPS | Link |
| Barchart OnDemand | Stock, Futures, and Forex Market Data | `apiKey` | Yes | [Go!](https://www.barchartondemand.com/free) |
| Blockchain | Bitcoin Payment, Wallet & Transaction Data | No | Yes | [Go!](https://www.blockchain.info/api) |
| CoinDesk | Bitcoin... |
Fix seemingly broken padding semantics in praxis/convolutions.py and lingvo/conv_layers_with_time_padding.py
I added a few tests passing NaN showing that at least now it seems to work.
I'll be happy to take comments on how to progress and possibly split this up. | @@ -338,7 +338,7 @@ class BaseConv2DLayerWithPadding(base_layer.BaseLayer):
def _ApplyPadding(tensor_in, padding_in):
padding_expanded = tf.expand_dims(tf.expand_dims(padding_in, -1), -1)
- return tensor_in * (1.0 - padding_expanded)
+ return py_utils.ApplyPadding(padding_expanded, tensor_in)
# Zeroing out padded input... |
Update README.md with API information
Detailed the difference between Xarray and NumPy APIs. | @@ -30,3 +30,9 @@ pip install --prefix $PREFIX .
```
where $PREFIX is the path that `ncomp` is installed.
+
+
+Xarray interface vs NumPy interface
+===================================
+
+GeoCAT-comp provides a high-level Xarray interface under the `geocat.comp` namespace. However, a stripped-down NumPy interface is use... |
Clarify docs for pytest.raises `match`.
For
Document explicit behavior of `match` and brief note on how to handle matching a string that may contain special re chars. | @@ -558,7 +558,13 @@ def raises(expected_exception, *args, **kwargs):
Assert that a code block/function call raises ``expected_exception``
or raise a failure exception otherwise.
- :kwparam match: if specified, asserts that the exception matches a text or regex
+ :kwparam match: if specified, a string containing a regu... |
Handle 'file:' URIs in hover content
VSCode assumes the fragment is a 1-based row offset so we'll assume that too. | @@ -9,8 +9,8 @@ from .core.sessions import SessionBufferProtocol
from .core.settings import userprefs
from .core.typing import List, Optional, Any, Dict, Tuple, Sequence
from .core.views import diagnostic_severity
-from .core.views import format_diagnostic_for_html
from .core.views import first_selection_region
+from .... |
Fix incorrect billable_units for email test data
Emails always retain the default of "0" [^1].
[^1]: | @@ -49,7 +49,7 @@ def set_up_yearly_data():
# doesn't accidentally bleed over into them
for dt in (date(2016, 3, 31), date(2017, 4, 1)):
create_ft_billing(bst_date=dt, template=sms_template, rate=0.163)
- create_ft_billing(bst_date=dt, template=email_template, rate=0)
+ create_ft_billing(bst_date=dt, template=email_tem... |
Add 1.4.0 release in CHANGELOG
Separate unreleased commits to new 1.4.0 release. | @@ -17,7 +17,10 @@ Changelog
.. Release notes for existing releases are MUTABLE! If there is something that
was missed or can be improved, feel free to change it!
-unreleased
+usreleased
+--------------------
+
+[1.4.0] - 2019-01-29
--------------------
Changed
|
add simplification for Transpose._add
This patch adds a simplification to the addition of a transpose, similar to the
existing simplification of a multiplication of a transpose. Additionally, a
simplification shortcut is placed in Transpose._transpose for the benefit of
these operations. | @@ -1370,6 +1370,12 @@ class Transpose(Array):
return ','.join(map(str, self.axes))
def _transpose(self, axes):
+ if axes == self._invaxes:
+ # NOTE: While we could leave this particular simplification to be dealt
+ # with by Transpose, the benefit of handling it directly is that _add and
+ # _multiply can rely on _tra... |
Update `show_title` to False in `get_full_name`
This fixes duplicate titles shown in some places. | @@ -83,7 +83,7 @@ class PersonMixin:
return get_default_values(type(self)).get('_title', UserTitle.none).title
return self._title.title
- def get_full_name(self, show_title=True, last_name_first=True, last_name_upper=True,
+ def get_full_name(self, show_title=False, last_name_first=True, last_name_upper=True,
abbrev_fi... |
facts: always set ceph_run_cmd and ceph_admin_command
always set these facts on monitor nodes whatever we run with `--limit`.
Otherwise, playbook will fail when using `--limit` on nodes where these
facts are used on a delegated task to monitor. | - name: set_fact ceph_run_cmd
set_fact:
ceph_run_cmd: "{{ container_binary + ' run --rm --net=host -v /etc/ceph:/etc/ceph:z -v /var/lib/ceph/:/var/lib/ceph/:z -v /var/log/ceph/:/var/log/ceph/:z --entrypoint=ceph ' + ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment... |
removing print statement in else clause, this is being executed in
several buildtest commands which is not appropriate. | @@ -167,8 +167,7 @@ def load_configuration(config_path=None):
for tree in os.getenv("MODULEPATH", "").split(":"):
if os.path.isdir(tree):
tree_list.append(tree)
- else:
- print(f"Skipping module tree {tree} because path does not exist")
+
config_opts["BUILDTEST_MODULEPATH"] = tree_list
return config_opts
|
[meta] update backport config for 7.13 branch
This commits update sqren/backport config to handle 7.13 branch.
Also remove 7.12 branch. | "upstream": "elastic/helm-charts",
"targetBranchChoices": [
"6.8",
- "7.12",
+ "7.13",
"7.x"
],
"all": true,
"prFilter": "label:need-backport",
- "targetPRLabels": ["backport"],
- "sourcePRLabels": ["backported"]
+ "targetPRLabels": [
+ "backport"
+ ],
+ "sourcePRLabels": [
+ "backported"
+ ]
}
|
[tests] use generated config and real sha for tests
This should reduce external cloud storage dependencies making
infrastructure changes easier. | @@ -225,6 +225,8 @@ test_project() {
}
test_gcp() {
+ local conf_file="./hail-config-0.2-test.json"
+ python ./create_config_file.py '0.2' $conf_file
time gsutil cp \
build/libs/hail-all-spark.jar \
gs://hail-ci-0-1/temp/$SOURCE_SHA/$TARGET_SHA/hail.jar
@@ -241,7 +243,9 @@ test_gcp() {
--version 0.2 \
--spark 2.2.0 \
-... |
Suppress missing Content-Type headers when fetching content
Fixes | @@ -40,8 +40,13 @@ log = logging.getLogger(__name__)
async def json_or_text(response):
text = await response.text(encoding='utf-8')
+ try:
if response.headers['content-type'] == 'application/json':
return json.loads(text)
+ except KeyError:
+ # Thanks Cloudflare
+ pass
+
return text
class Route:
|
Added county-data filling
Data class now pulls county data wherever there is a gap in the state
data. | @@ -62,8 +62,6 @@ class CovidDatasets:
series.at[i, 'cases'] = self.step_down(i, series)
return series
-
-
def backfill(self, series):
# Backfill the data as necessary for the model
return self.backfill_synthetic_cases(
@@ -96,14 +94,39 @@ class CovidDatasets:
return self.BED_DATA
def get_timeseries_by_country_state(se... |
Fix path to Telegraf helper script
The working directory is `/` when systemd runs this script, so we can't
use `pwd` to get to Telegraf's package directory. Instead we can use the
symlink at `/opt/mesosphere/active/telegraf`. | @@ -21,7 +21,7 @@ export DCOS_NODE_PRIVATE_IP="${node_private_ip}"
# Retrieve the fault domain for this machine
fault_domain_script="/opt/mesosphere/bin/detect_fault_domain"
-fault_domain_extractor="$(pwd)/tools/extract_fault_domain.py"
+fault_domain_extractor="/opt/mesosphere/active/telegraf/tools/extract_fault_domain... |
Fix broken link in configuration reference
Link to the 'configuration reference documentation' was broken | @@ -45,7 +45,7 @@ The configuration of opsdroid is done in a [YAML](https://yaml.org/) file called
_Note: if no configuration file is found then opsdroid will use an `example_configuration.yaml` and place it in one of the default locations.`_
-Make sure to read the [configuration reference documentation](../configurati... |
Fix Lint
Summary:
Pull Request resolved:
As pointed out in the previous PR broke the Lint.
ghstack-source-id: | @@ -4,9 +4,9 @@ import unittest
import torch
import torch.nn.quantized as nnq
from torch.quantization import \
- QConfig_dynamic, default_observer, default_weight_observer, \
+ QConfig_dynamic, default_weight_observer, \
quantize, prepare, convert, prepare_qat, quantize_qat, fuse_modules, \
- quantize_dynamic, default_... |
Update signing lib for verifying signature bytes
Updates the signing library to allow verification of signatures as bytes
in addition to hex. | @@ -114,10 +114,11 @@ class Secp256k1Context(Context):
def verify(self, signature, message, public_key):
try:
- sig_bytes = bytes.fromhex(signature)
+ if isinstance(signature, str):
+ signature = bytes.fromhex(signature)
sig = public_key.secp256k1_public_key.ecdsa_deserialize_compact(
- sig_bytes)
+ signature)
return p... |
Update tests/eth2/core/beacon/operations/test_pool.py
Simplify constant calculation via PR feedback | @@ -9,7 +9,7 @@ from eth2.beacon.types.attestations import Attestation
def mk_attestation(index, sample_attestation_params):
return Attestation(**sample_attestation_params).copy(
- custody_bits=(True,) * 8 * 16,
+ custody_bits=(True,) * 128,
)
|
Several stylistic refactors to _cached_results
Invert if expressions and convert block to "return check". This helps
to reduce the number of levels of indentation.
Shuffle the logging a bit to make it more succinct | @@ -311,7 +311,8 @@ class InsightsClientApi(object):
def _cached_results(self):
# archive_tmp_dir and .lastcollected must both exist
file_name = constants.archive_last_collected_date_file
- if os.path.isfile(file_name):
+ if not os.path.isfile(file_name):
+ return
# get .lastcollected timestamp and archive
# .lastcolle... |
fix typo: stdio gui with no wallet
same as - should have been included there | @@ -26,7 +26,7 @@ class ElectrumGui(BaseElectrumGui):
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
self.network = daemon.network
storage = WalletStorage(config.get_wallet_path())
- if not storage.file_exists:
+ if not storage.file_exists():
print("Wallet not found. try 'electrum create'... |
documentation.py: remove a duplicate entry
TN: minor | @@ -80,7 +80,7 @@ base_langkit_docs = {
Data type for env rebindings. For internal use only.
""",
'langkit.token_kind': """
- Type for individual tokens.
+ Kind for this token.
""",
'langkit.token_type': """
Reference to a token in an analysis unit.
@@ -613,9 +613,6 @@ base_langkit_docs = {
Return 1 if successful.
% en... |
Update ckdtree.pyx
fixing typo in the documentation | @@ -421,7 +421,7 @@ cdef class cKDTree:
point.
The algorithm used is described in Maneewongvatana and Mount 1999.
- The general idea is that the kd-tree is a binary trie, each of whose
+ The general idea is that the kd-tree is a binary tree, each of whose
nodes represents an axis-aligned hyperrectangle. Each node speci... |
Add safeguards to our channel fuzzing operations to prevent
different operations from colliding. | @@ -55,6 +55,8 @@ class ChannelBuilder(object):
def __init__(self, levels=3):
self.levels = levels
+ self.modified = set()
+
try:
self.load_data()
except KeyError:
@@ -208,17 +210,22 @@ class ChannelBuilder(object):
def duplicate_resources(self, num_resources):
self.duplicated_resources = []
for i in range(0, num_resou... |
Moved FHIR API from "Health" to "Test Data" section
Per recommendation, moved this new link to "Test Data" section since data contained by the API is "dummy data" conforming to the FHIR spec. | @@ -363,7 +363,6 @@ API | Description | Auth | HTTPS | Link |
|---|---|---|---|---|
| BetterDoctor | Detailed information about doctors in your area | `apiKey` | Yes | [Go!](https://developer.betterdoctor.com/) |
| Diabetes | Logging and retrieving diabetes information | No | No | [Go!](http://predictbgl.com/api/) |
-|... |
config/ie/options : Fix typo with IE_STOMP_VERSION
When previously testing IE_STOMP_VERSION, it happened to be with a patch version of 0, so I didn't notice this typo | @@ -95,7 +95,7 @@ targetAppVersion = None
if int( getOption( "IE_STOMP_VERSION", "0" ) ):
registryVersion = os.environ["GAFFER_COMPATIBILITY_VERSION"] + ".0.0"
- GAFFER_MILESTONE_VERSION, GAFFER_MAJOR_VERSION, GAFFER_MINOR_VERSION, GAFFER_PATH_VERSION = os.environ["GAFFER_VERSION"].rstrip( "dev" ).split( "." )
+ GAFFER... |
Adding the UpdateModelMixin to the ReminderViewSet.
This will allow us to edit durations using the PATCH method,
which the bot implements already but which was overlooked
when this viewset was written. | @@ -3,7 +3,8 @@ from rest_framework.filters import SearchFilter
from rest_framework.mixins import (
CreateModelMixin,
DestroyModelMixin,
- ListModelMixin
+ ListModelMixin,
+ UpdateModelMixin
)
from rest_framework.viewsets import GenericViewSet
@@ -11,7 +12,7 @@ from pydis_site.apps.api.models.bot.reminder import Remind... |
Ensure we aren't operating on a closed sqlite3 db w/hooks.
Fixes | @@ -1411,6 +1411,9 @@ def sqlite_get_db_status(conn, flag):
int current, highwater, rc
pysqlite_Connection *c_conn = <pysqlite_Connection *>conn
+ if not c_conn.db:
+ return (None, None)
+
rc = sqlite3_db_status(c_conn.db, flag, ¤t, &highwater, 0)
if rc == SQLITE_OK:
return (current, highwater)
@@ -1440,6 +1443,9... |
Update explainer link(s) help text
This updates the explainer link(s) help text to reflect that in the
document version of the intent templates. | @@ -974,7 +974,7 @@ class FeatureForm(forms.Form):
explainer_links = forms.CharField(label='Explainer link(s)', required=False,
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50, 'maxlength': 500}),
- help_text='Link to explainer(s) (one URL per line). You should have at least an explainer in hand and have discussed t... |
resources jar is reproducible by default, no need to strip
Remove use of the `[jvm].reproducible_jars` option for resources jars, since they are now deterministic by default.
[ci skip-rust]
[ci skip-build-wheels] | @@ -28,7 +28,6 @@ from pants.jvm.compile import (
FallibleClasspathEntries,
FallibleClasspathEntry,
)
-from pants.jvm.strip_jar.strip_jar import StripJarRequest
from pants.jvm.subsystems import JvmSubsystem
from pants.util.logging import LogLevel
@@ -119,8 +118,6 @@ async def assemble_resources_jar(
)
output_digest = r... |
Cache interfaces indefinitely
Setting timeout to 0 does not cache at all, should be None instead | @@ -1014,7 +1014,7 @@ class ReaderStudy(UUIDModel, TitleSlugDescriptionModel, ViewContentMixin):
"selected": "",
"selected_image": "",
}
- cache.set(cache_key, values_for_interfaces, timeout=0)
+ cache.set(cache_key, values_for_interfaces, timeout=None)
return values_for_interfaces
@@ -1093,7 +1093,7 @@ class DisplaySe... |
test: Fix flaky grid flaky test
Simplified test case as bit | context('Grid Keyboard Shortcut', () => {
let total_count = 0;
- beforeEach(() => {
- cy.login();
- cy.visit('/app/doctype/User');
- });
before(() => {
cy.login();
- cy.visit('/app/doctype/User');
- return cy.window().its('frappe').then(frappe => {
- frappe.db.count('DocField', {
- filters: {
- 'parent': 'User', 'paren... |
Added MLPlan to frameworks.yaml
Changed setup url from local server to public release server. | @@ -68,6 +68,14 @@ AutoWEKA:
version: '2.6'
project: https://www.cs.ubc.ca/labs/beta/Projects/autoweka/
+MLPlanWEKA:
+ version: 'latest'
+ project: https://mlplan.org
+
+MLPlanSKLearn:
+ version: 'latest'
+ project: https://mlplan.org
+
H2OAutoML:
version: '3.30.0.3'
project: http://docs.h2o.ai/h2o/latest-stable/h2o-do... |
Add recusive_zip function based on zipfile
The function add can zip files in an arbitrary directory without
the need of switching to that directory which is important
for the parallel use of the function.
Since it is not possible to change the current working direcotry only
for a single thread. | @@ -5,6 +5,7 @@ import re
import shutil
import time
import math
+import zipfile
from datetime import datetime, timezone
from typing import cast, Dict, Optional, Tuple, List, Type
@@ -581,3 +582,43 @@ class GCP(System):
# @abstractmethod
# def download_metrics(self):
# pass
+
+ """
+ Helper method for recursive_zip
+
+ ... |
let's see chromium output inside brozzler-worker
using --trace, because chromium seems to be working ok when we just run
it | @@ -11,7 +11,7 @@ exec nice setuidgid {{user}} \
brozzler-worker \
--rethinkdb-servers={{groups['rethinkdb'] | join(',')}} \
--max-browsers=4 \
- --verbose \
+ --trace \
--warcprox-auto \
>> $logfile 2>&1
|
Add support for OK
Add support for OK | "username_claimed": "blue",
"username_unclaimed": "noonewouldeverusethis7"
},
+ "OK": {
+ "errorType": "message",
+ "errorMsg": "This page does not exist on OK",
+ "rank": 1,
+ "regexCheck": "^[a-zA-Z][a-zA-Z0-9_-.]*$",
+ "url": "https://ok.ru/{}",
+ "urlMain": "https://ok.ru/",
+ "username_claimed": "ok",
+ "username_... |
No need to reinstall `tensorflow-gpu`
The `tensorflow` package on `pip` supports both CPU & GPU. | @@ -12,8 +12,6 @@ COPY --from=nvidia /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/cuda.gpg
# See b/142337634#comment28
RUN sed -i 's/deb https:\/\/developer.download.nvidia.com/deb http:\/\/developer.download.nvidia.com/' /etc/apt/sources.list.d/*.list
-# Ensure the cuda libraries are compatible with the custom Tensorfl... |
Update CHANGELOG.md
Updated changelog with description of this bugfix | @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Added some tests for model_utils
- Bug fix
- Fixed implementation of utils routines in model_utils and jro_isr
+ - Fixed error catching bug in model_utils
## [2.0.0] - 2019-07-11
- New Features
|
Weak solution, tree shifts.
Turns it off if not Windows. | # generated by wxGlade 0.9.3 on Thu Jun 27 21:45:40 2019
#
+import os
import sys
import traceback
@@ -1847,7 +1848,6 @@ class RootNode(list):
if node.type == NODE_ELEMENTS_BRANCH:
for n in self.node_elements:
self.tree.SelectItem(n.item, True)
- self.tree.SetFocusedItem(item)
self.gui.request_refresh()
return
elif node... |
Add additional special entries ...
... which are only created when you use the Parameter Test functionality | @@ -798,6 +798,8 @@ class AboutPanel(wx.Panel):
+ "\n\t* 'op_device' - Device you are burning on"
+ "\n\t* 'op_speed' - Speed of the current operation"
+ "\n\t* 'op_power' - PPI of the current operation"
+ + "\n\t* 'op_dpi' - DPI of the current (raster) operation"
+ + "\n\t* 'op_passes' - Operation passes of the curren... |
Fix SAC gpu unittest
Summary: Temporary fix gpu unittest by avoiding exporting the model before training. I will make proper fix to exporting logic in a follow-up diff. | @@ -137,8 +137,9 @@ class TestGridworldSAC(unittest.TestCase):
samples=samples,
)
- critic_predictor = self.get_predictor(trainer, environment)
- self.assertGreater(evaluator.evaluate(critic_predictor), 0.15)
+ # FIXME: need to be able to export w/o calling .cpu()
+ # critic_predictor = self.get_predictor(trainer, envi... |
Update all_ccgs.html
"NHS *in* England" & remove reference to mean | <p>Clinical commissioning groups (CCGs) are NHS organisations that organise the delivery of NHS services in England. They are clinically led groups that include all of the GP groups in their geographical area.</p>
-<p>Search for a CCG by name or code, and see how the CCG's GP prescribing compares to the national mean f... |
Reminders: show error to users if reminder is in use
Silent failure is confusing to users. Showing an error message clears up
why nothing happened with their command. | @@ -166,7 +166,7 @@ class Reminders(Cog):
log.trace(f"Scheduling new task #{reminder['id']}")
self.schedule_reminder(reminder)
- @mutually_exclusive_arg(NAMESPACE, "reminder", itemgetter("id"))
+ @mutually_exclusive_arg(NAMESPACE, "reminder", itemgetter("id"), raise_error=True)
async def send_reminder(self, reminder: d... |
doc: update link to the code of conduct
PR-URL: | ## Code of Conduct
Please read the
-[Code of Conduct](https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md)
+[Code of Conduct](https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md)
which explains the minimum behavior expectations for node-gyp contributors.
<a id="developers-certificate-of-origin"></a>... |
Update README.md
+ symbol must be url-encoded before latex rendering | @@ -135,9 +135,9 @@ A `Road` is composed of a `RoadNetwork` and a list of `Vehicles`. The `RoadNetwo
The vehicles kinematics are represented in the `Vehicle` class by a _Kinematic Bicycle Model_.
-)
+![\dot{x}=v\... |
Avoid using version.all_files (which is cached) in ReviewBase
We're getting some weird IndexError exceptions because all_files
is empty, and I can't reproduce it locally. Using self.files should
be more reliable, the class needs it to sign the files etc. | @@ -522,9 +522,8 @@ class ReviewBase(object):
add_prefix=False)),
'comments': self.data.get('comments'),
'SITE_URL': settings.SITE_URL,
- 'legacy_addon': (
- not self.version.all_files[0].is_webextension
- if self.version else False)}
+ 'legacy_addon':
+ not self.files[0].is_webextension if self.files else False}
def r... |
installDependencies : Clean extraction directory
We were leaving behind the temporary extraction directory which got included in the release archive.
Note that the use of `str( p )` in `shutil.move()` is needed until Python 3.9, where a parsing bug is fixed | #
##########################################################################
-import os
+import pathlib
import sys
import argparse
import hashlib
import subprocess
-import glob
import shutil
if sys.version_info[0] < 3 :
@@ -83,7 +82,7 @@ args = parser.parse_args()
sys.stderr.write( "Downloading dependencies \"%s\"\n" %... |
The recognition model expects grayscale, not BGR planar.
It still worked somewhat previously, as the Blue plane was taken as input | @@ -46,11 +46,6 @@ def to_tensor_result(packet):
for name in [tensor.name for tensor in packet.getRaw().tensors]
}
-
-def to_planar(arr: np.ndarray, shape: tuple) -> list:
- return [val for channel in cv2.resize(arr, shape).transpose(2, 0, 1) for y_col in channel for val in y_col]
-
-
q_prev = device.getOutputQueue("pr... |
added tag formatting to support spanish POS
since the spanish tags are formatted as a new and clearer formatting is proposed via removing the 0's and the tag identifier converted to upper case
more details presented in the referencing pull request | @@ -132,7 +132,7 @@ class StanfordTagger(TaggerI):
sentence = []
for tagged_word in tagged_sentence.strip().split():
word_tags = tagged_word.strip().split(self._SEPARATOR)
- sentence.append(("".join(word_tags[:-1]), word_tags[-1]))
+ sentence.append(("".join(word_tags[:-1]), word_tags[-1].replace('0', '').upper()))
tag... |
Switch on API rate limiting on production.
Limits POST API calls to send notifications on V1/V2 to 3000 in 60 seconds. | @@ -282,7 +282,7 @@ class Live(Config):
FUNCTIONAL_TEST_PROVIDER_SERVICE_ID = '6c1d81bb-dae2-4ee9-80b0-89a4aae9f649'
FUNCTIONAL_TEST_PROVIDER_SMS_TEMPLATE_ID = 'ba9e1789-a804-40b8-871f-cc60d4c1286f'
PERFORMANCE_PLATFORM_ENABLED = True
- API_RATE_LIMIT_ENABLED = False
+ API_RATE_LIMIT_ENABLED = True
class CloudFoundryCo... |
CI Bugfix: change Jenkins node label
CI bugfix commit changing Jenkins to request 8-core nodes for default back-end runs, aiming to fix memory limit issues. | @@ -13,7 +13,7 @@ pipeline {
parallel {
// For each combination of parameters required, build and test
stage('Build and test gcc-4.9 container') {
- agent { dockerfile { label 'azure-linux'
+ agent { dockerfile { label 'azure-linux-8core'
filename 'Dockerfile.jenkins'
additionalBuildArgs "--build-arg gccvers=4.9" } }
e... |
parsers/transform_code_ada.mako: minor reformatting
TN: | @@ -16,7 +16,7 @@ end if;
if ${parser.pos_var} /= No_Token_Index then
## Create the transform wrapper node
- ${parser.res_var} := (${parser.type.parser_allocator} (Parser.Mem_Pool));
+ ${parser.res_var} := ${parser.type.parser_allocator} (Parser.Mem_Pool);
## Initialize components common to all nodes
Initialize
|
Enhance diagnostic location for missing entity prefix for field access
TN: | @@ -14,7 +14,7 @@ from __future__ import absolute_import, division, print_function
import ast
from collections import defaultdict
-from contextlib import contextmanager
+from contextlib import contextmanager, nested
from distutils.spawn import find_executable
from glob import glob
import inspect
@@ -801,8 +801,14 @@ cl... |
Disable changing map size for 32-bit intepreters.
Also, reduced max size for 64-bit systems. Eliminated unused constant. | @@ -29,9 +29,6 @@ import xxhash
# Largest primary key value. No more rows than this
MAX_PK = sys.maxsize
-# Bytes in MAX_PK
-MAX_PK_BYTES = 8 if sys.maxsize > 2**32 else 4
-
# Prefix to indicate that a v is a nonnegative value
NONNEGATIVE_VAL_MARKER = 0
@@ -221,6 +218,11 @@ class Cortex(s_cores_common.Cortex):
Checks i... |
Bugfix missing absolute statement
sum not including absolute function call | @@ -873,7 +873,7 @@ def solve_network_temperatures(locator, gv, T_ground, edge_node_df, all_nodes_df
"""
- if edge_mass_flow_df.values.sum() != 0:
+ if np.absolute(edge_mass_flow_df.values).sum() != 0:
## change pipe flow directions in the edge_node_df_t according to the flow conditions
change_to_edge_node_matrix_t(edg... |
Optimization: Store node children as node attributes
* This saves having a dictionary per for node with any child,
even just one.
* Memory usage goes down by 6% doing this.
* This will also allow more direct access without going through
accessor functions. | @@ -208,7 +208,9 @@ class NodeBase(NodeMetaClassBase):
"""
parent = self.getParent()
- for key, value in parent.child_values.items():
+ for key in parent.named_children:
+ value = parent.getChild(key)
+
if self is value:
return key
@@ -566,16 +568,14 @@ class ChildrenHavingMixin:
# but of course, might be put to None.
... |
Fix Cisco.IOS.get_portchannel script
HG--
branch : feature/microservices | @@ -33,10 +33,10 @@ class Script(BaseScript):
return []
for i in parse_table(s, allow_wrap=True):
iface = {
- "interface": self.extract_iface(i[1]),
+ "interface": self.extract_iface(i[1].strip()),
"members": []
}
- if (len(i) == 4) and (i[2] == "LACP"):
+ if (len(i) == 4) and (i[2].strip() == "LACP"):
iface["type"] = ... |
feat: add /anomalies endpoint
proxies the google sheet | @@ -5,6 +5,7 @@ from flask import Blueprint, request
from flask.json import loads, jsonify
from bisect import bisect_right
from sqlalchemy import text
+from pandas import read_csv
from .._common import is_compatibility_mode, db
from .._exceptions import ValidationFailedException, DatabaseErrorException
@@ -32,7 +33,7 @... |
ansible: document and rearrange Runner params.
Move emulate_tty to where it's used. | @@ -91,15 +91,24 @@ class Runner(object):
returned by `run()`.
Subclasses may override `_run`()` and extend `setup()` and `revert()`.
- """
- def __init__(self, module, service_context, emulate_tty=None,
- args=None, env=None):
+
+ :param str module:
+ Name of the module to execute, e.g. "shell"
+ :param mitogen.core.C... |
Fix, the matching for packages to not recompile was broken
* It was working on the basename of the module, not seeing the fullname, and
therefore never matched. | @@ -341,7 +341,7 @@ existing '%s' extension module by default. Candidates were: %s <-> %s."""
)
-def _findModuleInPath2(module_name, search_path):
+def _findModuleInPath2(package_name, module_name, search_path):
"""This is out own module finding low level implementation.
Just the full module name and search path are gi... |
Assert that our Sphinx is >= v1.8.
Before that, `:type: Foo` would not link to the Foo class. | @@ -16,11 +16,19 @@ import logging
import sys
import os
import re
+import sys
+
+import sphinx
logging.basicConfig()
+if sphinx.version_info < (1, 8):
+ print("Sphinx {} is too old; we require >= 1.8.".format(sphinx.__version__), file=sys.stderr)
+ exit(1)
+
+
# If extensions (or modules to document with autodoc) are i... |
Fix CI cache
Fix conditon of downloading the fixtures
Use `.circleci/config.yml` checksum for cache id
Add restore path | @@ -111,7 +111,7 @@ eth2_fixtures: ð2_fixtures
when: on_fail
- restore_cache:
keys:
- - cache-v3-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
+ - cache-v3-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}-{{ checksum ".circleci/... |
Update local executor failure details
Make them similar to the SWF ones. | import collections
import logging
+import sys
+import traceback
from simpleflow import (
exceptions,
@@ -11,7 +13,7 @@ from simpleflow.marker import Marker
from simpleflow.signal import WaitForSignal
from simpleflow.task import ActivityTask, WorkflowTask, SignalTask, MarkerTask
from simpleflow.activity import Activity
... |
fix non-existent vcf file
Authored by: Vicente | @@ -57,8 +57,8 @@ if(any(sa$aux1 == F)){
}
#' Check for nonexistent VCF files
-if('DNA_VCF_FILE' %in% colnames(sa)){
- sa[, aux1 := file.exists(DNA_VCF_FILE) | is.na(DNA_ID)]
+if(! all(sa[,is.na(DNA_VCF_FILE)])){
+ sa[, aux1 := file.exists(DNA_VCF_FILE)]
if(any(sa$aux1 == F)){
print('The following VCF files do not exis... |
Partial Metadata fix
Added partial fix for kp meta data. There's a bug that needs to be fixed. | @@ -103,7 +103,7 @@ def load(fnames, tag=None, sat_id=None):
"""
from pysat.utils import parse_date
-
+ meta = pysat.Meta()
if tag == '':
# Kp data stored monthly, need to return data daily
# the daily date is attached to filename
@@ -148,20 +148,26 @@ def load(fnames, tag=None, sat_id=None):
flag = np.array([x[1] for ... |
Change log.error to log.exception
See issue | @@ -78,13 +78,12 @@ class Cogs:
try:
self.bot.load_extension(full_cog)
except ImportError:
- log.error(f"{ctx.author} requested we load the '{cog}' cog, "
+ log.exception(f"{ctx.author} requested we load the '{cog}' cog, "
f"but the cog module {full_cog} could not be found!")
embed.description = f"Invalid cog: {cog}\n\... |
Composition: optimize _update_processing_graph
- reduces unnecessary iterations | @@ -2353,46 +2353,39 @@ class Composition(Composition_Base, metaclass=ComponentsMeta):
self._graph_processing = self.graph.copy()
- visited_vertices = set()
- next_vertices = [] # a queue
-
- unvisited_vertices = True
-
- while unvisited_vertices:
- for vertex in self._graph_processing.vertices:
- if vertex not in visi... |
Patches the old-object unpickling to be compatible w/older GateStrings too.
Version 0.9.6 GateStrings have a ._str member but even older versions
of this object have a .str member instead. This commit updates the
special GateString.__setstate__ used when old-object-unpickling
is enabled to work with both versions. | @@ -22,7 +22,8 @@ def enable_old_object_unpickling():
replacement_obj = _circuit.Circuit.__new__(_circuit.Circuit)
return replacement_obj
def GateString_setstate(self,state):
- c = _objs.Circuit(state['_tup'], stringrep=state['_str'])
+ s = state['_str'] if '_str' in state else state['str']
+ c = _objs.Circuit(state['_... |
SystemCommand : Move `hash()` before `execute()`
Sticking to convention makes the implementations easier to verify. | @@ -52,6 +52,16 @@ class SystemCommand( GafferDispatch.TaskNode ) :
self["substitutions"] = Gaffer.CompoundDataPlug()
self["environmentVariables"] = Gaffer.CompoundDataPlug()
+ def hash( self, context ) :
+
+ h = GafferDispatch.TaskNode.hash( self, context )
+
+ self["command"].hash( h )
+ self["substitutions"].hash( h... |
added servicenow-get-computer command
* added servicenow-get-computer command
servicenow-get-computer: query the cmdb_ci_computer table with a computer code
returns: 'sys_id', 'u_code', 'support_group.value', 'os', 'comments'
* addded outputs | @@ -573,6 +573,47 @@ script:
return {'ContentsFormat': formats['json'], 'Type': entryTypes['note'], 'Contents': res, "HumanReadable": md, "EntryContext": ec};
};
+ var SNGetComputer = function (computerName) {
+ var ticket_type = "cmdb_ci_computer";
+ if (computerName) {
+ var path = "table/" + ticket_type + encodeToUR... |
Prepare Changelog for Automation
This PR prepares the changelog to be automatically updated during releases.
Authors:
- AJ Schmidt (@ajschmidt8)
Approvers:
- Dante Gama Dessavre (@dantegd)
URL: | -# cuML 0.18.0 (Date TBD)
+# 0.18.0
-## New Features
-
-## Improvements
-
-## Bug Fixes
-- PR #3279: Correct pure virtual declaration in manifold_inputs_t
+Please see https://github.com/rapidsai/cuml/releases/tag/branch-0.18-latest for the latest changes to this development branch.
-# cuML 0.17.0 (Date TBD)
+# cuML 0.1... |
Fix CoC link in training request form
This commit/PR fixes | @@ -36,11 +36,7 @@ we'd be happy to help.</p>
<p>Please note that as a condition of taking this training:</p>
<ul>
- <li>You are required to abide by our Code of Conduct, which can be found at
- <a href="http://software-carpentry.org/conduct/">http://software-carpentry.org/conduct/</a>
- and
- <a href="http://datacarpe... |
Hints: Make import tracer robust against imports from "print" function.
* Also be more Python3 compatible by using proper level default for that
version. | @@ -61,7 +61,9 @@ def _moduleRepr(module):
def enableImportTracing(normalize_paths = True, show_source = False):
def _ourimport(name, globals = None, locals = None, fromlist = None, # @ReservedAssignment
- level = -1):
+ level = -1 if sys.version_info[0] < 2 else 0):
+ builtins.__import__ = original_import
+
global _in... |
Remove extra "Hello," in developer notification after version update
Also move the contact link to the same line as the text it relates to | {% extends "reviewers/emails/base.ltxt" %}{% block content %}
-Hello,
-
Your add-on {{ name }} has been updated on addons.mozilla.org (AMO). Version {{ number }} is now available for download in our gallery at {{ addon_url }} .
This version has been screened and approved for the public. Keep in mind that other reviewer... |
Update reports/California.md
Committing suggesting changes removing officer names, I apologize - didn't mean to cause any issues! | @@ -72,7 +72,7 @@ The police are seen shooting at fleeing protestors and parked vehicles.
### LAPD officer beats multiple protesters that are filming them during a protest in Beverley Hills | May 30th
-An officer, who was identified as Officer Hwang by an eye-witness who filmed the incident on their chest mounted GoPro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.