message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Create ObservableMixin
Summary: Prep for migrating to Lightning | import functools
import logging
-from typing import List
+from typing import Dict, List, Type
import torch
@@ -41,33 +41,16 @@ class Aggregator:
pass
-def observable(cls=None, **kwargs): # noqa: C901
- """
- Decorator to mark a class as producing observable values. The names of the
- observable values are the names of ... |
Update trickbot.txt
minus ```Google```- related IPs. If something is wrong, please, do not close entire PR, just mark what to clean off. Thank you. | @@ -1215,6 +1215,40 @@ insiderppe.cloudapp.net
5.182.210.226:443
64.44.133.156:447
+# Reference: https://blog.talosintelligence.com/2020/03/threat-roundup-0228-0306.html (# Win.Malware.Trickbot-7603048-1)
+
+107.181.246.213:443
+185.86.150.89:443
+191.7.30.30:443
+193.124.117.189:443
+193.124.117.189:447
+194.87.144.16... |
[varLib.models] Add optional rounding to VariationModel() relevant methods
Users to be updated to benefit.
Part of | @@ -5,6 +5,7 @@ __all__ = ['nonNone', 'allNone', 'allEqual', 'allEqualTo', 'subList',
'supportScalar',
'VariationModel']
+from fontTools.misc.roundTools import noRound
from .errors import VariationModelError
@@ -358,7 +359,7 @@ class VariationModel(object):
self.supports = supports
self.deltaWeights = deltaWeights
- de... |
Screengrab App : Use `ContextAlgo` for expansion and selection.
Note this also fixes a bug whereby the paths to expand were computed in the wrong context. | @@ -318,24 +318,19 @@ class screengrab( Gaffer.Application ) :
# Set up the scene expansion and selection.
- pathsToExpand = GafferScene.PathMatcher()
+ GafferSceneUI.ContextAlgo.clearExpansion( script.context() )
- for path in list( args["scene"]["fullyExpandedPaths"] ) + list( args["scene"]["expandedPaths"] ) :
- # A... |
Don't redefine unecessary type stub.
Summary: Pull Request resolved:
Test Plan: Imported from OSS | @@ -33,7 +33,7 @@ struct ScalarTypeToCType<at::ScalarType::Half> {
// due to ambiguous reference which can't to be resolved. For some reason it cant pick between at::detail and at::cuda::detail.
// For repro example, please see: https://gist.github.com/izdeby/952ae7cf256ddb740a73776d39a7e7ba
// TODO: remove once the bu... |
Only show evaluation stats if enabled
Closes | <dd>{{ challenge.cached_num_participants|intcomma }}</dd>
{% endif %}
- {% if challenge.cached_num_results %}
+ {% if challenge.use_evaluation and challenge.cached_num_results %}
<dt>Results</dt>
<dd>
<a href="{% url 'evaluation:result-list' challenge.short_name %}">{{ challenge.cached_num_results }}</a>
|
Add export of cluster templates
Partially-Implements: bp portable-node-group-and-cluster-templates
This change adds functions to sahara to enable export of ct to JSON. | @@ -143,6 +143,29 @@ def cluster_templates_delete(cluster_template_id):
return u.render()
+def _cluster_template_export_helper(template):
+ template.pop('id')
+ template.pop('updated_at')
+ template.pop('created_at')
+ template.pop('tenant_id')
+ template.pop('is_default')
+ template['default_image_id'] = '{default_ima... |
Update menus.py
Fix incorrect warning message in get_instance_for_rendering() | @@ -266,8 +266,10 @@ class Menu:
def get_instance_for_rendering(cls, contextual_vals, option_vals):
warnings.warn(
'The get_instance_for_rendering() class method is deprecated in '
- 'v2.12 and will be removed in v3. Use create_relevant_object_from_values() '
- 'instead.', category=RemovedInWagtailMenus3Warning
+ 'v2.1... |
Disable bulk editing of all new metadata types.
Prevents overriding of individual metadata. | @focus="trackClick('Description')"
/>
</VFlex>
- <VFlex xs12 md6 :class="{ 'pl-2': $vuetify.breakpoint.mdAndUp }">
+ <VFlex xs12 :[mdValue]="true" :class="{ 'pl-2': $vuetify.breakpoint.mdAndUp }">
<!-- Learning activity -->
<LearningActivityOptions
+ v-if="oneSelected"
ref="learning_activities"
v-model="contentLearning... |
Add Blender code to robot visualisation example
This may be more involved than necessary at this point in the Tutorial, but it should be there for completeness IMO. | @@ -148,8 +148,29 @@ Visualizing Robots
Before jumping into how to build a robot model, let's first see how to visualize
one. This can be done with Blender, Rhino or Grasshopper using one of COMPAS's
artists. The basic procedure is the same in
-any of the CAD software (aside from the import statement), so for simplicit... |
Clarify documentation for complex.rst - Ensuring Object Creation
Updated documentation per issue
Updated complex.rst Ensuring Object Creation section to make the behavior clearer. Explicitly calling out which method raises the error. | @@ -187,8 +187,9 @@ The above example only works if there was an outer command that created a
``Repo`` object and stored it in the context. For some more advanced use
cases, this might become a problem. The default behavior of
:func:`make_pass_decorator` is to call :meth:`Context.find_object`
-which will find the objec... |
enc2gen.py: remove sib/synth-disp from create_evex_evex_mask_dest_reg_only
* the reg-only encoding functions (mod=3) could never need a sib or a
synthetic-zero-valued displacement. | @@ -4580,8 +4580,8 @@ def create_evex_evex_mask_dest_reg_only(env, ii): # allows optional imm8
fo.add_code_eol('emit_evex(r)')
emit_opcode(ii,fo)
emit_modrm(fo)
- emit_sib(fo)
- emit_synthetic_disp(fo)
+ #emit_sib(fo) # FIXME: 2019-07-24 THIS APPEARS EXTRANEOUS, REG ONLY
+ #emit_synthetic_disp(fo) # FIXME: 2019-07-24 T... |
Update apt_gorgon.txt
Fixes: . Full-path detection is added for sample | # See the file 'LICENSE' for copying permission
# Reference: https://github.com/pan-unit42/iocs/blob/master/gorgon/domains.txt
+# Reference: https://www.virustotal.com/gui/file/24adef104d6f177525f24c927e764cf8e53c0ce50fbdd1c414305d5fc8b15116/detection
0-day.us
acorn-paper.com
@@ -18,9 +19,9 @@ securebotnetpanel.tk
stem... |
Use one channel in Conda to speed up the build
This PR targets to deal with | # Spark 3 will support it so we can remove this entire file
# when we support Spark 3.
channels:
- - bioconda
- conda-forge
dependencies:
- - java-jdk=8
+ - openjdk=8
- pip
- pip:
# In Read the Docs, seems installing 'requirements-dev.txt' seems ignored when Conda is used.
|
Fix AtspiElementInfo.visible for iconified windows
Any element with STATE_ICONIFIED should not be considered visible | @@ -207,7 +207,7 @@ class AtspiElementInfo(ElementInfo):
states = children[0].get_state_set()
else:
return False
- return "STATE_VISIBLE" in states and "STATE_SHOWING" in states
+ return "STATE_VISIBLE" in states and "STATE_SHOWING" in states and "STATE_ICONIFIED" not in states
def set_cache_strategy(self, cached):
"""... |
Catch exception caused by empty images in pageseg
Return an empty segmentation instead of just crashing when given empty
pages. | @@ -376,10 +376,15 @@ def segment(im, text_direction='horizontal-tb', scale=None, maxcolseps=2, black_
scale = estimate_scale(binary)
binary = remove_hlines(binary, scale)
+ # emptyish images wll cause exceptions here.
+ try:
if black_colseps:
colseps, binary = compute_black_colseps(binary, scale, maxcolseps)
else:
col... |
Changed _check_inputs to _parse_inputs.
This was suggested in the PR to avoid running _check_inputs without
parsing them first. | @@ -17,9 +17,13 @@ __all__ = [
'ptrace', 'ptrace_csr', 'ptrace_dense', 'ptrace_csr_dense',
]
-cdef tuple _check_inputs(tuple shape, object dims, object sel):
+cdef tuple _parse_inputs(object dims, object sel, tuple shape):
cdef Py_ssize_t i
+ dims = np.atleast_1d(dims).astype(idxint_dtype).ravel()
+ sel = np.atleast_1d... |
25% faster DAG.add_wire
* do less lookups
* a little less lookup
* Add comment
Slighly slower but not a big deal. Indeed, it looks like there is not much that can be done to improveme this function | @@ -188,20 +188,26 @@ class DAGCircuit:
if wire not in self.wires:
self.wires.append(wire)
self._max_node_id += 1
- self.input_map[wire] = self._max_node_id
+ input_map_wire = self.input_map[wire] = self._max_node_id
+
self._max_node_id += 1
- self.output_map[wire] = self._max_node_id
- in_node = self.input_map[wire]
-... |
zilencer: Make /billing appear without i18n prefix.
This copies what we do in `zproject/urls.py` for pages in the
main Django app. | @@ -19,7 +19,10 @@ v1_api_and_json_patterns = [
{'POST': 'zilencer.views.remote_server_notify_push'}),
]
-urlpatterns = [
+# Make a copy of i18n_urlpatterns so that they appear without prefix for English
+urlpatterns = list(i18n_urlpatterns)
+
+urlpatterns += [
url(r'^api/v1/', include(v1_api_and_json_patterns)),
url(r... |
Update README.rst
line break before paper | @@ -8,8 +8,9 @@ OceanSpy - A Python package to facilitate ocean model data analysis and visualiz
|version| |conda forge| |docs| |travis| |codecov| |license| |doi| |JOSS|
-| For publications, please cite the following paper:
-| Almansi, M., R. Gelderloos, T. W. N. Haine, A. Saberi, and A. H. Siddiqui (2019). OceanSpy: A... |
nested containers: elusive ssh race condition
In very rare cases, after having stopped SSH in the VM,
it would come back to life right before the container
starts.
This patch catches those cases. | @@ -1397,7 +1397,8 @@ function replicate_to_container_if_nested {
# the correct priveleges, then run the entrypoint script already provided
# which then starts SSH on its own. Because we're using host networking, everything
# works as-is without any changes.
- sudo docker run -u ${username} -it -d --name cbnested --pri... |
Fix up some typos and dead links
And reword the description around datacube-ows | @@ -6,7 +6,7 @@ Data Cube Ecosystem
API Access from Jupyter
-----------------------
-One of the most comment ways to use Open Data Cube is through interactively
+One of the most common ways to use Open Data Cube is through interactively
writing Python code within a Jupyter Notebook. This allows dynamically loading
data... |
Update parse_zone_file.py
See internal ICM
We are failing to import zones when domain name in $origin contains hypens.
This is because we don't parse it correctly in the regex here | @@ -59,7 +59,7 @@ date_regex_dict = {
_REGEX = {
'ttl': r'(?P<delim>\$ttl)\s+(?P<val>\d+\w*)',
- 'origin': r'(?P<delim>\$origin)\s+(?P<val>[\w\.]+)',
+ 'origin': r'(?P<delim>\$origin)\s+(?P<val>[\w\.-]+)',
'soa': r'(?P<name>[@\*\w\.-]*)\s+(?:(?P<ttl>\d+\w*)\s+)?(?:(?P<class>in)\s+)?(?P<delim>soa)\s+(?P<host>[\w\.-]+)\s... |
billing: Only fetch customers with stripe customer id in autodowngrade.
The customers without a value for stripe_customer_id never had an active
plan. So we don't have to consider them for autodowngrade. | @@ -993,7 +993,7 @@ def void_all_open_invoices(realm: Realm) -> int:
def customer_has_last_n_invoices_open(customer: Customer, n: int) -> bool:
- if customer.stripe_customer_id is None:
+ if customer.stripe_customer_id is None: # nocoverage
return False
open_invoice_count = 0
@@ -1004,7 +1004,7 @@ def customer_has_last... |
Update index.md
Change the RTMP restream to RTSP | @@ -15,7 +15,7 @@ Use of a [Google Coral Accelerator](https://coral.ai/products/) is optional, but
- Object detection with TensorFlow runs in separate processes for maximum FPS
- Communicates over MQTT for easy integration into other systems
- Recording with retention based on detected objects
-- Re-streaming via RTMP ... |
Add some docs
For new grid functionality | @@ -26,13 +26,17 @@ class PrecipitationDistribution(Component):
Construction::
- PrecipitationDistribution(mean_storm_duration=0.0,
+ PrecipitationDistribution(grid=None,
+ mean_storm_duration=0.0,
mean_interstorm_duration=0.0,
mean_storm_depth=0.0, total_t=0.0,
delta_t=0.0, random_seed=0)
Parameters
----------
+ grid ... |
Added pretty frames in AskText dialog (GTK version only)
HG--
branch : feature_global_scalefactor | @@ -567,7 +567,7 @@ if TOOLKIT in (GTK, GTKSOURCEVIEW):
:return: the created window
"""
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
- window.set_border_width(0)
+ window.set_border_width(2)
window.set_title('Enter LaTeX Formula - TexText')
# File chooser and Scale Adjustment
@@ -583,15 +583,15 @@ if TOOLKIT in (GTK, GTKSO... |
test: qb parameterization
where conditions
set update conditions
where with a function | @@ -66,24 +66,47 @@ class TestBuilderBase(object):
self.assertIsInstance(query.run, Callable)
self.assertIsInstance(data, list)
- def test_walk(self):
+
+class TestParameterization(unittest.TestCase):
+ def test_where_conditions(self):
DocType = frappe.qb.DocType("DocType")
query = (
frappe.qb.from_(DocType)
.select(Do... |
Update List.py
documentation for better understanding. | List = []
# List is Muteable
# means value can be change
-List.insert(0, 5)
+List.insert(0, 5) #insertion takes place at mentioned index
List.insert(1, 10)
List.insert(0, 6)
print(List)
List.remove(6)
-List.append(9)
+List.append(9) #insertion takes place at last
List.append(1)
-List.sort()
+List.sort() #arranges eleme... |
Reduce code duplication in Emboss
This commit decreases code duplication in the
parameter parsing of
augmenters.convolutional.Embos by using
the parameter handling functions in
parameters.py.
Additionally, alpha and strength now support
lists, which are interpreted as Choices. | @@ -256,17 +256,19 @@ def Emboss(alpha=0, strength=1, name=None, deterministic=False, random_state=Non
Parameters
----------
- alpha : int or float or tuple of two ints/floats or StochasticParameter, optional(default=0)
+ alpha : number or tuple of number or list of number or StochasticParameter, optional(default=0)
Vi... |
Update help msg for --song
song accepts youtube URLs. | @@ -106,7 +106,7 @@ def get_arguments(config_base=_CONFIG_BASE):
"-s",
"--song",
nargs="+",
- help="download track(s) by spotify link or name"
+ help="download track(s) by spotify link, name, or youtube url."
)
group.add_argument(
"-l",
|
assign to consistent QueueRecv out tensor
avoid calling self.update* functions since those replace underlying tensors
MKL expects output tensor of an op to be consistent from call to call
use [()]= instead [:]= operator to avoid slice 0d array error | @@ -595,8 +595,7 @@ class CPUCodeGenerator(PyGen):
def generate_op(self, op, out, *args):
recv_id = len(self.recv_nodes)
self.recv_nodes.append(op)
- self.append("update_a_{}(self.recv_from_queue_send({}))",
- out.tensor_description.name, recv_id)
+ self.append("{}[()] = self.recv_from_queue_send({})", out, recv_id)
@g... |
Update OpenAPI spec
* Update OpenAPI spec
Update OpenAPI specification to include test server url
* fix url typo | @@ -3,9 +3,10 @@ info:
title: Respa
description: The Respa API provides categorized data on resources available for reservation within a city or metropolitan area
and enables the reservation of these resources. The API provides data in the JSON format, in a RESTful fashion.
- version: 1.5.1
+ version: 1.6.1
servers:
- ... |
[varLib.mutator] Correctly unset Device entries that are None
Part of fixing | @@ -721,7 +721,11 @@ def merge(merger, self, lst):
instancer = merger.instancer
for v in "XY":
- dev = getattr(self, v+'DeviceTable')
+ tableName = v+'DeviceTable'
+ if not hasattr(self, tableName):
+ continue
+ dev = getattr(self, tableName)
+ delattr(self, tableName)
if dev is None:
continue
@@ -732,7 +736,6 @@ def m... |
Update apt_unclassified.txt
Moved from | @@ -74,3 +74,17 @@ photogram.ga
tibct.net
tibct.org
tracking.dgip.gov.pk
+
+# Reference: https://twitter.com/ClearskySec/status/1055404788635103232
+# Reference: https://www.clearskysec.com/iec/
+
+host-gv.appspot.com
+journey-in-israel.com
+iecr.co
+iec-co-il.com
+israelalerts.us
+israelalert.us
+pokemonisrael.yolasit... |
refactor: Prepare test_list_projects for pre-prov
This is part 1 of 2 commits that aim to move tests from only being
executed with the dynamic creds credential provider.
Part 1 does some initial refactoring and Part 2 will move the tests
and finish any other refactoring that's needed. | @@ -18,7 +18,19 @@ from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
-class ListProjectsTestJSON(base.BaseIdentityV3AdminTest):
+class BaseListProjectsTestJSON(base.BaseIdentityV3AdminTest):
+
+ def _list_projects_with_params(self, included, excluded, params, key):
+ # Validate that pro... |
Prepare `2.12.1rc0`.
[ci skip-rust]
[ci skip-build-wheels] | # 2.12.x Release Series
+## 2.12.1rc0 (Jul 14, 2022)
+
+### User API Changes
+
+* Fix poetry locks missing hashes. (Cherry-pick of #16112) ([#16114](https://github.com/pantsbuild/pants/pull/16114))
+
+### Bug fixes
+
+* Fix defaulting of parameters in explicitly specified deps on `parametrize`d targets for AsyncFieldMi... |
Updating cooked to 1.7.0
The change in the FlatImages data model version from `1.1.0` to `1.1.1`
required rebuilding the Cooked/ directory int he dev-suite. Per KBW, the new
version is 1.7.0.
I apparently need permissions to upload the new Cooked_...tar.gz file to the
Google Drive.
modified: pypeit/tests/test_cooked... | @@ -20,6 +20,6 @@ def test_cooked_version():
v_file = os.path.join(os.getenv('PYPEIT_DEV'), 'Cooked', 'version')
with open(v_file) as f:
tmp = f.readlines()
- assert tmp[-1].strip() == '1.6.0'
+ assert tmp[-1].strip() == '1.7.0'
|
Update phishing.txt
[0]
While [1] hxxp://145.249.105.19/ leads to [2] hxxp://145.249.105.19/demo/usa/ and [3] hxxp://145.249.105.19/demo/uk/ , then root address is to be added. | @@ -26,8 +26,12 @@ premierstl.com/level3-network/
centralmissouriwhitetails.com
gtu382gs.f8e2assh3.2018ssl.acritas-energy.com
-=======
+
# Reference: https://twitter.com/malwrhunterteam/status/1032543718623125504
receiptinvoice-format.com
mrofficepanel.receiptinvoice-format.com
+
+# Reference: https://twitter.com/Phish... |
[ci] redirect to a wait page after a new form submit
Also, when you `GET /new`, we delete your old pod if it exists | @@ -134,6 +134,9 @@ def root():
@app.route('/new', methods=['GET'])
def new_get():
+ pod_name = session.get('pod_name')
+ if pod_name:
+ delete_worker_pod(pod_name)
session.clear()
return redirect(external_url_for('/'))
@@ -148,8 +151,11 @@ def new_post():
session['svc_name'] = svc.metadata.name
session['pod_name'] = p... |
Clarify density documentation
This commit adds a note that virtual temperature may be used as input
to this function and rewrites the mathematical expression to put it in
terms of the inputs to this function. | @@ -1759,7 +1759,7 @@ def density(pressure, temperature, mixing_ratio, molecular_weight_ratio=mpconsts
Total atmospheric pressure
temperature: `pint.Quantity`
- Air temperature
+ Air temperature (or the virtual temperature if the mixing ratio is set to 0)
mixing_ratio : `pint.Quantity`
Mass mixing ratio (dimensionless)... |
inte-tests: reset subgraph_retries to 0
this is the default value, so reset-storage should reset it back to
the default value, not to something else | @@ -11,7 +11,7 @@ MANAGER_CONFIG = {
'workflow': {
'task_retries': 5,
'task_retry_interval': 1,
- 'subgraph_retries': 5,
+ 'subgraph_retries': 0,
},
}
|
Ensure the dynamically generated pubkeys are present
There are some tests that expect them to exist.
This commit is a temporary stop gap until a cleaner design is
implemented. | @@ -64,6 +64,7 @@ def fork_choice_scoring():
def test_demo(base_db,
validator_count,
keymap,
+ pubkeys,
fork_choice_scoring):
slots_per_epoch = 8
config = SERENITY_CONFIG._replace(
@@ -83,6 +84,10 @@ def test_demo(base_db,
genesis_epoch = config.GENESIS_EPOCH
chaindb = BeaconChainDB(base_db, config)
+ # TODO(ralexstoke... |
Update jpeg_compression.py
fix line breaks, fix consistency | @@ -20,7 +20,9 @@ This module implements the JPEG compression defence `JpegCompression`.
| Paper link: https://arxiv.org/abs/1705.02900, https://arxiv.org/abs/1608.00853
-| Please keep in mind the limitations of defences. For more information on the limitations of this defence, see https://arxiv.org/abs/1802.00420 . Fo... |
*actually* fixed issue from last commit.
I finally found a way to test things with pytest properly on my end | @@ -423,7 +423,7 @@ def perform_ping(started, server=DEFAULT_SERVER_URL):
language = get_device_setting("language_id", "")
- if not isinstance(started, datetime):
+ if not isinstance(started, datetime.datetime):
started = datetime.datetime.strptime(started)
try:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.