message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
llvm/autodiff/optimizer: Provide generic initialization routine
Cleanup. | @@ -79,9 +79,8 @@ class Optimizer():
return llvm_func
- # to be implemented by child classes - sets the initial values for the optim struct
def initialize_optimizer_struct(self, ctx, builder, optim_struct):
- raise Exception("Unimplemented method!")
+ builder.store(optim_struct.type.pointee(None), optim_struct)
# to be... |
added `fluxcov` to aliases for covariances to fix
modified: photdata.py | @@ -25,7 +25,7 @@ PHOTDATA_ALIASES = OrderedDict([
('fluxerr', {'fluxerr', 'fe', 'fluxerror', 'flux_error', 'flux_err'}),
('zp', {'zp', 'zpt', 'zeropoint', 'zero_point'}),
('zpsys', {'zpsys', 'zpmagsys', 'magsys'}),
- ('fluxcov', {'cov', 'covar', 'covariance', 'covmat'})
+ ('fluxcov', {'cov', 'covar', 'covariance', 'co... |
[dagit] Link to run config from Queued tab
Summary: On the "Queued" tab, display a small callout linking to the queue configuration section of the "Instance status" page.
Test Plan: View "Queued" tab, verify rendering and behavior.
Reviewers: johann, prha, dgibson | import {gql, NetworkStatus} from '@apollo/client';
-import {Colors, NonIdealState, Spinner, Tab, Tabs, Tag} from '@blueprintjs/core';
+import {Callout, Colors, Icon, NonIdealState, Spinner, Tab, Tabs, Tag} from '@blueprintjs/core';
import {IconNames} from '@blueprintjs/icons';
import {isEqual} from 'lodash';
import * a... |
Update _html.py
Remote duplicated docs | @@ -423,11 +423,6 @@ def write_html(
require an active internet connection in order to load the plotly.js
library.
- If 'directory', a script tag is included that references an external
- plotly.min.js bundle that is assumed to reside in the same
- directory as the HTML file. If `file` is a string to a local file path
... |
gui: fix xplore page with non-default config path
A couple of sqobjects were initialized without parameters in the xplore
page. This means that if the suzieq configuration was not in one of the
default paths, the page crashes.
Passing the config to the sqobjects fixes the problem. | @@ -127,7 +127,9 @@ class XplorePage(SqGuiPage):
st.form_submit_button('Get', on_click=self._fetch_data)
if state.table:
- state.tables_obj = get_sqobject(state.table)()
+ state.tables_obj = get_sqobject(state.table)(
+ config_file=self._config_file
+ )
fields = state.tables_obj.describe()
colist = sorted((filter(lambd... |
Increase the prec of test_baddbmm
Summary:
This test is flaky on my computer, the error is:
```
AssertionError: tensor(1.3351e-05) not less than or equal to 1e-05
```
Pull Request resolved: | @@ -14539,7 +14539,7 @@ scipy_lobpcg | {:10.2e} | {:10.2e} | {:6} | N/A
self.assertEqual(torch.baddbmm(1, res2, 0, b1, b2), res2)
res4 = torch.baddbmm(res2, b1, b2, beta=1, alpha=.5)
- self.assertEqual(res4, res * 3)
+ self.assertEqual(res4, res * 3, prec=2e-5)
res5 = torch.baddbmm(res2, b1, b2, beta=0, alpha=1)
self.a... |
libmanage.py: install static libraries first
TN: | @@ -795,11 +795,13 @@ class ManageScript(object):
argv.extend(self.gpr_scenario_vars(args, 'prod', library_type))
self.check_call(args, 'Install', argv)
+ # Install the static libraries first, so that in the resulting project
+ # files, "static" is the default library type.
build_shared, build_static = self.what_to_bui... |
Add ApiSetu API
Add ApiSetu to OpenData API | @@ -856,6 +856,7 @@ API | Description | Auth | HTTPS | CORS |
API | Description | Auth | HTTPS | CORS |
|---|---|---|---|---|
| [18F](http://18f.github.io/API-All-the-X/) | Unofficial US Federal Government API Development | No | No | Unknown |
+| [Apisetu.gov.in](https://www.apisetu.gov.in/) | An Indian Government plat... |
Correct /index.html for subdirectories on S3
S3 server may not error on serving a directory. Adjust /index.html to
include trailing slash on directory links. | <body>
<h2>{{ title }}</h2>
<h3><a href="channeldata.json">channeldata.json</a></h3>
- {% for subdir in subdirs %}<a href="{{ subdir }}">{{ subdir }}</a> {% endfor %}
+ {% for subdir in subdirs %}<a href="{{ subdir }}/">{{ subdir }}</a> {% endfor %}
<table>
<tr>
<th style="padding-righ... |
Remove outdated warning from tutorial text.
The tutorial has been updated and now uses options not available
before 3.7.0. It is misleading to state that the tutorial was
written for v3.5.4. | @@ -6,12 +6,6 @@ Author: Jessica Bruhn, `NanoImaging Services <https://www.nanoimagingservices.co
.. highlight:: none
-.. warning::
-
- This tutorial was prepared using DIALS version 3.5.4, downloaded
- from :doc:`this site <../../../installation>`. Results may differ with other
- versions of the software.
-
General No... |
Make error message more informative
Summary:
Pull Request resolved:
I am debugging a failed workflow and found the original error message to be not informative. | @@ -1718,7 +1718,7 @@ class Net(object):
OrderedDict(inputs) if input_is_pair_list else
OrderedDict(zip(inputs, inputs)))
for output in outputs:
- assert self.BlobIsDefined(output)
+ assert self.BlobIsDefined(output), "{} is not defined".format(output)
input_names = {str(k): str(v) for k, v in viewitems(inputs)}
output... |
update Group Id attribute with examples
Add some hints for which Group Id Attribute to use for LDAP and AD. | @@ -2099,7 +2099,7 @@ Group Display Name Attribute
Group Id Attribute
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-(Required) Enter an AD/LDAP Group ID attribute to use as a unique identifier for Groups. This should be an AD/LDAP value that does not change.
+(Required) Enter an AD/LDAP Group ID attribu... |
Add more node-exporter fixes
These options changed between 0.12 and 0.15. | @@ -310,8 +310,8 @@ coreos:
--name node-exporter \
--restart always \
prom/node-exporter:v0.15.2 \
- --collector.procfs /host/proc \
- --collector.sysfs /host/sys \
+ --path.procfs /host/proc \
+ --path.sysfs /host/sys \
--collector.filesystem.ignored-mount-points ^/(sys|proc|dev|host|etc)($|/)
ssh_authorized_keys:
|
Change csp_policy to be a function
It depends on map_tiles_src which depends on the asset_url setting.
Better to make it a function.
If we discover it's really important to cache the output, then we can do
that then. | @@ -23,6 +23,7 @@ from ichnaea.content.stats import global_stats, histogram, regions
from ichnaea.models.content import StatKey
from ichnaea import util
+
HERE = os.path.dirname(__file__)
IMAGE_PATH = os.path.join(HERE, "static", "images")
FAVICON_PATH = os.path.join(IMAGE_PATH, "favicon.ico")
@@ -55,7 +56,12 @@ def co... |
Add reading from .uns colors for sc.pl.violin
Also throw an error when using non-categorical columns | @@ -679,6 +679,16 @@ def violin(
keys = [keys]
if groupby is not None:
obs_df = get.obs_df(adata, keys=[groupby] + keys, layer=layer, use_raw=use_raw)
+ if kwds.get('palette', None) is None:
+ if not is_categorical_dtype(adata.obs[groupby]):
+ raise ValueError(
+ f'The column `adata.obs[{groupby!r}]` needs to be catego... |
llvm, function/Linear: Convert to new get_params() helper method
Workaround inconsistent parameter shapes | @@ -3162,14 +3162,11 @@ class Linear(TransferFunction): # ---------------------------------------------
# self.functionOutputType = None
- def get_param_struct_type(self):
- #TODO: convert this to use get_param_initializer
- with pnlvm.LLVMBuilderContext() as ctx:
- return pnlvm._convert_python_struct_to_llvm_ir(ctx, (... |
Linter
I had flake8 turned off in my dpy env -_- | @@ -36,7 +36,8 @@ class SourceConverter(commands.Converter):
return argument.lower()
raise commands.BadArgument(
- f"Unable to convert `{utils.escape_markdown(argument)}` to valid command{', tag,' if show_tag else ''} or Cog."
+ f"Unable to convert `{utils.escape_markdown(argument)}` to valid\
+ command{', tag,' if sho... |
Format-The-Codebase
try reverting dtype change | @@ -337,6 +337,12 @@ def _convert(image, dtype, force_copy=False, uniform=False):
"""
kind = a.dtype.kind
if n > m and a.max() < 2 ** m:
+ mnew = int(np.ceil(m / 2) * 2)
+ if mnew > m:
+ dtype = "int{}".format(mnew)
+ else:
+ dtype = "uint{}".format(mnew)
+ n = int(np.ceil(n / 2) * 2)
return a.astype(_dtype_bits(kind, ... |
Fix noveltranslate cover
when loading the page the cover `src` is a blank placeholder that then get replaced with the cover `data-lazy-src`. The crawler was downloading the placeholder instead of the actual cover. | @@ -42,7 +42,7 @@ class NovelTranslateCrawler(Crawler):
logger.info("Novel title: %s", self.novel_title)
self.novel_cover = self.absolute_url(
- soup.select_one(".summary_image a img")["src"]
+ soup.select_one(".summary_image a img")["data-lazy-src"]
)
logger.info("Novel cover: %s", self.novel_cover)
|
[tests] remove 7 years old code stuff
See | @@ -3,13 +3,6 @@ skip_tags: true
version: 6.0.{build}
environment:
- APPVEYOR_PYTHON_URL: "https://raw.githubusercontent.com/dvorapa/python-appveyor-demo/master/appveyor/"
-
- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
- # /E:ON and /V:ON options are not enabled in the batch script interpreter
- ... |
Add a comment
Partly to re-trigger the CI because pypi failed. | @@ -59,6 +59,8 @@ class DaskExecutor(Executor):
meta_data: Dict[str, str],
process_func: Callable,
):
+ '''Create a dask future for a dask task to run the analysis.
+ '''
data_result = self.dask.submit(
run_coffea_processor,
events_url=file_url,
|
add mix to the list of audio source for composing the previewoutput.
there is probably i better way to do this | @@ -16,6 +16,7 @@ class AVPreviewOutput(TCPMultiConnection):
self.source = source
self.audio_streams = Config.getAudioStreams().get_stream_source()
+ self.audio_streams.append('mix')
self.bin = "" if Args.no_bins else """
bin.(
|
Change collision detection for IntervalVehicles
They now collide vehicles within their state interval | import copy
import numpy as np
+from highway_env import utils
from highway_env.vehicle.behavior import LinearVehicle
@@ -250,3 +251,26 @@ class IntervalVehicle(LinearVehicle):
interval_gain = -np.array([k[0], k[0]])
return interval_gain*x # Note: no flip of x, contrary to using intervals_product(k,interval_minus(x))
+ ... |
Fix tox issues
This patch fixes issues with the openstack-tox-molecule
and openstack-tox-linters Zuul jobs. | @@ -27,6 +27,8 @@ commands =
bash -c "set -e; for config in $(ls conf/); do \
echo conf/$config; pykwalify -d conf/$config -s browbeat/schema/browbeat.yml; done"
{[testenv:dist]commands}
+allowlist_externals =
+ bash
[testenv:dist]
basepython = python3
@@ -80,6 +82,8 @@ commands =
[testenv:molecule]
commands = {toxinid... |
(fix) add test for conversion rate mode not set
No orders should be placed if conversion rate mode is not set (or is
by default rate oracle and a conversion is not available)
Meet >%80 coverage, before: 74.68%, after: 92% | @@ -614,6 +614,37 @@ class HedgedMarketMakingUnitTest(unittest.TestCase):
self.assertAlmostEqual(Decimal("1.0104"), taker_fill2.price)
self.assertAlmostEqual(Decimal("3.0"), taker_fill2.amount)
+ def test_with_conversion_rate_mode_not_set(self):
+ self.clock.remove_iterator(self.strategy)
+ self.market_pair: MakerTaker... |
DOC: Fix type of `codes` in docstring of `_vq._vq()`
The codes array that is written out contains entries of type `int32_t`, not `vq_type`---changed the docstring to reflect that definition. | @@ -75,7 +75,7 @@ cdef int _vq(vq_type *obs, vq_type *code_book,
The number of features of each observation.
nobs : int
The number of observations.
- codes : vq_type*
+ codes : int32_t*
The pointer to the new codes array.
low_dist : vq_type*
low_dist[i] is the Euclidean distance from obs[i] to the corresponding
|
Update to Readme
Additional clarification for what DVC aims to do. | @@ -46,7 +46,7 @@ learning projects. Key features:
#. it helps manage experiments with Git tags or branches and **metrics** tracking;
-It aims to replace tools like Excel and Docs that are being commonly used as a knowledge repo and
+**DVC** aims to replace tools like Excel and Google Docs that are being commonly used ... |
fix deterministicpol
if self.noise is None, previous versino doesnt work | @@ -44,7 +44,10 @@ class DeterministicPol(BasePol):
def forward(self, obs):
mean = self.net(obs)
+ if self.noise is not None:
action_noise = self.noise()
+ else:
+ action_noise = self.noise
apply_noise = self.apply_noise
ac = mean
if action_noise is not None and apply_noise:
|
Various fixes for ISO
Fix | @@ -319,6 +319,7 @@ class MD_DataIdentification(object):
self.distance = []
self.uom = []
self.resourcelanguage = []
+ self.resourcelanguagecode = []
self.creator = []
self.publisher = []
self.contributor = []
@@ -349,7 +350,8 @@ class MD_DataIdentification(object):
self.aggregationinfo = util.testXMLValue(val)
self.ur... |
[dagit] Delete commented code in AssetView
Test Plan: Buildkite
Reviewers: prha | @@ -11,20 +11,6 @@ export const AssetView: React.FC<{assetKey: AssetKey}> = ({assetKey}) => {
const assetPath = assetKey.path.join(' \u203A ');
useDocumentTitle(`Asset: ${assetPath}`);
- // return (
- // <Loading queryResult={queryResult}>
- // {({assetOrError}) => {
- // if (assetOrError.__typename !== 'Asset') {
- //... |
Move argparse parsing of CLI args back to cmdloop() from __init__()
This is so unit tests pass | @@ -472,24 +472,11 @@ class Cmd(cmd.Cmd):
self._startup_commands.append("load '{}'".format(startup_script))
# Transcript files to run instead of interactive command loop
- self._transcript_files = None
-
- # Check for command line args
- if allow_cli_args:
- parser = argparse.ArgumentParser()
- parser.add_argument('-t'... |
Update lammps_check.py
Maintainers list for LAMMPS checks | @@ -41,7 +41,7 @@ class LAMMPSBaseCheck(rfm.RunOnlyRegressionTest):
}
self.tags = {'scs', 'external-resources'}
- self.maintainers = ['TR', 'VH']
+ self.maintainers = ['VH']
@rfm.parameterized_test(*([s, v]
|
[ENH] Fix incorrect `update_predict` arg default and docstring on `cv` arg
Fixes `update_predict` default `cv` param and docstring. `None` was raising an exception, so it should not default to it. No deprecation necessary due to erroneous default and docstring. | @@ -767,7 +767,7 @@ class BaseForecaster(BaseEstimator):
def update_predict(
self,
y,
- cv=None,
+ cv,
X=None,
update_params=True,
reset_forecaster=True,
@@ -812,7 +812,8 @@ class BaseForecaster(BaseEstimator):
For further details:
on usage, see forecasting tutorial examples/01_forecasting.ipynb
on specification of for... |
When in staging, compute measures in dedicated dataset
Overwriting production measures data isn't a good idea as we sometimes
use these in analyses. | @@ -100,6 +100,9 @@ LOGGING = {
}
}
+# BigQuery project name
+BQ_MEASURES_DATASET = 'staging_{}'.format(BQ_MEASURES_DATASET)
+
# For grabbing images that we insert into alert emails
GRAB_HOST = "http://staging.openprescribing.net"
|
[MoreUtils] [p]color now uses another site in embeds link
Fixed embed permissions checks | @@ -219,7 +219,7 @@ class MoreUtils:
if len(allowed_roles) > 0:
em.add_field(name="Roles", value="\n".join([str(x) for x in allowed_roles]))
em.set_image(url=emoji.url)
- if ctx.message.channel.permissions_for(ctx.message.author).embed_links:
+ if ctx.message.channel.permissions_for(ctx.message.server.me).embed_links:
... |
publish soft_delete_{forms,cases} to kafka
otherwise they remain effectively deleted in ES | @@ -453,6 +453,8 @@ class FormAccessorSQL(AbstractFormAccessor):
@staticmethod
def soft_undelete_forms(domain, form_ids):
+ from corehq.form_processor.change_publishers import publish_form_saved
+
assert isinstance(form_ids, list)
problem = 'Restored on {}'.format(datetime.utcnow())
with get_cursor(XFormInstanceSQL) as... |
fw/instrument: Add log signal maps
Add method name mappings for ERROR_LOGGED and WARNING_LOGGED signals. | @@ -135,6 +135,9 @@ SIGNAL_MAP = OrderedDict([
('on_successful_job', signal.SUCCESSFUL_JOB),
('after_job', signal.AFTER_JOB),
+ ('on_error', signal.ERROR_LOGGED),
+ ('on_warning', signal.WARNING_LOGGED),
+
# ('on_run_start', signal.RUN_START),
# ('on_run_end', signal.RUN_END),
# ('on_workload_spec_start', signal.WORKLO... |
[modules] dunst: try to handle errors gracefully
Try to handle dunst pause/unpause errors "gracefully" (ignore them).
fixes | @@ -14,7 +14,10 @@ class Module(bumblebee.engine.Module):
)
self._paused = False
# Make sure that dunst is currently not paused
+ try:
bumblebee.util.execute("killall -SIGUSR2 dunst")
+ except:
+ pass
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
cmd=self.toggle_status
)
@@ -22,10 +25,13 @@ cl... |
User Interface: Corrected implied options description for standalone
mode. | @@ -69,9 +69,9 @@ parser.add_option(
help = """\
Enable standalone mode in build. This allows you to transfer the created binary
to other machines without it relying on an existing Python installation. It
-implies these options: "--recurse-all --recurse-stdlib". You may also want
-to use "--python-flag=no_site" to avoi... |
Reduce levels of shells from 2 to 1
From cmd.exe -> rez_shell.bat -> you
To cmd.exe -> you | @@ -188,22 +188,6 @@ class CMD(Shell):
else:
_record_shell(executor, files=startup_sequence["files"], print_msg=(not quiet))
- if shell_command:
- # Launch the provided command in the configured shell and wait
- # until it exits.
- executor.command(shell_command)
-
- # Test for None specifically because resolved_contex... |
ENH: integrate: ensure points are unique in quad
When invoking QUADPACK's QAGPE with `quad(f, a, b, points=(c,d,e))`
make sure that a,b,c,d,e are unique to prevent integrating
zero-width intervals and invoking `f()` at bad points. | @@ -445,9 +445,11 @@ def _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points):
if infbounds != 0:
raise ValueError("Infinity inputs cannot be used with break points.")
else:
- nl = len(points)
- the_points = numpy.zeros((nl+2,), float)
- the_points[:nl] = points
+ #Duplicates force function evaluation at sinular... |
Use user key for genesis and proposal devmode
This kubernetes devmode file previously used different keys for genesis
and proposal. | @@ -65,7 +65,7 @@ items:
&& sawtooth keygen my_key \
&& sawset genesis -k /root/.sawtooth/keys/my_key.priv \
&& sawset proposal create \
- -k /etc/sawtooth/keys/validator.priv \
+ -k /root/.sawtooth/keys/my_key.priv \
sawtooth.consensus.algorithm.name=Devmode \
sawtooth.consensus.algorithm.version=0.1 \
-o config.batch... |
Exclude another presentation where `quantity` is unreliable
Fixes | @@ -57,6 +57,10 @@ ON
rx.month = dt.date
AND rx.bnf_code = dt.bnf_code
WHERE
- -- lantanaprost quantities are broken in data
- rx.bnf_code <> '1106000L0AAAAAA'
+-- These can be prescribed fractionally, but BSA round quantity down,
+-- making quantity unreliable. See #1764
+ rx.bnf_code <> '1106000L0AAAAAA' -- latanopro... |
AC: fix add_extension()
Ticket 94472 | @@ -362,7 +362,7 @@ class OpenVINOLauncher(Launcher):
if cpu_extensions:
selection_mode = self.config.get('_cpu_extensions_mode')
cpu_extensions = get_cpu_extension(cpu_extensions, selection_mode)
- self.ie_core.add_extension(str(cpu_extensions), 'CPU')
+ self.ie_core.add_extension(str(cpu_extensions))
ov_set_config(
s... |
[instancer] Fix bug in _instantiateFeatureVariations()
Fixes | @@ -805,12 +805,12 @@ def _instantiateFeatureVariationRecord(
return applies, shouldKeep
-def _limitFeatureVariationRecord(record, axisRanges, fvarAxes):
+def _limitFeatureVariationRecord(record, axisRanges, axisOrder):
newConditions = []
for i, condition in enumerate(record.ConditionSet.ConditionTable):
if condition.F... |
Make sure the output ufo has a kerningGroupConversionRenameMap, otherwise UFOs generated in version 2 will have invalid kerning group names.
Add a description and example of the instance name localisation. | @@ -256,6 +256,7 @@ class DesignSpaceProcessor(DesignSpaceDocument):
for sourceDescriptor in self.sources:
loc = Location(sourceDescriptor.location)
sourceFont = self.fonts[sourceDescriptor.name]
+ # this makes assumptions about the groups of all sources being the same.
kerningItems.append((loc, self.mathKerningClass(s... |
docs: add note for public network
* Change for public network
According to
* Revert "Change for public network"
This reverts commit
* Mentioning the difference of the example and the title with its reasoning | @@ -35,3 +35,9 @@ account of your own, here's an example of how to do so:
.. literalinclude:: ../../examples/create_account.py
:language: python
:linenos:
+
+
+Note: To avoid risks, TESTNET is used in the example above. In order to use the
+Stellar Live Network you will have to change the network passphrase to
+Network... |
Correct lifecycle shutdown procedure.
Services available changes when services are shutdown. | @@ -1838,7 +1838,7 @@ class Kernel:
)
for domain, services in self.services_available():
- for service in services:
+ for service in list(services):
self.set_service_lifecycle(service, LIFECYCLE_SHUTDOWN)
def shutdown(self):
|
STY: contains variable names
Changed the __contains__ variable names to be descriptive. | @@ -544,13 +544,12 @@ class Meta(object):
"{}; ".format(key.__repr__()),
"expected tuple, list, or str"]))
- # QUESTION: DOES THIS NEED TO CHANGE???
- def __contains__(self, other):
+ def __contains__(self, data_var):
"""case insensitive check for variable name
Parameters
----------
- other : str
+ data_var : str
Varia... |
Fix typos in kubernetes db migration guide
Summary: Resolves
Test Plan: eyes
Reviewers: #docs, catherinewu, sashank | @@ -34,9 +34,9 @@ export DAEMON_DEPLOYMENT_NAME=`kubectl get deploy \
--selector=component=dagster-daemon -o jsonpath="{.items[0].metadata.name}"`
# Save each deployment's replica count to scale back up after migrating
-export DAGIT_DEPLOYMENT_REPLICA_COUNT=`k get deploy \
+export DAGIT_DEPLOYMENT_REPLICA_COUNT=`kubect... |
Remove `invest_status`
Since the new parameter `invest_non_convex` exists in the `NonConvexInvestFlow`, there is no need for the `invest_status`. Moreover, usage of the `NonConvexInvestFlow` class indicates that the `invest` always exists. Therefore, `invest_status` can be removed and by removing it, the computation ti... | @@ -523,9 +523,6 @@ class NonConvexInvestFlowBlock(SimpleBlock):
bounds=_investvar_bound_rule,
)
- # create status variable for the nonconvex investment flow
- self.invest_status = Var(self.NON_CONVEX_INVEST_FLOWS, within=Binary)
-
# New nonconvex-investment-related variable defined in the
# <class 'oemof.solph.flows.N... |
Update requirementslib with retry for failed wheels
Fixes | @@ -1102,8 +1102,12 @@ build-backend = "{1}"
def build(self):
# type: () -> "SetupInfo"
dist_path = None
+ metadata = None
try:
dist_path = self.build_wheel()
+ metadata = self.get_metadata_from_wheel(
+ os.path.join(self.extra_kwargs["build_dir"], dist_path)
+ )
except Exception:
try:
dist_path = self.build_sdist()
@@... |
reduce input shapes for matmul
Summary:
Pull Request resolved:
as title
Test Plan:
```
buck run //caffe2/benchmarks/operator_benchmark/pt:matmul_test -- --iteration 1 | @@ -23,9 +23,9 @@ mm_short_configs = op_bench.config_list(
mm_long_configs = op_bench.cross_product_configs(
- M=[64, 128, 256],
- N=range(2, 10, 3),
- K=[128, 512, 1024],
+ M=[64, 128],
+ N=[64, 128],
+ K=[512],
trans_a=[True, False],
trans_b=[True, False],
device=['cpu', 'cuda'],
|
symbiotic-build.sh: support newer klee
Klee merged clang's extra flags as LLVMCC.ExtraFlags not
EXTRA_LLVMCC.Flags. Fix that. | @@ -477,9 +477,14 @@ if [ $FROM -le 4 ]; then
|| exitmsg "Failed building klee 32-bit runtime library"
rm -f Release+Asserts/lib/kleeRuntimeIntrinsic.bc*
rm -f Release+Asserts/lib/klee-libc.bc*
- make -C runtime/Intrinsic -f Makefile.cmake.bitcode EXTRA_LLVMCC.Flags=-m32 \
+ # EXTRA_LLVMCC.Flags is obsolete and to be r... |
Fix fields name in TT system stats report
HG--
branch : feature/microservices | @@ -83,9 +83,9 @@ class ReportTTSystemStatApplication(SimpleReport):
ts_to_date = time.mktime(to_date.timetuple())
# Manged Object block
- q1 = """select server, service, count(), round(quantile(0.75)(duration), 0)/1000 as q1,
+ q1 = """select server, service, count(), round(quantile(0.25)(duration), 0)/1000 as q1,
rou... |
Update description of valid whitelist for non-admin user
Non-admin user can filter instance by instance-uuid and other
filter keys with being configured using the "os_compute_api:
servers:allow_all_filters" policy rule. The policy rule was
added with
Closes-Bug:1819425 | @@ -154,7 +154,9 @@ There is whitelist for valid filter keys. Any filter key other than from
whitelist will be silently ignored.
- For non-admin users, whitelist is different from admin users whitelist.
- Valid whitelist for non-admin users includes
+ The valid whitelist can be configured using the
+ ``os_compute_api:s... |
update api-keys
update link | @@ -4,9 +4,9 @@ In order to trade on a centralized exchange and IDEX, you will need to import yo
Please see below for instructions to find your API keys for the exchanges that Hummingbot currently supports:
-* [Binance](/connectors/binance)
+* [Binance](/connectors/binance/#creating-binance-api-keys)
-* [Coinbase Pro](... |
Fix the doc version.
The doc version was wrongly set to 0.0.1 | @@ -22,7 +22,7 @@ copyright = '2021, QuTiP Community'
author = 'QuTiP Community'
# The full version, including alpha/beta/rc tags
-release = '0.0.1'
+release = '0.1.0'
# -- General configuration ---------------------------------------------------
|
$.Analysis.Token: properly wrap No_Token_Index into No_Token
TN: | @@ -2472,7 +2472,9 @@ package body ${ada_lib_name}.Analysis is
(Node : access ${root_node_value_type}'Class;
Index : Token_Index) return Token_Type
is
- ((TDH => Token_Data (Node.Unit),
+ (if Index = No_Token_Index
+ then No_Token
+ else (TDH => Token_Data (Node.Unit),
Token => Index,
Trivia => No_Token_Index));
|
Adding time filter and refactoring fields mapping
Deleting console.log(...) | @@ -198,13 +198,10 @@ script:
var dt = new Date();
dt.setMinutes(dt.getMinutes() - dt.getTimezoneOffset());
dt.setHours(dt.getHours() - parseInt(args[LAST_HOURS]))
- console.log("Date Time = " + dt);
-
var buildDateFormat = function () {
return dt.toISOString().slice(0,19).replace('T',' ') + '"-"' + now.toISOString().s... |
Adding UI and Class for Default roles per issue
Added Default to Sec.Role | @@ -49,6 +49,7 @@ class Role(db.Model, RoleMixin):
id = db.Column(db.Integer(), primary_key=True)
name = db.Column(db.String(80), unique=True)
description = db.Column(db.String(255))
+ default = db.Column(db.Boolean)
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
|
tools: Update run-dev.py to output right subdomain if on Zulip droplet.
I have updated `tools/run-dev.py` to output the correct subdomain such as
`http://zulip.username.zulipdev.org` so that the user knows the correct
subdomain to access the Zulip Dev realm on. | @@ -370,7 +370,10 @@ def print_listeners() -> None:
# EXTERNAL_HOST logic from dev_settings.py.
IS_DEV_DROPLET = pwd.getpwuid(os.getuid()).pw_name == "zulipdev"
if IS_DEV_DROPLET:
- default_hostname = os.uname()[1].lower()
+ # Technically, the `zulip.` is a subdomain of the server, so
+ # this is kinda misleading, but ... |
Update irs990.yaml
Changing description to say that dataset contains data from 2013 to present. | Name: IRS 990 Filings
-Description: Machine-readable data from certain electronic 990 forms filed with the IRS from 2011 to present.
+Description: Machine-readable data from certain electronic 990 forms filed with the IRS from 2013 to present.
Documentation: https://docs.opendata.aws/irs-990/readme.html
Contact: https:... |
exceptions raised if passed ball_tree or kd_tree
KNeighborsTimeSeriesClassifier cannot be used with algorithms kd_tree or ball_tree in the base class KNeighborsClassifier. | @@ -114,6 +114,18 @@ class KNeighborsTimeSeriesClassifier(_KNeighborsClassifier, BaseClassifier):
metric_params=None,
**kwargs
):
+ if algorithm == "kd_tree":
+ raise ValueError(
+ "KNeighborsTimeSeriesClassifier cannot work with kd_tree since kd_tree "
+ "cannot be used with a callable distance metric and we do not su... |
Fix empty constraint
When using the empty constriant without this patch, I was getting an error [here](https://github.com/scipy/scipy/blob/5c342cd4335aab4835390fb36e4405b1a64407e5/scipy/optimize/_trustregion_constr/tr_interior_point.py#L93)
```
IndexError: arrays used as indices must be of integer (or boolean) type
``` | @@ -88,7 +88,7 @@ class CanonicalConstraint(object):
def hess(x, v_eq, v_ineq):
return empty_hess
- return cls(0, 0, fun, jac, hess, np.empty(0))
+ return cls(0, 0, fun, jac, hess, np.empty(0, dtype=np.bool))
@classmethod
def concatenate(cls, canonical_constraints, sparse_jacobian):
|
update __init__
Try to fix the conflict between my branch and the master | @@ -85,17 +85,17 @@ from plantcv.plantcv import transform
# add new functions to end of lists
-__all__ = ['fatal_error', 'print_image', 'plot_image', 'color_palette', 'plot_colorbar', 'apply_mask', 'readimage', 'readbayer',
- 'laplace_filter', 'sobel_filter', 'scharr_filter', 'hist_equalization', 'plot_hist', 'image_ad... |
Update dipyridamole.json
add comment to SQL | ],
"numerator_from": "{hscic}.normalised_prescribing_standard ",
"numerator_where": [
- "(bnf_code LIKE '0209000L0%')",
- " OR (bnf_code LIKE '0209000V0%') "
+ "(",
+ "bnf_code LIKE '0209000L0%' OR --Dipyridamole \n",
+ "bnf_code LIKE '0209000V0%' --Dipyridamole & Aspirin \n",
+ ")"
],
"denominator_columns": [
"SUM(ite... |
Don't pass along null values as labels
The initial lazy migration of this feature inadvertently set these
translation dicts to something like {"en": None}, when they should've
been left blank (the empty string is also an acceptable val).
This causes issues in the translation code: | @@ -2287,7 +2287,8 @@ class CaseSearch(DocumentSchema):
def get_search_title_label(self, app, lang, for_default=False):
if for_default:
lang = app.default_language
- return self.title_label.get(lang, '')
+ # Some apps have undefined labels incorrectly set to None, normalize here
+ return self.title_label.get(lang) or '... |
Update README.md
Add Bible api in Books Category | @@ -111,8 +111,8 @@ API | Description | Auth | HTTPS | CORS |
### Books
API | Description | Auth | HTTPS | CORS |
|---|---|---|---|---|
-| [Bible](https://bibleapi.co/) | RESTful Bible API with 7 versions, 4 languages and multiple features | `apiKey` | Yes | Unknown |
| [Bhagavad Gita](https://bhagavadgita.io/api) | Bh... |
Fix label deletion
Updated `gam delete labels` to process labels in reverse hierarchial order to avoid deleting a parent label before all of its child labels are deleted. | @@ -6325,20 +6325,17 @@ def doDeleteLabel(users):
labels = callGAPI(gmail.users().labels(), 'list', userId=user, fields='labels(id,name,type)')
del_labels = []
if label == '--ALL_LABELS--':
- for del_label in labels['labels']:
- if del_label['type'] == 'system':
- continue
+ for del_label in sorted(labels['labels'], ke... |
Updated link in Note
* Updated link in Note
Replaced the link to Troubleshooting guide in the "Note". Minor grammatical fixes.
* Update source/install/docker-local-machine.rst | @@ -5,13 +5,13 @@ Local Machine Setup using Docker
The following instructions use Docker to install Mattermost in *Preview Mode* for exploring product functionality on a single machine.
-**Note:** This configuration should not be used in production, as it's using a known password string, contains other non-production c... |
Update classes.py
Message-Id:
Message-Id: | def new_alien_list(positions):
"""
+ Function that takes a list of positions and creates one alien
+ instance per position
:param positions: list - a list of tuples of (x, y) coordinates
:return: list - a list of alien objects
-
- Function that takes a list of positions and creates one alien
- instance per position
"""... |
fix: rename cancelled docs patch query
use backquotes in queries where column names are dynamic(To avoid query
issues incase reserved keywords used as a table columns.) | @@ -129,9 +129,9 @@ def update_linked_doctypes(doctype, cancelled_doc_names):
update
`tab{linked_dt}`
set
- {column}=CONCAT({column}, '-CANC')
+ `{column}`=CONCAT(`{column}`, '-CANC')
where
- {column} in %(cancelled_doc_names)s;
+ `{column}` in %(cancelled_doc_names)s;
""".format(linked_dt=linked_dt, column=field),
{'c... |
Fix a test compilation failure due to bad skip flag in
Rust tests were accidentally skipped in the top commit of
[ci skip-build-wheels] | @@ -348,13 +348,13 @@ async fn jdk_symlink() {
#[tokio::test]
#[cfg(unix)]
-async fn test_update_env() {
+async fn test_apply_chroot() {
let mut env: BTreeMap<String, String> = BTreeMap::new();
env.insert("PATH".to_string(), "/usr/bin:{chroot}/bin".to_string());
let work_dir = TempDir::new().unwrap();
let mut req = Pro... |
Separate / distinguish API docs for different API versions.
Closes | .. include:: /../tasks/README.rst
-Api Reference
+API Reference
-------------
+
+This package includes clients for multiple versions of the Tasks
+API. By default, you will get ``v2beta3``, the latest version.
+
.. toctree::
:maxdepth: 2
- gapic/v2beta2/api
- gapic/v2beta2/types
gapic/v2beta3/api
gapic/v2beta3/types
+
... |
Move me/self check on get_input_entity to the beginning
It would otherwise fail since the addition of getting entity
by exact name if someone had 'me' or 'self' as their name. | @@ -2425,6 +2425,9 @@ class TelegramClient(TelegramBareClient):
Returns:
:tl:`InputPeerUser`, :tl:`InputPeerChat` or :tl:`InputPeerChannel`.
"""
+ if peer in ('me', 'self'):
+ return InputPeerSelf()
+
try:
# First try to get the entity from cache, otherwise figure it out
return self.session.get_input_entity(peer)
@@ -2... |
fix arg
[fixes COMMCAREHQ-1JD3] | @@ -69,7 +69,7 @@ class OtherCasesReassignmentProcessor():
def process(self):
from custom.icds.location_reassignment.utils import reassign_cases
new_site_codes = set()
- reassignments_by_location_id = defaultdict([])
+ reassignments_by_location_id = defaultdict(list)
for case_id, details in self.reassignments.items():
... |
Add Member.get_role
Adds an efficient way to check if a member has a role by ID.
This is done in a way consistent with the existing user API of the
library.
The more debated Member.has_role_id/has_role is intentionally not
included for review at this time given the heavy bikeshedding of it. | @@ -830,3 +830,20 @@ class Member(discord.abc.Messageable, _BaseUser):
user_id = self.id
for role in roles:
await req(guild_id, user_id, role.id, reason=reason)
+
+ def get_role(self, role_id: int) -> Optional[discord.Role]:
+ """Returns a role with the given ID from roles which the member has.
+
+ .. versionadded:: 2.... |
Expands coverage in test_to_tensor to 1 and 4 image channels
expands coverage on test_to_tensor to 1 and 4 image channels | @@ -248,9 +248,11 @@ class Tester(unittest.TestCase):
assert (y.equal(x))
def test_to_tensor(self):
- channels = 3
+ test_channels = [1, 3, 4]
height, width = 4, 4
trans = transforms.ToTensor()
+
+ for channels in test_channels:
input_data = torch.ByteTensor(channels, height, width).random_(0, 255).float().div_(255)
im... |
Increase NY width
Increasing width for both primary and secondary | @@ -56,6 +56,12 @@ primary:
height: 5000
message: using viewport height 5000 for NE
+ NY:
+ renderSettings:
+ viewport:
+ width: 5000
+ message: using viewport width 5000 for NY
+
OK:
overseerScript: page.manualWait(); await page.waitForDelay(60000); page.done();
message: waiting 60 sec to load OK
@@ -191,6 +197,12 @@ ... |
Update detection-testing.yml
For a quotation mark | @@ -257,7 +257,7 @@ jobs:
with:
python-version: '3.9' #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- cache: 'pip
+ cache: 'pip'
- name: Install Python Dependencies
run: |
|
Fix warning when creating ndarray from list of DSA with mismatched lengths
./packages/syft/src/syft/core/adp/data_subject_list.py:626: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If ... | @@ -623,7 +623,7 @@ class DataSubjectArray:
# per data point, we should make sure that we implement in such a way we expand
# the datasubjects automatically for row to data point mapping.
if not isinstance(input_subjects, np.ndarray):
- input_subjects = np.array(input_subjects)
+ input_subjects = np.array(input_subject... |
ci: include a waitfordebug label
This commit includes a feature to stop the CI job
after the cluster is deployed for debugging purposes. | @@ -310,6 +310,29 @@ if [[ "$LAUNCH_FROM" == "h" ]]; then
echo "(launch_e2e.sh) ==> The deployment failed, we still need to run the cleanup tasks"
FAILED="1"
}
+
+ if [[ "$JOB_TYPE" == "pr" ]]; then
+ #
+ # This while true will provide the feature of adding the label 'waitfordebug'
+ # to any PR in the main repository,... |
Restore "Salt Community" doc section
This was moved to the `topics/index.rst` page in PR but
seems to have been accidentally removed in PR | @@ -89,3 +89,98 @@ the Salt project so that we can all benefit together as Salt grows.
Please feel free to sprinkle Salt around your systems and let the
deliciousness come forth.
+Salt Community
+==============
+
+Join the Salt!
+
+There are many ways to participate in and communicate with the Salt community.
+
+Salt h... |
Update nested_inputs.py
Added CO2_cost_us_dollars_per_tonne and CO2_cost_escalation_pct | @@ -276,7 +276,23 @@ nested_input_definitions = {
"max": 1.0,
"default": 0.3,
"description": "Additional cost, in percent of non-islandable capital costs, to make a distributed energy system islandable from the grid and able to serve critical loads. Includes all upgrade costs such as additional laber and critical load ... |
BranchCreator : Fix dependency tracking bug
In practice this was harmless because the dirtying performed by `inPlug()->childNamesPlug()` was equivalent, but it's better to be precise. | @@ -160,7 +160,7 @@ void BranchCreator::affects( const Plug *input, AffectedPlugsContainer &outputs
{
FilteredSceneProcessor::affects( input, outputs );
- if( input == parentPlug() || input == filteredPathsPlug() )
+ if( input == parentPlug() || input == filteredPathsPlug() || input == inPlug()->existsPlug() )
{
output... |
Fix for function path
AttributeError: module 'urllib' has no attribute 'urlencode' | @@ -60,7 +60,7 @@ For an information on what the ssl_options can be set to reference the `official
The following example demonstrates how to generate the ssl_options string with `Python's urllib <http://docs.python.org/2/library/urllib.html>`_::
import urllib
- urllib.urlencode({'ssl_options': {'certfile': '/etc/ssl/my... |
refactoring and fixing refrigeration loads
moving supply and return temperatures for refrigeration to constants
changing to supply and return temperatures for refrigeration (from previously wrong data-center temps)
refactoring function and np.vectorize call to simple, understandable for loop | @@ -7,6 +7,7 @@ import numpy as np
import pandas as pd
from cea.technologies import heatpumps
from cea.constants import HOURS_IN_YEAR
+from cea.demand.constants import T_C_REF_SUP_0, T_C_REF_RE_0
__author__ = "Jimeno A. Fonseca"
__copyright__ = "Copyright 2016, Architecture and Building Systems - ETH Zurich"
@@ -33,32 ... |
Create Invoice popup: Mark memo field as required
Both amount and memo are required by the API, but only the amount field is marked as such in the UI. This commit also marks the memo field as required. | filled
dense
v-model.trim="receive.data.memo"
- label="Memo"
+ label="Memo *"
placeholder="LNbits invoice"
></q-input>
<div v-if="receive.status == 'pending'" class="row q-mt-lg">
|
[revert]: since the UCR is migration, so values are already stored as
string, which are difficult to migrate
Github Issue:
Authored-by: Shubham Bansal | },
{
"column_id": "migration_status",
- "datatype": "small_integer",
+ "datatype": "string",
"type": "expression",
"expression": {
- "type": "switch",
- "switch_on": {
+ "type": "root_doc",
+ "expression": {
+ "datatype": "string",
"type": "property_path",
- "property_path": ["form", "migration_status"]
- },
- "cases":... |
validators: Fix dependentSchemas when instance is not an object
Just like 'dependentRequired' and 'dependencies', 'dependentSchemas'
needs to handle instance not being an object. | @@ -265,6 +265,9 @@ def dependentRequired(validator, dependentRequired, instance, schema):
def dependentSchemas(validator, dependentSchemas, instance, schema):
+ if not validator.is_type(instance, "object"):
+ return
+
for property, dependency in dependentSchemas.items():
if property not in instance:
continue
|
Updating the `read_yaml` to use the file cache.
Also stores the raw pre-untagged parsed data to make cross locale usage easier. | @@ -55,6 +55,7 @@ class PodDoesNotExistError(Error, IOError):
# Pods can create temp directories. Need to track temp dirs for cleanup.
_POD_TEMP_DIRS = []
+
@atexit.register
def goodbye_pods():
for tmp_dir in _POD_TEMP_DIRS:
@@ -63,6 +64,7 @@ def goodbye_pods():
# TODO(jeremydw): A handful of the properties of "pod" sh... |
gatherkeys: no need to decode - already done by remoto
Resolves: rm#39489 | @@ -143,7 +143,7 @@ def gatherkeys_missing(args, distro, rlogger, keypath, keytype, dest_dir):
keyring_path_local = os.path.join(dest_dir, keyring_name_local)
with open(keyring_path_local, 'wb') as f:
for line in out:
- f.write(line + b'\n')
+ f.write(line.decode('utf-8') + '\n')
return True
@@ -183,7 +183,7 @@ def gat... |
Fix typo in comment about kill()
Fix typo in comment about kill method in PopenWorker class used to kill
child processes created by the worker. | @@ -124,7 +124,7 @@ class PopenWorker:
self._reader.close()
except IOError:
pass
- # kill all child processes recurisvely
+ # kill all child processes recursively
try:
kill_child_processes(self._proc.pid)
except TypeError:
|
Use pexpect.TIMEOUT instead of pexpect.exceptions.TIMEOUT
All pexpect submodules have been moved into the pexpect package as of version 3.0. | @@ -16,7 +16,7 @@ def expect_exact(context, expected, timeout):
timedout = False
try:
context.cli.expect_exact(expected, timeout=timeout)
- except pexpect.exceptions.TIMEOUT:
+ except pexpect.TIMEOUT:
timedout = True
if timedout:
# Strip color codes out of the output.
|
[DOCS] Fix tvm.build API doc layout
The newline in the pydoc breaks the layout of parameter inputs in API `tvm.build` | @@ -153,8 +153,7 @@ def build(
Parameters
----------
- inputs : Union[tvm.te.schedule.Schedule,
- tvm.tir.PrimFunc, IRModule, Mapping[str, IRModule]]
+ inputs : Union[tvm.te.schedule.Schedule, tvm.tir.PrimFunc, IRModule, Mapping[str, IRModule]]
The input to be built
args : Optional[List[Union[tvm.tir.Buffer, tensor.Ten... |
Update create_dir_if_not_there.py
added os.path.jon() for making a full path safely and it's python3 compatible | @@ -13,7 +13,7 @@ try:
home = os.path.expanduser("~") # Set the variable home by expanding the users set home directory
print(home) # Print the location
- if not os.path.exists(os.path.join(home, 'testdir')):
+ if not os.path.exists(os.path.join(home, 'testdir')): # os.path.jon() for making a full path safely
os.makedi... |
Improve help text for network create --external
Closes-Bug: | @@ -271,14 +271,16 @@ class CreateNetwork(common.NetworkAndComputeShowOne,
'--external',
action='store_true',
help=self.enhance_help_neutron(
- _("Set this network as an external network "
+ _("The network has an external routing facility that's not "
+ "managed by Neutron and can be used as in: "
+ "openstack router s... |
[skip ci][ci] Add missing guard to skip CI check
This was failing in the docker image validation since the `BRANCH_NAME` environment variable wasn't set. The part in question still runs even with the `skip ci`
cc | @@ -132,7 +132,7 @@ def cancel_previous_build() {
}
def should_skip_ci(pr_number) {
- if (!env.BRANCH_NAME.startsWith('PR-')) {
+ if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) {
// never skip CI on build sourced from a branch
return false
}
|
Feature/251 better logging in retrain script:
add logging verbosity flag to run arguments in retrain.py script
don't log each created bottleneck file
pull request amendments | @@ -351,7 +351,7 @@ def create_bottleneck_file(bottleneck_path, image_lists, label_name, index,
decoded_image_tensor, resized_input_tensor,
bottleneck_tensor):
"""Create a single bottleneck file."""
- tf.logging.info('Creating bottleneck at ' + bottleneck_path)
+ tf.logging.debug('Creating bottleneck at ' + bottleneck_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.