message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
tests: when using pytest mark decorators ensure all fixtures are defined
Decorating a test method directly with a pytest mark seems to break if
the test function does not explicitly define all pytest fixtures it
expects to recieve. | @@ -15,7 +15,7 @@ class TestInstall(object):
assert File(node["conf_path"]).is_file
@pytest.mark.no_docker
- def test_ceph_command_exists(self, Command):
+ def test_ceph_command_exists(self, Command, node):
assert Command.exists("ceph")
|
Make `streamlit help` not crash on first run if unable to load files
from the web. | @@ -191,10 +191,14 @@ def display_reference():
except urllib.error.URLError:
st.error(f'Unable to load file from {image_url}. '
'Is the internet connected?')
+ except Exception as e:
+ st.exception(e)
+ return None
image_url = 'https://images.fineartamerica.com/images/artworkimages/mediumlarge/1/serene-sunset-robert-by... |
api/common/ColorLight: add blink and animate
These are the generalizations of the corresponding methods for single color lights. | @@ -450,26 +450,37 @@ class ColorLight:
"""Turns off the light."""
pass
- def pattern(self, pattern, duration):
- """Makes the light follow a color pattern as a function of time.
+ def blink(self, color, durations):
+ """Blinks the light at a given color by turning it on and off for given
+ durations.
- The specified p... |
Sparse and Dense vector fields
Closes | @@ -297,6 +297,16 @@ class Float(Field):
def _deserialize(self, data):
return float(data)
+class DenseVector(Float):
+ name = 'dense_vector'
+
+ def __init__(self, dims, **kwargs):
+ kwargs["multi"] = True
+ super(DenseVector, self).__init__(dims=dims, **kwargs)
+
+class SparseVector(Field):
+ name = 'sparse_vector'
+
... |
Prevent download_profile_photo from downloading arbitrary files
First of all, because it shouldn't be doing that. Second, it was
buggy and was passing the tuple returned by get_input_location to
download_file which doesn't accept tuples (instead it should be
passed the photo object so that download_file could return dc... | @@ -78,9 +78,10 @@ class DownloadMethods(UserMethods):
if isinstance(photo, (types.UserProfilePhoto, types.ChatPhoto)):
loc = photo.photo_big if download_big else photo.photo_small
else:
- try:
- loc = utils.get_input_location(photo)
- except TypeError:
+ # It doesn't make any sense to check if `photo` can be used
+ # ... |
Slack importer: Disable often-breaking test in CI.
This test randomly fails far too often in Travis -- I think more than
all our other tests combined. It needs to be fixed before we can ask
everyone to look at build failures it causes. | @@ -26,7 +26,6 @@ set -x
./tools/test-run-dev
./tools/test-queue-worker-reload
-./tools/test-slack-importer
# NB: Everything here should be in `tools/test-all`. If there's a
# reason not to run it there, it should be there as a comment
# explaining why.
|
Code block: clarify get_instructions's docstring
It wasn't clear that it also parses the message content. | @@ -147,7 +147,11 @@ def _get_no_lang_message(content: str) -> Optional[str]:
def get_instructions(content: str) -> Optional[str]:
- """Return code block formatting instructions for `content` or None if nothing's wrong."""
+ """
+ Parse `content` and return code block formatting instructions if something is wrong.
+
+ ... |
Updates default idle='Gi' => idle=() argument in filter_circuit(s)
Another update as we get rid of 'Gi' references in favor of an
"empty layer" idle. | @@ -756,7 +756,7 @@ def manipulate_circuit_list(circuitList, sequenceRules, line_labels="auto"):
return [ manipulate_circuit(opstr, sequenceRules, line_labels) for opstr in circuitList ]
-def filter_circuits(circuits, sslbls_to_keep, new_sslbls=None, drop=False, idle='Gi'):
+def filter_circuits(circuits, sslbls_to_keep... |
Add resilienceproject to allowed redirect URIs
In the future, a more programmatic method for enabling
iOS/Android projects should be implemented. | @@ -470,7 +470,11 @@ OAUTH2_PROVIDER = {
},
'AUTHORIZATION_CODE_EXPIRE_SECONDS': 60 * 30,
'REQUEST_APPROVAL_PROMPT': 'auto',
- 'ALLOWED_REDIRECT_URI_SCHEMES': ['http', 'https', 'openhumanshk'],
+ 'ALLOWED_REDIRECT_URI_SCHEMES': [
+ 'http', 'https',
+ # Redirect URIs that are using iOS or Android app-registered schema
+... |
[doc] Show current decommissions within HISTORY.rst
Bot owner are informed about current decommissions
with this new list. | Release history
===============
+Current decommissions
+---------------------
+
+* 3.0.20200405: Site and Page methods deprecated for 10 years or longer will be removed
+* 3.0.20200405: Usage of SkipPageError with BaseBot will be removed
+* 3.0.20200326: Functions dealing with stars list may be removed
+* 3.0.20200306:... |
Sets mapping_method to claim for github
Set the mapping method to claim like it is set for the deployment.
Mapping method true is invalid and the ansible playbook will error out. | @@ -26,7 +26,7 @@ openshift_master_default_subdomain={{ wildcard_zone }}
osm_default_node_selector="role=app"
deployment_type={{ deployment_type | default('openshift-enterprise') }}
os_sdn_network_plugin_name={{ openshift_sdn | default('redhat/openshift-ovs-subnet') }}
-openshift_master_identity_providers=[{'name': 'gi... |
ArnoldShaderUITest : check behaviour for registered plug metadata
When registering metadata for a specific plug, it shouldn't override the
metadata lookup on the base class for another plug. | @@ -190,6 +190,15 @@ root["SceneWriter"].execute()
self.assertEqual( parms["filename"].value, "overrideUserDefault" )
self.assertEqual( parms["filter"].value, "bilinear" )
+ def testBaseClassMetadataLookup( self ) :
+
+ surface = GafferArnold.ArnoldShader()
+ surface.loadShader( "standard_surface" )
+
+ # Make sure tha... |
mmctl corrections
* mmctl corrections
Documentation for:
Applied corrections to mmctl team users add and mmctl channel create child command documentation
* updated mmctl team users delete | @@ -937,14 +937,14 @@ Create a channel.
.. code-block:: sh
- channel create --team myteam --name mynewchannel --display_name "My New Channel"
- channel create --team myteam --name mynewprivatechannel --display_name "My New Private Channel" --private
+ channel create --team myteam --name mynewchannel --display-name "My ... |
Default 'is_carousel_bumped_post'
Setting default
'is_carousel_bumped_post': 'false'
TODO: understand when it's 'true' | @@ -657,7 +657,8 @@ class API(object):
data = self.action_data({
'media_id': media_id,
'container_module': container_module,
- 'feed_position': feed_position})
+ 'feed_position': feed_position,
+ 'is_carousel_bumped_post': 'false'})
if container_module == 'feed_timeline':
data.update({'inventory_source': 'media_or_ad'}... |
Update recipes/jsoncpp/all/conanfile.py
remove redundant tools.Version call | @@ -39,7 +39,7 @@ class JsoncppConan(ConanFile):
tools.replace_in_file(os.path.join(self._source_subfolder, "src", "lib_json", "CMakeLists.txt"),
"set_target_properties( jsoncpp_lib PROPERTIES POSITION_INDEPENDENT_CODE ON)",
"set_target_properties( jsoncpp_lib PROPERTIES POSITION_INDEPENDENT_CODE OFF)")
- if tools.Vers... |
ci: only reject once and fix dismiss
`Ana06/automatic-pull-request-review@v0.1.0` is a fork of
which
fixes `DISMISS` and provides an `allow_duplicate` option which allows to
only approve once. | @@ -25,13 +25,14 @@ jobs:
echo $FILES | grep -qF 'CHANGELOG.md' || echo $PR_BODY | grep -qiF "$NO_CHANGELOG"
- name: Reject pull request if no CHANGELOG update
if: ${{ always() && steps.changelog_updated.outcome == 'failure' }}
- uses: andrewmusgrave/automatic-pull-request-review@0.0.5
+ uses: Ana06/automatic-pull-requ... |
Removed termsAgreement (leftover from vf)
also changed UX to match instantschools' (Talked about with Khang and Christian) | autocomplete="new-password"
required />
- <icon-button :disabled="canSubmit" id="submit" :primary="true" :text="$tr('finish')" type="submit" />
+ <icon-button :disabled="busy" id="submit" :primary="true" :text="$tr('finish')" type="submit" />
</form>
username: '',
password: '',
confirmed_password: '',
- termsAgreement:... |
Provide a better `repr` for `Node` and `Inputs`
Useful for debugging purposes. I got hit with non-understandable output
for failing tests, and these `repr` implementations help a lot with
this. | @@ -47,6 +47,10 @@ class Inputs(MM):
def __len__(self):
return self.target._in_edges.__len__()
+ def __repr__(self):
+ return repr("<{0.__module__}.{0.__name__}: {1!r}>"
+ .format(type(self), dict(self)))
+
class Outputs(UD):
""" Helper that intercepts modifications to update `Inputs` symmetrically.
@@ -254,6 +258,10 @... |
Set "entry.qualified_name" for builtin types.
Fixes | @@ -1241,12 +1241,14 @@ class ModuleScope(Scope):
entry.is_builtin = 1
entry.is_const = 1 # cached
entry.name = name
+ entry.qualified_name = '__builtin__.' + name
entry.cname = Naming.builtin_prefix + name
self.cached_builtins.append(entry)
self.undeclared_cached_builtins.append(entry)
else:
entry.is_builtin = 1
entry... |
Cosmetic changes in the comments
I verified that Octopart ignores spaces inside the manf# | @@ -109,7 +109,6 @@ def log_response(text):
f.write(text + '\n')
-# Change the logging print channel to `tqdm` to keep the process bar to the end of terminal.
class TqdmLoggingHandler(logging.Handler):
'''Overload the class to write the logging through the `tqdm`.'''
def __init__(self, level=logging.NOTSET):
@@ -176,7 ... |
llvm/execution/FuncExecution: set input/output ctypes and the output
buffer in contructor.
These don't have to be recreated on every execution. | @@ -120,17 +120,23 @@ class FuncExecution(CUDAExecution):
self._execution_ids = execution_ids
self._component = component
- par_struct_ty, ctx_struct_ty, _, _ = self._bin_func.byref_arg_types
+ par_struct_ty, ctx_struct_ty, vi_ty, vo_ty = self._bin_func.byref_arg_types
if len(execution_ids) > 1:
self._bin_multirun = se... |
Update corehq/util/es/interface.py
Review improvement | @@ -82,7 +82,7 @@ class ElasticsearchInterface:
self._verify_is_alias(index_alias)
doc_adapter = self._get_doc_adapter(index_alias, doc_type)
query = {} if body is None else body
- params = params if params else {}
+ params = {} if params is not None else params
return doc_adapter.search(query, params=params, **kwargs)... |
VTFLib wrapper: Add MacOS support into 3rd place,
how many times do i need to add it? | @@ -64,6 +64,8 @@ class VTFLib:
cls.vtflib_cdll = WinDLL(os.path.join(full_path, vtf_lib_name))
elif platform_name == "Linux":
cls.vtflib_cdll = cdll.LoadLibrary(os.path.join(full_path, vtf_lib_name))
+ elif platform_name == 'Darwin':
+ cls.vtflib_cdll = cdll.LoadLibrary(os.path.join(full_path, vtf_lib_name))
else:
rai... |
Update README.rst
update link, small change | NVIDIA Neural Modules: NeMo
===========================
-NeMo is one of the solutions offered in NVIDIA `Conversational AI tools <https://developer.nvidia.com/conversational-ai#started>`_
+NeMo is a toolkit for defining and building new state of the art deep learning models for `Conversational AI <https://developer.nvi... |
improve broadcast handling in batching.py
We can avoid a circular import just by `import jax`! | import numpy as onp
from typing import Any, Callable, Dict, Optional, Tuple, Union
+import jax
from .. import core
from ..core import Trace, Tracer, new_master
from ..abstract_arrays import ShapedArray, raise_to_shaped
@@ -23,7 +24,6 @@ from .. import linear_util as lu
from ..util import unzip2, partial, safe_map, wrap... |
Clean up TODO
has been merged. That said, `cirq.Symbol` has been replaced with `sympy.Symbol` anyway and the latter doesn't suffer from the issue addressed by `+0`. | @@ -733,7 +733,7 @@ class CZPowGate(eigen_gate.EigenGate,
if protocols.is_parameterized(self):
return NotImplemented
global_phase = 1j**(2 * self._exponent * self._global_shift)
- z_phase = 1j**(self._exponent + 0) # TODO: Cleanup after #1389.
+ z_phase = 1j**self._exponent
c = -1j * z_phase * np.sin(np.pi * self._expo... |
Branding: raise custom error when constructing remote objects
The default KeyError message from dict lookup is just the missing key.
In order to give more context in the log message, we raise our own. | @@ -43,6 +43,9 @@ class RemoteObject:
def __init__(self, dictionary: t.Dict[str, t.Any]) -> None:
"""Initialize by grabbing annotated attributes from `dictionary`."""
+ missing_keys = self.__annotations__.keys() - dictionary.keys()
+ if missing_keys:
+ raise KeyError(f"Fetched object lacks expected keys: {missing_keys}... |
[dagit] Flip section arrow in left nav
### Summary & Motivation
Flip the arrow to point right instead of left.
### How I Tested These Changes
View Dagit left nav, expand and collapse sections. | @@ -222,7 +222,7 @@ const SectionHeader = styled.button<{$open: boolean; $showRepoLocation: boolean}
${IconWrapper}[aria-label="arrow_drop_down"] {
transition: transform 100ms linear;
- ${({$open}) => ($open ? null : `transform: rotate(90deg);`)}
+ ${({$open}) => ($open ? null : `transform: rotate(-90deg);`)}
}
:disabl... |
SceneReader : Don't hash filename when calling SceneInterface::hash()
We now expect the underlying SceneInterface to have accounted for the filename (or file contents) itself. | @@ -141,21 +141,21 @@ void SceneReader::hashBound( const ScenePath &path, const Gaffer::Context *conte
{
SceneNode::hashBound( path, context, parent, h );
- fileNamePlug()->hash( h );
- refreshCountPlug()->hash( h );
-
ConstSceneInterfacePtr s = scene( path );
if( !s )
{
return;
}
+ refreshCountPlug()->hash( h );
+
if(... |
Fix `build.yaml` workflow file name
This PR fixes a typo in
Authors:
- AJ Schmidt (https://github.com/ajschmidt8)
Approvers:
- Sevag H (https://github.com/sevagh) | @@ -28,7 +28,7 @@ concurrency:
jobs:
conda-python-build:
secrets: inherit
- uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@main
+ uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-matrix-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ... |
Use pytest.hookimpl instead of pytest.mark.hookwrapper
pytest.mark.hookwrapper seems to be used nowhere in the _pytest package. | @@ -399,22 +399,22 @@ class LoggingPlugin(object):
log = log_handler.stream.getvalue().strip()
item.add_report_section(when, 'log', log)
- @pytest.mark.hookwrapper
+ @pytest.hookimpl(hookwrapper=True)
def pytest_runtest_setup(self, item):
with self._runtest_for(item, 'setup'):
yield
- @pytest.mark.hookwrapper
+ @pytest... |
Turn off showProgressDetails
The file size and remaining time details are all buggy, so remove them.
Add ids for the UI Elements as this was missing. | })
uppy.use(Uppy.DragDrop, {
+ id: `${inputId}-DragDrop`,
target: `#${inputId}-drag-drop`,
});
uppy.use(Uppy.StatusBar, {
+ id: `${inputId}-StatusBar`,
target: `#${inputId}-progress`,
- showProgressDetails: true,
+ showProgressDetails: false,
hideCancelButton: true,
hidePauseResumeButton: true,
});
|
Remove dead code from adm lmdb module
These functions have been migrated over to the lmdb mod in validator,
where they are used and tested. | @@ -125,16 +125,6 @@ impl<'a> LmdbDatabaseReader<'a> {
Ok(val.ok().map(Vec::from))
}
- #[allow(dead_code)]
- pub fn cursor(&self) -> Result<LmdbDatabaseReaderCursor, DatabaseError> {
- let cursor = self
- .txn
- .cursor(&self.db.main)
- .map_err(|err| DatabaseError::ReaderError(format!("{}", err)))?;
- let access = sel... |
Prepare the 1.25.1rc1 release.
Work towards
[ci skip-rust-tests]
[ci skip-jvm-tests] | @@ -10,6 +10,19 @@ The ``1.25.x`` series brings two major changes to Pants:
Please see https://groups.google.com/forum/#!topic/pants-devel/3nmdSeyvwU0 for more information.
+1.25.1rc1 (6/16/2020)
+---------------------
+
+N.B.: No further releases are expected in the ``1.25.x`` ``stable`` series. This ``.1rc1``
+releas... |
try to fix memcached service hc
HG--
branch : feature/microservices | "port": 11211,
"enableTagOverride": false,
"check": {
-{% if ansible_distribution in ['RedHat' or 'CentOS'] %}
+{% if ansible_distribution in ['RedHat'] %}
+ "script": "echo stats | nc localhost 11211 | grep uptime ||(exit 2)",
+{% elif ansible_distribution in ['CentOS'] %}
"script": "echo stats | nc localhost 11211 | ... |
igw: open iscsi target port
Open the port the iscsi target uses for iscsi traffic. | tags:
- firewall
+- name: open iscsi target ports
+ firewalld:
+ port: "3260/tcp"
+ zone: "{{ ceph_iscsi_firewall_zone }}"
+ source: "{{ public_network }}"
+ permanent: true
+ immediate: true
+ state: enabled
+ notify: restart firewalld
+ when:
+ - iscsi_gw_group_name is defined
+ - iscsi_gw_group_name in group_names
+... |
Handle interrupt signal
+ Proper number of arguments for handler, fixes
+ Do not interrupt once we are running to avoid leaving the system in an
indeterminate state, fixes | @@ -40,6 +40,7 @@ class DeprovisionHandler(object):
def __init__(self):
self.osutil = get_osutil()
self.protocol_util = get_protocol_util()
+ self.actions_running = False
signal.signal(signal.SIGINT, self.handle_interrupt_signal)
def del_root_password(self, warnings, actions):
@@ -134,11 +135,16 @@ class DeprovisionHan... |
quick fix in a_pareto_curve.py
comment out the problematic data frame operation | @@ -136,15 +136,16 @@ class ParetoCurveForOneGenerationPlot(cea.plots.optimization.GenerationPlotBase)
def calc_final_dataframe(individual_data):
user_defined_mcda = individual_data.loc[individual_data["user_MCDA_rank"] < 2]
- if user_defined_mcda.shape[0] > 1:
- individual = str(user_defined_mcda["individual_name"].va... |
update: update ceph release pattern in complete upgrade play
since master is now deploying quincy, we must update this.
Otherwise, it will fail like following:
```
Error EPERM: require_osd_release cannot be lowered once it has been set
``` | name: ceph-facts
tasks_from: container_binary.yml
- - name: container | disallow pre-pacific OSDs and enable all new pacific-only functionality
- command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} osd require-osd-release pacific"
+ -... |
Updated readme
Update guide for MySQL, shared library and auto-update | @@ -111,6 +111,19 @@ Only add/remove to My List from within the addon keeps the Kodi library in sync.
### My watched status is not being updated?!
The addon does not report watched status back to Netflix (yet). This is a top priority on our roadmap, but we haven't been able to figure this out just yet.
+### Can i share... |
Remove unused table header in search template
The unused header was creating an extra line that we could resolve with
css instead of empty html tags. | {% endif %}
<div class="table-responsive">
<table class="table table-striped">
- <thead>
- <tr>
- <th></th>
- <th></th>
- </tr>
- </thead>
<tbody>
{% for host in hosts %}
<tr>
|
Update version to 1.5.0
Changes
Use latest `dwave-system` (0.8.x), which uses the latest
`dwave-cloud-client` (0.6.x)
Use latest `dwave-hybrid` (0.4.x) | # limitations under the License.
#
# ================================================================================================
-__version__ = '1.4.0'
+__version__ = '1.5.0'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = 'tools@dwavesys.com'
__description__ = 'Software development kit for open source D-Wave... |
feat: start extracting constants from donation page
To serve as reference on how to do it for the rest of the app | @@ -2,21 +2,10 @@ import { Link, makeStyles, Typography } from "@material-ui/core";
import classNames from "classnames";
import HtmlMeta from "components/HtmlMeta";
import Markdown from "components/Markdown";
-import {
- BENEFACTOR_CONTACT1,
- BENEFACTOR_CONTACT2,
- BENEFACTOR_EMAIL,
- DONATIONS_BANNER_TEXT,
- DONATION... |
Update rogue_dns.txt
Have no idea how to proceed all these tons of ```ns.*``` records. | @@ -379,3 +379,13 @@ ns2.gatherreceive.net
ns3.gatherreceive.net
ns4.gatherreceive.net
63.251.106.22:53
+
+# Reference: https://www.virustotal.com/gui/ip-address/184.73.137.229/relations
+# Reference: https://www.virustotal.com/gui/ip-address/34.229.84.179/relations
+# Reference: https://www.virustotal.com/gui/ip-addre... |
Apply suggestions from code review
Thanks for catching all of these little mistakes! | @@ -20,12 +20,12 @@ keywords that use the Playwright API.
Starting with CumulusCI version 3.59.0, we are providing experimental
support for Playwright and the Browser library in CumulusCI.
-In CumulusCI version 3.60 we've reorganized our keywords so that
+In CumulusCI 3.60, we've reorganized our keywords so that
a test... |
FFU: Fix Keystone FFU tasks
We need to set facts instead of resigering values. | @@ -232,33 +232,43 @@ outputs:
tags: common
shell: "httpd -t -D DUMP_VHOSTS | grep -q keystone_wsgi"
ignore_errors: true
- register: httpd_enabled
+ register: keystone_httpd_enabled_result
+ when:
+ - step|int == 0
+ - release == 'ocata'
+ - name: Set fact keystone_httpd_enabled
+ set_fact:
+ keystone_httpd_enabled: "{... |
Update directory_ldap.py
correcting Issue # | @@ -269,7 +269,7 @@ class LDAPDirectoryConnector(object):
if sn_value is not None:
user['lastname'] = sn_value
c_value = LDAPValueFormatter.get_attribute_value(record, six.text_type('c'))
- source_attributes['c'] = c_value if c_value else None
+ source_attributes['c'] = c_value.upper() if c_value else None
if c_value i... |
Fix double x/y transform for use tags
Fix | @@ -20,8 +20,6 @@ def use(svg, node, font_size):
from . import SVG
svg.stream.push_state()
- svg.stream.transform(
- 1, 0, 0, 1, *svg.point(node.get('x'), node.get('y'), font_size))
for attribute in ('x', 'y', 'viewBox', 'mask'):
if attribute in node.attrib:
|
Fix bug with callback used for HDF5 attrs and filters
key in lambda function was fixed to its value in the last iteration of the "for" loop | @@ -32,12 +32,13 @@ __authors__ = ["V. Valls"]
__license__ = "MIT"
__date__ = "27/01/2017"
-from silx.gui import qt
+import functools
import os.path
+import logging
+from silx.gui import qt
import silx.io
from .TextFormatter import TextFormatter
import silx.gui.hdf5
-import logging
_logger = logging.getLogger(__name__)... |
fix(stock_zh_a_spot): fix stock_zh_a_spot interface
fix stock_zh_a_spot interface | @@ -55,7 +55,8 @@ def stock_zh_a_spot() -> pd.DataFrame:
zh_sina_stock_payload_copy.update({"page": page})
r = requests.get(zh_sina_a_stock_url, params=zh_sina_stock_payload_copy)
data_json = demjson.decode(r.text)
- big_df = big_df.append(pd.DataFrame(data_json), ignore_index=True)
+ big_df = pd.concat([big_df, pd.Dat... |
Documentation: android hide loading screen
Correct sample code for hiding the splash screen in android. | @@ -88,11 +88,11 @@ longer than necessary (with your app already being loaded) due to a
limitation with the way we check if the app has properly started.
In this case, the splash screen overlaps the app gui for a short time.
-To dismiss the loading screen explicitely in your code, use the `android`
+To dismiss the load... |
in gen test, account for 0-indexing and outage being inclusive of end time step
first time step of outage was not being checked when asserting critical load equals sum of techs to load | @@ -59,7 +59,7 @@ class GeneratorSizingTests(ResourceTestCaseMixin, TestCase):
tech_to_load = list()
for tech in list_to_load:
if tech is not None:
- tech_to_load = [sum_t + t for sum_t, t in zip(tech_to_load, tech[outage_start:outage_end])]
+ tech_to_load = [sum_t + t for sum_t, t in zip(tech_to_load, tech[outage_star... |
CatalogueUI : Fix incorrect sorting of images
highlighted a case where the `ImagesPath` could end up being
pre-sorted before we call `setSortable( False ). Disabling sorting in
the constructor fixes this.
Fixes | @@ -430,10 +430,10 @@ class _ImageListing( GafferUI.PlugValueWidget ) :
self.__pathListing = GafferUI.PathListingWidget(
_ImagesPath( self.__images(), [] ),
columns = columns,
- allowMultipleSelection = True
+ allowMultipleSelection = True,
+ sortable = False
)
self.__pathListing.setDragPointer( "" )
- self.__pathListi... |
updating test name
missing an 's' | @@ -26,4 +26,4 @@ jobs:
- name: Check django logs
run: docker logs django
- name: test
- run: docker-compose exec -T celery python manage.py test reo.tests.test_custom_rate reo.tests.test_demand_ratchet -v 2 --failfast --no-input
+ run: docker-compose exec -T celery python manage.py test reo.tests.test_custom_rates reo... |
(doc) update logging info - wording change
added log rotation on doc | @@ -12,6 +12,6 @@ For users who wish to locate and submit log files, they are located in the `/log
## Log File Management
-A separate log file will now be generated daily. When a new log file is created, if there are more than 7 files, the oldest ones will be deleted in order to limit disk storage usage. The log rotati... |
Fix docstring for npermutations in PermutationExplainer
Closes
Authors:
- Philip Hyunsu Cho (https://github.com/hcho3)
Approvers:
- Dante Gama Dessavre (https://github.com/dantegd)
URL: | @@ -235,7 +235,13 @@ class PermutationExplainer(SHAPBase):
CuPy, cuDF DataFrame/Series, NumPy ndarray and Pandas
DataFrame/Series.
npermutations : int (default = 10)
- The l1 regularization to use for feature selection.
+ Number of times to cycle through all the features, re-evaluating
+ the model at each step. Each cy... |
Update neo/rawio/axonarawio.py
Fix spelling mistake in comment | @@ -436,7 +436,7 @@ class AxonaRawIO(BaseRawIO):
# Adapted or modified by Steffen Buergers, Julia Sprenger
def _get_temporal_mask(self, t_start, t_stop, tetrode_id):
- # Conenience function for creating a temporal mask given
+ # Convenience function for creating a temporal mask given
# start time (t_start) and stop tim... |
Fixes the natlas-services getting deleted when an agent requests an updated services version.
This was caused because python doesn't implicitly copy objects, so the del as_list was removing it from the original object. Closes | @@ -148,7 +148,7 @@ def submit():
@isAgentAuthenticated
def natlasServices():
if current_app.current_services["id"] != "None":
- tmpdict = current_app.current_services
+ tmpdict = current_app.current_services.copy() # make an actual copy of the dict so that we can remove the list
del tmpdict['as_list'] # don't return t... |
Deseasonify: make `get_package_names` an iterator
This simplifies the function and is more in-line with how the function
is being used. | import logging
import pkgutil
from pathlib import Path
-from typing import List
+from typing import Iterator, List
__all__ = ("get_package_names", "get_extensions")
log = logging.getLogger(__name__)
-def get_package_names() -> List[str]:
- """Return names of all packages located in /bot/exts/."""
- seasons = [
- packag... |
Acquire validation results lock once per fork
Prior to this commit on every block on a fork the validation results
cache's lock would be acquired, which is expensive. This commit changes
it so it is acquired for the whole fork. | @@ -732,12 +732,11 @@ impl<BV: BlockValidator + 'static> ChainController<BV> {
})
});
- for blk in result.new_chain.iter().rev() {
let mut cache = self
.block_validation_results
.write()
.expect("Unable to acquire read lock, due to poisoning");
-
+ for blk in result.new_chain.iter().rev() {
match cache.find(|result| &b... |
Adding location
Credit to for confirming the location: | @@ -46,6 +46,7 @@ Police open fire on protesters outside of city hall with teargas, flashbands, an
**Links**
* https://twitter.com/greg_doucette/status/1269017349727928320
+* [Location on Google Maps](https://www.google.com/maps/place/29+W+South+St,+Orlando,+FL+32801,+USA/@28.5384293,-81.3797504,20z/data=!4m5!3m4!1s0x8... |
Break up all the anndata tests
* Break up all the anndata tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see | @@ -224,6 +224,8 @@ def test_data_format():
adata_manager.get_from_registry(REGISTRY_KEYS.PROTEIN_EXP_KEY),
)
+
+def test_data_format_c_contiguous():
# if obsm is dataframe, make it C_CONTIGUOUS if it isnt
adata = synthetic_iid()
pe = np.asfortranarray(adata.obsm["protein_expression"])
@@ -272,6 +274,8 @@ def test_setu... |
Update tilda-takeover.yaml
This update is based on this issue | @@ -11,9 +11,13 @@ requests:
- method: GET
path:
- "{{BaseURL}}"
-
+ matchers-condition: and
matchers:
- type: word
words:
- - <title>Please renew your subscription</title>
- Please go to the site settings and put the domain name in the Domain tab.
+ - type: word
+ words:
+ - "<title>Please renew your subscription</tit... |
fix time stats nested loops
With nested loops, the inner `LoopSum` or `LoopConcatenateCombined` incorrectly
created a new dictionary for inner time stats for every outer iteration. This
patch fixes this problem by creating a new dictionary only if there was none. | @@ -3483,7 +3483,7 @@ class LoopSum(Array):
def evalf_withtimes(self, times, shape, length, *args):
serialized = self._serialized
- times[self] = subtimes = collections.defaultdict(_Stats)
+ subtimes = times.setdefault(self, collections.defaultdict(_Stats))
result = numpy.zeros(shape, self.dtype)
for index in range(len... |
Call to_string instead of using format!
Format is a complex macro, so for objects that can has to_string called
on them, this is preferable. | @@ -342,7 +342,7 @@ impl From<ProtobufError> for Error {
IoError(err) => Error::EncodingError(format!("{}", err)),
WireError(err) => Error::EncodingError(format!("{:?}", err)),
Utf8(err) => Error::EncodingError(format!("{}", err)),
- MessageNotInitialized { message: err } => Error::EncodingError(format!("{}", err)),
+ ... |
Fix signature in docstring
Summary: Fixes callable signature
Test Plan: N/A
Reviewers: leoeer | @@ -39,7 +39,7 @@ class SystemStorageDefinition(
config_schema (Optional[ConfigSchema]): The schema for the storage's configuration schema.
Configuration data passed in this schema will be made available to the
``system_storage_creation_fn`` under ``init_context.system_storage_config``.
- system_storage_creation_fn: (C... |
Fix: TCP port number is zero in the error message
When failing to connect to a language server that is hosting a TCP
server, and when we choose a free TCP port, the error message shows
"Failed to connect on port 0", whereas that should be
"Failed to connect on port ${port}". | @@ -228,7 +228,7 @@ def create_transport(config: ClientConfig, cwd: Optional[str], window: sublime.W
if tcp_port:
sock = _connect_tcp(tcp_port)
if sock is None:
- raise RuntimeError("Failed to connect on port {}".format(config.tcp_port))
+ raise RuntimeError("Failed to connect on port {}".format(tcp_port))
reader = soc... |
use a different replay for some lotv tests:
- make sure there is really a zerg in that replay, otherwise the
test would test nothing at all
- remove outdated comment, that test does not fail. | @@ -435,19 +435,21 @@ class TestReplays(unittest.TestCase):
def test_lotv_creepTracker(self):
from sc2reader.engine.plugins import CreepTracker
- for replayfilename in ["test_replays/lotv/lotv1.SC2Replay"]:
+ for replayfilename in ["test_replays/4.0.0.59587/1.SC2Replay"]:
factory = sc2reader.factories.SC2Factory()
plug... |
Fix quantization with checkpoint wrapper
Summary: checkpoint wrapper deepcopy fix wasn't compatible with jitting. e.g | @@ -46,6 +46,9 @@ def unwrap_checkpoint(m: torch.nn.Module):
if hasattr(module, "precheckpoint_forward"):
module.forward = module.precheckpoint_forward
del module.precheckpoint_forward
+ if hasattr(module, "old_deepcopy_method"):
+ module.__deepcopy__ = module.old_deepcopy_method
+ del module.old_deepcopy_method
return... |
Remove reference to deprecated readthedocs documentation in Contribute page
Removes the reference to the now-deprecated readthedocs documentation as noted in issue
The script mentioned (`dev_tools/docs/build-rtd-docs.sh`) is still present, maybe it should be removed as well? | @@ -303,14 +303,6 @@ def some_method(a: int, b: str) -> float:
"""
```
-The docs folder is used to automatically generate the documentation on our website at [quantumai.google/cirq](https://quantumai.google/cirq) from the `master` branch. You can also generate a local copy by running:
-
-```bash
-dev_tools/docs/build-r... |
Update coqa_official_evaluation_script.py
modifying scoring to only generate scores for sources actually seen during eval | @@ -185,6 +185,7 @@ class CoQAEvaluator():
for story_id, turn_id in self.gold_data:
key = (story_id, turn_id)
source = self.id_to_source[story_id]
+ if key in exact_scores and key in f1_scores:
sources[source]['em_total'] += exact_scores.get(key, 0)
sources[source]['f1_total'] += f1_scores.get(key, 0)
sources[source]['... |
Update bookmark error handling
This moves sending the error response to within the except block, making it easier to parse what the code is doing. | @@ -74,10 +74,9 @@ class Bookmark(commands.Cog):
await member.send(embed=embed)
except discord.Forbidden:
error_embed = self.build_error_embed(f"{member.mention}, please enable your DMs to receive the bookmark.")
+ await channel.send(embed=error_embed)
else:
log.info(f"{member} bookmarked {target_message.jump_url} with... |
[dagit] Polling query on assets page
Summary:
Resolves
Make the Assets list query use polling, with a refreshable countdown.
Test Plan: View Assets on Dagit, verify query polling and refreshing.
Reviewers: bengotow, prha, sandyryza | @@ -18,6 +18,7 @@ import {useHistory, Link} from 'react-router-dom';
import styled from 'styled-components/macro';
import {PythonErrorInfo, PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorInfo';
+import {QueryCountdown} from '../app/QueryCountdown';
import {useDocumentTitle} from '../hooks/useDocumentTitle';
import {Box... |
feat(device): add deconz support for WXCJKG13LMLightController
related to | @@ -199,26 +199,66 @@ class WXCJKG13LMLightController(LightController):
return {
"button_1_single": Light.OFF,
"button_1_double": Light.SYNC,
+ # "button_1_triple": "", # Nothing
# "button_1_hold": "", # Nothing
# "button_1_release": "", # Nothing
"button_2_single": Light.ON,
"button_2_double": Light.SYNC,
+ # "button_... |
enh(harvest) log n-rows cleared ...
useful explanation when harvesting selectively sources,
to understand how many more visits discovered. | @@ -72,12 +72,15 @@ def visits_to_sqlite(vit: Iterable[Res[DbVisit]], *, overwrite_db: bool) -> List
meta.create_all()
cleared: Set[str] = set()
+ ncleared = 0
with engine.begin() as conn:
for chunk in chunked(vit_ok(), n=_CHUNK_BY):
srcs = set(v.src or '' for v in chunk)
new = srcs.difference(cleared)
+
for src in new... |
Add check for rtree import
Fixed correct return type from generate_hypotheses | @@ -5,8 +5,11 @@ from operator import attrgetter
import numpy as np
import scipy as sp
-import rtree
from scipy.spatial import KDTree
+try:
+ import rtree
+except ImportError:
+ rtree = None
from .base import DataAssociator
@@ -48,7 +51,7 @@ class DetectionKDTreeMixIn(DataAssociator):
def generate_hypotheses(self, trac... |
Update README.md with new start
Change amount of memory, CPUs, IP addresses. | @@ -25,34 +25,17 @@ two local virtual machines.
If you want to change CTF Placeholder, edit
picoCTF-web/web/_includes/header.html
-If you want to change the IP address and VM names (e.g. to have duplicates
-running on the same host VM), change the following lines:
+There are now quick ways to change the memory, number ... |
enhancement: add 'cls' argument to .processors.find
add 'cls' argument to anyconfig.processors.find to allow comparison of
other class object in anyconfig.processors.find_by_type maybe called
later from it. | @@ -149,13 +149,14 @@ def find_by_maybe_file(obj, prs):
return processor()
-def find(obj, prs, forced_type=None):
+def find(obj, prs, forced_type=None, cls=anyconfig.models.processor.Processor):
"""
:param obj:
a file path, file or file-like object, pathlib.Path object or
`~anyconfig.globals.IOInfo` (namedtuple) object... |
test_queue_system_while_system: wait for execution
we shouldn't leak that other execution we queued, otherwise we'll
be getting errors in the mgmtworker later. Wait for it to finish
properly. | @@ -413,6 +413,7 @@ class ExecutionsTest(AgentlessTestCase):
# Make sure snapshot_2 started while the snapshot_3 is queued again
self._assert_execution_status(snapshot_3.id, Execution.QUEUED)
self.wait_for_execution_to_end(snapshot_2)
+ self.wait_for_execution_to_end(snapshot_3)
def test_queue_system_exec_from_queue_wh... |
Update HtmlFilter.py
Added to the example script to give more of an example. | -# start the service
+# Some Services do not like anything other than pure text
+# while other Services will produce text with markup tags included
+# To join (route) the output of a Service with markup tags to one that
+# doesn't support the markup tags, we need to filter it.
+# Enter the HtmlFilter service
+
+# The m... |
make iOS build accept CFLAGS and CPPFLAGS set via profile
These flags have been overwritten, but to accept for example
the -fembed-bitcode flag, it needs to be picked up from the environment. | @@ -321,10 +321,14 @@ class LibcurlConan(ConanFile):
if self.settings.os == "iOS":
iphoneos = tools.apple_sdk_name(self.settings)
ios_dev_target = str(self.settings.os.version).split(".")[0]
+
+ env_cppflags = tools.get_env("CPPFLAGS", "")
+ socket_flags = " -DHAVE_SOCKET -DHAVE_FCNTL_O_NONBLOCK"
if self.settings.arch ... |
Fix MasterPublicIP regex in cfncluster-release-check.py
It was wrong because it was matching just the first character of the ip. | @@ -102,7 +102,7 @@ def run_test(region, distro, scheduler, key_name):
'status', testname], stderr=stderr_f)
dump_array = dump.splitlines()
for line in dump_array:
- m = re.search('MasterPublicIP: (.+?)', line)
+ m = re.search('MasterPublicIP: (.+)$', line)
if m:
master_ip = m.group(1)
break
|
Includes app_config when starting get_config.py
The get_config.py scripts supports providing the app_config
file path as an argument, but mbed.py does not include it,
when starting get_config.py, which means that the configuration
being built will differ from the output of get_config.py, when
building with an app_confi... | @@ -2728,6 +2728,7 @@ def compile_(toolchain=None, target=None, macro=False, profile=False,
+ list(chain.from_iterable(zip(repeat('--profile'), profile or [])))
+ list(chain.from_iterable(zip(repeat('--source'), source)))
+ (['-v'] if verbose else [])
+ + (['--app-config', app_config] if app_config else [])
+ (list(cha... |
Update development workflow documentation
Changed formatting of the "make" keyword to indicate that it's a command. | @@ -29,9 +29,9 @@ directory.
#### Build & Installation
-Elyra uses make to automate some of the development workflow tasks.
+Elyra uses `make` to automate some of the development workflow tasks.
-Issuing a make command with no task specified will provide a list of the currently supported tasks.
+Issuing a `make` comman... |
Fix
fix for backing off to previous standard pixel renderer | @@ -184,7 +184,7 @@ class RendererBase(object):
if dst_order is None:
dst_order = self.viewer.rgb_order
if src_order is None:
- src_order = self.std_order
+ src_order = self.rgb_order
if src_order != dst_order:
arr = trcalc.reorder_image(dst_order, arr, src_order)
|
Tests: different prefix for mock rses created by factories
this allows for a drop-in replcaement of pre-defined (ex: MOCK4)
rses in tests which rely on the RSE path being at a specific
location. Some such tests are in test_bin_rucio.py | @@ -75,11 +75,14 @@ class TemporaryRSEFactory:
else:
rse_id = rse_core.add_rse(rse_name, vo=self.vo, **(add_rse_kwargs or {}))
if scheme and protocol_impl:
+ prefix = '/test_%s/' % rse_id
+ if protocol_impl == 'rucio.rse.protocols.posix.Default':
+ prefix = '/tmp/rucio_rse/test_%s/' % rse_id
protocol_parameters = {
'sc... |
Update hclu.py
reformat code | @@ -90,7 +90,9 @@ class HighConfidenceLowUncertainty(Attack):
return (pred - args['conf']).reshape(-1)
def constraint_unc(x, args): # constraint for uncertainty
- return (args['max_uncertainty'] - (args['classifier'].predict_uncertainty(x.reshape(1, -1))).reshape(-1))[0]
+ return (
+ args['max_uncertainty'] - (args['cl... |
Add to Desktop menu item in tree view
fixes frappe/erpnext#10548 | @@ -339,7 +339,15 @@ frappe.views.TreeView = Class.extend({
if (has_perm) {
me.page.add_menu_item(menu_item["label"], menu_item["action"]);
}
- })
+ });
+
+ // last menu item
+ me.page.add_menu_item(__('Add to Desktop'), () => {
+ const label = me.doctype === 'Account' ?
+ __('Chart of Accounts') :
+ __(me.doctype);
+ ... |
Improves various docstrings and comments.
Thanks to for suggesting most of these in their code review. | @@ -24,14 +24,6 @@ class RedisCache:
"""
A simplified interface for a Redis connection.
- This class must be created as a class attribute in a class. This is because it
- uses __set_name__ to create a namespace like MyCog.my_class_attribute which is
- used as a hash name when we store stuff in Redis, to prevent collisi... |
[varLib] Fix building variation of PairPosFormat2
I broke this with
Ouch! | @@ -278,13 +278,8 @@ def merge(merger, self, lst):
merger.valueFormat1 = self.ValueFormat1
merger.valueFormat2 = self.ValueFormat2
- if self.Format == 2:
- # Everything must match; we don't support smart merge yet.
- merger.mergeObjects(self, lst)
- del merger.valueFormat1, merger.valueFormat2
- return
+ if self.Format... |
[Doctest] Fix `Blenderbot` doctest
fix blenderbot doctest
add correct expected value | @@ -544,7 +544,7 @@ BLENDERBOT_GENERATION_EXAMPLE = r"""
>>> inputs = tokenizer([NEXT_UTTERANCE], return_tensors="pt")
>>> next_reply_ids = model.generate(**inputs)
>>> print("Bot: ", tokenizer.batch_decode(next_reply_ids, skip_special_tokens=True)[0])
- Bot: That's too bad. Have you tried encouraging them to change th... |
Round model lagging frame drop percentage
alerts: round model frame drop percentage | @@ -277,7 +277,7 @@ def high_cpu_usage_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: boo
def modeld_lagging_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
- return NormalPermanentAlert("Driving model lagging", f"{sm['modelV2'].frameDropPerc}% frames dropped... |
chore: new forum URL
[skip ci] | blank_issues_enabled: false
contact_links:
- name: Community Forum
- url: https://discuss.erpnext.com/
+ url: https://discuss.frappe.io/c/framework/5
about: For general QnA, discussions and community help.
|
Fix dependency in forseti.service
Wants= is only valid in the Unit section of a systemd unit. | @@ -48,6 +48,7 @@ SQL_PROXY_COMMAND+=" -instances=${SQL_INSTANCE_CONN_STRING}=tcp:${SQL_PORT}"
API_SERVICE="$(cat << EOF
[Unit]
Description=Forseti API Server
+Wants=cloudsqlproxy.service
[Service]
User=ubuntu
Restart=always
@@ -55,7 +56,6 @@ RestartSec=3
ExecStart=$FORSETI_COMMAND
[Install]
WantedBy=multi-user.target
... |
Implement BatchIndex, TransactionIndex for InMemoryBlockstore
The InMemoryBlockstore is used in the BlockManager tests and will be used in
the ChainCommitState tests | @@ -126,6 +126,40 @@ impl BlockStore for InMemoryBlockStore {
}
}
+impl BatchIndex for InMemoryBlockStore {
+ fn contains(&self, id: &str) -> Result<bool, BlockStoreError> {
+ Ok(self
+ .iter()?
+ .flat_map(|block| block.batches)
+ .any(|batch| &batch.header_signature == id))
+ }
+
+ fn get_block_by_id(&self, id: &str)... |
Adjust command to backfill (less granular)
Rates began from
This adjusts the command to backfill by year.
If 2016, let's backfill from May.
If 2017, let's backfill from the beginning of the year. | @@ -153,12 +153,19 @@ class PopulateMonthlyBilling(Command):
option_list = (
Option('-s', '-service-id', dest='service_id',
help="Service id to populate monthly billing for"),
- Option('-m', '-month', dest="month", help="Use for integer value for month, e.g. 7 for July"),
Option('-y', '-year', dest="year", help="Use fo... |
Updates setup.py to reflect new dependencies & templates.
Matplotlib dependency replaced with plotly.
Removed python-pptx optional dependency.
Altered staged files from templates/*.{tex,pptx} to
templates/*.html and templates/css/*.css files. | @@ -41,11 +41,10 @@ setup(name='pyGSTi',
author_email='pygsti@sandia.gov',
packages=['pygsti', 'pygsti.algorithms', 'pygsti.construction', 'pygsti.drivers', 'pygsti.io', 'pygsti.objects', 'pygsti.optimize', 'pygsti.report', 'pygsti.tools'],
package_dir={'': 'packages'},
- package_data={'pygsti.report': ['templates/*.te... |
Update README.md
Added a step in the readme for pipx-installation, to make sure 'pipx ensurepath' is executed to access the installed packages. | @@ -62,6 +62,7 @@ If you aren't familiar with installing python applications, I recommend you inst
* Open `Terminal` (search for `Terminal` in Spotlight or look in `Applications/Utilities`)
* Install `homebrew` according to instructions at [https://brew.sh/](https://brew.sh/)
* Type the following into Terminal: `brew i... |
filestore-to-bluestore: do not use --destroy
Do not use `--destroy` when zapping a device.
Otherwise, it destroys VGs while they are still needed to redeploy the
OSDs. | ceph_volume:
action: "zap"
osd_fsid: "{{ item }}"
+ destroy: False
environment:
CEPH_VOLUME_DEBUG: 1
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
|
Disable dagstermill 3.5 tests
Summary:
We are tracking this issue here,
Until fixed let's disable this
Test Plan: BK
Reviewers: nate | @@ -101,11 +101,12 @@ def publish_test_images():
return tests
-def python_modules_tox_tests(directory):
+def python_modules_tox_tests(directory, supported_pythons=None):
label = directory.replace("/", "-")
tests = []
# See: https://github.com/dagster-io/dagster/issues/1960
- for version in SupportedPythons + [Supported... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.