message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Update channel-settings.rst
Fixed a typo and added a note on how to add markdown links to channel headers | @@ -26,7 +26,7 @@ Mark Channel Unread
By default, channel names are bolded for all new messages in a channel.
To only bold the channel name when you are mentioned, open the channel menu and click
-**Notification Preferences > Mark Channel Unread > Only for mention**.
+**Notification Preferences > Mark Channel Unread > ... |
Support TypeIdentifier::name()
Summary:
Pull Request resolved:
Sometimes you have a TypeIdentifier, and no way to get to
the TypeMeta. Still nice to be able to read out the name.
This should be obsoleted by smessmer's patches. | @@ -61,6 +61,8 @@ class AT_CORE_API TypeIdentifier final : public at::IdWrapper<TypeIdentifier, ui
return TypeIdentifier(11);
}
+ const char* name() const noexcept;
+
private:
constexpr explicit TypeIdentifier(uint16_t id) : IdWrapper(id) {}
friend class TypeMeta;
@@ -91,6 +93,11 @@ namespace caffe2 {
AT_CORE_API std::... |
Update README.md
Add blurb about results csv | @@ -60,6 +60,10 @@ Several (less common) features that I often utilize in my projects are included.
* Mixup (as in https://arxiv.org/abs/1710.09412) - currently implementing/testing
* An inference script that dumps output to CSV is provided as an example
+## Results
+
+A CSV file containing an ImageNet-1K validation re... |
chore(test): Update API usages
Striving for better readability
* Use frappe.db.delete instead of frappe.db.sql
* Use named kwargs instead of positional | @@ -24,7 +24,7 @@ emails = [
class TestNewsletter(unittest.TestCase):
def setUp(self):
frappe.set_user("Administrator")
- frappe.db.sql("delete from `tabEmail Group Member`")
+ frappe.db.delete("Email Group Member")
if not frappe.db.exists("Email Group", "_Test Email Group"):
frappe.get_doc({"doctype": "Email Group", "... |
Fix default cuda version in prebuild.sh for arm64
Authors:
- Jordan Jacobelli (https://github.com/Ethyling)
Approvers:
- AJ Schmidt (https://github.com/ajschmidt8)
URL: | #!/usr/bin/env bash
+ARCH=$(arch)
+if [ "${ARCH}" = "x86_64" ]; then
+ DEFAULT_CUDA_VER="11.0"
+elif [ "${ARCH}" = "aarch64" ]; then
+ DEFAULT_CUDA_VER="11.2"
+else
+ echo "Unsupported arch ${ARCH}"
+ exit 1
+fi
+
#Upload cuspatial once per PYTHON
-if [[ "$CUDA" == "11.0" ]]; then
+if [[ "$CUDA" == "${DEFAULT_CUDA_VER}... |
tables.tableextension.Table._convert_time64_() divides by zero when
its called with an empty nparr array. This happens because the
__next_indexed() method tries to conver attributes even if the
array is empty.
Fixes | @@ -956,6 +956,7 @@ cdef class Row:
# Evaluate the condition on this table fragment.
iobuf = iobuf[:recout]
+ if len(iobuf) > 0:
self.table._convert_types(iobuf, len(iobuf), 1)
self.indexvalid = call_on_recarr(
self.condfunc, self.condargs, iobuf, **self.condkwargs)
|
Fix method name for db_head_state
The actual method name is 'hive.db_head_state' | @@ -45,7 +45,7 @@ $ hive server
```
```bash
-$ curl --data '{"jsonrpc":"2.0","id":0,"method":"db_head_state"}' http://localhost:8080
+$ curl --data '{"jsonrpc":"2.0","id":0,"method":"hive.db_head_state"}' http://localhost:8080
{"jsonrpc": "2.0", "result": {"db_head_block": 19930795, "db_head_time": "2018-02-16 21:35:42... |
Refactor
move tcc function (tcc_pos) to tcc.py
sent_tokenize() and subword_tokenize() must return something
replace while loops with for loops in isthai() and syllable_tokenize() (faster) | @@ -62,6 +62,15 @@ def tcc_gen(w):
p += n
+def tcc_pos(text):
+ p_set = set()
+ p = 0
+ for w in tcc_gen(text):
+ p += len(w)
+ p_set.add(p)
+ return p_set
+
+
def tcc(w, sep="/"):
return sep.join(tcc_gen(w))
|
add rule for clean
* add rule for clean
* Update clean rule
Seems like lib/ directory is not made by the makefile
So don't delete directory, just the contents of it. | @@ -49,3 +49,5 @@ lib/cpp_deploy_pack: cpp_deploy.cc lib/test_addone_sys.o lib/libtvm_runtime_pack
lib/cpp_deploy_normal: cpp_deploy.cc lib/test_addone_sys.o
@mkdir -p $(@D)
$(CXX) $(PKG_CFLAGS) -o $@ $^ -ltvm_runtime $(PKG_LDFLAGS)
+clean:
+ rm lib/libtvm_runtime_pack.o lib/test_addone_sys.o lib/cpp_deploy_pack lib/cp... |
Update generic.txt
Connected with . Currently nameless malware family. | @@ -9374,7 +9374,14 @@ lxj.vvn.mybluehost.me
# Reference: https://app.any.run/tasks/5279381c-b255-482a-ae64-02ed6177bc12/
-http://savannahhoney.co.ke/wp-content/uploads/
+savannahhoney.co.ke/wp-content/uploads/
+
+# Reference: https://github.com/silence-is-best/c2db#unknowns
+
+103.136.43.131:9998
+185.222.202.29:9998
... |
make fix-flake8: parallelize autoflake8 execution
...by pip-installing a PR I provided for autoflake8 packages which adds
jobs option to the tool, see | @@ -9,7 +9,7 @@ TSCRIPT = psutil/tests/runner.py
# Internal.
DEPS = \
- autoflake \
+ git+https://github.com/PyCQA/autoflake.git@refs/pull/107/head \
autopep8 \
check-manifest \
concurrencytest \
@@ -213,7 +213,7 @@ lint-all: ## Run all linters
fix-flake8: ## Run autopep8, fix some Python flake8 / pep8 issues.
@git ls-... |
MAINT: Decrease merge conflicts in release notes
Merge conflicts due to the release notes has been an annoying
problem requiring a rebase of otherwise good PRs. The solution
here is to use the --union option when merging to those files.
Closes | +# Line endings for Windows scripts
* text=auto
tools/win32build/nsis_scripts/*.nsi.in eol=crlf
# Numerical data files
numpy/lib/tests/data/*.npy binary
+
+# Release notes, reduce number of conflicts.
+doc/release/*.rst merge=union
|
Links to CSV/TSV/JSON data prep
The links to data preparation and to sample usage of CSV/TSV(/JSON) is not explicit in the project master README. Added them in. | @@ -12,7 +12,7 @@ KGX allows conversion to and from:
* RDF serializations (read/write) and SPARQL endpoints (read)
* Neo4J endpoints (read) or Neo4J dumps (write)
- * CSV/TSV
+ * CSV/TSV and JSON (see [associated data formats](./data-preparation.md) and [example script to load CSV/TSV to Neo4j](./examples/scripts/load_... |
llvm, tests/composition: Enable LLVMRun for multi-stimulus tests
Check result values in test_transfer_mechanism_composition | @@ -1050,7 +1050,8 @@ class TestExecutionOrder:
@pytest.mark.benchmark(group="Transfer")
@pytest.mark.parametrize("mode", ['Python',
pytest.param('LLVM', marks=pytest.mark.llvm),
- pytest.param('LLVMExec', marks=pytest.mark.llvm)])
+ pytest.param('LLVMExec', marks=pytest.mark.llvm),
+ pytest.param('LLVMRun', marks=pyte... |
MAINT: removed extra newline
Removed extra newline printed when there is no extra data. | @@ -495,7 +495,9 @@ def fmt_output_in_cols(out_strs, ncols=3, max_num=6, lpad=None):
output += '\n'
# Print out remaining variables one at a time on a single line
- for i in range(sel_len - ncols * num):
+ extra_cols = sel_len - ncols * num
+ if extra_cols > 0:
+ for i in range(extra_cols):
if middle >= 0:
if i == 0 an... |
Standalone: Smoother code for detecting frozen module paths
* Using hasattr has no point, esp. as None for "__file__" does happen,
so that code is more readable then. | @@ -233,11 +233,12 @@ def _detectImports(command, user_provided, technical):
# Print statements for stuff to show, the modules loaded.
if python_version >= 0x300:
- command += (
- '\nprint("\\n".join(sorted("import " + module.__name__ + " # sourcefile " + '
- 'module.__file__ for module in sys.modules.values() if hasat... |
[commands] Fix lambda converters in non-module contexts.
Not sure why anyone would do this but might as well fix it. | @@ -325,7 +325,7 @@ class Command(_BaseCommand):
except AttributeError:
pass
else:
- if module.startswith('discord.') and not module.endswith('converter'):
+ if module is not None and (module.startswith('discord.') and not module.endswith('converter')):
converter = getattr(converters, converter.__name__ + 'Converter')
... |
emulating dockerspawner approach ref populating servername to pod_name_template
somehow the pre-existing approach of return(template.format(...)) in
_expand_user_properties was failing to set a servername that could get
captured in pod_name_template.
see: | @@ -588,18 +588,14 @@ class KubeSpawner(Spawner):
# Set servername based on whether named-server initialised
temp_name = getattr(self, 'name', '')
if temp_name:
- servername = '-' + temp_name
+ server_name = '-' + temp_name
else:
- servername = ''
+ server_name = ''
legacy_escaped_username = ''.join([s if s in safe_cha... |
While sampling in `env_problem_utils.py` cast up to `np.float64`
This seems to fix things. | @@ -112,19 +112,12 @@ def play_env_problem_with_policy(env,
# Convert to probs, since we need to do categorical sampling.
probs = np.exp(log_probs)
- # Sometimes log_probs contains a 0, it shouldn't. This makes the
- # probabilities sum up to more than 1, since the addition happens
- # in float64, so just add and subtr... |
[Fix][Warning] tvm.target.create() deprecated
Update the example with the newer API. | @@ -44,7 +44,7 @@ def prepare_graph_lib(base_path):
params = {"y": np.ones((2, 2), dtype="float32")}
mod = tvm.IRModule.from_expr(relay.Function([x, y], x + y))
# build a module
- compiled_lib = relay.build(mod, tvm.target.create("llvm"), params=params)
+ compiled_lib = relay.build(mod, tvm.target.Target("llvm"), param... |
Fix cannot import DefaultConfig problem
Resolves: | @@ -43,6 +43,7 @@ from .orm.pymilvus_orm.utility import (
)
from .orm.pymilvus_orm import utility
+from .orm.pymilvus_orm.default_config import DefaultConfig
from .orm.pymilvus_orm.search import SearchResult, Hits, Hit
from .orm.pymilvus_orm.schema import FieldSchema, CollectionSchema
@@ -56,7 +57,7 @@ __all__ = [
'Sea... |
Update README.md
Explaining the dryrun mode on omnibot in README.md | @@ -88,5 +88,11 @@ roslaunch soccerbot soccerbot_simulation.launch frozen:=true
For omnibot, just run the omnibot launch file, replace robot.launch with simulation.launch for simulation
```bash
-roslaunch soccerbot omnibot.launch
+roslaunch soccerbot omnibot.launch dryrun:=true
+```
+
+For running in a mode where the h... |
[Docs] Add getting_started chinese version
* add getting_started chinese version
* fix some typos
* Update getting_started.md
Modified some typos
* Update getting_started.md
* Update getting_started.md
* Update getting_started.md
* Update getting_started.md
* Update getting_started.md
* Update getting_started.md
* Upda... | @@ -150,7 +150,7 @@ It is recommended that you run step d each time you pull some updates from githu
find . -name "*.so" | xargs rm
```
-2. Following the above instructions, mmdetection is installed on `dev` mode, any local modifications made to the code will take effect without the need to reinstall it (unless you sub... |
Run regendoc over fixture docs
This is the result of running:
$ cd doc/en && make regen REGENDOC_FILES=fixture.rst | @@ -927,6 +927,8 @@ doesn't guarantee a safe cleanup. That's covered in a bit more detail in
.. code-block:: pytest
$ pytest -q test_emaillib.py
+ . [100%]
+ 1 passed in 0.12s
Handling errors for yield fixture
"""""""""""""""""""""""""""""""""
@@ -1010,6 +1012,8 @@ does offer some nuances for when you're in a pinch.
..... |
[TVM] Remove dynamic batch size dispatching
Summary:
Pull Request resolved:
Remove dynamic batch size dispatching
Set caffe2_tvm_min_ops to 8
Set caffe2_tvm_profiling_based_jit to false
Rename some variable names
Test Plan: buck test caffe2/caffe2/fb/tvm:test_tvm_transform | C10_DEFINE_bool(
caffe2_tvm_profiling_based_jit,
- true,
+ false,
"Use profiling based jit for TVM transform");
C10_DEFINE_int32(
caffe2_tvm_min_ops,
- 10,
+ 8,
"Minimal number of supported ops for the subgraph to be lowered to TVM");
namespace caffe2 {
@@ -179,7 +179,7 @@ void TvmTransformer::transform(
}
if (opts_.de... |
clean up sync_concepts_from_openmrs
can use a simpler approach now that concepts are saved up front
rather than only after adding answers | @@ -11,25 +11,16 @@ def sync_concepts_from_openmrs(account):
answers_relationships = []
for concept in api.get_all():
concept = openmrs_concept_json_from_api_json(concept)
- concept, answers = openmrs_concept_from_concept_json(account, concept)
- if answers:
- answers_relationships.append((concept, answers))
+ concept,... |
custom_profile_fields: Display data of default external type fields.
Display default values of "name" and "hint" field in uneditable way
while creating new default external account type profile fields. | @@ -174,18 +174,24 @@ function set_up_create_field_form() {
if (Number.parseInt($("#profile_field_type").val(), 10) === field_types.EXTERNAL_ACCOUNT.id) {
$field_elem.show();
- if ($("#profile_field_external_accounts_type").val() === "custom") {
+ const $profile_field_external_account_type = $(
+ "#profile_field_extern... |
Pin poetry to previous version
* Pin poetry to previous version
Version 1.0.0 seems to break the build.
* USer poetry version 0.12.7
* Use latest poetry 0.12 minor version | @@ -20,7 +20,7 @@ ENV PYTHONUNBUFFERED 1
RUN mkdir -p /opt/poetry /app /static /opt/static /dbox/Dropbox/media
RUN python -m pip install -U pip
-RUN python -m pip install -U poetry
+RUN python -m pip install -U poetry==0.12.17
RUN groupadd -g 2001 -r django && useradd -m -u 2001 -r -g django django
RUN chown django:dja... |
New dep-upd: compute modified_entity_ids
* New dep-upd: compute modified_entity_ids
There's no real reason to compute this, but we used to pass that dict
to the custom workflows, so let's keep back-compat, at least for now.
* flake | @@ -632,6 +632,7 @@ class InstallParameters:
def __init__(self, ctx, update_params, dep_update):
self._update_instances = dep_update['deployment_update_node_instances']
self.update_id = dep_update.id
+ self.steps = dep_update.steps
for kind in ['added', 'removed', 'extended', 'reduced']:
changed, related = self._split_... |
Fix typing and missing asserts [fix-typing-in-test-autodiscovery]
Summary & Motivation: While using this file for another reason I noticed typing errors and missing asserts. This fixes that.
Test Plan: BK
Reviewers: OwenKephart
Pull Request: | @@ -26,7 +26,8 @@ def test_single_repository():
assert symbol == "single_repository"
repo_def = CodePointer.from_python_file(single_repo_path, symbol, None).load_target()
- isinstance(repo_def, RepositoryDefinition)
+ assert isinstance(repo_def, RepositoryDefinition)
+
assert repo_def.name == "single_repository"
@@ -35... |
unread: Use consistent background-color for unread count pills.
Change the background-color of all unread count pills in dark theme
to have 1 consistent type of color in complete application,
similar to how we have in light theme.
Fixes | @@ -291,9 +291,7 @@ body.dark-theme {
color: hsl(236, 33%, 90%);
}
- .recent_topics_container .unread_count,
- .topic-list-item .unread_count,
- .expanded_private_message .unread_count {
+ .unread_count {
background-color: hsla(105, 2%, 50%, 0.5);
}
|
Fix kolla-ansible unit test failures
Seems like default path was changed and broke the tests: | @@ -35,7 +35,7 @@ class TestCase(unittest.TestCase):
parsed_args = parser.parse_args([])
kolla_ansible.run(parsed_args, "command", "overcloud")
expected_cmd = [
- "source", "ansible/kolla-venv/bin/activate", "&&",
+ "source", "/opt/kayobe/venvs/kolla/bin/activate", "&&",
"kolla-ansible", "command",
"--inventory", "/etc... |
use onp not lnp in module-level scope
fixes google import | @@ -696,9 +696,9 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):
"rng_factory": jtu.rand_default}
for shape in all_shapes for dtype in number_dtypes
for a_min, a_max in [(-1, None), (None, 1), (-1, 1),
- (-lnp.ones(1), None),
- (None, lnp.ones(1)),
- (-lnp.ones(1), lnp.ones(1))]))
+ (-onp.ones(1), None),
+ (None, onp.on... |
Update README.md
Add an entry in the list of publications | @@ -213,6 +213,7 @@ List of publications & preprints using `highway-env` (please open a pull request
* [Accelerated Policy Evaluation: Learning Adversarial Environments with Adaptive Importance Sampling](https://arxiv.org/abs/2106.10566) (Jun 2021)
* [Learning Interaction-aware Guidance Policies for Motion Planning in ... |
Start benchmark element sweep at 100
Summary:
Anything number of elements below this always fits in a single packet
and will yield ~identical results. | @@ -121,7 +121,7 @@ void Runner::run(BenchmarkFn& fn) {
}
// Run sweep over number of elements
- for (int i = 1; i <= 1000000; i *= 10) {
+ for (int i = 100; i <= 1000000; i *= 10) {
std::vector<int> js = {i * 1, i * 2, i * 5};
for (auto& j : js) {
run(fn, j);
|
Add AD/LDAP setting updates
* Add AD/LDAP setting updates
Added AD/LDAP updates:
user filter examples
reminder for customers to enable ldap synchronization if they see the sync hanging
* Update config-settings.rst
Fixed grammar / inserted period. | @@ -1035,7 +1035,14 @@ Password of the user given in **Bind Username**. This field is required, and ano
User Filter
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-(Optional) Enter an AD/LDAP Filter to use when searching for user objects (accepts `general syntax <http://www.ldapexplorer.com/en/manual/1090... |
tooltips: Fix line height for non-English characters.
Some non-English characters overflow when the line height is reduced
for the tooltip text. This commit increases the line height of the
tooltips to accommodate these non-English characters and fixes the
hotkey hint margins for the same. | align-items: center;
padding: 5px 10px;
font-size: 14px;
- line-height: 15px;
+ line-height: 20px;
color: hsla(0, 0%, 100%, 1);
}
box-sizing: inherit;
display: flex;
align-self: flex-start;
- margin: -2px -7px -2px 10px;
+ margin: 0 -5px 0 10px;
gap: 4px;
}
|
Updated comment section of "Training the Model"
I believe "The decoder is given the ``<SOS>`` token as its first input, and the last hidden state of the encoder as its first hidden state."
Minute correction on comment section. | @@ -538,7 +538,7 @@ def variablesFromPair(pair):
# To train we run the input sentence through the encoder, and keep track
# of every output and the latest hidden state. Then the decoder is given
# the ``<SOS>`` token as its first input, and the last hidden state of the
-# decoder as its first hidden state.
+# encoder a... |
build appimage: rm importlib-metadata workaround
The importlib-metadata pkg is no longer needed apparently (since we bumped the min python to 3.8). | @@ -215,12 +215,10 @@ rm -rf "$PYDIR"/site-packages/PyQt5/Qt.so
# these are deleted as they were not deterministic; and are not needed anyway
find "$APPDIR" -path '*/__pycache__*' -delete
-# note that *.dist-info is needed by certain packages.
-# e.g. see https://gitlab.com/python-devs/importlib_metadata/issues/71
-for... |
[measurements] update 'LHCb KS->mumu 2019' to published version
* Add inspire to 'LHCb KS->mumu 2019' measurement.
* Use official result of BR(KS->mumu) by LHCb
Previously, preliminary result was there, stated with one more
significant digit. | @@ -7051,8 +7051,9 @@ PDG 2018 Kll:
LHCb KS->mumu 2019:
experiment: LHCb
+ inspire: Aaij:2020sbt
values:
- BR(KS->mumu): 0.94 +0.72 -0.64 e-10
+ BR(KS->mumu): 0.9 +0.7 -0.6 e-10
ATLAS Bs->mumu 2018:
experiment: ATLAS
|
Add CephClientConfigOverrides resource
This patch adds a new resource for the CephClient service
that specifies a set of default configs wanted by default
in the [client] section of ceph.conf.
Depends-On: | @@ -49,6 +49,15 @@ resources:
value:
vars: {}
+ CephClientConfigOverrides:
+ type: OS::Heat::Value
+ properties:
+ type: json
+ value:
+ vars:
+ client:
+ rbd_concurrent_management_ops: 20
+
outputs:
role_data:
description: Role data for the Ceph Client service.
@@ -73,6 +82,7 @@ outputs:
- name: set ceph-ansible group... |
Consts for need_healing
Followup for [1], this creates private module-level constants for the
``need_healing`` toggle used in the code, indicating whether the
allocations need to be healed by creating them or by updating existing
allocations.
[1] | @@ -85,6 +85,10 @@ _EXTRA_DEFAULT_LOG_LEVELS = ['oslo_concurrency=INFO',
'oslo_db=INFO',
'oslo_policy=INFO']
+# Consts indicating whether allocations need to be healed by creating them or
+# by updating existing allocations.
+_CREATE = 'create'
+_UPDATE = 'update'
# Decorators for actions
args = cmd_common.args
@@ -203... |
Made query/variables order reproducible.
Python 3.5 inverted them | @@ -37,6 +37,7 @@ import copy
import re
import sys
import os
+from collections import OrderedDict
if sys.version_info[0] < 3:
from urllib import quote_plus
else:
@@ -165,7 +166,10 @@ class api_partinfo_kitspace(distributor_class):
variables = '{{"input":{}}}'.format(variables)
# Do the query using POST
log_request(url,... |
fix remote combo
HG--
branch : feature/microservices | @@ -22,7 +22,7 @@ Ext.define("NOC.core.LookupField", {
query: {},
stateful: false,
autoSelect: false,
- pageSize: 25,
+ pageSize: true,
listConfig: {
minWidth: 240
},
@@ -30,13 +30,15 @@ Ext.define("NOC.core.LookupField", {
restUrl: null,
initComponent: function() {
- var me = this,
- p;
+ var me = this;
+
// Calculate... |
Update investigations.spec.json
Various changes for grammar, spelling, consistency, and flow. | "phantom": {
"properties": {
"phantom_server": {
- "description": "IP address and username of the phantom server. Currently, we will ship this value as automation (hostname) and we encourage the users to modify those values according to their environment. Eg: automation (hostname)",
+ "description": "IP address and use... |
[IMPR] use response in http.error_handling_callback()
Remove some use of HttpRequest() inside http.py. | @@ -283,7 +283,7 @@ def get_authentication(uri: str) -> Optional[Tuple[str, str]]:
return None
-def error_handling_callback(request):
+def error_handling_callback(response):
"""
Raise exceptions and log alerts.
@@ -291,27 +291,30 @@ def error_handling_callback(request):
@type request: L{threadedhttp.HttpRequest}
"""
# ... |
Transfers: compress multihop if it passes through a source. Closes
This may happen if source_replica_expression forces a particular source
RSE, but transfer to destination from the forced source ends being
a multi-hop via another source. | @@ -1192,27 +1192,35 @@ def get_dsn(scope, name, dsn):
return 'other'
-def __filter_unwanted_paths(candidate_paths: "Iterable[List[DirectTransferDefinition]]") -> "Generator[List[DirectTransferDefinition]]":
-
+def __filter_multihops_with_intermediate_tape(candidate_paths: "Iterable[List[DirectTransferDefinition]]") ->... |
Fix monkeypatch doc
`delenv` is incorrectly documented. | @@ -22,7 +22,7 @@ def monkeypatch():
monkeypatch.setitem(mapping, name, value)
monkeypatch.delitem(obj, name, raising=True)
monkeypatch.setenv(name, value, prepend=False)
- monkeypatch.delenv(name, value, raising=True)
+ monkeypatch.delenv(name, raising=True)
monkeypatch.syspath_prepend(path)
monkeypatch.chdir(path)
|
update descriptions of master categories
to add How to cost saving guide to
Cost saving
NHS Low Priority
NHS Low Priority Consultation | },
"cost": {
"name": "Cost Saving",
- "description": "The following measures and an accumulation of all openprescribing.net measures where changes to prescribing in this area will result in cost savings."
+ "description": "The following measures and an accumulation of all openprescribing.net measures where changes to p... |
[IMPR] shorten lang['prefix'] to key
detached from | @@ -108,10 +108,11 @@ class FamilyFileGenerator(object):
"""Load other language pages."""
print('Loading wikis... ')
for lang in self.langs:
- print(' * %s... ' % (lang['prefix']), end='')
- if lang['prefix'] not in self.wikis:
+ key = lang['prefix']
+ print(' * {}... '.format(key), end='')
+ if key not in self.wikis:
... |
[Test] fix npy2apintstream tests by including cstddef
may be a Vivado HLS version-dependent problem... | @@ -32,6 +32,7 @@ def make_npy2apintstream_testcase(ndarray, dtype):
npy_type = npyt_to_ct[str(ndarray.dtype)]
shape_cpp_str = str(shape).replace("(", "{").replace(")", "}")
test_app_string = []
+ test_app_string += ["#include <cstddef>"]
test_app_string += ['#include "ap_int.h"']
test_app_string += ['#include "stdint.... |
[Qt 5.5+] Debug feature: improvements and bug fixes
* Check if inspector exists before opening
* Make inspector_port a class attribute
Chrome Remote debugger supports only one debug server per app. | @@ -65,6 +65,7 @@ if _import_error:
class BrowserView(QMainWindow):
instances = {}
+ inspector_port = None # The localhost port at which the Remote debugger listens
create_window_trigger = QtCore.pyqtSignal(object)
set_title_trigger = QtCore.pyqtSignal(str)
@@ -98,7 +99,6 @@ class BrowserView(QMainWindow):
class WebVie... |
Update instructions.md
the paragraph in the third part was why too dense, made the hint in a new line and made the "hint" bold for coherence with other exercises | @@ -66,7 +66,8 @@ Players try to get as close as possible to a score of 21, without going _over_ 2
Define the `value_of_ace(<card_one>, <card_two>)` function with parameters `card_one` and `card_two`, which are a pair of cards already in the hand _before_ getting an ace card.
Your function will have to decide if the up... |
Remove AggAwc reference
I found this confusing because this table is not referenced in the
management command and is only used because it happens to be in the
same DB. | @@ -2,6 +2,7 @@ import inspect
from datetime import datetime
from django.core.management.base import BaseCommand, CommandError
+from django.db import connections
import dateutil
@@ -13,8 +14,8 @@ from corehq.apps.hqadmin.management.commands.stale_data_in_es import (
)
from corehq.apps.userreports.util import get_table_... |
Update PagerDuty.yml
Updated the description. | @@ -117,16 +117,16 @@ script:
required: false
secret: false
- default: false
- description: Filters the results, showing only on-calls for the specified escalation
- policy IDs
+ description: Filters the results, showing only on-call users for the specified escalation
+ policy IDs.
isArray: true
name: escalation_policy... |
comments: add comments on runtime ordering per language
re-order runtimes per comment | @@ -13,10 +13,12 @@ except ImportError:
_init_path = str(pathlib.Path(os.path.dirname(__file__)).parent)
_templates = os.path.join(_init_path, 'init', 'templates')
+
+# Note(TheSriram): The ordering of the runtimes list per language is based on the latest to oldest.
RUNTIME_DEP_TEMPLATE_MAPPING = {
"python": [
{
- "run... |
openapi: Fix reference link in `/register-queue` documentation.
Fixes a reference link in `realm_enable_spectator_access`
description in `/register-queue` endpoint documentation. | @@ -11165,6 +11165,9 @@ paths:
setting.
**Changes**: New in Zulip 5.0 (feature level 109).
+
+ [server-settings]: https://zulip.readthedocs.io/en/stable/production/settings.html
+
realm_video_chat_provider:
type: integer
description: |
|
Ensure behavior of None for device_id
A simple unit test to ensure that we have had the same behavior
across releases WRT to explicitly passing None for device_id.
Related-Bug: | @@ -947,6 +947,21 @@ class TestPortsV2(NeutronDbPluginV2TestCase):
self.assertIn('mac_address', port['port'])
self._delete('ports', port['port']['id'])
+ def test_create_port_None_values(self):
+ with self.network() as network:
+ keys = ['device_owner', 'name', 'device_id']
+ for key in keys:
+ # test with each as None... |
adjust method to ignore some special charactes and update regex on find_label_element method.
Insert words on language.py | @@ -630,6 +630,8 @@ class WebappInternal(Base):
>>> self.input_value("A1_COD", "000001")
"""
+ field = re.sub(r"(\:*)(\?*)", "", field).strip()
+
self.wait_element(field)
success = False
endtime = time.time() + 60
@@ -639,7 +641,13 @@ class WebappInternal(Base):
print(f"Looking for element: {field}")
+ if field.lower()... |
Fix bi_id rollback
HG--
branch : feature/microservices | @@ -5,15 +5,25 @@ from django.db import models
class Migration:
def forwards(self):
- db.execute("ALTER TABLE sa_managedobject ALTER COLUMN bi_id TYPE int")
- db.execute("ALTER TABLE sa_administrativedomain ALTER COLUMN bi_id TYPE int")
- db.execute("ALTER TABLE sa_authprofile ALTER COLUMN bi_id TYPE int")
- db.execute... |
Add test for coverage
Tests creating a property with both required and default. | @@ -4,7 +4,7 @@ import pytest
import pytz
import stix2
-from stix2.exceptions import ExtraPropertiesError
+from stix2.exceptions import ExtraPropertiesError, STIXError
from stix2.properties import (
BinaryProperty, BooleanProperty, EmbeddedObjectProperty, EnumProperty,
FloatProperty, HexProperty, IntegerProperty, ListP... |
[NixIO] Path->obj map for fast nix obj retrieval
The _get_object_at function is called frequently and with the same
arguments that it creates considerable overhead on both read and write. | @@ -117,6 +117,7 @@ class NixIO(BaseIO):
self._lazy_loaded = list()
self._object_hashes = dict()
self._block_read_counter = 0
+ self._path_map = dict()
def __enter__(self):
return self
@@ -819,6 +820,8 @@ class NixIO(BaseIO):
:param path: Path string
:return: The object at the location defined by the path
"""
+ if path... |
Fix clang-format
Summary: Pull Request resolved: | @@ -423,7 +423,8 @@ void testCudaOneBlockMultiThreadGlobalReduce1() {
// for t in 0..1024: // thread-idx
// if t < 1:
// b[0] = 0
- ExprHandle cond_t_lt_1 = CompareSelect::make(t, 1, CompareSelectOperation::kLT);
+ ExprHandle cond_t_lt_1 =
+ CompareSelect::make(t, 1, CompareSelectOperation::kLT);
Cond* masked_init_b = ... |
Minor updates to development page
Change Foxtail to Sycamore since Foxtail is deprecated.
Add some clarification that instructions are for linux. | @@ -28,12 +28,12 @@ Note that if you are using PyCharm, you might have to Restart & Invalidate Cache
```bash
docker build -t cirq --target cirq_stable .
- docker run -it cirq python -c "import cirq_google; print(cirq_google.Foxtail)"
+ docker run -it cirq python -c "import cirq_google; print(cirq_google.Sycamore23)"
``... |
Fix auth in actions if there is no auth_uri in context
Closes-Bug: | @@ -31,7 +31,7 @@ CONF = cfg.CONF
def client():
ctx = context.ctx()
- auth_url = ctx.auth_uri
+ auth_url = ctx.auth_uri or CONF.keystone_authtoken.auth_uri
cl = ks_client.Client(
user_id=ctx.user_id,
|
Tip for recomputing metadata
note for recomputing metadata | @@ -100,6 +100,13 @@ To ensure a dataset is complete, [`load_dataset`] will perform a series of tests
- The number of samples in each split of the generated `DatasetDict`.
If the dataset doesn't pass the verifications, it is likely that the original host of the dataset made some changes in the data files.
+
+<Tip>
+
+I... |
Keep the front end consistent by storing in arrays but displaying strings
This frontend will be redone eventually, but since this is just an API change and not changing the frontend just yet, keep things as they were | @@ -59,6 +59,9 @@ var socialRules = {
var cleanByRule = function(rule) {
return function(value) {
+ if (typeof(value) === 'object') {
+ value = value[0];
+ }
var match = value.match(rule);
if (match) {
return match[1];
@@ -741,6 +744,17 @@ $.extend(SocialViewModel.prototype, SerializeMixin.prototype, TrackedMixin.proto... |
DOC: changelog summary for DEMETER bugfix
Added a summary of the changes into the CHANGELOG. | @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Fixed implementation of utils routines in model_utils and jro_isr
- Fixed error catching bug in model_utils
- Fixed error introduced by upstream change in NOAA F10.7 file format
+ - Fixed bugs in DEMETER file reading introduced by ch... |
properly close transaction overlay after adding an transaction
Close | import e from './events';
import { $, $$, handleJSON } from './helpers';
import { initInput, addPostingRow, addMetadataRow, entryFormToJSON } from './entry-forms';
+import { closeOverlay } from './overlays';
function submitTransactionForm(form, successCallback) {
const jsonData = {
@@ -55,9 +56,7 @@ e.on('page-init', (... |
fix(www): fix rate limit
The API rate limit is rather high to allow the test suite to run.
Technical debt is tracked in | @@ -35,10 +35,10 @@ http {
# rate limits are exceeded when the 'leaky bucket' is full
# set up one bucket per remote ip for general purpose
- limit_req_zone $binary_remote_addr zone=perip-general:100m rate=100000r/s;
+ limit_req_zone $binary_remote_addr zone=perip-general:100m rate=30r/s;
# set up one bucket per remote... |
Fix test_mdnrnn
Summary:
Pull Request resolved:
CircleCI and internal results are different even when we set seeds. Either result makes sense. | @@ -393,7 +393,7 @@ class TestWorldModel(HorizonTestBase):
config_path=os.path.join(curr_dir, config_path),
use_gpu=False,
)
- TestWorldModel.verify_result(feature_importance, ["state3"])
+ TestWorldModel.verify_result(feature_importance, ["state1", "state3"])
TestWorldModel.verify_result(feature_sensitivity, ["state3"... |
Deseasonify: add helper func to resolve current month
See docstring for details. | @@ -31,6 +31,20 @@ class InMonthCheckFailure(CheckFailure):
pass
+def _resolve_current_month() -> Month:
+ """
+ Helper for local decorators to determine the correct Month value.
+
+ This interfaces with the `MONTH_OVERRIDE` env var. If tha variable was set,
+ current month always resolves to this value. Otherwise, the... |
STY: changed display style
Changed the display style after pysat meeting by:
adding flags for displaying or omitting platform/name and inst_module values, and
adding a visual seperator around the tag/inst_id. | @@ -650,7 +650,8 @@ def available_instruments(inst_loc=None):
return inst_info
-def display_available_instruments(inst_loc=None):
+def display_available_instruments(inst_loc=None, show_inst_mod=None,
+ show_platform_name=None):
"""Display basic information about instruments in a given subpackage.
Parameters
@@ -658,17 ... |
F.cross_entropy(y_hat, y)(y_hat, y) typo.
This seems to be a typo. Throws TypeError: 'Tensor' object is not callable. | @@ -50,13 +50,13 @@ class CoolModel(pl.LightningModule):
# REQUIRED
x, y = batch
y_hat = self.forward(x)
- return {'loss': F.cross_entropy(y_hat, y)(y_hat, y)}
+ return {'loss': F.cross_entropy(y_hat, y)}
def validation_step(self, batch, batch_nb):
# OPTIONAL
x, y = batch
y_hat = self.forward(x)
- return {'val_loss': F... |
Fixed format string mistake in Error Message
While debugging a issue with creating a Kivy exe using PyInstaller I found this bug where it adds the 's' to file names in the error message. | @@ -245,7 +245,7 @@ class LabelBase(object):
font = resource_find(font_type)
if font is None:
- raise IOError('File {0}s not found'.format(font_type))
+ raise IOError('File {0} not found'.format(font_type))
else:
fonts.append(font)
else:
|
C API: add exceptions wrapping in destroy_text
TN: | @@ -996,6 +996,9 @@ package body ${ada_lib_name}.Analysis.C is
end Wrap;
procedure ${capi.get_name('destroy_text')} (T : ${text_type}_Ptr) is
+ begin
+ Clear_Last_Exception;
+ declare
use System;
begin
if T.Is_Allocated /= 0 and then T.Chars /= System.Null_Address then
@@ -1009,6 +1012,10 @@ package body ${ada_lib_name... |
Fix variable interpolation by fixing bad line break
Fixes | <p>
{{ entity_type_human}}s are ordered by mean percentile over the past six
- months. Each chart shows the results for the individual {{
- entity_type_human}}, plus deciles across all {{ entity_type_human}}s in the
+ months. Each chart shows the results for the individual {{ entity_type_human}},
+ plus deciles across ... |
Release: For Python3 bytecode compilation errors of inline scons copies.
* There will be errors for compiling the Python2 only version of scons
that is included. | %global python3_sitearch %(%{__python3} -c "import sys, distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0))")
+%global _python_bytecompile_errors_terminate_build 0
+
Name: nuitka
Version: VERSION
Release: 5%{?dist}
|
salt-api no longer forces the default timeout
Conflicts:
- salt/config/__init__.py | @@ -3315,15 +3315,12 @@ def api_config(path):
Read in the Salt Master config file and add additional configs that
need to be stubbed out for salt-api
'''
- # Let's grab a copy of salt's master opts
- opts = client_config(path, defaults=DEFAULT_MASTER_OPTS)
- # Let's override them with salt-api's required defaults
- api... |
Fix bug Add Issue tracking to autocomplete list of External Resources
Also: Remove unused entry Language pack | <option value="Development build">
<option value="Production build">
<option value="Screenshots">
- <option value="Language pack">
+ <option value="Issue tracking">
</datalist>
<h3>In-context localization <span class="small stress">(optional)</span></h3>
|
Install a handler for SIGHUB
We were not handling SIGHUB previously so resources were
not freed up when the terminal was killed/closed.
Closes | @@ -8,6 +8,7 @@ with the agents.
import atexit
import os
import random
+import signal
import subprocess
import sys
@@ -137,7 +138,15 @@ class HolodeckEnvironment:
self._initial_reset = False
self.reset()
+ # System event handlers for graceful exit. We may only need to handle
+ # SIGHUB, but I'm being a little paranoid
... |
Update Notification schema to preserve template_history attribute
`Notification.template_history` relationship has been removed but
we want to keep the `template_history` key in existing notification
serializations, so we serialize it from `Notifications.template`.
This keeps the data format the same, but both `templat... | @@ -450,7 +450,7 @@ class NotificationWithTemplateSchema(BaseSchema):
class NotificationWithPersonalisationSchema(NotificationWithTemplateSchema):
- template_history = fields.Nested(TemplateHistorySchema,
+ template_history = fields.Nested(TemplateHistorySchema, attribute="template",
only=['id', 'name', 'template_type'... |
docs/ fix faq market making
Delete double word on faq market making | @@ -39,7 +39,7 @@ Another common risk that market makers need to be aware of is trending markets.

-If a pure market maker set his spreads naively in such a market, e.g. equidistant bid/ask spread, there's a risk of the market maker's bid consistently bein... |
Fix symlink docstring
Related-Change-Id: | @@ -237,8 +237,8 @@ def _check_symlink_header(req):
x-symlink-target header is present in req.headers.
:param req: HTTP request object
- :returns: a tuple, the full versioned WSGI quoted path to the object and
- the value of the X-Symlink-Target-Etag header which may be None
+ :returns: a tuple, the full versioned path... |
Update CVE-2019-12616.yaml
I don't know why the matcher was changed. The matcher phpmyadmin.net doesn't work in my test cases. | @@ -22,6 +22,7 @@ requests:
- type: word
words:
- "phpmyadmin.net"
+ - "phpMyAdmin"
- type: regex
regex:
@@ -30,4 +31,4 @@ requests:
- type: status
status:
- 200
- - 401
+ - 401 #password protected
|
Fix extension panel appearance
Fix a bug where the extensions panel wouldn't appear | @@ -341,7 +341,6 @@ class ExportGLTF2_Base:
def invoke(self, context, event):
settings = context.scene.get(self.scene_key)
self.will_save_settings = False
- self.has_active_extenions = False
if settings:
try:
for (k, v) in settings.items():
@@ -358,10 +357,10 @@ class ExportGLTF2_Base:
try:
if hasattr(sys.modules[addon... |
Chunking fac2real multi processing
in `apply_array_pars()` methods
have also tried to remove duplication where mults are repetedly
calculated for the same file (e.g. where a constant spatial distribution
is multiplied across a number of kper) | @@ -2950,6 +2950,10 @@ class PstFromFlopyModel(object):
self.logger.statement("forward_run line:{0}".format(line))
self.frun_post_lines.append(line)
+def _process_chunk_fac2real(chunk):
+ for args in chunk:
+ pyemu.geostats.fac2real(**args)
+
def _process_chunk_model_files(chunk, df):
for model_file in chunk:
@@ -3020,... |
Fix test_slurm due to time out
Put the torque command test at the end of test suite to avoid computing node termination time out. | @@ -53,8 +53,6 @@ def test_slurm(region, os, pcluster_config_reader, clusters_factory, test_datadi
if supports_impi:
_test_mpi_job_termination(remote_command_executor, test_datadir)
- _test_torque_job_submit(remote_command_executor, test_datadir)
-
_test_dynamic_max_cluster_size(remote_command_executor, region, cluster... |
Make sure `y` importance score stays 0 in test
Otherwise we could have randomly failing tests | @@ -84,7 +84,10 @@ def test_switch_label_when_param_insignificant() -> None:
return x ** 2
study = create_study()
- study.optimize(_objective, n_trials=100)
+ for x in range(1, 3):
+ study.enqueue_trial({"x": x, "y": 0})
+
+ study.optimize(_objective, n_trials=2)
ax = plot_param_importances(study)
# Test if label for `... |
Add batch and txn validation methods to CandidateBlock
These methods check that no batch or transaction have been committed
in the same chain and that all dependencies are satisfied. | @@ -101,4 +101,62 @@ impl CandidateBlock {
pub fn can_add_batch(&self) -> bool {
self.max_batches == 0 || self.pending_batches.len() < self.max_batches
}
+
+ fn check_batch_dependencies(&mut self, batch: &Batch) -> bool {
+ for txn in &batch.transactions {
+ if self.txn_is_already_committed(txn, &self.committed_txn_cac... |
Update get_youtube_view.py
Updated the file so it contains no errors and runs the youtube videos. | @@ -23,12 +23,12 @@ refreshrate = minutes * 60 + seconds
#Selecting Safari as the browser
driver = webdriver.Safari()
-if(url.startswith("https://"):
+if url.startswith("https://"):
driver.get(url)
else:
driver.get("https://"+url)
-for _ in range(count):
+for i in range(count):
#Sets the page to refresh at the refreshr... |
Make font in metric selector black.
Currently, the default font color is used against a white background. This is bad for themes that use a light font color, such as dark themes. This commit fixes that by making the font always black. | @@ -18,6 +18,10 @@ template.innerHTML = `
<style>
#metric-and-slice-selector-title {
padding: 16px 16px 0 16px;
+ /* We set font color to black because the Fairness widget background is always white.
+ * Without explicitly setting it, the font color is selected by the Jupyter environment theme.
+ */
+ color: black
}
pa... |
Added changelog entry
Updated changelog entry | @@ -76,6 +76,8 @@ astropy.io.fits
- Add an ``ignore_hdus`` keyword to ``FITSDiff`` to allow ignoring HDUs by
NAME when diffing two FITS files [#7538]
+- All time coordinates can now be written to and read from FITS binary tables,
+ including those with vectorized locations. [#7430]
astropy.io.registry
^^^^^^^^^^^^^^^^^... |
Last change I make to filtering generators I swear
Also I added docs for filter | @@ -121,7 +121,7 @@ class Generator:
if index == l:
break
obj = self.__getitem__(index)
- ret = _safe_apply(function, [obj])[-1][-1]
+ ret = _safe_apply(function, obj)[-1]
if ret:
yield obj
index += 1
@@ -543,6 +543,8 @@ def interleave(lhs, rhs):
ret += list(lhs[i + 1:])
return ret
def is_prime(n):
+ if type(n) is str:... |
Allow any list type for .as_array, not just arrays of root nodes
TN: | @@ -368,7 +368,7 @@ def as_array(self, list_expr):
abstract_result = Map(list_expr, expr=collection_expr_identity)
abstract_result.prepare()
result = construct(abstract_result)
- root_list_type = get_context().root_grammar_class.list_type()
+ root_list_type = get_context().generic_list_type
check_source_language(
issub... |
RTD: use new requirements files
The sphinx_bootstrap_theme requirement is now in a second file.
RTD v1 only supports a single requirements file (which was
previously auto-detected). With v2 both `CI` and `STRICT` can
be referenced.
see: | +version: 2
build:
image: latest
python:
version: 3.6
-
-requirements_file:
- null
+ install:
+ - requirements: REQUIREMENTS-CI.txt
+ - requirements: REQUIREMENTS-STRICT.txt
|
perf: faster processing of black tiles for Graphene
No need to talk to the graph server about tiles that are purely
background color. | @@ -185,6 +185,8 @@ class CloudVolumeGraphene(CloudVolumePrecomputed):
def agglomerate_cutout(self, img, timestamp=None, stop_layer=None):
"""Remap a graphene volume to its latest root ids. This creates a flat segmentation."""
+ if np.all(img == self.image.background_color):
+ return img
labels = fastremap.unique(img)
... |
[fix] irc: Allow extra config keys again. Some trackers require them.
Revert "irc: Don't allow extra keys in config"
This reverts commit | @@ -96,7 +96,7 @@ schema = {
}
],
'required': ['port'],
- 'additionalProperties': False,
+ 'additionalProperties': {'type': 'string'},
},
},
{'type': 'boolean', 'enum': [False]},
|
Add pseudo-random number generator for position noise
needs testing | @@ -287,23 +287,40 @@ void StartRX(void const * argument){
}
+// x^6 + x^5 + 1 with period 63
+static const uint8_t POLY_MASK = 0b0110000;
+
+/**
+ * @brief Updates the contents of the linear feedback shift register passed in.
+ * At any given time, its contents will contain a psuedorandom sequence
+ * which repeats af... |
Refactor check_tags to account for optional tags
check_tags previously checked that no tags besides those specified were present.
It now accounts for optional tags; tags which are not a cause for failure if
present or absent, as long as they are not empty.
The updated interface is backwards-compatible. | @@ -18,9 +18,11 @@ STD_WAITTIME = 15 * 60 * 1000
STD_INTERVAL = 5 * 1000
-def check_tags(tags: dict, expected_tag_names: set):
+def check_tags(tags: dict, required_tag_names: set, optional_tag_names: set=set()):
"""Assert that tags contains only expected keys with nonempty values."""
- assert set(tags.keys()) == expect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.